@font-face {
    font-family: 'Yeezy';
    src: url('/assets/fonts/yeezy-bold.woff2') format('woff2'),
         url('/assets/fonts/yeezy-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Tabler Icons - font-display override to prevent FOIT */
@font-face {
    font-family: 'tabler-icons';
    src: url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.31.0/dist/fonts/tabler-icons.woff2') format('woff2');
    font-display: swap;
}

:root {
    --red: #ff0000;
    --red-glow: rgba(255, 0, 0, 0.5);
    --black: #000000;
    --black-soft: #0a0a0a;
    --black-card: #111111;
    --glass: rgba(0, 0, 0, 0.85);
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);

    /* Layout alignment - keeps hero, filters, and grid aligned */
    --content-max-width: 1400px;
    --content-padding: 2.5rem;
    --content-align: max(var(--content-padding), calc((100vw - var(--content-max-width)) / 2));
}

/* Preloading state - prevent layout shifts */
body.preloading {
    overflow: hidden;
}

body.preloading * {
    transition: none !important;
    animation: none !important;
}

/* Scrollbar - Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black-soft);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 8px;
    border: 2px solid var(--black-soft);
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
    box-shadow: 0 0 8px var(--red-glow);
}

::-webkit-scrollbar-corner {
    background: var(--black-soft);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Scrollbar - Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--black-soft);
}

body {
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-weight: bold;
    background: var(--black);
    color: var(--text);
    min-height: 100vh;
    scrollbar-gutter: stable;
}

body.no-scroll {
    overflow: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: color-mix(in srgb, #000 40%, transparent);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 0 0 0.5px color-mix(in srgb, #fff 3%, transparent),
        inset 0 -1px 0px -0.5px color-mix(in srgb, #fff 5%, transparent),
        0px 2px 8px 0px color-mix(in srgb, #000 30%, transparent),
        0px 4px 16px 0px color-mix(in srgb, #000 15%, transparent);
    transition: opacity 0.3s ease;
}

header.pmv-playing {
    opacity: 0;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-full {
    height: 20px;
    width: auto;
}

.logo-mobile {
    display: none;
    height: 20px;
    width: 20px;
    object-fit: contain;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
}

.header-left:not(:has(.hamburger-btn)) {
    padding-left: 1.25rem;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}


.header-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.header-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.header-link:hover {
    color: var(--text);
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 1;
}

.nav-icon.nav-search-icon {
    display: flex;
}

.nav-icons-center {
    display: flex;
    align-items: center;
    gap: 0;
}

.mobile-search-close {
    display: none;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-btn.silver {
    background: linear-gradient(145deg, #e8e8e8, #b8b8b8);
    color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-btn.silver:hover {
    background: linear-gradient(145deg, #f0f0f0, #c8c8c8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-btn.gold {
    background: linear-gradient(145deg, #ffd700, #b8860b);
    color: #1a1a1a;
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
}

.nav-btn.gold:hover {
    background: linear-gradient(145deg, #ffe033, #d4a000);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.6);
}

.nav-btn.red {
    background: linear-gradient(145deg, #dc2626, #991b1b);
    color: #fff;
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 2px 8px rgba(153, 27, 27, 0.4);
}

.nav-btn.red:hover {
    background: linear-gradient(145deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.6);
}

.vault-plus-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-left: 0.2rem;
    vertical-align: middle;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.25rem;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.header-cta-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.header-cta-subscribe {
    background: color-mix(in srgb, #fff 8%, color-mix(in srgb, #000 60%, transparent));
    border: 1px solid color-mix(in srgb, #fff 18%, rgba(255, 255, 255, 0.08));
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 10%, transparent);
}

.header-cta-subscribe:hover {
    background: color-mix(in srgb, #fff 14%, color-mix(in srgb, #000 50%, transparent));
    border-color: color-mix(in srgb, #fff 30%, rgba(255, 255, 255, 0.1));
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 12%, transparent),
        0px 2px 8px 0px rgba(255, 255, 255, 0.08);
}

.header-cta-buy {
    background: color-mix(in srgb, var(--red, #ff0000) 15%, color-mix(in srgb, #000 55%, transparent));
    border: 1px solid color-mix(in srgb, var(--red, #ff0000) 30%, rgba(255, 255, 255, 0.08));
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 10%, transparent);
}

.header-cta-buy:hover {
    background: color-mix(in srgb, var(--red, #ff0000) 25%, color-mix(in srgb, #000 40%, transparent));
    border-color: color-mix(in srgb, var(--red, #ff0000) 45%, rgba(255, 255, 255, 0.1));
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 12%, transparent),
        0px 2px 8px 0px color-mix(in srgb, var(--red, #ff0000) 15%, transparent);
}

.nav-icon .godcock-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
    opacity: 0.85;
    filter: brightness(2);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.nav-icon:hover .godcock-icon {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 0, 0, 0.4));
}

/* Bookmark — fill yellow, stay filled while hovered */
.bookmark-nav-icon:hover i {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transition: color 0.6s ease;
}

/* Chat — red/white rapid flash */
[data-nav="chat"]:hover i {
    animation: chatFlash 0.4s steps(1) infinite;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
}

@keyframes chatFlash {
    0%   { color: #ff3333; }
    25%  { color: #ffffff; }
    50%  { color: #ff0000; }
    75%  { color: #ffffff; }
}

/* Video Library — XXX flash on hover */
#nav-videolibrary {
    position: relative;
}

#nav-videolibrary:hover i {
    opacity: 0;
}

#nav-videolibrary::after {
    content: 'XXX';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff3333;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

#nav-videolibrary:hover::after {
    opacity: 1;
    animation: xxxFlash 0.6s steps(1) infinite;
}

@keyframes xxxFlash {
    0%   { opacity: 1; color: #ff3333; }
    25%  { opacity: 0.3; }
    50%  { opacity: 1; color: #ffffff; }
    75%  { opacity: 0.4; }
}

/* Playlist (vinyl) — spin on hover, unwind on unhover */
#nav-playlist i {
    transition: transform 0.8s ease-out;
}

#nav-playlist:hover i {
    transform: rotate(720deg);
    transition: transform 1.5s ease-out;
}

#nav-diamond {
    position: relative;
}

#nav-diamond:hover i {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

#nav-diamond::before,
#nav-diamond::after {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    color: #ffd700;
    font-style: normal;
    font-weight: bold;
    line-height: 1;
    z-index: 1;
    top: 50%;
    left: 50%;
}

#nav-diamond::before {
    content: '+';
    font-size: 7px;
}

#nav-diamond::after {
    content: '*';
    font-size: 8px;
    text-shadow: 0 0 0 transparent;
}

#nav-diamond:hover::before {
    animation: diamondOrbit1 2s ease-in-out forwards;
}

#nav-diamond:hover::after {
    animation: diamondOrbit2 2s ease-in-out forwards, diamondOrbit3Shadow 2s ease-in-out forwards;
}

@keyframes diamondOrbit1 {
    0%   { opacity: 0; transform: translate(-50%, -50%) translate(0, -12px) scale(0); }
    10%  { opacity: 1; transform: translate(-50%, -50%) translate(0, -12px) scale(1); }
    25%  { opacity: 1; transform: translate(-50%, -50%) translate(10px, -6px) scale(1.2); }
    50%  { opacity: 0.8; transform: translate(-50%, -50%) translate(10px, 6px) scale(0.9); }
    75%  { opacity: 1; transform: translate(-50%, -50%) translate(-10px, 6px) scale(1.1); }
    90%  { opacity: 0.6; transform: translate(-50%, -50%) translate(-10px, -6px) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) translate(0, -12px) scale(0); }
}

@keyframes diamondOrbit2 {
    0%   { opacity: 0; transform: translate(-50%, -50%) translate(10px, 8px) scale(0); }
    15%  { opacity: 1; transform: translate(-50%, -50%) translate(10px, 8px) scale(1); }
    35%  { opacity: 1; transform: translate(-50%, -50%) translate(-8px, 10px) scale(1.1); }
    55%  { opacity: 0.7; transform: translate(-50%, -50%) translate(-12px, -4px) scale(0.9); }
    75%  { opacity: 1; transform: translate(-50%, -50%) translate(4px, -10px) scale(1.2); }
    90%  { opacity: 0.5; transform: translate(-50%, -50%) translate(10px, 4px) scale(0.7); }
    100% { opacity: 0; transform: translate(-50%, -50%) translate(10px, 8px) scale(0); }
}

@keyframes diamondOrbit3Shadow {
    0%   { text-shadow: -14px -4px 0 transparent; }
    12%  { text-shadow: -14px -4px 0 #ffd700; }
    30%  { text-shadow: -4px -14px 0 #ffd700; }
    50%  { text-shadow: 10px -10px 0 rgba(255, 215, 0, 0.8); }
    70%  { text-shadow: 12px 6px 0 #ffd700; }
    85%  { text-shadow: -6px 12px 0 rgba(255, 215, 0, 0.6); }
    100% { text-shadow: -14px -4px 0 transparent; }
}

.nav-divider {
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    font-weight: 200;
    line-height: 1;
    margin: 0 1px;
    user-select: none;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease, filter 0.2s ease;
}

.nav-icon:hover {
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

.nav-icon i {
    font-size: 23px;
    line-height: 1;
}

.nav-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Admin menulet — yellow */
.nav-icon.admin-menulet i {
    color: #ffd700;
}
.nav-icon.admin-menulet:hover i {
    color: #ffe44d;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.nav-icon.holo svg {
    width: 18px;
    height: 18px;
    fill: url(#holoGradient);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    transition: filter 0.2s ease;
}

.nav-icon.holo:hover svg {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(147, 51, 234, 0.4));
}

/* Login icon — glass button on desktop, icon-only on mobile */
.nav-icon.login-icon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    height: auto;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}
.nav-icon.login-icon:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.nav-icon.login-icon i {
    font-size: 1rem;
}

/* Sign Up pill (logged-out header) */
.nav-signup-link {
    padding: 0.45rem 1rem;
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.nav-signup-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Account icon (default / not logged in) */
.account-icon {
    width: 30px !important;
    height: 30px !important;
}

.account-icon .ti-user-circle {
    font-size: 26px;
    color: #fff;
}

/* User avatar in header (logged in state) */
.user-avatar-header {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
    box-shadow: 0 0 12px var(--red-glow), 0 0 20px rgba(255, 0, 60, 0.3);
    transition: all 0.3s ease;
}

.account-icon.logged-in {
    position: relative;
    width: 30px !important;
    height: 30px !important;
    overflow: visible;
}

.account-icon.logged-in::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 6px #00ff88;
    z-index: 1;
}

.account-icon.logged-in:hover .user-avatar-header {
    box-shadow: 0 0 16px var(--red-glow), 0 0 30px rgba(255, 0, 60, 0.5);
    transform: scale(1.05);
}


/* Account Menu Dropdown */
.account-wrapper {
    position: relative;
}

.account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    white-space: nowrap;
    background-color: color-mix(in srgb, #000 70%, transparent);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
        inset 0 -2px 0px -1px color-mix(in srgb, #fff 8%, transparent),
        0px 4px 16px 0px color-mix(in srgb, #000 50%, transparent),
        0px 8px 32px 0px color-mix(in srgb, #000 30%, transparent);
}

.account-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.account-menu__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.account-menu__item .ti {
    font-size: 14px;
    opacity: 0.6;
}

.account-menu__item--logout {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2px;
    padding: 0;
}

.account-menu__item--logout button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.account-menu__item--logout button:hover {
    background: rgba(255, 59, 48, 0.1);
    color: var(--red);
}

/* Profile dropdown */
.profile-dropdown {
    position: relative;
    display: none;
}

.profile-dropdown-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease;
}

.profile-dropdown-btn:hover {
    border-color: var(--red);
}

.profile-dropdown-btn .profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(20px);
    z-index: 1000;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-family: 'Yeezy', sans-serif;
    font-size: 0.75rem;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: var(--content-max-width);
    margin: 1rem auto 0.75rem;
    position: relative;
    z-index: 30;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-family: 'Yeezy', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--red, #ff0000) 20%, rgba(255, 255, 255, 0.08));
    background-color: color-mix(in srgb, var(--red, #ff0000) 8%, color-mix(in srgb, #000 60%, transparent));
    color: color-mix(in srgb, var(--red, #ff0000) 75%, #fff);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 10%, transparent);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn i {
    font-size: 0.95rem;
    line-height: 1;
}

.filter-btn:hover {
    background-color: color-mix(in srgb, var(--red, #ff0000) 15%, color-mix(in srgb, #000 50%, transparent));
    border-color: color-mix(in srgb, var(--red, #ff0000) 35%, rgba(255, 255, 255, 0.1));
    color: color-mix(in srgb, var(--red, #ff0000) 90%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 12%, transparent),
        0px 2px 8px 0px color-mix(in srgb, var(--red, #ff0000) 15%, transparent);
}

.filter-btn.active {
    background-color: color-mix(in srgb, var(--red, #ff0000) 25%, color-mix(in srgb, #000 40%, transparent));
    border-color: color-mix(in srgb, var(--red, #ff0000) 50%, rgba(255, 255, 255, 0.15));
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 10%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 15%, transparent),
        0px 2px 12px 0px color-mix(in srgb, var(--red, #ff0000) 25%, transparent);
}

.filter-btn.active:hover {
    background-color: color-mix(in srgb, var(--red, #ff0000) 30%, color-mix(in srgb, #000 35%, transparent));
    border-color: color-mix(in srgb, var(--red, #ff0000) 60%, rgba(255, 255, 255, 0.15));
}

.filter-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.35rem;
    flex-shrink: 0;
}

/* =============================================
   BOOKMARKS & PROFILE SPA PAGES (iframe)
   ============================================= */
#bookmarks-page, #profile-page, #notifications-page, #godcock-page, #playlist-page, #pmvs-page, #support-page, #admin-page, #search-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 60px;
    z-index: 50;
    background: var(--black);
}

#godcock-page,
#pmvs-page,
#profile-page {
    padding-top: 0;
}

#bookmarks-page.hidden, #profile-page.hidden, #notifications-page.hidden, #godcock-page.hidden, #playlist-page.hidden, #pmvs-page.hidden, #loyalty-page.hidden, #support-page.hidden, #admin-page.hidden, #search-page.hidden {
    display: none;
}

.spa-iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.spa-iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 850px) {
    #bookmarks-page, #profile-page, #notifications-page, #godcock-page, #playlist-page, #pmvs-page, #support-page, #admin-page, #search-page {
        padding-top: 50px;
    }
    #godcock-page,
    #pmvs-page,
    #profile-page {
        padding-top: 0;
    }
}

/* Tag Filter Box — glass card */
.filter-tags-box {
    max-width: var(--content-max-width);
    margin: 0 auto;
    background-color: color-mix(in srgb, #000 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 2px 3px 0px -2px color-mix(in srgb, #fff 15%, transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, #fff 10%, transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb, #000 30%, transparent),
        0px 4px 12px 0px color-mix(in srgb, #000 40%, transparent),
        0px 8px 24px 0px color-mix(in srgb, #000 30%, transparent);
    position: relative;
    z-index: 30;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1rem;
    border-color: transparent;
    margin-bottom: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, margin-bottom 0.35s ease, border-color 0.25s ease;
}

.filter-tags-box.open {
    max-height: 400px;
    opacity: 1;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-color: rgba(255, 255, 255, 0.1);
}

.filter-tags-header {
    font-family: 'Yeezy', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.5rem;
}

.filter-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem;
}

.filter-tag-btn {
    --tag-color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-family: 'Yeezy', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    background-color: color-mix(in srgb, var(--tag-color) 8%, color-mix(in srgb, #000 60%, transparent));
    border: 1px solid color-mix(in srgb, var(--tag-color) 20%, rgba(255, 255, 255, 0.08));
    color: color-mix(in srgb, var(--tag-color) 75%, #fff);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 10%, transparent);
    transition: all 0.2s ease;
}

.filter-tag-btn i {
    font-size: 0.9rem;
    line-height: 1;
    color: var(--tag-color);
    opacity: 0.85;
}

.filter-tag-btn:hover {
    background-color: color-mix(in srgb, var(--tag-color) 15%, color-mix(in srgb, #000 50%, transparent));
    border-color: color-mix(in srgb, var(--tag-color) 35%, rgba(255, 255, 255, 0.1));
    color: color-mix(in srgb, var(--tag-color) 90%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 12%, transparent),
        0px 2px 8px 0px color-mix(in srgb, var(--tag-color) 15%, transparent);
}

.filter-tag-btn.active {
    background-color: color-mix(in srgb, var(--tag-color) 22%, color-mix(in srgb, #000 45%, transparent));
    border-color: color-mix(in srgb, var(--tag-color) 60%, rgba(255, 255, 255, 0.1));
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 10%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 15%, transparent),
        0px 2px 10px 0px color-mix(in srgb, var(--tag-color) 30%, transparent);
}

.filter-tag-btn.active i {
    opacity: 1;
}

@media (max-width: 768px) {
    .filter-bar {
        gap: 0.4rem;
        justify-content: flex-start;
    }
    .filter-divider {
        display: none;
    }
    .filter-tags-box {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Pinned Section */
.pinned-section {
    max-width: var(--content-max-width);
    margin: 0 auto 0;
    position: relative;
    z-index: 1;
}

.pinned-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pinned-header::before,
.pinned-header::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(to var(--dir), color-mix(in srgb, var(--red) 40%, transparent), transparent);
}

.pinned-header::before {
    --dir: left;
}

.pinned-header::after {
    --dir: right;
}

.pinned-icon {
    width: 16px;
    height: 16px;
    stroke: var(--red);
}

.section-separator {
    max-width: 400px;
    height: 1px;
    margin: 2rem auto;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* No-match message */
.no-match-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Grid
   IMPORTANT: main padding-top must be >= header height (~5rem) to clear fixed header.
   To reduce gap after hero, adjust .hero-carousel margin-bottom instead. */
main {
    padding: 5rem var(--content-padding) 2rem;
    position: relative;
    z-index: 1;
    /* Allow clicks to pass through main's padding to hero carousel beneath */
    pointer-events: none;
}

main > * {
    pointer-events: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    contain: layout style;
}


@media (max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 850px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: unset !important;
    }

    header {
        padding: 0.6rem 0.75rem 0.6rem 2.5rem;
        gap: 0.35rem;
        justify-content: center;
        min-height: 44px;
    }

    .logo-full { display: none; }
    .logo-mobile { display: block; height: 16px; width: 16px; }

    .hamburger-btn {
        display: flex !important;
        position: absolute !important;
        left: 0.65rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .header-left,
    .header-center,
    nav,
    .nav-icons,
    .nav-icons-center {
        display: contents;
    }

    .header-cta {
        display: none !important;
    }
    body.free-user .header-cta {
        display: flex !important;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        flex: 1 1 auto;
        order: 2;
    }
    body.free-user .header-left {
        display: flex !important;
        align-items: center;
        gap: 0.35rem;
        flex: 0 0 auto;
        order: 1;
    }
    body.free-user nav {
        flex: 0 0 auto;
        display: flex !important;
        order: 3;
        justify-content: flex-end;
    }
    body.free-user .account-wrapper {
        flex: 0 0 auto;
    }
    body.free-user .nav-icons {
        display: flex !important;
    }
    body.free-user .header-center {
        display: flex !important;
        flex: 1 1 auto;
        justify-content: center;
        order: 2;
    }
    body.free-user .hamburger-btn {
        position: static !important;
        transform: none;
    }
    body.free-user header {
        padding-left: 0.75rem;
    }
    body.free-user .header-cta-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        gap: 0.3rem;
    }
    body.free-user .header-cta-icon {
        width: 14px;
        height: 14px;
    }

    /* Logged-out mobile: hamburger (left) | full logo (center) | account icon (right) */
    body.logged-out .header-left {
        display: contents;
    }
    body.logged-out .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    body.logged-out .logo-full {
        display: block !important;
        height: 20px;
    }
    body.logged-out .logo-mobile {
        display: none !important;
    }
    body.logged-out .header-center {
        display: none !important;
    }
    body.logged-out nav {
        display: flex !important;
        flex: 0 0 auto;
        margin-left: auto;
        align-items: center;
    }
    body.logged-out .nav-icons > *:not(#header-login-icon) {
        display: none !important;
    }
    body.logged-out #header-login-icon {
        display: flex !important;
    }
    body.logged-out .nav-signup-link {
        display: none !important;
    }
    .login-label {
        display: none !important;
    }
    body.logged-out #header-login-icon {
        padding: 0;
        background: none;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border-radius: 0;
    }
    .account-icon.logged-in {
        flex: 0 0 auto !important;
        width: 24px !important;
        height: 24px !important;
        position: relative;
    }

    .user-avatar-header {
        width: 24px;
        height: 24px;
    }

    .nav-icon,
    .chest-wrapper,
    .account-wrapper,
    .logo {
        flex: 1 1 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .nav-icon {
        width: auto;
        height: auto;
    }

    .nav-icon i {
        font-size: 19px;
    }

    .nav-divider {
        display: none !important;
    }

    .nav-icon .godcock-icon {
        width: 16px;
        height: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    main {
        padding-top: 5rem;
    }

    .filter-bar {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.35rem;
    }


    .filter-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.65rem;
    }

    .filter-btn i {
        font-size: 0.85rem;
    }

    .filter-toggle {
        padding: 0.35rem 0.6rem;
        font-size: 0.65rem;
        gap: 0.3rem;
    }

    .filter-toggle .toggle-icon {
        width: 12px;
        height: 12px;
    }
}

/* Card */
.card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: visible;
    background: #111;
}

/* VIP Glow Effect - Subtle box shadow */
.card.vip-glow {
    --vip-glow-color: #d4af37;
    box-shadow: 0 0 20px color-mix(in srgb, var(--vip-glow-color) 40%, transparent);
}

.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

body.logged-out .filter-bar {
    display: none !important;
}

body.logged-out .card {
    overflow: hidden;
}

body.logged-out .card-cover {
    filter: blur(12px);
    transform: scale(1.15);
}

/* Lazy loading skeleton and fade-in */
.card-cover.lazy {
    background: linear-gradient(
        90deg,
        var(--black-card) 0%,
        rgba(255,255,255,0.05) 50%,
        var(--black-card) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.card-cover.lazy.loaded {
    animation: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* PMV card lazy loading shimmer */
.pmv-card-media img.lazy {
    background: linear-gradient(90deg, var(--black-card) 0%, rgba(255,255,255,0.05) 50%, var(--black-card) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 120px;
}

.pmv-card-media img.lazy.loaded {
    animation: none;
    min-height: auto;
}

.pmv-series-box-art.lazy {
    background: linear-gradient(90deg, var(--black-card) 0%, rgba(255,255,255,0.05) 50%, var(--black-card) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.pmv-series-box-art.lazy.loaded {
    animation: none;
}

/* Skeleton Placeholders — visible during load, replaced by real content */
.skeleton-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.skeleton-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.skeleton-nav {
    display: flex;
    gap: 0.75rem;
}

.skeleton-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.skeleton-card {
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: opacity 0.15s ease;
}

.skeleton-card.fade-out {
    opacity: 0;
}

.skeleton-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Card Corner Actions (top-left) */
.card-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover .card-actions {
    opacity: 1;
}

.card-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    text-decoration: none;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.card-action-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Tag Pill */
.card-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.card-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--tag-color, #ff0033) 0%, color-mix(in srgb, var(--tag-color, #ff0033) 70%, #000) 100%);
    opacity: 0.85;
    z-index: -1;
}

/* Card Social Actions (top-right, below tag) */
.card-social {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover .card-social { opacity: 1; }

/* Always show if user has liked/bookmarked */
.card-social:has(.active) { opacity: 1; }

.card-social-btn {
    height: 26px;
    border-radius: 20px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.card-social-btn i { font-size: 0.75rem; line-height: 1; display: block; }

.card-social-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
    border-color: rgba(255,255,255,0.2);
}

.card-social-btn.active.card-like-btn {
    color: #e8384f;
    border-color: rgba(232,56,79,0.3);
    background: linear-gradient(135deg, rgba(232,56,79,0.2) 0%, rgba(232,56,79,0.08) 100%);
}

.card-social-btn.active.card-bookmark-btn {
    color: #f59e0b;
    border-color: rgba(245,158,11,0.3);
    background: linear-gradient(135deg, rgba(245,158,11,0.2) 0%, rgba(245,158,11,0.08) 100%);
}

.card-like-count {
    font-size: 0.6rem;
    font-weight: 600;
}

.card-like-count:empty {
    display: none;
}

@keyframes cardActionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.card-social-btn.pop {
    animation: cardActionPop 0.3s ease;
}

/* Lock icon for subscriber-only content (preview only) */
.card-lock {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.card-lock img {
    display: block;
    height: 32px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Preview badge for free content (non-subscriber preview) */
.card-preview-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    padding: 3px 8px;
    border: 1.5px solid #ff0033;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #ff0033;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* Vault+ Pill for clips */
.vault-pill {
    position: absolute;
    top: -8px;
    left: -8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    color: #ffd700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 5;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.vault-pill:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffe44d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 20px rgba(255, 215, 0, 0.15);
}

.vault-pill img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Resume Prompt */
/* Resume Prompt — fixed glass card, slides up from bottom */
.resume-prompt {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 4rem));
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    max-width: 520px;
    width: max-content;
    background: color-mix(in srgb, var(--red) 6%, color-mix(in srgb, #000 72%, transparent));
    border: 1px solid color-mix(in srgb, var(--red) 18%, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, #fff 4%, transparent),
        inset 0 1px 0 0 color-mix(in srgb, #fff 6%, transparent),
        0 4px 24px color-mix(in srgb, #000 45%, transparent),
        0 0 0 1px color-mix(in srgb, #000 20%, transparent);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s ease;
    pointer-events: none;
}

.resume-prompt.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.resume-art {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, #fff 10%, transparent);
    box-shadow: 0 2px 8px color-mix(in srgb, #000 40%, transparent);
}

.resume-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.resume-label {
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--red) 70%, #fff);
}

.resume-track {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resume-actions {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
}

.resume-btn {
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: 8px;
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resume-btn.resume-yes {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--red) 35%, transparent);
}

.resume-btn.resume-yes:hover {
    background: #ff2222;
    box-shadow: 0 2px 20px color-mix(in srgb, var(--red) 50%, transparent);
}

.resume-btn.resume-no {
    background: color-mix(in srgb, #fff 8%, transparent);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid color-mix(in srgb, #fff 8%, transparent);
}

.resume-btn.resume-no:hover {
    background: color-mix(in srgb, #fff 12%, transparent);
    color: rgba(255, 255, 255, 0.8);
    border-color: color-mix(in srgb, #fff 14%, transparent);
}

/* Mobile: full-width card, stacked layout */
@media (max-width: 600px) {
    .resume-prompt {
        bottom: 5rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        transform: translateX(0) translateY(calc(100% + 6rem));
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem 1.1rem;
    }

    .resume-prompt.visible {
        transform: translateX(0) translateY(0);
    }

    /* Top row: art + text side by side */
    .resume-prompt .resume-art {
        position: absolute;
        top: 1rem;
        left: 1.1rem;
        width: 34px;
        height: 34px;
    }

    .resume-content {
        padding-left: 2.75rem;
    }

    .resume-track {
        max-width: none;
    }

    /* Buttons: full width row below */
    .resume-actions {
        margin-left: 0;
        gap: 0.5rem;
    }

    .resume-btn {
        flex: 1;
        padding: 0.6rem 0.75rem;
        text-align: center;
    }
}

/* Push above player when both visible */
body.player-active .resume-prompt {
    bottom: 6rem;
}

@media (max-width: 600px) {
    body.player-active .resume-prompt {
        bottom: 9rem;
    }
}

/* Player Overlay — Two-State (collapsed mini-bar / expanded panel) */
.player {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background-color: color-mix(in srgb, #000 35%, transparent);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 0 0 0.5px color-mix(in srgb, #fff 2%, transparent),
        0px 2px 6px 0px color-mix(in srgb, #000 15%, transparent);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


/* Expanded card floats above grid neighbors */
.card:has(.player.expanded) {
    z-index: 10;
}

/* — Collapsed bar (always visible) — */
.player-collapsed {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.player-thumb {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.player-title {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: width 0.25s ease, opacity 0.25s ease;
}

/* Hide title in collapsed bar when expanded (shown in meta instead) */
.player.expanded .player-collapsed .player-title {
    width: 0;
    opacity: 0;
    flex: 0;
    overflow: hidden;
}

.play-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--red);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 15px var(--red-glow);
}

.play-btn svg {
    width: 12px;
    height: 12px;
    fill: white;
}

.play-btn .icon-play {
    margin-left: 2px;
}

.play-btn.locked {
    background: rgba(255, 255, 255, 0.10);
}

.play-btn .icon-lock {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Active content indicator — card whose content is loaded in bottom player */
.card.active-content .player {
    border-color: var(--red);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 20%, transparent),
        inset 2px 3px 0px -2px color-mix(in srgb, #fff 15%, transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, #fff 10%, transparent),
        0px 0px 20px 0px var(--red-glow),
        0px 4px 12px 0px color-mix(in srgb, #000 40%, transparent);
}

/* — Expanded panel (hidden by default) — */
.player-expanded {
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.player.expanded .player-expanded {
    max-height: 280px;
    padding: 6px 12px 12px;
}

/* — Meta row (title + actions) — */
.player-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 2px;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-title-full {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.player-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.info-btn,
.view-btn,
.copy-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.info-btn:hover,
.view-btn:hover,
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.info-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.view-btn svg,
.copy-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

.view-btn:hover svg,
.copy-btn:hover svg {
    fill: var(--text);
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9000;
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    color: #fff;
}

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

.copy-toast svg {
    width: 18px;
    height: 18px;
    fill: #4ade80;
}

@media (max-width: 600px) {
    .copy-toast {
        bottom: 5rem;
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(20px);
    }
    .copy-toast.visible {
        transform: translateX(0) translateY(0);
    }
}

/* Series title label above tracklist (albums/EPs only) */
.card-series-title {
    padding: 10px 14px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--red), var(--red), #ff6666, var(--red), var(--red));
    background-size: 300% 100%;
    animation: redShine 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes redShine {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-series-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 3px;
}

/* Card Tracklist (always visible on card) */
.card-tracklist {
    max-height: 140px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px 8px;
}

.card-tracklist::-webkit-scrollbar {
    width: 3px;
}

.card-tracklist::-webkit-scrollbar-track {
    background: transparent;
}

.card-tracklist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.card-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.card-track:hover {
    background: rgba(255, 255, 255, 0.06);
}

.card-track.active {
    background: rgba(185, 28, 60, 0.15);
}

.card-track-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    width: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.card-track.active .card-track-num {
    color: var(--red);
}

.card-track-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.75);
}

.card-track:hover .card-track-name {
    color: rgba(255, 255, 255, 0.9);
}

.card-track.active .card-track-name {
    color: #fff;
}

.card-track-dur {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Tracklist */
.tracklist {
    max-height: 120px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    margin-top: 6px;
}

.tracklist::-webkit-scrollbar {
    width: 4px;
}

.tracklist::-webkit-scrollbar-track {
    background: transparent;
}

.tracklist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* LEGACY — .track classes used by card-level tracklists, NOT the player drawer */
.track {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    transition: background 0.15s ease;
}

.track:hover {
    background: rgba(255, 255, 255, 0.05);
}

.track.active {
    background: rgba(185, 28, 60, 0.15);
}

.track-num {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 16px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.track.active .track-num {
    color: var(--red);
}

.track-name {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-dur {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background-color: color-mix(in srgb, #000 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 2px 3px 0px -2px color-mix(in srgb, #fff 15%, transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, #fff 10%, transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb, #000 30%, transparent),
        0px 4px 12px 0px color-mix(in srgb, #000 40%, transparent),
        0px 8px 24px 0px color-mix(in srgb, #000 30%, transparent);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal-header {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-cover {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}

.modal-logo {
    display: block;
    max-width: 80%;
    max-height: 100px;
    object-fit: contain;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.modal-info {
    flex: 1;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.modal-series {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-close svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.modal-body {
    padding: 1.25rem;
}

.modal-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Rich text styles — shared between modal + slug page descriptions */
.modal-desc p,
#slug-page .file-description p {
    margin: 0 0 1rem 0;
}
.modal-desc p:last-child,
#slug-page .file-description p:last-child {
    margin-bottom: 0;
}
.modal-desc strong, .modal-desc b,
#slug-page .file-description strong, #slug-page .file-description b {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}
.modal-desc em, .modal-desc i,
#slug-page .file-description em, #slug-page .file-description i {
    font-style: italic;
    color: rgba(255,255,255,0.7);
}
.modal-desc blockquote,
#slug-page .file-description blockquote {
    border-left: 3px solid var(--red, #ef4444);
    margin: 1rem 0;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.04);
    font-style: italic;
    color: rgba(255,255,255,0.65);
    border-radius: 0 6px 6px 0;
}
.modal-desc blockquote p:last-child,
#slug-page .file-description blockquote p:last-child {
    margin-bottom: 0;
}
.modal-desc a,
#slug-page .file-description a {
    color: var(--red, #ef4444);
    text-decoration: none;
    transition: opacity 0.15s;
}
.modal-desc a:hover,
#slug-page .file-description a:hover {
    text-decoration: underline;
    opacity: 0.85;
}
.modal-desc ul, .modal-desc ol,
#slug-page .file-description ul, #slug-page .file-description ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.modal-desc ul { list-style: disc; }
.modal-desc ol { list-style: decimal; }
.modal-desc li,
#slug-page .file-description li {
    margin-bottom: 0.35rem;
}
.modal-desc code,
#slug-page .file-description code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8em;
    background: rgba(255,255,255,0.08);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}
.modal-desc pre,
#slug-page .file-description pre {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}
.modal-desc pre code,
#slug-page .file-description pre code {
    background: none;
    padding: 0;
}
.modal-desc h1, .modal-desc h2, .modal-desc h3, .modal-desc h4,
#slug-page .file-description h1, #slug-page .file-description h2,
#slug-page .file-description h3, #slug-page .file-description h4 {
    color: rgba(255,255,255,0.9);
    margin: 1.25rem 0 0.5rem 0;
    line-height: 1.3;
}
.modal-desc h1, #slug-page .file-description h1 { font-size: 1.3rem; }
.modal-desc h2, #slug-page .file-description h2 { font-size: 1.15rem; }
.modal-desc h3, #slug-page .file-description h3 { font-size: 1rem; }
.modal-desc h4, #slug-page .file-description h4 { font-size: 0.9rem; }
.modal-desc h1:first-child, .modal-desc h2:first-child,
.modal-desc h3:first-child, .modal-desc h4:first-child,
#slug-page .file-description h1:first-child, #slug-page .file-description h2:first-child,
#slug-page .file-description h3:first-child, #slug-page .file-description h4:first-child {
    margin-top: 0;
}
.modal-desc hr,
#slug-page .file-description hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 1rem 0;
}

/* About Page */
.about-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 2.5rem;
}

.about-hero {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-logo {
    display: block;
    max-width: 420px;
    width: 100%;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 24px rgba(185, 28, 60, 0.3));
}

.about-tagline {
    font-size: 1rem;
    color: var(--red);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding-left: 1.25rem;
}

.about-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--red);
    border-radius: 2px;
}

.about-section p {
    font-size: 1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
}

.about-section strong {
    color: #fff;
    font-weight: 600;
}

.about-section em {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.about-section .highlight {
    color: var(--red);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(185, 28, 60, 0.4);
    text-underline-offset: 3px;
}

.about-section .stars {
    color: #ffd700;
    font-size: 1.3em;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.about-reviews {
    margin: 3rem 0;
    min-height: 200px;
    position: relative;
}

.about-reviews .senja-embed {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-reviews.loaded .senja-embed {
    opacity: 1;
}

.about-reviews.loaded .reviews-loading {
    display: none;
}

.reviews-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.about-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    margin: 3rem 0;
}

.about-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 60px rgba(185, 28, 60, 0.1);
}

.about-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 3rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
}

.feature-card:hover {
    background: rgba(185, 28, 60, 0.08);
    border-color: rgba(185, 28, 60, 0.25);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-framework {
    background: linear-gradient(135deg, rgba(185, 28, 60, 0.15) 0%, rgba(185, 28, 60, 0.03) 100%);
    border: 1px solid rgba(185, 28, 60, 0.3);
    border-radius: 14px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.about-framework::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), rgba(255, 0, 0, 0.3));
}

.about-framework h2 {
    padding-left: 0;
    text-align: center;
}

.about-framework h2::before {
    display: none;
}

.about-center {
    text-align: center;
    padding-top: 1.5rem;
}

.about-cta-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    background: var(--red);
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(185, 28, 60, 0.4);
}

.about-link:hover {
    background: #c91e42;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(185, 28, 60, 0.5);
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-logo {
        max-width: 300px;
    }
}

@media (max-width: 500px) {
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-logo {
        max-width: 250px;
    }
    
    .feature-card {
        padding: 1rem;
    }
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1.5rem 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
    transition: padding-bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Add padding when player is active so content isn't hidden */
body.player-active footer {
    padding-bottom: 8rem;
}

.footer-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 32px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-logo img:hover {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-links .x-link svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 1);
}

.footer-copy {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    letter-spacing: 0.02em;
}

.footer-copy a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copy a:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Age Gate */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 5s ease, visibility 5s ease;
}

.age-gate.verified {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.age-gate-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.age-gate-logo {
    height: 60px;
    width: auto;
    margin-bottom: 2rem;
}

.age-gate-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.age-gate-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.age-gate-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.age-select {
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    min-width: 80px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

.age-select:focus {
    outline: none;
    border-color: #fff;
}

.age-select option {
    background: #1a1a1a;
    color: #fff;
}

.age-submit {
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.85rem 3rem;
    background: #fff;
    color: var(--red);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.age-submit:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.age-submit:active {
    transform: translateY(0);
}

.hidden {
    display: none;
}

body.full-page-active #site-footer,
body.full-page-active .filter-bar,
body.full-page-active #now-playing,
body.full-page-active .hero-carousel {
    display: none !important;
}

/* Force-hide player drawer on godcock & video library (CSS fallback — JS inline styles are primary) */
body.hide-player .player-drawer {
    display: none !important;
}

/* (Conversion popup styles removed) */

/* Buffering Indicator */
#buffering-indicator {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#buffering-indicator.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.buffering-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: bufferSpin 0.8s linear infinite;
}

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

/* Volume Control */
.now-playing {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    max-width: 200px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.now-playing.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.now-playing-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.now-playing-bars span {
    width: 3px;
    background: var(--red);
    border-radius: 1px;
    animation: none;
}

.now-playing.playing .now-playing-bars span {
    animation: barPulse 0.8s ease-in-out infinite;
}

.now-playing-bars span:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.now-playing-bars span:nth-child(2) {
    height: 10px;
    animation-delay: 0.2s;
}

.now-playing-bars span:nth-child(3) {
    height: 4px;
    animation-delay: 0.4s;
}

@keyframes barPulse {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.now-playing.paused .now-playing-bars span {
    animation: none;
    opacity: 0.5;
}

.now-playing-info {
    overflow: hidden;
}

.now-playing-track {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.now-playing-series {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .now-playing {
        bottom: 5rem;
        right: 1rem;
        max-width: 160px;
        padding: 0.4rem 0.6rem;
    }
    
    .now-playing-track {
        font-size: 0.65rem;
    }
    
    .now-playing-series {
        font-size: 0.55rem;
    }
}

.volume-control {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
}

.volume-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.volume-btn:hover {
    background: rgba(50, 50, 50, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.volume-btn svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.9);
}

.volume-slider-wrap {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0 1rem;
    height: 48px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.volume-control.open .volume-slider-wrap {
    opacity: 1;
    width: 120px;
    padding: 0 1rem;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    .volume-control {
        bottom: 1rem;
        right: 1rem;
    }
    
    .volume-btn {
        width: 44px;
        height: 44px;
    }
    
    .volume-slider-wrap {
        height: 44px;
    }
    
    .volume-control.open .volume-slider-wrap {
        width: 100px;
    }
}

/* =============================================
   UNIFIED PLAYER DRAWER
   ============================================= */

/* Player Drawer Container */
/* ============================================================================
   PLAYER DRAWER — Redesigned
   States: full (expanded), collapsed (mini bar), peek (art + title only)
   ============================================================================ */
.player-drawer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 340px;
    z-index: 999;
    background: rgba(12, 12, 14, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
                0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.3s ease,
                max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
    contain: layout style;
}

body.player-active .player-drawer {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (pointer: coarse) {
    body.player-active .player-drawer.big {
        transform: translateX(0) translateY(0);
    }
}

/* --- State: collapsed (mini bar only) --- */
.player-drawer.collapsed .drawer-content {
    max-height: 0;
    opacity: 0;
    padding: 0 0.75rem;
    overflow: hidden;
}

/* Handle chevron rotates per state */
.player-drawer .handle-chevron {
    transition: transform 0.3s ease;
}
.player-drawer.collapsed .handle-chevron {
    transform: rotate(180deg);   /* points down → next tap goes to peek */
}
.player-drawer.peek .handle-chevron {
    transform: rotate(0deg);     /* points up → next tap opens full */
}

/* --- State: peek (art + title/artist only) --- */
.player-drawer.peek {
    max-width: 180px;
}
.player-drawer.peek .drawer-content {
    max-height: 0;
    opacity: 0;
    padding: 0 0.75rem;
    overflow: hidden;
}
.player-drawer.peek .drawer-playback {
    display: none;
}
.player-drawer.peek .mini-volume {
    display: none;
}
.player-drawer.peek .drawer-progress {
    display: none;
}
.player-drawer.peek .drawer-mini-row {
    padding: 0.35rem 0.6rem;
}

/* ---- Drawer Handle ---- */
.drawer-handle {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    width: 90px;
    height: 34px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.handle-chevron {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease, transform 0.3s ease;
}

.drawer-handle:hover .handle-chevron {
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Drawer Content (expanded section) ---- */
.drawer-content {
    padding: 0.75rem 0.75rem 0.5rem;
    max-height: 380px;
    opacity: 1;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    will-change: max-height, opacity;
}


/* Mini Volume Control (in mini player bar) */
.mini-volume {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    transition: opacity 0.25s ease;
}

.mini-volume-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.mini-volume-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

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

.mini-volume-slider-wrap {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.mini-volume.open .mini-volume-slider-wrap {
    width: 80px;
    opacity: 1;
}

.mini-volume-slider {
    width: 100%;
    height: 28px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    touch-action: none;
}

.mini-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.mini-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--wave-color, var(--red));
    border-radius: 50%;
    margin-top: -5px;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 6px color-mix(in srgb, var(--wave-color, var(--red)) 40%, transparent);
}

.mini-volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    border: none;
}

.mini-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--wave-color, var(--red));
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 6px color-mix(in srgb, var(--wave-color, var(--red)) 40%, transparent);
}

.mini-volume-slider::-moz-range-progress {
    background: var(--wave-color, var(--red));
    height: 4px;
    border-radius: 2px;
}

/* ---- Drawer Tracklist (expanded view) ---- */
.drawer-tracklist {
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.35rem;
}

.drawer-tracklist:empty { display: none; }

.drawer-tracklist::-webkit-scrollbar { width: 3px; }
.drawer-tracklist::-webkit-scrollbar-track { background: transparent; }
.drawer-tracklist::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }

.drawer-track {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.drawer-track:hover { background: rgba(255, 255, 255, 0.05); }
.drawer-track.active { background: rgba(185, 28, 60, 0.12); }

.drawer-track-num {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    width: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.drawer-track.active .drawer-track-num { color: var(--red); }

.drawer-track-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.75);
}

.drawer-track.active .drawer-track-name { color: #fff; }

.drawer-track-dur {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.drawer-track-indicator {
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    font-size: 10px;
    color: var(--red);
    opacity: 0;
}

.drawer-track.active .drawer-track-indicator { opacity: 1; }

/* ============================================================================
   MINI PLAYER SECTION (bottom bar — always visible when playing)
   ============================================================================ */
.drawer-mini {
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
}

.drawer-mini-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem 0.15rem;
}

.drawer-cover-wrap {
    flex-shrink: 0;
    border-radius: 6px;
}

.drawer-cover {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    background: #1a1a1a;
    flex-shrink: 0;
}

.drawer-info {
    flex: 1;
    min-width: 0;
}

.drawer-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--wave-color, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.drawer-artist {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.drawer-sample-badge {
    display: inline-block;
    padding: 1px 5px;
    border: 1.5px solid #ff0033;
    border-radius: 3px;
    background: rgba(255, 0, 51, 0.12);
    color: #ff0033;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1.3;
}

/* ---- Transport Row ----
   [ Visualiser ] [ Prev ] [ Play/Pause ] [ Next ] [ Loop ]
   -------------------------------------------- */
.drawer-playback {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.25s ease, max-height 0.3s ease;
    overflow: hidden;
}

.drawer-transport-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s ease, background 0.15s ease;
    position: relative;
    flex-shrink: 0;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.drawer-transport-btn:hover {
    color: #fff;
}

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

/* Touch targets — 44px invisible hit area on touch devices */
@media (pointer: coarse) {
    .drawer-transport-btn::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
    }
}

/* Main play/pause button — accent */
.drawer-transport-btn.main {
    width: 30px;
    height: 30px;
    background: var(--wave-color, var(--red));
    color: #fff;
}

.drawer-transport-btn.main:hover {
    background: var(--wave-color-light, #d91e42);
}

.drawer-transport-btn.main svg {
    width: 16px;
    height: 16px;
}

/* Loop button states */
#drawer-loop-btn i { font-size: 16px; }
#drawer-loop-btn.active {
    color: #22c55e;
    animation: loopGlow 2s ease-in-out infinite;
}
@keyframes loopGlow {
    0%, 100% { box-shadow: none; text-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
    50%      { text-shadow: 0 0 14px rgba(34, 197, 94, 0.6); }
}

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

.mini-spin-icon {
    display: none;
    font-size: 22px;
    color: #fff;
    animation: spin 2s linear infinite;
}

/* ============================================================================
   WAVEFORM PROGRESS BAR
   ============================================================================ */
.drawer-progress {
    width: 100%;
    padding: 0rem 0.5rem 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.25s ease, max-height 0.3s ease;
    overflow: hidden;
}

.drawer-waveform {
    flex: 1;
    height: 36px;
    position: relative;
    cursor: pointer;
    touch-action: none;
    overflow: visible;
}

.waveform-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    clip-path: none;
    background: rgba(255, 255, 255, 0.12);
}
.waveform-fill-mask {
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    overflow: hidden;
}
.waveform-fill {
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 100%;
    clip-path: none;
    background: linear-gradient(90deg, var(--wave-color, #ff0000), var(--wave-color-light, #ff4d6a));
}

.drawer-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: url('/assets/uigraphics/plus_chrome.png') center/contain no-repeat;
    z-index: 2;
    opacity: 1;
    cursor: grab;
    pointer-events: none;
}

.drawer-progress-thumb:active {
    cursor: grabbing;
}

.drawer-progress-time {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
    font-family: 'IBM Plex Mono', monospace;
    min-width: 2rem;
    flex-shrink: 0;
}

#drawer-time-elapsed { text-align: right; }
#drawer-time-total { text-align: left; }

/* ============================================================================
   MOBILE — Player Drawer
   ============================================================================ */
@media (max-width: 600px) {
    /* Float with rounded corners */
    .player-drawer {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        transform: translateY(100%);
        max-width: none;
        width: auto;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.player-active .player-drawer {
        transform: translateY(0);
    }

    .drawer-mini {
        position: relative;
    }

    /* ---- Standard + Expanded states: scaled-up ergonomics ---- */
    .player-drawer:not(.peek) .drawer-mini-row {
        padding: 0.55rem 0.7rem 0.3rem;
        gap: 0.5rem;
    }

    .player-drawer:not(.peek) .drawer-cover {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .player-drawer:not(.peek) .drawer-title {
        font-size: 14px;
        line-height: 1.35;
    }
    .player-drawer:not(.peek) .drawer-artist {
        font-size: 11px;
        line-height: 1.35;
    }

    .player-drawer:not(.peek) .drawer-playback {
        gap: 10px;
    }
    .player-drawer:not(.peek) .drawer-transport-btn {
        width: 32px;
        height: 32px;
    }
    .player-drawer:not(.peek) .drawer-transport-btn.main {
        width: 36px;
        height: 36px;
    }
    .player-drawer:not(.peek) .drawer-transport-btn svg {
        width: 18px;
        height: 18px;
    }
    .player-drawer:not(.peek) .drawer-transport-btn.main svg {
        width: 18px;
        height: 18px;
    }
    .player-drawer:not(.peek) #drawer-loop-btn i {
        font-size: 18px;
    }

    .player-drawer:not(.peek) .drawer-progress {
        padding: 0rem 0.6rem 0.45rem;
        gap: 0.5rem;
    }
    .player-drawer:not(.peek) .drawer-waveform {
        height: 38px;
    }
    .player-drawer:not(.peek) .drawer-progress-time {
        font-size: 11px;
    }
    .player-drawer:not(.peek) .drawer-progress-thumb {
        width: 24px;
        height: 24px;
    }

    .player-drawer:not(.peek) .mini-volume.open .mini-volume-slider-wrap {
        width: 60px;
    }

    /* Expanded tracklist */
    .player-drawer:not(.peek) .drawer-content {
        padding: 0.85rem 0.85rem 0.6rem;
    }
    .player-drawer:not(.peek) .drawer-tracklist {
        max-height: 130px;
    }
    .player-drawer:not(.peek) .drawer-track {
        padding: 5px 6px;
        gap: 8px;
    }
    .player-drawer:not(.peek) .drawer-track-name {
        font-size: 13px;
    }
    .player-drawer:not(.peek) .drawer-track-num {
        font-size: 12px;
    }
    .player-drawer:not(.peek) .drawer-track-dur {
        font-size: 12px;
    }

    /* ---- Peek/minimized state: unchanged from original mobile sizes ---- */
    .player-drawer.peek {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    body.player-active .player-drawer.peek {
        transform: translateX(-50%) translateY(0);
    }
    .player-drawer.peek .drawer-mini-row {
        padding: 0.35rem 0.6rem;
    }
    .player-drawer.peek .drawer-cover {
        width: 30px;
        height: 30px;
    }
    .player-drawer.peek .drawer-title {
        font-size: 11px;
    }
    .player-drawer.peek .drawer-artist {
        font-size: 9px;
    }

}

/* ============================================================================
   BIG PLAYER STATE — 6-ZONE LAYOUT
   ============================================================================ */

/* --- Visibility Control --- */
.player-drawer .drawer-big { display: none; }
.player-drawer.big .drawer-big { display: flex; flex-direction: column; }
.player-drawer.big .drawer-mini { display: none; }
.player-drawer.big .drawer-content { max-height: 0; opacity: 0; padding: 0; overflow: hidden; }
.player-drawer.big .handle-chevron { transform: rotate(180deg); }

/* --- Scaling Custom Properties (defaults = desktop/Tier 4) --- */
.player-drawer {
    --big-art-size: 300px;
    --big-font-title: 18px;
    --big-font-artist: 13px;
    --big-control-size: 40px;
    --big-control-main: 48px;
    --big-control-gap: 16px;
    --big-wave-height: 40px;
    --big-padding: 20px;
    --big-panel-width: 420px;
    /* Zone spacing — replaces uniform gap */
    --big-zone-gap: 16px;
    --big-zone-gap-hero: 20px;
}

/* --- Big Player Container (zones control their own spacing) --- */
.drawer-big {
    position: relative;
    flex-direction: column;
    align-items: center;
    padding: var(--big-padding);
    gap: 0;
    overflow: hidden;
    contain: layout style;
}

/* --- Zone 1: HEADER (dismiss bar) --- */
.big-dismiss-bar {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding-bottom: 4px;
    margin-bottom: 6px;
}
.big-dismiss-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.big-dismiss-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.big-context-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Zone 2: HERO (cover art) — gets the MOST space --- */
.big-art-wrap {
    width: var(--big-art-size);
    height: var(--big-art-size);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--big-zone-gap-hero);
}
.big-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1a1a1a;
}

/* --- Zone 3: META (title + artist) --- */
.big-info {
    text-align: center;
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    margin-bottom: var(--big-zone-gap);
}
.big-title {
    font-size: var(--big-font-title);
    font-weight: 600;
    color: var(--wave-color-light, #fff);
    font-family: 'Yeezy', 'Segoe UI', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.big-artist {
    font-size: var(--big-font-artist);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-top: 4px;
}
.big-sample-badge {
    display: inline-block;
    padding: 2px 6px;
    border: 1.5px solid #ff0033;
    border-radius: 3px;
    background: rgba(255, 0, 51, 0.12);
    color: #ff0033;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* --- Zone 4: SCRUBBER (its own section, not grouped with controls) --- */
.big-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    margin-bottom: var(--big-zone-gap);
}
.big-waveform {
    flex: 1;
    height: var(--big-wave-height);
    position: relative;
    cursor: pointer;
    touch-action: none;
    overflow: visible;
}
.big-time {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
    font-family: 'IBM Plex Mono', monospace;
    min-width: 2.5rem;
    flex-shrink: 0;
}
#big-time-elapsed { text-align: right; }
#big-time-total { text-align: left; }

.big-progress-thumb {
    width: 24px;
    height: 24px;
}
.big-progress-thumb.scrubbing {
    transform: translate(-50%, -50%) scale(1.4);
    transition: transform 0.1s ease;
}

/* --- Zone 5: CONTROLS (two rows — primary transport + secondary utilities) --- */
.big-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Primary row: prev / play / next */
.big-controls-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--big-control-gap);
}

/* Secondary row: loop + volume — smaller, dimmer */
.big-controls-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.big-controls-secondary .big-ctrl-btn {
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.4);
}
.big-controls-secondary .big-ctrl-btn:hover { color: rgba(255, 255, 255, 0.7); }
.big-controls-secondary .big-ctrl-btn svg { width: 18px; height: 18px; }
.big-controls-secondary #big-loop-btn i { font-size: 17px; }
.big-controls-secondary #big-loop-btn.active {
    color: #22c55e;
    animation: loopGlow 2s ease-in-out infinite;
}
/* Shuffle button active state */
.big-controls-secondary #big-shuffle-btn.active {
    color: #22c55e;
    animation: loopGlow 2s ease-in-out infinite;
}
.big-controls-secondary #big-shuffle-btn i { font-size: 17px; }
/* Shuffle indicator in dismiss bar */
.shuffle-indicator {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.shuffle-indicator i { font-size: 13px; }

.big-ctrl-btn {
    width: var(--big-control-size);
    height: var(--big-control-size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s ease, background 0.15s ease;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.big-ctrl-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.1); }
.big-ctrl-btn svg {
    width: 22px;
    height: 22px;
}
.big-ctrl-btn.main {
    width: var(--big-control-main);
    height: var(--big-control-main);
    background: linear-gradient(135deg, color-mix(in srgb, var(--wave-color, #ff0000) 80%, transparent), color-mix(in srgb, var(--wave-color, #ff0000) 90%, #000));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--wave-color, #ff0000) 40%, transparent),
                0 1px 0 rgba(255, 255, 255, 0.15) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.big-ctrl-btn.main:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--wave-color, #ff0000) 90%, transparent), color-mix(in srgb, var(--wave-color, #ff0000) 95%, #000));
    box-shadow: 0 6px 24px color-mix(in srgb, var(--wave-color, #ff0000) 50%, transparent),
                0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.big-ctrl-btn.main svg {
    width: 26px;
    height: 26px;
}

/* --- Big Volume (inside secondary row) --- */
.big-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}
.big-volume-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
    padding: 0;
}
.big-volume-btn:hover { color: rgba(255, 255, 255, 0.7); }
.big-volume-btn svg { width: 18px; height: 18px; }
.big-volume-slider {
    width: 90px;
    height: 28px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    touch-action: none;
}
.big-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
.big-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--wave-color, var(--red));
    border-radius: 50%;
    margin-top: -5px;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 6px color-mix(in srgb, var(--wave-color, var(--red)) 40%, transparent);
}
.big-volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    border: none;
}
.big-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--wave-color, var(--red));
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 6px color-mix(in srgb, var(--wave-color, var(--red)) 40%, transparent);
}
.big-volume-slider::-moz-range-progress {
    background: var(--wave-color, var(--red));
    height: 4px;
    border-radius: 2px;
}

/* --- Queue Button Active State --- */
#big-queue-btn.active {
    color: var(--red);
}

/* --- Queue Panel (slide-up overlay inside Big Player) --- */
.big-queue-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 65%;
    background: rgba(12, 12, 14, 0.95);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 2;
    pointer-events: none;
}
.big-queue-panel.open {
    transform: translateY(0);
    pointer-events: auto;
}

.big-queue-panel-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
    cursor: grab;
}
.big-queue-panel-pill {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.big-queue-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 8px;
}
.big-queue-panel-title {
    font-family: 'Yeezy', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}
.big-queue-panel-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s ease;
}
.big-queue-panel-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.big-queue-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
    -webkit-overflow-scrolling: touch;
}
.big-queue-panel-list:empty::after {
    content: 'No tracks in queue';
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    padding: 24px 0;
}
.big-queue-panel-list::-webkit-scrollbar { width: 3px; }
.big-queue-panel-list::-webkit-scrollbar-track { background: transparent; }
.big-queue-panel-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }

/* Track items inside queue panel — reuse .drawer-track base styles */
.big-queue-panel-list .drawer-track {
    padding: 6px 8px;
    gap: 8px;
}
.big-queue-panel-list .drawer-track-name { font-size: 13px; }
.big-queue-panel-list .drawer-track-num { font-size: 12px; }
.big-queue-panel-list .drawer-track-dur { font-size: 12px; }

/* --- Queue Has Items Indicator --- */
.big-ctrl-btn.queue-has-items {
    color: #f59e0b;
}

/* --- User Queue Panel Items --- */
.queue-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 8px;
}
.queue-panel-header-text {
    font-family: 'Yeezy', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}
.queue-clear-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.queue-clear-btn:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.queue-panel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.queue-panel-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.queue-drag-handle {
    color: rgba(255, 255, 255, 0.2);
    cursor: grab;
    font-size: 16px;
    flex-shrink: 0;
    padding: 2px;
}
.queue-drag-handle:hover {
    color: rgba(255, 255, 255, 0.4);
}
.queue-item-cover {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.queue-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.queue-item-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.queue-item-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.queue-item-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.queue-item-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.queue-item-remove:hover {
    color: #ef4444;
}
.queue-panel-item.queue-dragging {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.08);
}
.queue-drag-placeholder {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: 8px;
}

/* --- Transitions --- */
.drawer-big {
    opacity: 0;
    transition: opacity 0.25s ease 0.1s;
}
.player-drawer.big .drawer-big {
    opacity: 1;
}

/* --- Mobile Scroll Lock (touch devices only — desktop big player is a floating overlay) --- */
@media (pointer: coarse) {
    body.big-player-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* ============================================================================
   BIG PLAYER — DEVICE TIERS (zone spacing overrides per tier)
   ============================================================================ */

/* Tier 1 — Small Phones (max-width: 389px) */
@media (max-width: 389px) {
    .player-drawer {
        --big-art-size: clamp(200px, min(65vw, 42vh), 260px);
        --big-font-title: 18px;
        --big-font-artist: 12px;
        --big-control-size: 40px;
        --big-control-main: 48px;
        --big-control-gap: 14px;
        --big-wave-height: 36px;
        --big-padding: 14px;
        --big-zone-gap: clamp(6px, 2vh, 12px);
        --big-zone-gap-hero: clamp(8px, 2.5vh, 16px);
    }
    .player-drawer.big {
        position: fixed;
        inset: 0;
        max-width: none;
        border-radius: 0;
        z-index: 1001;
        background: rgba(8, 8, 10, 0.88);
        backdrop-filter: blur(20px) saturate(120%);
        -webkit-backdrop-filter: blur(20px) saturate(120%);
        transform: translateX(0) translateY(0);
        width: auto;
        border: none;
        box-shadow: none;
    }
    .player-drawer.big .drawer-big {
        height: 100%;
        justify-content: center;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .player-drawer.big .drawer-handle { display: none; }
    .big-volume { display: none; }
}

/* Tier 2 — Large Phones (390px-428px) */
@media (min-width: 390px) and (max-width: 428px) {
    .player-drawer {
        --big-art-size: clamp(240px, min(68vw, 42vh), 300px);
        --big-font-title: 20px;
        --big-font-artist: 13px;
        --big-control-size: 44px;
        --big-control-main: 52px;
        --big-control-gap: 16px;
        --big-wave-height: 38px;
        --big-padding: 16px;
        --big-zone-gap: clamp(8px, 2vh, 14px);
        --big-zone-gap-hero: clamp(10px, 3vh, 18px);
    }
    .player-drawer.big {
        position: fixed;
        inset: 0;
        max-width: none;
        border-radius: 0;
        z-index: 1001;
        background: rgba(8, 8, 10, 0.88);
        backdrop-filter: blur(20px) saturate(120%);
        -webkit-backdrop-filter: blur(20px) saturate(120%);
        transform: translateX(0) translateY(0);
        width: auto;
        border: none;
        box-shadow: none;
    }
    .player-drawer.big .drawer-big {
        height: 100%;
        justify-content: center;
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .player-drawer.big .drawer-handle { display: none; }
    .big-volume { display: none; }
    .big-dismiss-bar {
        margin-bottom: 4px;
        padding-bottom: 2px;
    }
}

/* Tier 3 — Phablets / Large Phones (429px-767px) */
@media (min-width: 429px) and (max-width: 767px) {
    .player-drawer {
        --big-art-size: clamp(260px, min(55vw, 42vh), 340px);
        --big-font-title: 22px;
        --big-font-artist: 14px;
        --big-control-size: 46px;
        --big-control-main: 54px;
        --big-control-gap: 20px;
        --big-wave-height: 44px;
        --big-padding: 24px;
        --big-zone-gap: clamp(10px, 2.5vh, 20px);
        --big-zone-gap-hero: clamp(12px, 3vh, 24px);
    }
    .player-drawer.big {
        position: fixed;
        inset: 0;
        max-width: none;
        border-radius: 0;
        z-index: 1001;
        background: rgba(8, 8, 10, 0.92);
        backdrop-filter: blur(24px) saturate(130%);
        -webkit-backdrop-filter: blur(24px) saturate(130%);
        transform: translateX(0) translateY(0);
        width: auto;
        border: none;
        box-shadow: none;
    }
    .player-drawer.big .drawer-big {
        height: 100%;
        justify-content: center;
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .player-drawer.big .drawer-handle { display: none; }
}

/* Tier 4 — Tablets / iPads (768px+, touch devices) */
@media (min-width: 768px) and (pointer: coarse) {
    .player-drawer {
        --big-art-size: clamp(320px, min(55vw, 50vh), 540px);
        --big-font-title: 30px;
        --big-font-artist: 18px;
        --big-control-size: 56px;
        --big-control-main: 68px;
        --big-control-gap: 32px;
        --big-wave-height: 56px;
        --big-padding: clamp(24px, 4vw, 48px);
        --big-zone-gap: clamp(14px, 3vh, 36px);
        --big-zone-gap-hero: clamp(16px, 3.5vh, 48px);
    }
    .player-drawer.big {
        position: fixed;
        inset: 0;
        max-width: none;
        border-radius: 0;
        z-index: 1001;
        background: rgba(6, 6, 8, 0.94);
        backdrop-filter: blur(32px) saturate(140%);
        -webkit-backdrop-filter: blur(32px) saturate(140%);
        transform: translateX(0) translateY(0);
        width: auto;
        border: none;
        box-shadow: none;
    }
    .player-drawer.big .drawer-big {
        height: 100%;
        max-width: 720px;
        margin: 0 auto;
        justify-content: center;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .player-drawer.big .drawer-handle { display: none; }
    .big-queue-panel { max-height: 55%; }
}

/* Tier 5 — Desktop (≥1025px, mouse/trackpad only) */
@media (min-width: 1025px) and (pointer: fine) {
    .player-drawer.big {
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        max-width: var(--big-panel-width);
        max-height: 85vh;
        border-radius: 22px;
        background: rgba(12, 12, 14, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5),
                    0 1px 0 rgba(255, 255, 255, 0.04) inset;
    }
    .big-dismiss-bar { padding-bottom: 12px; }
    .big-queue-panel { max-height: 75%; }
}

/* Height-Aware Adjustment (short devices / landscape) */
@media (max-height: 600px) {
    .player-drawer {
        --big-art-size: clamp(100px, 25vh, 160px);
        --big-zone-gap: clamp(4px, 1.5vh, 8px);
        --big-zone-gap-hero: clamp(6px, 2vh, 10px);
    }
}

/* HIDE OLD PLAYERS - replaced by unified drawer */
.visualiser-player,
.mini-player,
.volume-control,
.now-playing,
.vis-controls,
.controls-toggle,
.colour-controls {
    display: none !important;
}

/* ============================================================================
   MEMBERSHIP BADGES (Monthly Pig / Lifetime Pig)
   ============================================================================ */
.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Shiny sweep animation */
.membership-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0% { left: -100%; }
    40%, 100% { left: 150%; }
}

/* Checkmark icon */
.membership-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Monthly Pig - Gold/Yellow */
.membership-badge-monthly {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 40%, #d97706 70%, #fbbf24 100%);
    color: #451a03;
    box-shadow:
        0 0 10px rgba(251, 191, 36, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.membership-badge-monthly svg {
    fill: #451a03;
}

/* Lifetime Pig - Red */
.membership-badge-lifetime {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 40%, #dc2626 70%, #f87171 100%);
    color: #fff;
    box-shadow:
        0 0 14px rgba(239, 68, 68, 0.45),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.membership-badge-lifetime svg {
    fill: #fff;
}

/* Container for account icon + badge */
.account-with-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile: stack badge below icon */
@media (max-width: 480px) {
    .account-with-badge {
        flex-direction: column;
        gap: 0.25rem;
    }

    .membership-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.4rem;
    }

    .membership-badge svg {
        width: 9px;
        height: 9px;
    }
}

/* ============================================================================
   HERO CAROUSEL - Netflix-style banner carousel
   ============================================================================ */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 320px;
    max-height: 600px;
    overflow: hidden;
    background: var(--black);
    /* Negative margin pulls main up to overlap hero.
       Adjust this to control gap to content. Do NOT reduce main padding-top. */
    margin-bottom: -10rem;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.hero-carousel.loaded {
    opacity: 1;
}

.hero-carousel.hidden {
    display: none;
}

/* Bottom fade gradient overlay - smooth fade, no hard line */
.hero-carousel::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(to top, var(--black) 0%, transparent 100%);
    z-index: 15;
    pointer-events: none;
}

.hero-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Background image with Ken Burns effect */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Gradient overlay */
.hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.15) 0%,
        transparent 30%
    ),
    linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 12%,
        rgba(0, 0, 0, 0.35) 28%,
        rgba(0, 0, 0, 0.15) 48%,
        transparent 75%
    );
    pointer-events: none;
}

/* Slide content - constrained to grid width on wide screens */
.hero-slide-content {
    position: absolute;
    bottom: 22%;
    left: var(--content-align);
    max-width: 550px;
    z-index: 10;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                opacity 0.6s ease 0.2s;
}

.hero-slide.active .hero-slide-content {
    transform: translateY(0);
    opacity: 1;
}

/* Logo image (instead of title) */
.hero-slide-logo {
    margin-bottom: 1.25rem;
    display: none;
}

.hero-slide-logo img {
    max-width: 350px;
    max-height: 120px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hero-slide.has-logo .hero-slide-logo {
    display: block;
}

.hero-slide.has-logo .hero-slide-title {
    display: none;
}

/* Title */
.hero-slide-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* Description */
.hero-slide-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 450px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Button */
.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.hero-slide-btn svg {
    flex-shrink: 0;
}

.hero-title-icon {
    font-size: 0.85em;
    margin-right: 0.3em;
}

.hero-title-icon img.hero-title-icon-img {
    height: 0.85em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.3em;
    filter: brightness(0) invert(1);
}

.hero-title-icon .ti {
    margin-right: 0.3em;
}

.hero-btn-icon {
    font-size: 1.2em;
    margin-right: 0.25em;
    line-height: 1;
}

img.hero-btn-icon {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    margin-right: 0.25em;
    filter: brightness(0) invert(1);
}

.hero-btn-icon.ti {
    font-size: 1.2em;
    margin-right: 0.25em;
}

/* Button styles — glass with light colour tint */
.hero-slide-btn.btn-primary {
    background-color: color-mix(in srgb, var(--red, #ff0000) 30%, color-mix(in srgb, #000 35%, transparent));
    border: 1px solid color-mix(in srgb, var(--red, #ff0000) 40%, rgba(255, 255, 255, 0.12));
    color: #fff;
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: inset 0 0 0 0.5px color-mix(in srgb, #fff 8%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 12%, transparent),
        0px 2px 10px 0px color-mix(in srgb, var(--red, #ff0000) 20%, transparent);
}

.hero-slide-btn.btn-primary:hover {
    background-color: color-mix(in srgb, var(--red, #ff0000) 30%, color-mix(in srgb, #000 35%, transparent));
    border-color: color-mix(in srgb, var(--red, #ff0000) 55%, rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 0.5px color-mix(in srgb, #fff 10%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 15%, transparent),
        0px 4px 16px 0px color-mix(in srgb, var(--red, #ff0000) 30%, transparent);
}

.hero-slide-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-slide-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-slide-btn.btn-gold {
    background: rgba(255, 214, 10, 0.12);
    border: 1px solid rgba(255, 214, 10, 0.25);
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-slide-btn.btn-gold:hover {
    background: rgba(255, 214, 10, 0.22);
    border-color: rgba(255, 214, 10, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-slide-btn.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-slide-btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Navigation arrows - hidden, using dots instead */
.hero-nav {
    display: none;
}

/* Dot indicators - simple dots, centered near bottom of banner.
   Must stay above the filter bar (~5rem from carousel bottom). */
.hero-indicators {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.hero-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-indicator.active {
    background: #fff;
}

/* Progress bar - hidden */
.hero-progress {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-carousel {
        height: 60vh;
        min-height: 350px;
    }

    .hero-slide-content {
        left: var(--content-padding);
    }
}

@media (max-width: 768px) {
    :root {
        --content-padding: 1.5rem;
    }

    .hero-carousel {
        height: 55vh;
        min-height: 320px;
        margin-bottom: -8rem;
    }

    .hero-carousel::before {
        height: 120px;
    }

    .hero-slide-content {
        bottom: 12%;
        left: var(--content-padding);
        right: var(--content-padding);
    }

    .hero-slide-title {
        font-size: 2rem;
    }

    .hero-slide-logo img {
        max-width: 200px;
        max-height: 80px;
    }

    .hero-slide-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .hero-slide-btn {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
    }

    .hero-nav {
        display: none;
    }

    .hero-indicators {
        display: none;
    }

    .hero-indicator {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 50vh;
        min-height: 280px;
    }
}

/* Touch/swipe indicator on mobile */
@media (hover: none) and (pointer: coarse) {
    .hero-carousel::after {
        content: '';
        position: absolute;
        bottom: 4rem;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        opacity: 0;
        animation: swipeHint 2s ease-in-out 2s;
    }

    @keyframes swipeHint {
        0%, 100% { opacity: 0; transform: translateX(-50%); }
        20%, 80% { opacity: 1; }
        40% { transform: translateX(-70%); }
        60% { transform: translateX(-30%); }
    }
}

/* =============================================
   PROMO HERO (logged-out)
   ============================================= */
.promo-hero {
    position: relative;
    width: 100%;
    height: 62vh;
    max-height: 660px;
    margin-bottom: -10rem;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.promo-hero.loaded {
    opacity: 1;
}
.promo-hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.promo-hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 720px;
    z-index: 2;
    filter: drop-shadow(0 4px 40px rgba(0,0,0,0.6));
}
.promo-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}
body.logged-out .hero-carousel {
    display: none !important;
}

@media (max-width: 768px) {
    .promo-hero {
        height: 54vh;
        margin-bottom: -8rem;
    }
    .promo-hero-logo {
        width: 75%;
    }
    .promo-hero-fade {
        height: 180px;
    }
}
@media (max-width: 480px) {
    .promo-hero {
        height: 48vh;
        margin-bottom: -6rem;
    }
    .promo-hero-logo {
        width: 85%;
    }
    .promo-hero-fade {
        height: 140px;
    }
}

/* =============================================
   NOTIFICATIONS
   ============================================= */

/* Heart notification icon — always red gradient */
.nav-heart-icon {
    background: linear-gradient(180deg, #ff5555 0%, #cc2233 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: filter 0.2s ease;
}

.nav-icon:hover .nav-heart-icon {
    filter: drop-shadow(0 0 6px rgba(210, 47, 47, 0.4));
}

/* Bell fills when there are notifications */
.chest-trigger.has-notifs .nav-heart-icon::before {
    content: "\f669";
}

.chest-wrapper {
    position: relative;
}

.chest-trigger {
    cursor: pointer;
    position: relative;
}

/* Simple notification dot */
.chest-badge {
    position: absolute;
    top: 1px;
    right: 0px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4455;
    pointer-events: none;
    font-size: 0;
    display: none;
}

.chest-trigger.has-notifs .chest-badge {
    display: block;
}

/* Chest Dropdown Panel — glass card */
.chest-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -12px;
    width: 400px;
    max-height: 70vh;
    display: none;
    flex-direction: column;
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 2px 3px 0px -2px rgba(255, 255, 255, 0.1),
        0px 4px 12px 0px rgba(0, 0, 0, 0.5),
        0px 12px 32px 0px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.chest-dropdown.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chest-dropdown.closing {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
}

/* Sections */
.chest-section {
    padding: 12px 14px;
}

.chest-section-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.chest-empty {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    padding: 12px 0;
    text-align: center;
}

/* Notifications */
.chest-notifications-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.chest-notifications-list::-webkit-scrollbar { width: 4px; }
.chest-notifications-list::-webkit-scrollbar-track { background: transparent; }
.chest-notifications-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.chest-notif {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.chest-notif:last-of-type {
    border-bottom: none;
}

.chest-notif:hover {
    background: rgba(255, 255, 255, 0.06);
}

.chest-notif.unread::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--notif-color, var(--red));
    box-shadow: 0 0 6px var(--notif-color, var(--red));
}

.chest-notif-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 1px;
}

.chest-notif-content {
    flex: 1;
    min-width: 0;
}

.chest-notif-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chest-notif-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.chest-notif-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.chest-notif:hover .chest-notif-arrow {
    color: rgba(255, 255, 255, 0.55);
    transform: translateX(2px);
}

.chest-view-all {
    display: block;
    text-align: center;
    padding: 10px 14px;
    margin: 8px 12px 10px;
    font-family: 'Yeezy', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--red, #ff0000) 20%, rgba(255, 255, 255, 0.08));
    background: color-mix(in srgb, var(--red, #ff0000) 8%, color-mix(in srgb, #000 60%, transparent));
    color: color-mix(in srgb, var(--red, #ff0000) 75%, #fff);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
                inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 10%, transparent);
    transition: all 0.2s ease;
}

.chest-view-all:hover {
    background: color-mix(in srgb, var(--red, #ff0000) 15%, color-mix(in srgb, #000 50%, transparent));
    border-color: color-mix(in srgb, var(--red, #ff0000) 35%, rgba(255, 255, 255, 0.1));
    color: color-mix(in srgb, var(--red, #ff0000) 90%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
                inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 12%, transparent),
                0px 2px 8px 0px color-mix(in srgb, var(--red, #ff0000) 15%, transparent);
}

/* Responsive */
@media (max-width: 500px) {
    .chest-dropdown {
        width: calc(100vw - 24px);
        right: -60px;
        max-height: 80vh;
    }
    .chest-notifications-list {
        max-height: 50vh;
    }
    .chest-notif {
        padding: 12px 14px;
    }
    .chest-notif-text {
        font-size: 14px;
    }
    .chest-notif-time {
        font-size: 12px;
    }
    .chest-view-all {
        padding: 12px 14px;
        font-size: 0.78rem;
    }
}

/* Responsive adjustments */
@media (max-width: 850px) {
    #chat-page {
        padding-top: 50px;
    }
}

/* Login Prompt Overlay */
.login-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(40px) saturate(130%);
    -webkit-backdrop-filter: blur(40px) saturate(130%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.login-prompt-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.login-prompt {
    position: relative;
    text-align: center;
    padding: 52px 48px 44px;
    max-width: 420px;
    width: 90%;
    border-radius: 20px;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 8px 40px rgba(0, 0, 0, 0.6),
        0 2px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.3);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.login-prompt::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}

.login-prompt-overlay.visible .login-prompt {
    transform: scale(1) translateY(0);
}

.login-prompt__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-prompt__close:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.login-prompt__logo {
    display: block;
    margin: 0 auto 28px;
    max-width: 200px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 2px 12px rgba(255, 0, 0, 0.15));
}

.login-prompt__text {
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 32px;
    padding: 0 8px;
}

.login-prompt__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(88, 101, 242, 0.08) 100%);
    color: #fff;
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(88, 101, 242, 0.35);
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 12px rgba(88, 101, 242, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-prompt__btn:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.35) 0%, rgba(88, 101, 242, 0.15) 100%);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 24px rgba(88, 101, 242, 0.3);
    transform: translateY(-1px);
}

.login-prompt__btn:active {
    transform: translateY(0);
}

.login-prompt__btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* =============================================
   HAMBURGER BUTTON
   ============================================= */

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-right: 0;
    z-index: 1002;
    position: relative;
}

.hamburger-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.hamburger-btn span {
    display: block;
    width: 14px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    opacity: 0.6;
}

.hamburger-btn.open span {
    opacity: 1;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* =============================================
   DRAWER NAVIGATION
   ============================================= */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 256px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1001;
    transform: translateX(-100%);
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer-nav.open {
    transform: translateX(0);
}

.drawer-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    flex-shrink: 0;
}

.drawer-nav-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.25);
}

.drawer-nav-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.4;
}

.drawer-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-nav-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.drawer-nav-links {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

.drawer-nav-link {
    display: block;
    padding: 0.6rem 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    letter-spacing: -0.02em;
    transition: color 0.2s ease, text-shadow 0.3s ease;
}

.drawer-nav-link:hover {
    color: var(--link-color, var(--red));
    text-shadow: 0 0 20px var(--link-color, var(--red)), 0 0 40px var(--link-color, var(--red));
}

.drawer-nav-separator {
    height: 2px;
    margin: 0.5rem 1rem;
    border-radius: 1px;
    background: var(--sep-color, #e53e3e);
    box-shadow: 0 0 8px var(--sep-color, #e53e3e), 0 0 20px color-mix(in srgb, var(--sep-color, #e53e3e) 40%, transparent);
}

.drawer-nav-footer {
    display: flex;
    gap: 6px;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.drawer-footer-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.85rem 0.5rem;
    border-radius: 12px;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(0, 0, 0, 0.03) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.drawer-footer-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}

.drawer-footer-btn i {
    font-size: 1.3rem;
    color: var(--red);
}

.drawer-footer-btn:hover {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(0, 0, 0, 0.02) 100%
    );
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.13),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .drawer-nav {
        width: 100vw;
        max-width: 100vw;
    }

    .limey-sidebar {
        padding: 0 1rem 0.75rem;
        margin-bottom: 0.25rem;
    }

    .drawer-nav-header {
        padding: 0.4rem 1rem 0.25rem;
    }

    .drawer-nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    .drawer-nav-footer {
        padding: 0.6rem 0.75rem;
    }
}

/* ─── Countdown Card — Logo + Glass Timer ──────────────────────── */
.card-countdown {
    cursor: default;
    overflow: hidden;
}

/* Blurred cover background */
.card-countdown .card-cover {
    filter: blur(14px) saturate(150%);
    transform: scale(1.2);
    transition: filter 0.8s ease, transform 0.8s ease;
}

/* Series logo — large, centered */
.countdown-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    max-width: 70%;
    max-height: 50%;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Fallback when no logo uploaded — title text */
.countdown-logo-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 3;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    padding: 0 20px;
    max-width: 85%;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Bottom section — padlock + glass timer */
.countdown-bottom {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
    transition: opacity 0.8s ease;
}

/* Padlock icon — top of card, larger */
.countdown-padlock {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    height: 42px;
    width: auto;
    opacity: 0.8;
    z-index: 3;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    transition: opacity 0.8s ease;
}

/* Glass timer bar — cockthoughts.com/styleguide glass material */
.countdown-timer-glass {
    background-color: color-mix(in srgb, #000 60%, transparent);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 2px 3px 0px -2px color-mix(in srgb, #fff 15%, transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, #fff 10%, transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb, #000 30%, transparent),
        0px 4px 12px 0px color-mix(in srgb, #000 40%, transparent),
        0px 8px 24px 0px color-mix(in srgb, #000 30%, transparent);
    padding: 10px 16px;
}

/* Digit layout */
.countdown-digits {
    display: flex;
    gap: 10px;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.cd-num {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.cd-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    opacity: 0.4;
    letter-spacing: 1.5px;
}

/* ─── Final-Minute Pulse ─── */
.cd-final .cd-num {
    color: var(--red);
    text-shadow: 0 0 12px color-mix(in srgb, var(--red) 50%, transparent);
    transition: color 0.3s, text-shadow 0.3s;
}
.cd-final .cd-label {
    color: var(--red);
    opacity: 0.7;
    transition: color 0.3s, opacity 0.3s;
}
.cd-pulse {
    animation: cdPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cdPulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ─── Unlock Animation (3-phase reveal) ─── */

/* Phase 1: Quickly fade out all overlays (300ms) */
.countdown-reveal-1 .countdown-bottom,
.countdown-reveal-1 .countdown-padlock,
.countdown-reveal-1 .countdown-logo,
.countdown-reveal-1 .countdown-logo-fallback {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* Phase 2: Centred padlock flash — injected dynamically */
.countdown-padlock-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 56px;
    height: 56px;
    object-fit: contain;
    z-index: 10;
    opacity: 0;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
    animation: padlockFlash 0.7s ease forwards;
}
@keyframes padlockFlash {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    25%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    50%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); filter: drop-shadow(0 0 30px rgba(255,255,255,0)); }
}

/* Phase 3: Slowly unblur & unscale cover (1s ease-out) */
.countdown-reveal-2 .card-cover {
    filter: blur(0) saturate(100%) !important;
    transform: scale(1) !important;
    transition: filter 1s ease-out, transform 1s ease-out !important;
}

/* Final card swap entrance */
.card-reveal {
    animation: cardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cardReveal {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Inline pages (loaded via hamburger menu) */
.pages-content-container {
    min-height: 100vh;
    padding: 1rem 2rem 4rem;
}
.pages-content-container .page-content {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    word-wrap: break-word;
}
.pages-content-container .page-content img { max-width: 100%; height: auto; }
.pages-content-container .page-content iframe { max-width: 100%; }

@media (max-width: 768px) {
    .pages-content-container { padding: 0.5rem 1rem 3rem; }
}

/* =============================================
   VAULT EMBED CARDS
   ============================================= */
.vault-embed {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 520px;
    padding: 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--black-card, #111) 70%, transparent);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin: 1rem 0;
    transition: border-color 0.2s, background 0.2s;
}
.vault-embed:hover {
    border-color: rgba(255,255,255,0.15);
    background: color-mix(in srgb, var(--black-card, #111) 85%, transparent);
}
.vault-embed__art {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}
.vault-embed__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vault-embed__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.vault-embed__title {
    font-family: 'YeezyFont', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vault-embed__series {
    font-size: 0.78rem;
    color: var(--text-muted, rgba(255,255,255,0.45));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vault-embed__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: var(--text-muted, rgba(255,255,255,0.45));
    margin-top: 2px;
}
.vault-embed__meta .ti { font-size: 0.8rem; vertical-align: -1px; margin-right: 2px; }
.vault-embed__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--red, #b91c3c) 18%, transparent);
    color: var(--red, #b91c3c);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
    width: fit-content;
}
/* Loading skeleton */
.vault-embed--loading {
    gap: 14px;
}
.vault-embed__art-skel {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 70%);
    background-size: 200% 100%;
    animation: embed-shimmer 1.5s infinite;
}
.vault-embed__body-skel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.skel-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(110deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 70%);
    background-size: 200% 100%;
    animation: embed-shimmer 1.5s infinite;
}
.skel-w80 { width: 80%; }
.skel-w50 { width: 50%; }
.skel-w60 { width: 60%; }
@keyframes embed-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Error state */
.vault-embed--error {
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-muted, rgba(255,255,255,0.35));
    font-size: 0.82rem;
}
.vault-embed--error .ti { font-size: 1.1rem; }
@media (max-width: 480px) {
    .vault-embed { max-width: 100%; }
    .vault-embed__art, .vault-embed__art-skel { width: 72px; height: 72px; }
    .vault-embed__title { font-size: 0.9rem; }
}

/* =============================================
   SLUG PAGE (inline SPA view)
   ============================================= */
#slug-page .slug-page-container {
    min-height: 100vh;
    padding: 70px 2rem 4rem;
    display: flex;
    justify-content: center;
}

#slug-page .file-container {
    max-width: 640px;
    width: 100%;
}

#slug-page .file-hero {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

#slug-page .file-sub-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

#slug-page .file-cover {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.06);
    background: linear-gradient(90deg, #111 0%, #1a1a1a 50%, #111 100%);
    background-size: 200% 100%;
    animation: slug-shimmer 1.5s infinite;
}

#slug-page .file-cover:has(img.loaded) {
    animation: none;
}

@keyframes slug-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#slug-page .file-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#slug-page .file-cover img.loaded {
    opacity: 1;
}

#slug-page .file-logo {
    margin-bottom: 0.5rem;
}

#slug-page .file-logo img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    object-position: left;
}

#slug-page .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#slug-page .file-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    width: fit-content;
}

#slug-page .file-title {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

#slug-page .file-series {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

#slug-page .file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#slug-page .file-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background-color: color-mix(in srgb, #fff 4%, color-mix(in srgb, #000 60%, transparent));
    border: 1px solid color-mix(in srgb, #fff 8%, rgba(255,255,255,0.08));
    backdrop-filter: blur(12px) saturate(130%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 10%, transparent);
}

#slug-page .file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#slug-page .file-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    transition: all 0.2s ease;
}

#slug-page .file-action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

#slug-page .file-action-btn.action-play {
    background: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.2rem 0.5rem 1rem;
}

#slug-page .file-action-btn.action-play svg {
    fill: #fff;
    margin-right: -0.1rem;
}

#slug-page .file-action-btn.action-play:hover {
    background: linear-gradient(135deg, #ff3333 0%, #e60000 100%);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#slug-page .file-action-btn.action-shuffle {
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#slug-page .file-action-btn.action-shuffle svg {
    fill: #fff;
}

#slug-page .file-action-btn.action-shuffle:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
    box-shadow: 0 2px 14px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

#slug-page .slug-tags-section {
    margin-top: 2rem;
}

#slug-page .slug-tags-header {
    font-family: 'Yeezy', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.5rem;
}

#slug-page .slug-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#slug-page .slug-tags-wrap .filter-tag-btn {
    text-decoration: none;
}

#slug-page .file-description {
    background-color: color-mix(in srgb, #000 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 2px 3px 0px -2px color-mix(in srgb, #fff 15%, transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, #fff 10%, transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb, #000 30%, transparent),
        0px 4px 12px 0px color-mix(in srgb, #000 40%, transparent),
        0px 8px 24px 0px color-mix(in srgb, #000 30%, transparent);
    padding: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.85rem;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Rich text child styles now in shared rules above (search "Rich text styles") */

#slug-page .tracks-section {
    background-color: color-mix(in srgb, #000 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 2px 3px 0px -2px color-mix(in srgb, #fff 15%, transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, #fff 10%, transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb, #000 30%, transparent),
        0px 4px 12px 0px color-mix(in srgb, #000 40%, transparent),
        0px 8px 24px 0px color-mix(in srgb, #000 30%, transparent);
    overflow: hidden;
}

#slug-page .tracks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

#slug-page .tracks-header-duration {
    font-weight: 500;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
}

#slug-page .tracks-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    padding-bottom: 0.4rem;
}

#slug-page .tracks-list::-webkit-scrollbar {
    width: 4px;
}

#slug-page .tracks-list::-webkit-scrollbar-track {
    background: transparent;
}

#slug-page .tracks-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

#slug-page .track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

#slug-page .track-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

#slug-page .track-item.active {
    background: rgba(185, 28, 60, 0.12);
}

#slug-page .track-item.active .track-title {
    color: #fff;
}

#slug-page .track-item:hover .track-num-text {
    display: none;
}

#slug-page .track-item:hover .track-play-icon {
    display: flex;
}

#slug-page .track-num {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#slug-page .track-num-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
}

#slug-page .track-play-icon {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

#slug-page .track-play-icon svg {
    width: 14px;
    height: 14px;
}

#slug-page .track-item:hover .track-play-icon {
    color: rgba(255, 255, 255, 0.6);
}

#slug-page .track-title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.8);
}

#slug-page .track-duration {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

#slug-page .track-icon {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

#slug-page .slug-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s ease;
}

#slug-page .slug-back-link:hover {
    color: var(--text);
}

#slug-page .file-action-btn.action-like,
#slug-page .file-action-btn.action-bookmark {
    background-color: color-mix(in srgb, #fff 4%, color-mix(in srgb, #000 60%, transparent));
    border: 1px solid color-mix(in srgb, #fff 8%, rgba(255,255,255,0.08));
    backdrop-filter: blur(12px) saturate(130%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
                inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 10%, transparent);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

#slug-page .file-action-btn.action-like:hover,
#slug-page .file-action-btn.action-bookmark:hover {
    color: rgba(255,255,255,0.8);
    background-color: color-mix(in srgb, #fff 8%, color-mix(in srgb, #000 60%, transparent));
    border-color: color-mix(in srgb, #fff 14%, rgba(255,255,255,0.12));
}

#slug-page .file-action-btn.action-like .like-count {
    font-size: 0.7rem;
    font-weight: 600;
}

#slug-page .file-action-btn.action-like .like-count:empty {
    display: none;
}

#slug-page .file-action-btn.action-like.active {
    color: #e8384f;
    border-color: rgba(232,56,79,0.3);
    background: rgba(232,56,79,0.1);
}

#slug-page .file-action-btn.action-bookmark.active {
    color: #f59e0b;
    border-color: rgba(245,158,11,0.3);
    background: rgba(245,158,11,0.1);
}

@keyframes slug-actionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

#slug-page .file-action-btn.action-like.pop,
#slug-page .file-action-btn.action-bookmark.pop {
    animation: slug-actionPop 0.3s ease;
}

/* Per-track like button */
.track-like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 6px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    line-height: 1;
    transform: scale(1);
    transition: color 0.2s ease, transform 0.15s ease;
    will-change: transform;
}
.track-like-btn:hover { color: rgba(255, 255, 255, 0.45); transform: scale(1.05); }
.track-like-btn.active { color: #e8384f; }
.track-like-btn.active:hover { color: #d42e45; transform: scale(1.05); }
@keyframes trackHeartLike { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(0.95); } 100% { transform: scale(1); } }
@keyframes trackHeartUnlike { 0% { transform: scale(1); } 50% { transform: scale(0.85); } 100% { transform: scale(1); } }
.track-like-btn.pop-like { animation: trackHeartLike 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.track-like-btn.pop-unlike { animation: trackHeartUnlike 0.25s ease-out; }

/* Per-track queue button */
.track-queue-btn {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    padding: 4px; margin-left: 4px; flex-shrink: 0;
    color: rgba(255, 255, 255, 0.2); font-size: 1.1rem; line-height: 1;
    transform: scale(1); transition: color 0.2s ease, transform 0.15s ease;
    will-change: transform;
}
.track-queue-btn:hover { color: rgba(255, 255, 255, 0.45); transform: scale(1.05); }
.track-queue-btn.added { color: #f59e0b; }
.track-queue-btn.added:hover { color: #d97706; transform: scale(1.05); }
@keyframes trackQueuePop { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(0.95); } 100% { transform: scale(1); } }
.track-queue-btn.pop-queue { animation: trackQueuePop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Queue confirm popover */
.queue-confirm-popover {
    position: fixed; z-index: 10000;
    background: rgba(20, 20, 24, 0.92);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px; padding: 10px 14px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5); white-space: nowrap;
}
.queue-confirm-popover button { border: none; padding: 4px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: opacity 0.15s; }
.queue-confirm-popover .qc-yes { background: #f59e0b; color: #000; }
.queue-confirm-popover .qc-no { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.queue-confirm-popover button:hover { opacity: 0.8; }

#slug-page .error-page {
    text-align: center;
    padding-top: 4rem;
}

#slug-page .error-page h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#slug-page .error-page p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Countdown styles for slug page */
#slug-page .slug-countdown {
    margin-bottom: 1.5rem;
}

#slug-page .cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 56px;
    backdrop-filter: blur(4px);
}

#slug-page .cd-num {
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#slug-page .cd-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Countdown Phase 2: Takeover (60s → 20s) */
.slug-countdown.phase-takeover .cd-unit:not(.cd-seconds) {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.6s, transform 0.6s;
}

.slug-countdown.phase-takeover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.slug-countdown.phase-takeover > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slug-countdown.phase-takeover .cd-seconds {
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    min-width: auto !important;
    transition: all 0.3s ease-out;
}

.slug-countdown.phase-takeover .cd-seconds .cd-num {
    font-size: clamp(4rem, 15vw, 10rem) !important;
    text-shadow: 0 0 20px rgba(255,0,0,0.4);
    transition: font-size 0.3s, text-shadow 0.3s;
}

.slug-countdown.phase-takeover .cd-seconds .cd-label,
.slug-countdown.phase-takeover .cd-seconds > span:last-child {
    display: none !important;
}

/* Countdown: fade surrounding UI during takeover */
.file-hero.cd-takeover-active .file-info .file-title,
.file-hero.cd-takeover-active .file-info > p {
    opacity: 0.1;
    transition: opacity 0.8s;
}

/* Countdown: strobe flash overlay */
.file-cover .strobe-overlay {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 0.05s;
    z-index: 3;
}

.file-cover .strobe-overlay.flash {
    opacity: 0.7;
}

.file-cover .strobe-overlay.flash-red {
    opacity: 0.5;
    background: var(--red, #ef4444);
}

/* Countdown Phase 4: Reveal */
.file-hero.countdown-revealing .file-cover img {
    filter: blur(0) saturate(100%) !important;
    transform: scale(1) !important;
    transition: filter 1.2s ease, transform 1.2s ease;
}

.file-hero.countdown-revealing .slug-countdown {
    opacity: 0;
    transition: opacity 0.4s;
}

.file-hero.countdown-revealing .file-cover .lock-overlay {
    opacity: 0;
    transition: opacity 0.6s;
}

.file-hero.countdown-revealing .file-info .file-title,
.file-hero.countdown-revealing .file-info > p {
    opacity: 1;
    transition: opacity 0.8s 0.4s;
}

@media (max-width: 768px) {
    #slug-page .slug-page-container {
        padding: 60px 1rem 3rem;
    }

    #slug-page .file-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #slug-page .file-sub-actions {
        justify-content: center;
    }

    #slug-page .file-cover {
        width: 200px;
        height: 200px;
    }

    #slug-page .file-logo img {
        object-position: center;
    }

    #slug-page .file-meta {
        justify-content: center;
    }

    #slug-page .file-tag {
        margin-left: auto;
        margin-right: auto;
    }

    #slug-page .file-actions {
        justify-content: center;
    }
}

/* =============================================================================
   PMV VIDEO LIBRARY
   ============================================================================= */

/* Header + Filters */
#pmvs-page {
    overflow-y: auto;
    overflow-x: hidden;
}
.pmv-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* ─── PMV Banner ──────────────────────────── */
.pmv-banner {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}
.pmv-banner-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}
.pmv-banner-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}
.pmv-divider {
    height: 1px;
    margin: 0.5rem 1rem;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent);
}

.pmv-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pmv-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Yeezy', 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--red, #ff0000) 20%, rgba(255, 255, 255, 0.08));
    background-color: color-mix(in srgb, var(--red, #ff0000) 8%, color-mix(in srgb, #000 60%, transparent));
    color: color-mix(in srgb, var(--red, #ff0000) 75%, #fff);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 10%, transparent);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pmv-filter-btn i {
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.85;
}

.pmv-filter-btn:hover {
    background-color: color-mix(in srgb, var(--red, #ff0000) 15%, color-mix(in srgb, #000 50%, transparent));
    border-color: color-mix(in srgb, var(--red, #ff0000) 35%, rgba(255, 255, 255, 0.1));
    color: color-mix(in srgb, var(--red, #ff0000) 90%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 12%, transparent),
        0px 2px 8px 0px color-mix(in srgb, var(--red, #ff0000) 15%, transparent);
}

.pmv-filter-btn.active {
    background-color: color-mix(in srgb, var(--red, #ff0000) 25%, color-mix(in srgb, #000 40%, transparent));
    border-color: color-mix(in srgb, var(--red, #ff0000) 50%, rgba(255, 255, 255, 0.15));
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 10%, transparent),
        inset 1px 1px 0px -0.5px color-mix(in srgb, #fff 15%, transparent),
        0px 2px 12px 0px color-mix(in srgb, var(--red, #ff0000) 25%, transparent);
}

/* Grid */
.pmv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 700px) {
    .pmv-content { padding: 0 1rem 4rem; }
    .pmv-grid { grid-template-columns: 1fr; }
}

/* Cards */
.pmv-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.pmv-card:hover {
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.06);
}

.pmv-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}

.pmv-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-select: none;
    user-select: none;
}

/* Play icon */
.pmv-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    pointer-events: none;
}

.pmv-card:hover .pmv-play-icon {
    opacity: 1;
}

.pmv-play-icon svg {
    width: 48px;
    height: 48px;
    fill: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* Processing badge overlay */
.pmv-processing-badge {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-yeezy, sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
}
.pmv-processing-badge .ti { animation: spin 1.5s linear infinite; }

/* Duration badge */
.pmv-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0,0,0,0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.85);
    z-index: 2;
    font-family: 'IBM Plex Mono', monospace;
}

/* Category badge */
.pmv-category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--red, #ff0000);
    z-index: 2;
}

/* Sprite hover preview */
.pmv-sprite {
    position: absolute;
    inset: 0;
    background-size: 400% 200%;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

/* Card body */
.pmv-card-body {
    padding: 0.7rem 0.85rem;
    position: relative;
}

.pmv-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    padding-right: 5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--red), var(--red), #ff6666, var(--red), var(--red));
    background-size: 300% 100%;
    animation: redShine 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pmv-card-title-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.pmv-card-series {
    /* legacy fallback for unlinked series text */
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.25rem;
}

.pmv-series-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.pmv-series-box:hover {
    background: rgba(255,255,255,0.07);
}
.pmv-series-box-art {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.pmv-series-box-info {
    min-width: 0;
    flex: 1;
}
.pmv-series-box-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.pmv-series-box-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmv-card-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

/* Social buttons — glass pills */
.pmv-card-actions {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    display: flex;
    gap: 4px;
}

.pmv-like-btn,
.pmv-bookmark-btn {
    height: 26px;
    border-radius: 20px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.pmv-like-btn:hover,
.pmv-bookmark-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
    border-color: rgba(255,255,255,0.2);
}
.pmv-like-btn.active {
    color: #e8384f;
    border-color: rgba(232,56,79,0.3);
    background: linear-gradient(135deg, rgba(232,56,79,0.2) 0%, rgba(232,56,79,0.08) 100%);
}
.pmv-bookmark-btn.active {
    color: #f59e0b;
    border-color: rgba(245,158,11,0.3);
    background: linear-gradient(135deg, rgba(245,158,11,0.2) 0%, rgba(245,158,11,0.08) 100%);
}

.pmv-like-btn i, .pmv-bookmark-btn i { font-size: 0.75rem; line-height: 1; display: block; }
.pmv-like-count { font-size: 0.6rem; font-weight: 600; }
.pmv-like-count:empty { display: none; }

/* Empty state */
.pmv-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.3);
}

.pmv-empty i {
    font-size: 3rem;
    opacity: 0.2;
    margin-bottom: 1rem;
    display: block;
}

/* =============================================================================
   PMV VIDEO PLAYER OVERLAY
   ============================================================================= */

.pmv-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pmv-video-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.pmv-video-overlay .video-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.25rem;
    z-index: 10001;
    transition: all 0.25s ease, opacity 0.4s ease;
}

.pmv-video-overlay .video-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pmv-video-overlay video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    outline: none;
}

.pmv-video-overlay:fullscreen.pmv-controls-hidden,
.pmv-video-overlay:-webkit-full-screen.pmv-controls-hidden {
    cursor: none;
}

.pmv-video-overlay:fullscreen.pmv-controls-hidden .video-overlay-close,
.pmv-video-overlay:fullscreen.pmv-controls-hidden .video-overlay-controls,
.pmv-video-overlay:fullscreen.pmv-controls-hidden .pmv-exit-fullscreen,
.pmv-video-overlay:-webkit-full-screen.pmv-controls-hidden .video-overlay-close,
.pmv-video-overlay:-webkit-full-screen.pmv-controls-hidden .video-overlay-controls,
.pmv-video-overlay:-webkit-full-screen.pmv-controls-hidden .pmv-exit-fullscreen {
    opacity: 0;
    pointer-events: none;
}

.pmv-video-overlay .video-overlay-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    background: color-mix(in srgb, #000 70%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.4s ease;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    min-width: 400px;
    max-width: 90vw;
}

.pmv-video-overlay .video-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.pmv-video-overlay .video-ctrl-btn:hover {
    opacity: 1;
}

.pmv-video-overlay .video-progress-wrap {
    flex: 1;
    height: 6px;
    padding: 10px 0;
    background: transparent;
    background-clip: content-box;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    touch-action: none;
}

.pmv-video-overlay .video-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.pmv-video-overlay .video-progress-bar {
    height: 100%;
    background: var(--red, #ff0000);
    border-radius: 3px 0 0 3px;
    width: 0%;
    transition: none;
}

.pmv-video-overlay .video-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: url('/assets/uigraphics/plus_chrome.png') center/contain no-repeat;
    opacity: 0;
    cursor: grab;
    z-index: 2;
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
    filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.4));
    animation: pmvThumbShimmer 2.5s ease-in-out infinite;
}

.pmv-video-overlay .video-progress-wrap:hover .video-progress-thumb {
    opacity: 1;
}

.pmv-video-overlay .video-progress-thumb.scrubbing {
    opacity: 1;
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.3);
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7));
}

@keyframes pmvThumbShimmer {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.4)); }
    50% { filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6)); }
}

.pmv-video-overlay .video-time {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 36px;
    text-align: center;
    white-space: nowrap;
}

.pmv-video-overlay .video-loop-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: all 0.2s ease;
}

.pmv-video-overlay .video-loop-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.pmv-video-overlay .video-loop-btn.active {
    color: var(--red, #ff0000);
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5));
}

/* Volume control */
.pmv-video-overlay .pmv-volume {
    display: flex;
    align-items: center;
    position: relative;
}

.pmv-video-overlay .pmv-volume-slider-wrap {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.25s ease, opacity 0.25s ease;
}

.pmv-video-overlay .pmv-volume-slider-wrap.open {
    width: 80px;
    opacity: 1;
}

.pmv-video-overlay .pmv-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.pmv-video-overlay .pmv-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.pmv-video-overlay .pmv-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    margin-top: -5px;
    transition: transform 0.15s ease;
}

.pmv-video-overlay .pmv-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.pmv-video-overlay .pmv-volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    border: none;
}

.pmv-video-overlay .pmv-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .pmv-video-overlay .pmv-volume-slider-wrap.open {
        width: 60px;
    }
}

.video-watermark-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* PMV Fullscreen */
.pmv-video-overlay:fullscreen,
.pmv-video-overlay:-webkit-full-screen {
    background: #000;
}

.pmv-video-overlay:fullscreen #pmvVideoContainer,
.pmv-video-overlay:-webkit-full-screen #pmvVideoContainer {
    display: flex !important;
    align-items: center;
    justify-content: center;
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100vw;
    height: 100vh;
}

.pmv-video-overlay:fullscreen video,
.pmv-video-overlay:-webkit-full-screen video {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.pmv-video-overlay:fullscreen .video-overlay-controls,
.pmv-video-overlay:-webkit-full-screen .video-overlay-controls {
    max-width: 80vw;
}

/* Exit fullscreen button — only visible in fullscreen */
.pmv-exit-fullscreen {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.4rem;
    z-index: 10;
    transition: all 0.2s ease;
}

.pmv-exit-fullscreen:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.pmv-video-overlay:fullscreen .pmv-exit-fullscreen,
.pmv-video-overlay:-webkit-full-screen .pmv-exit-fullscreen {
    display: flex;
}

.pmv-video-overlay:fullscreen .video-overlay-close,
.pmv-video-overlay:-webkit-full-screen .video-overlay-close {
    display: none;
}

@media (max-width: 700px) {
    .pmv-video-overlay .video-overlay-controls {
        min-width: unset;
        width: 94vw;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
    .pmv-video-overlay .video-ctrl-btn { font-size: 1rem; }
    .pmv-video-overlay .video-time { font-size: 0.65rem; min-width: 28px; }
}


/* =============================================
   LOYALTY PAGE
   ============================================= */

#loyalty-page {
    padding: 1rem 0;
}

#loyalty-page .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

@media (max-width: 1000px) {
    #loyalty-page .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.loyalty-cta-banner {
    position: relative;
    margin: 0 1rem 0;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(ellipse at center top, rgba(15, 0, 0, 1) 0%, rgba(8, 0, 0, 1) 30%, #000 70%);
}

.loyalty-cta-divider {
    height: 1px;
    margin: 1.5rem 1rem;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent);
}

.loyalty-cta-img {
    display: block;
    width: 65%;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.loyalty-cta-img.loaded { opacity: 1; }

.loyalty-cta-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.loyalty-cta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    padding: 1rem 2rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
}

.loyalty-cta-btn {
    padding: 0.5rem 1.75rem;
    background: linear-gradient(145deg, #ff1a1a, #cc0000);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

.loyalty-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.loyalty-cta-btn:active {
    transform: translateY(0);
}

.loyalty-cta-cancel {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
}

.loyalty-cta-cancel .ti {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
}

.loyalty-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1rem 0;
}

.loyalty-subscribed-bar {
    flex-direction: column;
    gap: 0.5rem;
}
.loyalty-subscribed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #ff1a1a, #ff6b6b, #ff1a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.loyalty-subscribed-badge .ti {
    -webkit-text-fill-color: #ff1a1a;
    font-size: 1.2rem;
}
.loyalty-subscribed-thanks {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}
.loyalty-subscribed-thanks .ti {
    color: rgba(255, 80, 80, 0.6);
    font-size: 0.85rem;
}

/* ── Loyalty Banner Stars ─────────────────────────── */

.loyalty-stars, .loyalty-stars2, .loyalty-stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.loyalty-stars:after {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow:
        /* Left quarter (0-500) */
        12px 18px 0 rgba(255,255,255,0.55),
        47px 82px 0 rgba(255,255,255,0.7),
        93px 241px 0 rgba(255,255,255,0.48),
        138px 112px 0 rgba(255,255,255,0.62),
        185px 329px 0 rgba(255,255,255,0.8),
        221px 156px 0 rgba(255,255,255,0.45),
        267px 473px 0 rgba(255,255,255,0.72),
        312px 188px 0 rgba(255,255,255,0.58),
        29px 501px 0 rgba(255,255,255,0.66),
        76px 267px 0 rgba(255,255,255,0.81),
        124px 612px 0 rgba(255,255,255,0.43),
        169px 445px 0 rgba(255,255,255,0.75),
        214px 749px 0 rgba(255,255,255,0.52),
        389px 89px 0 rgba(255,255,255,0.88),
        448px 377px 0 rgba(255,255,255,0.7),
        341px 556px 0 rgba(255,255,255,0.69),
        467px 193px 0 rgba(255,255,255,0.84),
        /* Center-left (500-1000) */
        564px 502px 0 rgba(255,255,255,0.53),
        601px 141px 0 rgba(255,255,255,0.75),
        697px 370px 0 rgba(255,255,255,0.49),
        705px 542px 0 rgba(255,255,255,0.88),
        728px 230px 0 rgba(255,255,255,0.8),
        779px 699px 0 rgba(255,255,255,0.62),
        865px 66px 0 rgba(255,255,255,0.42),
        530px 831px 0 rgba(255,255,255,0.63),
        920px 470px 0 rgba(255,255,255,0.89),
        585px 295px 0 rgba(255,255,255,0.71),
        652px 718px 0 rgba(255,255,255,0.54),
        810px 405px 0 rgba(255,255,255,0.78),
        935px 182px 0 rgba(255,255,255,0.65),
        748px 893px 0 rgba(255,255,255,0.58),
        892px 612px 0 rgba(255,255,255,0.82),
        /* Center-right (1000-1500) */
        1023px 311px 0 rgba(255,255,255,0.93),
        1040px 608px 0 rgba(255,255,255,0.49),
        1100px 147px 0 rgba(255,255,255,0.86),
        1162px 445px 0 rgba(255,255,255,0.53),
        1221px 759px 0 rgba(255,255,255,0.72),
        1310px 229px 0 rgba(255,255,255,0.68),
        1065px 893px 0 rgba(255,255,255,0.49),
        1331px 517px 0 rgba(255,255,255,0.65),
        1438px 347px 0 rgba(255,255,255,0.77),
        1148px 82px 0 rgba(255,255,255,0.73),
        1479px 640px 0 rgba(255,255,255,0.98),
        1295px 442px 0 rgba(255,255,255,0.56),
        1385px 128px 0 rgba(255,255,255,0.81),
        1207px 571px 0 rgba(255,255,255,0.64),
        1452px 815px 0 rgba(255,255,255,0.72),
        1128px 268px 0 rgba(255,255,255,0.85),
        /* Right quarter (1500-2000) */
        1509px 210px 0 rgba(255,255,255,0.81),
        1561px 466px 0 rgba(255,255,255,0.7),
        1709px 148px 0 rgba(255,255,255,0.5),
        1752px 577px 0 rgba(255,255,255,0.92),
        1828px 317px 0 rgba(255,255,255,0.45),
        1896px 741px 0 rgba(255,255,255,0.53),
        1961px 190px 0 rgba(255,255,255,0.46),
        1989px 534px 0 rgba(255,255,255,0.92),
        1550px 738px 0 rgba(255,255,255,0.67),
        1635px 329px 0 rgba(255,255,255,0.82),
        1778px 92px 0 rgba(255,255,255,0.64),
        1855px 485px 0 rgba(255,255,255,0.76),
        1680px 612px 0 rgba(255,255,255,0.58),
        1935px 381px 0 rgba(255,255,255,0.71),
        1590px 55px 0 rgba(255,255,255,0.88),
        1845px 658px 0 rgba(255,255,255,0.63),
        1720px 428px 0 rgba(255,255,255,0.79);
    animation: loyalty-twinkle-slow 5s ease-in-out infinite;
}

.loyalty-stars2:after {
    content: '';
    position: absolute;
    width: 1.5px;
    height: 1.5px;
    background: transparent;
    box-shadow:
        /* Left quarter (0-500) */
        22px 34px 0 rgba(255,255,255,0.61),
        68px 298px 0 rgba(255,255,255,0.78),
        115px 55px 0 rgba(255,255,255,0.52),
        161px 437px 0 rgba(255,255,255,0.85),
        207px 122px 0 rgba(255,255,255,0.67),
        252px 578px 0 rgba(255,255,255,0.49),
        298px 293px 0 rgba(255,255,255,0.91),
        343px 712px 0 rgba(255,255,255,0.56),
        38px 448px 0 rgba(255,255,255,0.74),
        131px 178px 0 rgba(255,255,255,0.88),
        376px 171px 0 rgba(255,255,255,0.68),
        446px 520px 0 rgba(255,255,255,0.75),
        418px 349px 0 rgba(255,255,255,0.63),
        84px 612px 0 rgba(255,255,255,0.43),
        /* Center-left (500-1000) */
        544px 172px 0 rgba(255,255,255,0.96),
        648px 435px 0 rgba(255,255,255,0.52),
        811px 269px 0 rgba(255,255,255,0.8),
        822px 521px 0 rgba(255,255,255,0.5),
        720px 98px 0 rgba(255,255,255,0.74),
        995px 386px 0 rgba(255,255,255,0.53),
        580px 618px 0 rgba(255,255,255,0.71),
        675px 312px 0 rgba(255,255,255,0.84),
        910px 145px 0 rgba(255,255,255,0.65),
        765px 712px 0 rgba(255,255,255,0.58),
        855px 448px 0 rgba(255,255,255,0.79),
        945px 592px 0 rgba(255,255,255,0.67),
        /* Center-right (1000-1500) */
        1099px 319px 0 rgba(255,255,255,0.48),
        1111px 525px 0 rgba(255,255,255,0.85),
        1218px 182px 0 rgba(255,255,255,0.77),
        1273px 654px 0 rgba(255,255,255,1.0),
        1336px 408px 0 rgba(255,255,255,0.9),
        1383px 82px 0 rgba(255,255,255,0.64),
        1427px 539px 0 rgba(255,255,255,0.8),
        1467px 244px 0 rgba(255,255,255,0.54),
        1059px 718px 0 rgba(255,255,255,0.73),
        1175px 455px 0 rgba(255,255,255,0.62),
        1305px 148px 0 rgba(255,255,255,0.88),
        1440px 365px 0 rgba(255,255,255,0.57),
        1248px 612px 0 rgba(255,255,255,0.81),
        1155px 88px 0 rgba(255,255,255,0.69),
        /* Right quarter (1500-2000) */
        1540px 349px 0 rgba(255,255,255,0.41),
        1606px 132px 0 rgba(255,255,255,0.57),
        1674px 536px 0 rgba(255,255,255,0.58),
        1708px 413px 0 rgba(255,255,255,0.82),
        1739px 685px 0 rgba(255,255,255,0.5),
        1791px 255px 0 rgba(255,255,255,0.67),
        1805px 541px 0 rgba(255,255,255,0.93),
        1929px 167px 0 rgba(255,255,255,0.55),
        1968px 441px 0 rgba(255,255,255,0.45),
        1985px 592px 0 rgba(255,255,255,0.96),
        1565px 88px 0 rgba(255,255,255,0.76),
        1650px 712px 0 rgba(255,255,255,0.59),
        1735px 148px 0 rgba(255,255,255,0.83),
        1870px 355px 0 rgba(255,255,255,0.64),
        1580px 498px 0 rgba(255,255,255,0.72),
        1910px 622px 0 rgba(255,255,255,0.51);
    animation: loyalty-twinkle 6s ease-in-out 1s infinite;
}

.loyalty-stars3:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow:
        35px 48px 0 rgba(255,255,255,0.82),
        82px 125px 0 rgba(255,255,255,0.65),
        128px 78px 0 rgba(255,255,255,0.94),
        175px 168px 0 rgba(255,255,255,0.58),
        220px 45px 0 rgba(255,255,255,0.87),
        265px 218px 0 rgba(255,255,255,0.72),
        310px 135px 0 rgba(255,255,255,0.91),
        45px 295px 0 rgba(255,255,255,0.54),
        92px 365px 0 rgba(255,255,255,0.83),
        138px 328px 0 rgba(255,255,255,0.67),
        185px 412px 0 rgba(255,255,255,0.95),
        232px 458px 0 rgba(255,255,255,0.51),
        278px 392px 0 rgba(255,255,255,0.89),
        325px 498px 0 rgba(255,255,255,0.76),
        58px 532px 0 rgba(255,255,255,0.63),
        417px 541px 0 rgba(255,255,255,0.7),
        515px 105px 0 rgba(255,255,255,0.46),
        537px 331px 0 rgba(255,255,255,0.84),
        632px 747px 0 rgba(255,255,255,0.94),
        684px 268px 0 rgba(255,255,255,0.78),
        725px 1147px 0 rgba(255,255,255,0.93),
        833px 317px 0 rgba(255,255,255,0.96),
        868px 567px 0 rgba(255,255,255,0.43),
        1130px 876px 0 rgba(255,255,255,0.74),
        230px 155px 0 rgba(255,255,255,0.97),
        304px 881px 0 rgba(255,255,255,0.48),
        431px 512px 0 rgba(255,255,255,0.8),
        1416px 306px 0 rgba(255,255,255,0.73),
        1631px 82px 0 rgba(255,255,255,0.94),
        1710px 757px 0 rgba(255,255,255,0.75);
    animation: loyalty-twinkle-bright 8s ease-in-out 2s infinite;
}

@keyframes loyalty-twinkle-slow {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.7; }
}

@keyframes loyalty-twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.9; }
}

@keyframes loyalty-twinkle-bright {
    0%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
    50% { opacity: 0.4; }
    60% { opacity: 1; }
    70% { opacity: 0.25; }
}

@media (max-width: 600px) {
    .loyalty-cta-banner {
        margin: 0 0.75rem 0;
        display: flex;
        flex-direction: column;
    }
    .loyalty-cta-img {
        width: 80%;
    }
    .loyalty-cta-bar {
        position: relative;
        gap: 1.5rem;
        padding: 0.75rem 1rem;
        margin-top: -1.5rem;
    }
    .loyalty-cta-btn {
        padding: 0.45rem 1.25rem;
        font-size: 0.75rem;
    }
    .loyalty-cta-cancel {
        font-size: 0.65rem;
    }
    .loyalty-subscribed-badge {
        font-size: 0.85rem;
    }
    .loyalty-subscribed-thanks {
        font-size: 0.65rem;
    }
    .loyalty-filter-bar {
        padding: 0.75rem 0.75rem 0;
    }
    #loyalty-page .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.75rem;
    }
}

/* ── Store Page ── */
#store-page { padding: 0; margin-top: -5rem; }

.store-banner {
    position: relative;
    margin: 0 calc(-1 * var(--content-padding));
    border-radius: 0;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6.5rem;
}
.store-banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.store-banner-video.loaded { opacity: 1; }
.store-banner-logo {
    position: relative;
    z-index: 2;
    width: 38%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity 0.6s ease;
}
.store-banner-logo.loaded { opacity: 1; }
.store-banner-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.store-blurb {
    text-align: center;
    padding: 2.5rem 1rem 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.store-divider {
    height: 1px;
    margin: 1.5rem 1rem;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem 2rem;
}

/* Product card — transparent PNG, no container */
.store-card {
    display: block;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}
.store-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.store-card-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.store-card-img img.loaded { opacity: 1; }

.store-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.25rem 0.25rem;
}
.store-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.store-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red);
}

/* Stink rating */
.store-card-stink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0.25rem 0.75rem;
}
.store-card-stink-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.stink-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}
.stink-pip { color: rgba(255,255,255,0.12); display: inline-flex; transition: color 0.2s; }
.stink-pip.active { color: #7ecf4c; filter: drop-shadow(0 0 4px rgba(126,207,76,0.4)); }
.stink-svg { display: block; }
.store-detail-stink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.store-detail-stink .stink-pip { font-size: 0; }
.store-detail-stink .stink-svg { width: 20px; height: 22px; }
.stink-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.store-card.sold-out {
    opacity: 0.6;
    position: relative;
}
.store-card.sold-out::after {
    content: 'SOLD OUT';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--red);
    text-shadow: 0 0 12px rgba(255,0,0,0.5);
    z-index: 2;
}

/* Store — product detail page */
.store-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 1rem 4rem;
}
.store-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 700;
}
.store-back-btn:hover { color: #fff; }
.store-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: start;
}
.store-detail-images {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.store-detail-image {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.store-detail-thumbs {
    display: flex;
    gap: 0.5rem;
}
.store-detail-thumb {
    width: 56px; height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s;
}
.store-detail-thumb:hover { border-color: rgba(255,255,255,0.25); }
.store-detail-thumb.active { border-color: var(--red); }
.store-detail-thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.store-detail-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.store-detail-image img.loaded { opacity: 1; }
.store-detail-info { display: flex; flex-direction: column; gap: 1.25rem; }
.store-detail-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.store-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}
.store-detail-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-line;
}
.store-detail-stock {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.store-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.store-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,0,0,0.3);
}
.store-buy-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.store-detail-soldout {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.35);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
    .store-banner { aspect-ratio: 16 / 9; margin: 0 calc(-1 * var(--content-padding)); border-radius: 0; }
    .store-banner-logo { width: 60%; }
    .store-blurb { font-size: 0.75rem; }
    .store-blurb p { font-size: 0.82rem !important; }
    .store-grid { padding: 0 0.5rem 2rem; }
    .store-detail-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .store-detail-title { font-size: 1.4rem; }
    .store-detail-container { padding: 1.5rem 0.75rem 3rem; }
}

/* ── Store Closed State ── */
#nav-store.store-closed {
    opacity: 0.35;
    pointer-events: auto;
}

.store-closed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 0 2rem;
}

.store-closed-logo {
    width: 38%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
    margin-bottom: 1rem;
}

.store-closed-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    letter-spacing: 0.2em;
    margin: 0;
}

@media (max-width: 600px) {
    .store-closed-logo { width: 60%; }
}

.store-closed-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.store-closed-toast i {
    margin-right: 0.5rem;
    color: var(--red, #ff3b3b);
}

.store-closed-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vault-gate-toast { position:fixed; bottom:2rem; left:50%; transform:translateX(-50%) translateY(20px); background:rgba(20,20,20,0.92); border:1px solid rgba(255,255,255,0.1); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); color:rgba(255,255,255,0.85); padding:0.75rem 1.5rem; border-radius:12px; font-size:0.85rem; font-weight:500; z-index:9999; opacity:0; transition:opacity 0.3s ease,transform 0.3s ease; pointer-events:none; white-space:nowrap; }
.vault-gate-toast i { margin-right:0.5rem; color:var(--red,#ff3b3b); }
.vault-gate-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* =============================================
   SIR AI — INLINE SPA SECTION
   ============================================= */

#sirai-page {
    padding: 0 !important;
    position: relative;
    --sirai-sw: min(600px, 88vw);
    --sirai-sh: 52px;
    --sirai-sr: 26px;
    margin-top: -5rem;
    margin-left: calc(-1 * var(--content-padding));
    margin-right: calc(-1 * var(--content-padding));
    margin-bottom: -2rem;
    min-height: calc(100dvh - 5rem);
}

/* no overflow:hidden here — body.no-scroll handles scroll lock,
   and overflow:hidden clips the search bar glow on mobile */

/* ===== ANIMATED BACKGROUND — Dark Iridescent Oil ===== */
.sirai-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background: #030304;
    pointer-events: none;
}

/* Layer 2 — Iridescent oil: conic spectrum with hue-rotate for true oil-slick color shifting */
.sirai-bg-oil {
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        conic-gradient(
            from 0deg at 50% 50%,
            rgb(180, 0, 0),
            rgb(200, 150, 0),
            rgb(160, 10, 10),
            rgb(210, 170, 0),
            rgb(140, 0, 0),
            rgb(190, 130, 0),
            rgb(180, 0, 0)
        ),
        radial-gradient(ellipse at 30% 40%, rgba(200, 20, 0, 0.7) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(210, 160, 0, 0.6) 0%, transparent 55%);
    background-size: 100% 100%, 250% 250%, 250% 250%;
    filter: blur(60px) saturate(1.5);
    opacity: 0.6;
    animation: sirai-oil-hue 25s linear infinite;
}

@keyframes sirai-oil-hue {
    0%   { filter: blur(60px) saturate(1.5) hue-rotate(0deg); }
    100% { filter: blur(60px) saturate(1.5) hue-rotate(360deg); }
}

/* Layer 3 — Depth: prismatic interference via difference blend */
.sirai-bg-depth {
    position: absolute;
    inset: -10%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 35% 30%, rgba(20, 10, 50, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 65% 70%, rgba(0, 40, 50, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(40, 5, 40, 0.4) 0%, transparent 55%);
    background-size: 200% 200%;
    filter: blur(80px);
    mix-blend-mode: difference;
    animation: sirai-depth-drift 20s ease-in-out infinite alternate;
}

@keyframes sirai-depth-drift {
    0%   { background-position: 0% 50%, 100% 0%, 50% 100%; }
    33%  { background-position: 60% 20%, 40% 80%, 80% 30%; }
    66%  { background-position: 30% 80%, 70% 30%, 20% 70%; }
    100% { background-position: 100% 50%, 0% 100%, 50% 0%; }
}

/* Layer 4 — Vignette: dark edge framing */
.sirai-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Layer 5 — Fine cinematic grain */
.sirai-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    opacity: 0.32;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 3;
    animation: sirai-grain-drift 4s steps(3) infinite;
}

@keyframes sirai-grain-drift {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-3%, -2%); }
    66%  { transform: translate(2%, -3%); }
    100% { transform: translate(0, 0); }
}

/* ===== LANDING STATE ===== */
.sirai-landing {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100dvh - 5rem);
    padding: 0 2rem;
    overflow: hidden;
}

.sirai-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 2rem;
    display: block;
    opacity: 0;
    animation: sirai-enter-logo 600ms 200ms cubic-bezier(0.16,1,0.3,1) forwards,
               sirai-logo-idle 4s 1s ease-in-out infinite;
}

@keyframes sirai-logo-idle {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 220, 50, 0.4)) drop-shadow(0 0 40px rgba(255, 220, 50, 0.15)); transform: scale(1) rotate(0deg); }
    50%      { filter: drop-shadow(0 0 35px rgba(255, 220, 50, 0.6)) drop-shadow(0 0 60px rgba(255, 220, 50, 0.2)); transform: scale(1.03) rotate(2.5deg); }
}

@keyframes sirai-enter-logo {
    from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.sirai-greeting {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin: 0 0 0.75rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.06);
    opacity: 0;
    animation: sirai-enter-greeting 500ms 600ms cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

@keyframes sirai-enter-greeting {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sirai-greeting .name-accent {
    background: linear-gradient(135deg, #a8d8ea, #c4b5fd, #93e9be, #a8d8ea, #ddd6fe);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sirai-name-iridescent 4s ease infinite;
    text-shadow: none;
}

@keyframes sirai-name-iridescent {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sirai-enter-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sirai-subline {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 0 0 3rem;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: sirai-enter-fade 400ms 1000ms ease-out forwards;
}

@keyframes sirai-enter-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== SEARCH INPUT (Landing) ===== */
.sirai-search-wrap {
    width: min(600px, 88vw);
    margin: 0 auto;
    position: relative;
    opacity: 0;
    animation: sirai-enter-search 500ms 1300ms cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes sirai-enter-search {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== CONIC GLOW ORB SYSTEM ===== */
.sirai-search-orb {
    position: relative;
    width: var(--sirai-sw);
    height: var(--sirai-sh);
}

.sirai-ss-glow,
.sirai-ss-border,
.sirai-ss-border-dark,
.sirai-ss-white {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: var(--sirai-sr);
    pointer-events: none;
    z-index: 1;
    contain: layout style paint;
    transition: opacity 0.4s ease;
}

@keyframes sirai-orb-idle {
    from { transform: translate3d(-50%, -50%, 0) rotate(0deg); }
    to   { transform: translate3d(-50%, -50%, 0) rotate(360deg); }
}

/* Outer glow — soft diffused halo */
.sirai-ss-glow {
    width: calc(var(--sirai-sw) + 24px);
    height: calc(var(--sirai-sh) + 24px);
    filter: blur(18px);
    opacity: 0.55;
    transition: opacity 0.4s ease, filter 0.4s ease;
}
.sirai-ss-glow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0) rotate(60deg);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-image: conic-gradient(
        transparent 0%,
        #3a5a6a 5%, #5a4a7a 15%, #4a6a7a 25%, transparent 35%,
        transparent 100%
    );
    animation: sirai-orb-idle 30s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

/* Middle layers hidden — consolidated into glow + border */
.sirai-ss-border-dark,
.sirai-ss-white {
    display: none;
}

/* Main border — sharp unified edge glow */
.sirai-ss-border {
    width: calc(var(--sirai-sw) + 3px);
    height: calc(var(--sirai-sh) + 3px);
    filter: blur(0.5px);
}
.sirai-ss-border::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0) rotate(60deg);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background-image: conic-gradient(
        #0a0a0a 0%,
        #5a7a8a 4%, #7a6a9a 10%, #4a6a7a 18%, #0a0a0a 24%,
        #0a0a0a 100%
    );
    animation: sirai-orb-idle 30s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

/* Hover — pause idle rotation in place */
.sirai-search-orb:hover .sirai-ss-glow::before,
.sirai-search-orb:hover .sirai-ss-border::before {
    animation-play-state: paused;
}
.sirai-search-orb:hover .sirai-ss-glow {
    opacity: 0.65;
}

/* Focus — pause idle rotation in place + intensify */
.sirai-search-orb:focus-within .sirai-ss-glow::before,
.sirai-search-orb:focus-within .sirai-ss-border::before {
    animation-play-state: paused;
}
.sirai-search-orb:focus-within .sirai-ss-glow {
    opacity: 0.8;
    filter: blur(22px);
}

.sirai-input-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 52px;
    padding: 8px 48px 8px 18px;
    background: color-mix(in srgb, #000 75%, transparent);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 5%, transparent),
                inset 0 1px 0px 0px color-mix(in srgb, #fff 8%, transparent),
                0px 4px 16px 0px color-mix(in srgb, #000 50%, transparent);
    border: none;
    border-radius: 26px;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.sirai-search-orb:focus-within .sirai-input-container {
    background: color-mix(in srgb, #000 80%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent),
                inset 0 1px 0px 0px color-mix(in srgb, #fff 12%, transparent),
                0px 4px 16px 0px color-mix(in srgb, #000 50%, transparent),
                0 0 20px rgba(255, 0, 0, 0.08);
}

#sirai-input {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

#sirai-input::placeholder {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.25);
}

.sirai-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    z-index: 4;
}
.sirai-search-btn:hover {
    color: #fff;
    background: rgba(255, 0, 0, 0.12);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.2);
}

/* Tag chips inside search input */
.sirai-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    background: color-mix(in srgb, var(--tag-color, #6b7280) 12%, rgba(255,255,255,0.04));
    border: 1px solid color-mix(in srgb, var(--tag-color, #6b7280) 25%, rgba(255,255,255,0.08));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
}

.sirai-chip i { color: var(--tag-color, #6b7280); font-size: 0.8rem; }

.sirai-chip-x {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0 0 2px;
    line-height: 1;
    transition: color 0.2s;
}
.sirai-chip-x:hover { color: #fff; }

/* ===== SEARCHING STATE ===== */
.sirai-searching {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sirai-search-term {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    margin: 0;
    padding: 0.5em 1.2em;
    background: color-mix(in srgb, #000 70%, transparent);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05),
                0 4px 20px rgba(0,0,0,0.4);
    animation: sirai-term-pulse 2s ease-in-out infinite;
}

@keyframes sirai-term-pulse {
    0%, 100% { border-color: rgba(232, 56, 79, 0.15); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05), 0 0 8px rgba(232, 56, 79, 0.05); }
    50%      { border-color: rgba(255, 220, 50, 0.3); box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05), 0 0 12px rgba(255, 220, 50, 0.08); }
}

.sirai-searching-text {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.sirai-dots::after {
    content: '';
    animation: sirai-ellipsis 1.5s steps(4, end) infinite;
}

@keyframes sirai-ellipsis {
    0%  { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.sirai-thinking-ring {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sirai-thinking-ring::before,
.sirai-thinking-ring::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 220, 50, 0.3);
    animation: sirai-ripple 2s ease-out infinite;
}
.sirai-thinking-ring::after {
    animation-delay: 1s;
}

@keyframes sirai-ripple {
    0%   { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.sirai-logo-thinking {
    width: 56px;
    height: 56px;
    display: block;
    animation: sirai-think-pulse 1.5s ease-in-out infinite;
}

@keyframes sirai-think-pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 220, 50, 0.3)); transform: scale(1); }
    50%      { filter: drop-shadow(0 0 25px rgba(255, 220, 50, 0.6)); transform: scale(1.08); }
}

/* ===== RESULTS STATE ===== */
.sirai-results {
    position: relative;
    z-index: 1;
    max-width: var(--content-max-width, 1100px);
    margin: 0 auto;
    padding: 80px 2rem 4rem;
}

.sirai-section {
    margin-bottom: 3rem;
}

.sirai-section-label {
    font-family: 'Yeezy', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sirai-label-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    filter: drop-shadow(0 0 6px rgba(255, 220, 50, 0.4));
}

.sirai-matched-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: color-mix(in srgb, #fff 3%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sirai-matched-label {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

/* Did you mean — title match suggestions (glass box + tile grid) */
.sirai-title-matches {
    margin: 0 auto 24px;
    background: color-mix(in srgb, var(--red) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 12%, transparent);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 18px;
}
.sirai-title-matches-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sirai-title-matches-list::-webkit-scrollbar { height: 3px; }
.sirai-title-matches-list::-webkit-scrollbar-track { background: transparent; }
.sirai-title-matches-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.sirai-title-match-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 150px;
    gap: 8px;
    padding: 12px 8px;
    background: color-mix(in srgb, var(--red) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 10%, transparent);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: center;
    text-decoration: none;
}
.sirai-title-match-row:hover {
    background: color-mix(in srgb, var(--red) 14%, transparent);
    border-color: color-mix(in srgb, var(--red) 30%, transparent);
}
.sirai-title-match-row.active-content {
    border-color: var(--red);
    box-shadow: 0 0 14px 0 var(--red-glow);
}
.sirai-tm-cover { width: 120px; height: 120px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sirai-tm-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; align-items: center; }
.sirai-tm-title { font-family: 'Yeezy', sans-serif; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sirai-tm-tag { font-family: 'Yeezy', sans-serif; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.45; }
.sirai-tm-dur { font-family: 'Yeezy', sans-serif; font-size: 11px; opacity: 0.35; font-variant-numeric: tabular-nums; }

/* Card stagger animation */
.sirai-results .card {
    opacity: 0;
    transform: translateY(20px);
}
.sirai-results .card.sirai-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== EMPTY STATE ===== */
.sirai-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: color-mix(in srgb, #fff 3%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sirai-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    display: block;
    opacity: 0.5;
    filter: drop-shadow(0 0 12px rgba(255, 220, 50, 0.3));
}

.sirai-empty p {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.25rem;
}

.sirai-empty .sirai-empty-sub {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.25);
}

/* ===== QUICK-SEARCH (from results state) ===== */
.sirai-results-search {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sirai-results-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 220, 50, 0.4));
    animation: sirai-results-icon-idle 3s ease-in-out infinite;
}

@keyframes sirai-results-icon-idle {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 220, 50, 0.4)); transform: scale(1); }
    50%      { filter: drop-shadow(0 0 14px rgba(255, 220, 50, 0.6)); transform: scale(1.04); }
}

.sirai-results-search-input {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 42px 6px 14px;
    background: color-mix(in srgb, #000 75%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 4%, transparent),
                inset 0 1px 0 0 color-mix(in srgb, #fff 6%, transparent),
                0 4px 16px color-mix(in srgb, #000 40%, transparent);
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sirai-results-search-input:focus-within {
    background: color-mix(in srgb, #000 80%, transparent);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 6%, transparent),
                inset 0 1px 0 0 color-mix(in srgb, #fff 10%, transparent),
                0 4px 16px color-mix(in srgb, #000 40%, transparent),
                0 0 16px rgba(255, 0, 0, 0.06);
}

.sirai-results-search-input input {
    flex: 1;
    min-width: 100px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
}

.sirai-results-search-input input::placeholder {
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}

/* ===== FAST ENTRANCE (for auto-search from header) ===== */
.sirai-fast .sirai-logo     { animation-delay: 0ms; animation-duration: 300ms; }
.sirai-fast .sirai-greeting { animation-delay: 100ms; animation-duration: 300ms; }
.sirai-fast .sirai-subline  { animation-delay: 200ms; animation-duration: 200ms; }
.sirai-fast .sirai-search-wrap { animation-delay: 300ms; animation-duration: 300ms; }

/* ===== SIR AI MOBILE ===== */
@media (max-width: 768px) {
    .sirai-landing { padding: 0 1.5rem; }
    .sirai-logo { width: 56px; height: 56px; margin-bottom: 1rem; }
    .sirai-greeting { font-size: 1.1rem; }
    .sirai-subline { font-size: 0.8rem; margin-bottom: 2rem; }
    .sirai-search-wrap { width: min(600px, 94vw); }
    .sirai-input-container {
        min-height: 46px;
        padding: 6px 40px 6px 14px;
        border-radius: 23px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    #sirai-input { font-size: 0.95rem; }
    .sirai-results { padding: 90px 1rem 3rem; }
    .sirai-section-label { font-size: 0.65rem; }
    .sirai-results-icon { width: 22px; height: 22px; }

    /* Kill glow layers on tablet */
    .sirai-ss-glow,
    .sirai-ss-border { opacity: 0; visibility: hidden; filter: none; }

    .sirai-ss-glow::before,
    .sirai-ss-border::before { animation: none; }

    .sirai-title-matches { padding: 12px; }
    .sirai-title-matches-list { gap: 8px; }
    .sirai-tm-cover { width: 90px; height: 90px; }
    .sirai-title-match-row { width: 120px; }

    .sirai-results .card.sirai-visible {
        transition-duration: 0.3s;
    }

    .sirai-search-orb:focus-within .sirai-input-container {
        box-shadow: none;
    }

    /* Mobile-safe background: static hue-rotate, no animation, minimize GPU layers */
    .sirai-bg-oil {
        filter: blur(40px) saturate(1.2) hue-rotate(180deg);
        animation: none;
        inset: -10%;
    }
    .sirai-bg-depth {
        display: none; /* fully remove from render tree, not just pause animation */
    }
    .sirai-bg::before {
        background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%);
    }
    .sirai-bg::after {
        animation: none;
        opacity: 0.15;
        background-size: 200px 200px;
    }

    /* Use dvh instead of position:fixed to avoid double-fixed-layer Safari crash */
    #sirai-page.sirai-state-landing .sirai-landing {
        min-height: 100dvh;
    }

    /* Mobile touch targets — minimum 44px */
    .sirai-search-btn {
        padding: 10px;
        font-size: 1.3rem;
    }
    .sirai-title-match-row {
        min-height: 44px;
        padding: 14px 10px;
    }
}

@media (max-width: 500px) {
    .sirai-ss-glow,
    .sirai-ss-border { opacity: 0; visibility: hidden; filter: none; }

    .sirai-ss-glow::before,
    .sirai-ss-border::before { animation: none; }

    .sirai-input-container {
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .sirai-search-orb:focus-within .sirai-input-container {
        box-shadow: none;
    }

    /* Further reduce background weight on small phones */
    .sirai-bg-oil {
        filter: blur(30px) saturate(1.1) hue-rotate(180deg);
        opacity: 0.38;
    }
    .sirai-bg::after {
        opacity: 0.10;
    }
}

@media (max-width: 400px) {
    .sirai-greeting { font-size: 1rem; }
    .sirai-search-wrap { width: min(600px, 95vw); }
    .sirai-input-container { min-height: 44px; border-radius: 22px; }
    #sirai-input { font-size: 0.85rem; }
}

/* ===== STATE CROSSFADE TRANSITIONS ===== */
.sirai-landing, .sirai-searching, .sirai-results {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.sirai-state-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

/* Spinner icon for searching state */
.sirai-spin-icon {
    display: inline-block;
    animation: sirai-icon-spin 1s linear infinite;
    margin-right: 0.3em;
}
@keyframes sirai-icon-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sirai-logo { animation: sirai-enter-logo 200ms forwards !important; }
    .sirai-greeting { animation: sirai-enter-fade 200ms forwards !important; }
    .sirai-subline { animation: sirai-enter-fade 200ms forwards !important; }
    .sirai-search-wrap { animation: sirai-enter-fade 200ms forwards !important; }
    .sirai-ss-glow::before, .sirai-ss-border-dark::before,
    .sirai-ss-white::before, .sirai-ss-border::before { animation: none !important; }
    .sirai-thinking-ring::before, .sirai-thinking-ring::after { animation: none !important; }
    .sirai-results .card.sirai-visible { transition-duration: 0.1s; }
}

#content-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 1rem 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-body);
}

/* =============================================
   UPGRADE CELEBRATION MODAL
   ============================================= */
.upgrade-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: upgrade-fade-in 0.5s ease both;
}
.upgrade-overlay.dismiss {
    animation: upgrade-fade-out 0.4s ease both;
}
@keyframes upgrade-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes upgrade-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
.upgrade-modal {
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    background: color-mix(in srgb, #000 30%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3),
                0 8px 32px rgba(0, 0, 0, 0.4);
    animation: upgrade-modal-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}
.upgrade-overlay.dismiss .upgrade-modal {
    animation: upgrade-modal-out 0.3s ease both;
}
@keyframes upgrade-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes upgrade-modal-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}
.upgrade-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.25))
            drop-shadow(0 0 60px rgba(255, 200, 200, 0.1));
}
.upgrade-heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    background: linear-gradient(180deg, #fff 0%, #e0e0e0 25%, #aaa 50%, #d0d0d0 75%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.upgrade-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}
.upgrade-confetti {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}
@media (max-width: 480px) {
    .upgrade-heading { font-size: 1.4rem; }
    .upgrade-modal { padding: 2rem 1.5rem; }
    .upgrade-icon { width: 48px; height: 48px; }
}

/* Sir monitoring indicator */
.sir-monitor-indicator {
    position: fixed;
    bottom: 12px;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: color-mix(in srgb, #000 75%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 998;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.sir-monitor-indicator.hidden { display: none; }
.sir-monitor-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}
.sir-monitor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: sir-pulse 2s ease-in-out infinite;
}
.sir-monitor-text {
    font-family: 'Yeezy', sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
@keyframes sir-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(74, 222, 128, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 12px rgba(74, 222, 128, 0.3); }
}
/* Speaking state icon */
.sir-monitor-speak-icon {
    font-size: 14px;
    color: #f87171;
    animation: sir-speak-pulse 1s ease-in-out infinite;
}
/* Speaking state: red glow on border */
.sir-monitor-indicator.speaking {
    border-color: rgba(248, 113, 113, 0.15);
}
.sir-monitor-indicator.speaking .sir-monitor-text {
    color: rgba(255, 255, 255, 0.65);
}
@keyframes sir-speak-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
body.player-active .sir-monitor-indicator {
    bottom: 70px;
}
@media (max-width: 600px) {
    .sir-monitor-indicator {
        bottom: 10px;
        right: 1rem;
        padding: 8px 12px;
    }
    .sir-monitor-indicator .sir-monitor-text {
        font-size: 10px;
    }
    body.player-active .sir-monitor-indicator {
        bottom: 62px;
    }
}
