/* ═══════════════════════════════════════════════════════
   TIGER REPS CATALOGUE — Design System & Styles
   Theme: Dark Black + Orange Accents
   ═══════════════════════════════════════════════════════ */

:root {
    /* ─── Colors ─── */
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0a0a0a;
    --bg-card: rgba(12, 12, 12, 0.7);
    --bg-card-hover: rgba(20, 20, 20, 0.9);

    --accent-primary: #E65A00;
    --accent-secondary: #FF8C38;
    --accent-tertiary: #FFa960;
    --accent-glow: rgba(230, 90, 0, 0.15);
    --accent-glow-strong: rgba(255, 107, 0, 0.25);

    --text-primary: #F0F0F0;
    --text-secondary: #999999;
    --text-muted: #666666;

    --border-subtle: rgba(255, 107, 0, 0.15);
    --border-card: rgba(255, 255, 255, 0.06);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 40px rgba(255, 107, 0, 0.1), 0 4px 24px rgba(0, 0, 0, 0.5);

    /* ─── Typography ─── */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* ─── Spacing ─── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* ─── Transitions ─── */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset & Base ─── */
html,
body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ─── Ambient Tech Bubbles ─── */
.bg-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-primary);
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float-bubble 18s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Ensure bubbles stay away from the header zone */
.bg-bubbles {
    mask-image: linear-gradient(to bottom, transparent 0, transparent 400px, black 600px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 400px, black 600px);
}

.b1 {
    width: 45vw;
    height: 45vw;
    background: #E65A00;
    top: 30%;
    left: -10%;
    animation-delay: 0s;
}

.b2 {
    width: 55vw;
    height: 55vw;
    background: #FF3300;
    bottom: -20%;
    right: -10%;
    animation-delay: -4s;
    filter: blur(95px);
}

.b3 {
    width: 35vw;
    height: 35vw;
    background: #FFAE00;
    top: 40%;
    left: 50%;
    animation-delay: -8s;
    filter: blur(70px);
    opacity: 0.1;
}

.b4 {
    width: 30vw;
    height: 30vw;
    background: #CC4400;
    top: 40%;
    right: 20%;
    animation-delay: -12s;
}

@keyframes float-bubble {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(8vw, 12vh) scale(1.15);
    }
}

/* ─── App Container ─── */
#app {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    /* CENTERED */
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */

#site-header {
    display: block;
    /* Host the centered nav container */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 0 300px;
    /* Reduced to pull albums closer to buttons */
    margin-bottom: -320px;
    /* RAISED CONTENT BY ANOTHER 80px (Total 120px) */
    position: relative;
    z-index: 10;
    background: transparent;
    overflow: visible;
}

.header-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 520px 24px 20px;
    /* AGGRESSIVE DOWNWARD PUSH TO CLEAR VIDEO LOGO */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align buttons to the baseline */
    position: relative;
    z-index: 200;
}

/* Floating Category Button Styling */
.category-dropdown-container.floating-selector {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.category-dropdown-container.floating-selector .category-btn {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ffffff;
    /* White standout border */
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    font-weight: 600;
    font-size: 14px;
    min-width: 160px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-dropdown-container.floating-selector .category-menu {
    bottom: 100%;
    /* Sits exactly above the button */
    top: auto;
    right: 0;
    left: auto !important;
    /* Stop stretching across the screen */
    width: 260px;
    /* Fixed elegant width */
    max-height: 400px;
    /* Prevent it from hitting the top */
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    transform-origin: bottom right !important;
    /* Smooth growth from the button */
    background: rgba(10, 10, 10, 0.95);
    /* Deeper dark for premium contrast */
}

@media (max-width: 768px) {
    .category-dropdown-container.floating-selector {
        bottom: 20px;
        right: 20px;
    }

    .category-dropdown-container.floating-selector .category-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 140px;
    }
}

/* Fade logic now happens via mask-image on the video itself */

/* Video stays inside header but behind content */
.header-vbg {
    position: absolute;
    top: -110px;
    /* Reframed: lowered by 40px to center logo better on desktop */
    left: -6%;
    width: 112%;
    height: 125%;
    /* Expanded height to prevent bottom gaps when shifted up */
    object-fit: cover;
    z-index: -1;
    /* Behind header UI */
    pointer-events: none;
    opacity: 0.95;
    filter: brightness(0.85) contrast(1.15);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    will-change: transform, opacity, filter;
    transform: translateZ(0) scale(0.9);
    transform-origin: top center;
    backface-visibility: hidden;
}

#site-header.header-compact+#site-header.header--hidden~.header-vbg,
#site-header.header-compact~.header-vbg {
    /* Optional: can shrink video if needed, but sticky manages most of it */
}

/* Ensure content is always above everything */
.header-left,
.header-center,
.header-right {
    position: relative;
    z-index: 200;
    /* Highest layer */
}

/* Idle Breathing Pulse Animation */
.header-vbg.idle-pulse {
    animation: headerVideoPulse 6s ease-in-out infinite;
}

@keyframes headerVideoPulse {

    0%,
    100% {
        opacity: 0.75;
        filter: brightness(0.85);
    }

    50% {
        opacity: 0.95;
        filter: brightness(1);
    }
}

.header-left,
.header-center,
.header-right {
    display: contents !important;
}

/* ROW 1: ACTIONS & TOP MASCOT - The Trinity */
.whatsapp-btn,
.discord-btn,
.yupoo-btn {
    height: 32px !important;
    padding: 0 16px !important;
    border-radius: 40px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    position: relative;
    z-index: 100;
}

.whatsapp-btn:hover,
.discord-btn:hover,
.yupoo-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

.whatsapp-btn img,
.discord-btn img,
.yupoo-btn img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    display: block !important;
}

.whatsapp-btn {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: white !important;
}

.discord-btn {
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    background: #5865F2 !important;
    /* Discord Blurple */
    color: white !important;
}

.yupoo-btn {
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    background: #ffffff !important;
    color: #00933c !important;
    border: 1px solid rgba(0, 147, 60, 0.3) !important;
}

#tiger-container {
    grid-row: 1;
    grid-column: 1 / 4;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100% !important;
    z-index: 5;
    pointer-events: none;
}

#tiger-container canvas {
    pointer-events: auto;
    width: 90px !important;
    height: 90px !important;
}

.search-bar {
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    width: 280px;
    z-index: 30;
}

/* ROW 2: BRAND & SECONDARY ACTION */
#header-text {
    grid-row: 2;
    grid-column: 1 / 4;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100% !important;
    margin-top: 10px;
    z-index: 5;
}

#site-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.yupoo-btn {
    grid-row: 2;
    grid-column: 3;
    justify-self: end;
    z-index: 30;
    background: white;
    color: #00933c;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #00933c;
    margin-top: -5px;
}

/* ROW 3: CATEGORIES (Bottom & Centered) */
.category-dropdown-container {
    grid-row: 3;
    grid-column: 1 / 4;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100% !important;
    margin-top: 15px;
}

/* VISUAL CENTERING: Balanço perfeito de ícone */
.category-btn {
    margin: 0 !important;
    padding-left: 36px !important;
    padding-right: 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Desktop Badge Placement: Top Right Info */
.album-count-badge {
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
    margin-right: 310px;
    display: flex !important;
    align-items: center;
    font-size: 11px;
    padding: 4px 12px;
    z-index: 35;
    background: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-secondary);
}

/* Reset toasts */
.copy-feedback {
    display: none !important;
}

.category-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 30px;
    /* Pill style */
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.15);
}

.category-btn svg {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.category-dropdown-container.open .category-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-accent);
}

.category-dropdown-container.open .category-btn svg {
    transform: rotate(180deg);
    color: var(--primary-accent);
    opacity: 1;
}

.category-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Highlight top edge */
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
    max-height: min(500px, 70vh);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transform-origin: top left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.category-dropdown-container.open .category-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.category-item {
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    transform: translateX(4px);
}

.category-item.active {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.15), transparent);
    color: var(--primary-accent);
    font-weight: 600;
}

.category-item.active::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-accent);
}

/* Tiger Animation Container */
#tiger-container {
    flex-shrink: 0;
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tiger-canvas {
    width: 120%;
    height: 120%;
    object-fit: contain;
    cursor: pointer;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    filter: drop-shadow(0 4px 15px var(--accent-glow));
}

#tiger-canvas:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 25px var(--accent-glow-strong));
}

#tiger-canvas.floating {
    animation: tiger-float 3s ease-in-out infinite;
}

@keyframes tiger-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Header Text */
#header-text {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#site-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.title-tiger {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.title-separator,
.title-items {
    display: none;
}

/* Header Right - Search & Meta */
.header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.album-count-badge {
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-card);
    white-space: nowrap;
}

.album-count-badge span {
    color: var(--accent-primary);
    font-weight: 700;
}

.search-bar {
    position: relative;
}

.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 16px 10px 40px;
    border-radius: var(--radius-xl);
    width: 260px;
    transition: all var(--transition-normal);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    width: 300px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* ─── Header New Action Buttons ─── */

.header-partner-btn,
.header-contact-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-smooth);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Yupoo Button Styling */
.yupoo-btn {
    background: #ffffff;
    color: #00933c;
    border: 1px solid rgba(0, 147, 60, 0.2);
}

.yupoo-btn svg {
    width: 16px;
    height: 16px;
}

.yupoo-btn:hover {
    transform: translateY(-2px) translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 147, 60, 0.15);
    background: #f8f8f8;
}

/* WhatsApp Comic Style Styling */
.whatsapp-btn {
    background: linear-gradient(135deg, #FF6B00 0%, #000000 100%);
    color: #fff;
    border: 4px solid #ffffff;
    /* Thicker white border */
    border-radius: 2px;
    /* Sharp corners for comic feel */
    padding: 10px 22px;
    animation: none !important;
    /* Shaking removed */
    position: relative;
    overflow: visible;
    box-shadow: 4px 4px 0px #000;
    /* Subtle Comic ink shadow */
    font-weight: 800;
    /* Bold comic font weight */
}

.whatsapp-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    /* Sharp white icon */
}

.whatsapp-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3), 0 0 0 4px rgba(255, 107, 0, 0.1);
    border-color: #FF6B00;
}

/* High-FPS Comic Jitter (approx 15-20 FPS) */
@keyframes comic-jitter {
    0% {
        transform: rotate(-1.5deg) translate(-1px, 1px);
    }

    10% {
        transform: rotate(1.2deg) translate(2px, -1px);
    }

    20% {
        transform: rotate(-1.8deg) translate(-2px, 0.5px);
    }

    30% {
        transform: rotate(1.5deg) translate(1px, -1.5px);
    }

    40% {
        transform: rotate(-1.2deg) translate(0px, 1.2px);
    }

    50% {
        transform: rotate(1.6deg) translate(-1.5px, -0.5px);
    }

    60% {
        transform: rotate(-1.4deg) translate(2px, 1px);
    }

    70% {
        transform: rotate(1.8deg) translate(-1px, -1.8px);
    }

    80% {
        transform: rotate(-1.5deg) translate(1.5px, 0px);
    }

    90% {
        transform: rotate(1.2deg) translate(-0.5px, 1.5px);
    }

    100% {
        transform: rotate(-1.5deg) translate(-1px, 1px);
    }
}

.whatsapp-btn {
    animation: none !important;
}

@keyframes wave-border {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4), 3px 3px 0px #000;
    }

    50% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0), 3px 3px 0px #000;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 3px 3px 0px #000;
    }
}

/* Header Scroll Logic */
#site-header {
    transition: transform 0.3s ease;
}

#site-header.header--hidden {
    transform: translateY(-100%);
}

.header-vbg {
    z-index: 0;
    height: 100%;
}

.header-ui {
    z-index: 100;
}

/* Master Grid Mobile - Pixel-Perfect Symmetrical Harmony */
/* Master Grid Mobile - Pixel-Perfect Symmetrical Harmony */
/* Master Grid Mobile - Pixel-Perfect Symmetrical Harmony */
@media (max-width: 768px) {
    #site-header {
        display: grid !important;
        grid-template-columns: 1fr 85px 1fr;
        grid-template-rows: auto auto auto;
        gap: 6px 8px;
        padding: 40px 10px 180px 10px;
        /* Safe top space and healthy bottom visibility */
        margin-bottom: -60px !important;
        /* Balanced overlap, not too crowded */
        align-items: center;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        background: transparent !important;
    }

    .header-vbg {
        top: 0 !important;
        /* Resetting the -80px shift that broke mobile */
        height: 100% !important;
    }

    #app {
        padding: 0 !important;
        /* Edge-to-edge layout for mobile */
    }

    .header-nav-container {
        padding: 0 10px 10px !important;
        /* Clean nav at the base of top padding */
    }

    /* ESSENTIAL: Allow children to be direct grid items on mobile */
    .header-left,
    .header-center,
    .header-right {
        display: contents !important;
    }

    /* SLIM ACTIONS */
    .whatsapp-btn,
    .search-bar,
    .yupoo-btn {
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        min-width: 0;
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        overflow: hidden;
        border-radius: 6px !important;
        margin: 0 !important;
        padding: 0 4px !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }

    /* ROW 1: TOP ACTIONS & TIGER */
    .whatsapp-btn,
    .yupoo-btn {
        /* Base mobile overrides moved to end of file for priority */
    }

    #tiger-container {
        grid-row: 1;
        grid-column: 2;
        width: 60px;
        height: 60px;
        justify-self: center;
        margin: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-bar {
        grid-row: 1;
        grid-column: 3;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .search-bar input {
        height: 100%;
        width: 100%;
        padding: 0 4px 0 24px !important;
        font-size: 8.5px;
        background: transparent !important;
        border: none !important;
    }

    .search-bar::before {
        left: 8px !important;
        font-size: 10px;
    }

    /* ROW 2: BRAND & SECONDARY ACTION */
    #header-text {
        grid-row: 2;
        grid-column: 1 / 4;
        justify-self: center;
        margin-top: 4px;
        z-index: 5;
    }

    #site-title {
        font-size: 11px;
        font-weight: 800;
        text-align: center;
        white-space: nowrap;
        color: #FF6B00;
        width: 100%;
    }

    .yupoo-btn {
        grid-row: 2;
        grid-column: 3;
        font-size: 7.2px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        z-index: 10;
    }

    /* ROW 3: CATEGORIES (Bottom & Centered) */
    .category-dropdown-container {
        grid-row: 3;
        grid-column: 1 / 4;
        justify-self: center;
        width: auto !important;
        min-width: 180px;
        height: 32px !important;
        padding: 0 10px;
        font-size: 9px;
        margin-top: 6px;
    }

    .album-count-badge {
        display: none !important;
    }

    /* MOBILE GRID: 4 Columns (High Density) */
    .album-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
        margin-top: 10px !important;
    }

    .album-card__title {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    .album-card__count {
        font-size: 8px !important;
    }
}

/* ═══════════════════════════════════════════
   VIEWS (SPA transitions)
   ═══════════════════════════════════════════ */

.view {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 200ms ease, transform 200ms ease;
    position: relative;
    z-index: 50;
    /* Above the video tail but below navigation controls */
}

.view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.view.entering {
    display: block;
    opacity: 0;
    transform: translateY(12px);
}

/* Force-show for immediate transition */
.view.show-immediate {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   ALBUM GRID
   ═══════════════════════════════════════════ */

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    padding-bottom: 60px;
    position: relative;
    z-index: 100;
}

/* ─── Album Card ─── */
.album-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
    aspect-ratio: 1 / 1;
}

.album-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-subtle);
}

.album-card:active {
    transform: translateY(-1px) scale(1.005);
}

.album-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-tertiary);
}

.album-card:hover .album-card__image {
    transform: scale(1.06);
}

.album-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: transparent;
    /* Fade removed totally */
    pointer-events: none;
}

.album-card__title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 1), 0 0 1px rgba(0, 0, 0, 1);
    /* Shadow for legibility without fade */
}
}

.album-card__count {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.album-card__count::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ─── Floating Copy Buttons ─── */
.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-fast);
}

.album-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-copy-link {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy-link svg {
    width: 14px;
    height: 14px;
}

.btn-copy-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

/* ─── Toast Notification ─── */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ─── No image placeholder ─── */
.album-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-muted);
    font-size: 40px;
}

/* ─── Grid Controls / Load More ─── */
.grid-controls {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    min-height: 120px;
}

.btn-load-more {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-load-more:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-load-more:active {
    transform: translateY(0);
}

/* ─── Loading ─── */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-card);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-albums {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.no-albums .sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   ALBUM DETAIL VIEW
   ═══════════════════════════════════════════ */

#detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-back:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    transform: translateX(-2px);
}

#detail-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Description */
.detail-desc {
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-desc:empty {
    display: none;
}

/* Purchase Links */
.detail-links {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.detail-links:empty {
    display: none;
}

.purchase-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.purchase-link--taobao {
    background: linear-gradient(135deg, #FF6B00, #FF8C38);
    color: #000;
}

.purchase-link--taobao:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.purchase-link--weidian {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.purchase-link--weidian:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Gallery Grid */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding-bottom: 60px;
}

.gallery-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    transition: all var(--transition-normal);
}

.gallery-img-wrapper:hover {
    border-color: var(--border-subtle);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.08);
    transform: scale(1.01);
}

.gallery-img {
    width: 100%;
    display: block;
    transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-tertiary);
    min-height: 120px;
}

.gallery-img-wrapper:hover .gallery-img {
    transform: scale(1.03);
}

/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 200ms ease;
}

.lightbox.visible {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 32px;
    width: 48px;
    height: 64px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--accent-primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ─── Category Grouping Headers (All Categories Mode) ─── */
.category-section-header {
    grid-column: 1 / -1;
    /* Spans across all desktop or mobile columns */
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px 0;
    margin: 40px 0 20px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
    width: 100%;
}

.category-section-header span {
    background: linear-gradient(90deg, #ffffff 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@media (max-width: 768px) {
    .category-section-header {
        font-size: 16px;
        letter-spacing: 1px;
        margin: 20px 0 1px 0 !important;
        /* Absolute 1px gap */
        padding: 10px 0 0 0 !important;
        /* Zeroing bottom padding */
        border-bottom: none !important;
        /* Removing the border to eliminate that extra visual gap */
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE & OVERRIDES
   ═══════════════════════════════════════════ */

/* Desktop Cleanup (Now isolated from mobile) */
@media (min-width: 769px) {
    .whatsapp-btn {
        background: linear-gradient(135deg, #25D366, #ff6b00) !important;
        border-radius: 40px !important;
        border: none !important;
        animation: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 768px) {
    #site-header {
        padding: 0 !important;
        margin-bottom: -140px !important;
        width: 100% !important;
        max-width: 100vw !important;
        background: transparent !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 5 !important;
    }

    /* UNLOCKING NESTED BUTTONS FOR FLEX ALIGNMENT */
    .header-left,
    .header-center,
    .header-right {
        display: contents !important;
    }

    /* SEARCH BAR - TOP FLUSH STYLIZED */
    .search-bar {
        position: absolute !important;
        top: 60px !important;
        /* LOWERED +40PX */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 52px !important;
        background: rgba(10, 10, 10, 0.9) !important;
        backdrop-filter: blur(15px) !important;
        border-bottom: 2px solid rgba(255, 107, 0, 0.6) !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 15px !important;
        margin: 0 !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
        pointer-events: auto !important; /* REATIVEI O TOQUE AQUI */
    }

    .search-input {
        background: transparent !important;
        border: none !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        width: 100% !important;
        padding-left: 35px !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
        max-width: none !important;
    }

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
    }

    .search-icon {
        position: absolute !important;
        left: 15px !important;
        color: #FF6B00 !important;
        width: 20px !important;
        height: 20px !important;
        filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.4)) !important;
    }

    .header-nav-container {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 280px 6px 10px 12px !important;
        position: relative !important;
        z-index: 2000 !important;
        pointer-events: none !important;
        /* ALLOWS CLICKS TO PASS THROUGH */
    }

    /* PREVENT CATEGORY HEADERS FROM OVERLAPPING BUTTONS */
    .category-header {
        margin-top: 45px !important;
        margin-bottom: 25px !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .header-vbg {
        width: 100% !important;
        height: auto !important; /* ABRAÇA O DESENHO DO TIGRE */
        max-height: 100% !important;
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        transform: translateY(-50%) scale(1.1) !important; /* CENTRALIZA E AMPLIA O FRAME REAL */
        object-fit: contain !important;
        transform-origin: center center !important;
        z-index: 1 !important;
        background: transparent !important;
        mask-image: linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%) !important;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%) !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* ALBUM GRID & DETAIL POSITIONING - MOBILE ONLY */
    #view-albums,
    #view-detail {
        position: relative !important;
        background: #000 !important;
        margin-top: 20px !important;
        z-index: 50 !important;
        padding-bottom: 80px !important;
    }

    #view-albums {
        padding-top: 20px !important;
    }

    #view-detail {
        padding-top: 60px !important;
    }

    #site-header {
        padding: 0 !important;
        margin-bottom: -110px !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
        z-index: 100 !important;
        /* BROUGHT TO FRONT TO FIX CLICK BLOCKING */
    }

    /* BUTTONS INTERACTIVITY & ANIMATIONS */
    .whatsapp-btn,
    .discord-btn,
    .yupoo-btn {
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 800 !important;
        padding: 0 12px !important;
        border-radius: 40px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
        font-size: 8px !important;
        border: none !important;
        transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        pointer-events: auto !important;
        /* CAPTURES CLICKS */
        position: relative !important;
        z-index: 5000 !important;
        /* TOP PRIORITY */
    }

    /* CLICK/TOUCH FEEDBACK */
    .whatsapp-btn:active,
    .discord-btn:active,
    .yupoo-btn:active {
        transform: scale(0.9) !important;
        filter: brightness(1.3) !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8) !important;
    }

    .whatsapp-btn {
        background: linear-gradient(135deg, #25D366, #128C7E) !important;
        color: white !important;
        position: fixed !important;
        top: 60px !important;
        /* FULLY ALIGNED WITH SEARCH BAR */
        right: 10px !important;
        z-index: 9999 !important;
        height: 36px !important;
        width: auto !important;
        padding: 0 12px !important;
        margin: 0 !important;
    }

    .yupoo-btn {
        background: #ffffff !important;
        color: #00933c !important;
        order: 2;
    }

    .discord-btn {
        background: #5865F2 !important;
        width: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        order: 1;
    }

    .discord-btn span {
        display: none !important;
    }

    .discord-btn img {
        margin: 0 !important;

        .search-input {
            font-size: 14px !important;
            padding-left: 36px !important;
            width: 100% !important;
            /* FULL WIDTH ON MOBILE */
        }

        .search-icon {
            left: 12px !important;
            width: 18px !important;
            height: 18px !important;
        }

        /* YUPOO BUTTON - ABSOLUTE BOTTOM RIGHT (BELOW SEARCH) */
        .yupoo-btn {
            position: absolute !important;
            top: 200px !important;
            /* Forced down PAST the search bar */
            right: 12px !important;
            height: 30px !important;
            min-width: 95px !important;
            font-size: 7px !important;
            padding: 0 10px !important;
            border-radius: 40px !important;
            background: #ffffff !important;
            color: #00933c !important;
            border: 1px solid rgba(0, 147, 60, 0.3) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-weight: 800 !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
            z-index: 200 !important;
        }

        .yupoo-btn img {
            width: 13px !important;
            height: 13px !important;
            margin-right: 4px !important;
        }
    }

    /* GLOBAL HELPERS */
    .copy-feedback,
    .detail-desc:empty {
        display: none !important;
    }

    #site-header.header-compact .header-vbg {
        transform: none;
    }