/* ==========================================================================
   Profile Directory CMS — Public Site Stylesheet
   Theme system: every visual property reads from CSS custom properties
   defined on :root and overridden per-theme via [data-theme="..."] on <body>.
   ========================================================================== */

/* Font loading moved to <link> tags in header.php for speed — see that file. */

/* ---- Base theme (Royal Purple, the default) ---------------------------- */
:root {
    --bg: #0a0713;
    --bg-radial-1: #1c1033;
    --bg-radial-2: #0a0713;
    --surface: rgba(45, 27, 74, 0.45);
    --surface-solid: #14101f;
    --surface-strong: rgba(60, 38, 97, 0.6);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --accent: #8b5cf6;
    --accent-2: #6d28d9;
    --accent-soft: rgba(139, 92, 246, 0.18);
    --text: #f3effe;
    --text-muted: #a99fc2;
    --text-faint: #6f6489;
    --success: #22c55e;
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 20px 48px -20px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 0 1px var(--border), 0 24px 60px -24px var(--accent-soft);
    --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

/* ---- Theme variants ------------------------------------------------------ */
body[data-theme="midnight-green"] {
    --bg: #06120f; --bg-radial-1: #0f2a21; --bg-radial-2: #06120f;
    --surface: rgba(20, 40, 34, 0.45); --surface-solid: #0c1d17; --surface-strong: rgba(24, 58, 47, 0.6);
    --accent: #22c98d; --accent-2: #0fae7a; --accent-soft: rgba(34, 201, 141, 0.18);
    --text: #eafff5; --text-muted: #8fbfab; --text-faint: #5c8672;
}
body[data-theme="ocean-blue"] {
    --bg: #061420; --bg-radial-1: #113355; --bg-radial-2: #061420;
    --surface: rgba(19, 51, 74, 0.45); --surface-solid: #0c2033; --surface-strong: rgba(24, 68, 98, 0.6);
    --accent: #38bdf8; --accent-2: #0284c7; --accent-soft: rgba(56, 189, 248, 0.18);
    --text: #eaf7ff; --text-muted: #8db9cf; --text-faint: #587f92;
}
body[data-theme="luxury-gold"] {
    --bg: #100d05; --bg-radial-1: #362a10; --bg-radial-2: #100d05;
    --surface: rgba(53, 42, 15, 0.45); --surface-solid: #1c1608; --surface-strong: rgba(75, 59, 21, 0.6);
    --accent: #e8b93f; --accent-2: #b8860b; --accent-soft: rgba(232, 185, 63, 0.18);
    --text: #fff8e6; --text-muted: #c7b587; --text-faint: #8a7c56;
}
body[data-theme="rose-red"] {
    --bg: #140508; --bg-radial-1: #3b141b; --bg-radial-2: #140508;
    --surface: rgba(59, 20, 27, 0.45); --surface-solid: #220a0f; --surface-strong: rgba(82, 27, 37, 0.6);
    --accent: #fb7185; --accent-2: #e11d48; --accent-soft: rgba(251, 113, 133, 0.18);
    --text: #fff0f2; --text-muted: #d3949e; --text-faint: #8f6169;
}
body[data-theme="emerald"] {
    --bg: #04120d; --bg-radial-1: #0e3629; --bg-radial-2: #04120d;
    --surface: rgba(14, 54, 42, 0.45); --surface-solid: #0a201a; --surface-strong: rgba(19, 74, 57, 0.6);
    --accent: #34d399; --accent-2: #059669; --accent-soft: rgba(52, 211, 153, 0.18);
    --text: #eafff8; --text-muted: #8fcbb3; --text-faint: #5c8c76;
}
body[data-theme="white-premium"] {
    --bg: #f3f4f9; --bg-radial-1: #ffffff; --bg-radial-2: #e7e8f2;
    --surface: rgba(255, 255, 255, 0.65); --surface-solid: #ffffff; --surface-strong: rgba(255, 255, 255, 0.85);
    --border: rgba(20, 19, 31, 0.08); --border-strong: rgba(20, 19, 31, 0.16);
    --accent: #6366f1; --accent-2: #4338ca; --accent-soft: rgba(99, 102, 241, 0.14);
    --text: #14131f; --text-muted: #58566e; --text-faint: #8b899e;
    --shadow-card: 0 20px 48px -24px rgba(20, 19, 31, 0.25);
}
body[data-theme="cyber-dark"] {
    --bg: #050507; --bg-radial-1: #12002b; --bg-radial-2: #050507;
    --surface: rgba(20, 20, 28, 0.45); --surface-solid: #0c0c11; --surface-strong: rgba(28, 28, 38, 0.6);
    --accent: #00e5ff; --accent-2: #7000ff; --accent-soft: rgba(0, 229, 255, 0.16);
    --text: #eafcff; --text-muted: #85b7c2; --text-faint: #4f6d74;
}

/* ---- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 15% -10%, var(--bg-radial-1) 0%, transparent 60%),
        radial-gradient(900px 500px at 100% 0%, var(--accent-soft) 0%, transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---- Glass surfaces -------------------------------------------------- */
.glass {
    background: var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
}

/* ---- Navbar ------------------------------------------------------------ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}
.navbar-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.01em;
}
.brand img { height: 32px; width: auto; border-radius: 8px; }
.brand-spark { color: var(--accent); font-size: 20px; }
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.nav-links a.active, .nav-links a:hover { color: var(--text); border-color: var(--accent); }
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.mobile-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 10px; }
.language-menu { position: relative; flex-shrink: 0; }
.language-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 52px; height: 40px; padding: 0 10px; border: 1px solid var(--border); color: var(--text); cursor: pointer; }
.language-current { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.language-dropdown { position: absolute; z-index: 1000; top: calc(100% + 9px); right: 0; width: 190px; padding: 7px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface-solid); box-shadow: 0 18px 45px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.language-menu.language-open .language-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.language-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text-muted); text-decoration: none; font-size: 13px; }
.language-option:hover, .language-option.active { background: var(--accent-soft); color: var(--text); }
.language-option small { font-size: 10px; color: var(--text-faint); }


/* ---- Hero ------------------------------------------------------------ */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.08;
}
.hero h1 .accent-text {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p { margin: 16px auto 0; max-width: 480px; color: var(--text-muted); font-size: 16px; }

/* ---- Category filters ---------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px 0 8px; }
.filter-pill {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all .2s ease;
}
.filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- Profile grid & cards ------------------------------------------------ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 32px 0;
}
@media (max-width: 1080px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .profile-card {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }
}

.profile-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
    display: block;
    background: var(--surface-solid);
}
.profile-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.profile-card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity .35s ease;
}
.profile-card:hover::before { opacity: 1; }

.profile-card-image-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}
.profile-card-image-link picture {
    display: block;
    width: 100%;
    height: 100%;
}
.profile-card img, .profile-card .img-fallback {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.profile-card:hover img { transform: scale(1.05); }
.img-fallback {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--surface-strong), var(--surface-solid));
    color: var(--text-faint);
    font-size: 48px;
}

.card-status {
    position: absolute; top: 14px; right: 14px;
    z-index: 3;
    pointer-events: none;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--success);
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
}

.card-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 20px 18px 18px;
    background: linear-gradient(to top, rgba(4,3,8,0.92) 10%, rgba(4,3,8,0.55) 60%, transparent 100%);
}
body[data-theme="white-premium"] .card-info {
    background: linear-gradient(to top, rgba(255,255,255,0.95) 10%, rgba(255,255,255,0.6) 60%, transparent 100%);
}
.card-info h3 { font-size: 19px; font-weight: 700; color: #fff; }
body[data-theme="white-premium"] .card-info h3 { color: #14131f; }
.card-info .subtitle { font-size: 13.5px; font-weight: 500; color: var(--accent); margin-top: 3px; }
.profile-card-action {
    display: flex; align-items: center; justify-content: center;
    position: relative;
    z-index: 1;
    text-decoration: none;
    width: 100%;
    margin-top: 10px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    font: inherit;
    font-size: 13px; font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 22px -10px var(--accent-soft);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.profile-card-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 26px -10px var(--accent-soft);
}
.profile-card-action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.card-badge {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 10px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 600;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: rgba(255,255,255,0.03);
}

/* ---- Load more / pagination --------------------------------------- */
.load-more-wrap { display: flex; justify-content: center; margin: 40px 0 16px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600; font-size: 14.5px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border: none; color: #fff;
    box-shadow: 0 16px 32px -12px var(--accent-soft);
}
.btn-primary:hover { box-shadow: 0 20px 40px -12px var(--accent-soft); }
.btn-full { width: 100%; justify-content: center; padding: 17px; font-size: 16px; }

/* ---- Ad zones -------------------------------------------------------- */
.ad-zone { margin: 28px 0; }
.ad-placeholder {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13.5px;
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-text { color: var(--text-muted); font-size: 14px; }
.copyright { color: var(--text-faint); font-size: 13px; }

/* ---- Breadcrumb ----------------------------------------------------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-faint); margin: 20px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--text-muted); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    margin-bottom: 8px;
}
.back-link:hover { color: var(--text); }

/* ---- Detail page ------------------------------------------------------ */
.detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin: 8px 0 40px;
}
@media (max-width: 900px) { .detail-wrap { grid-template-columns: 1fr; } }

.detail-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.detail-media img, .detail-media .img-fallback { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.detail-status-pill {
    position: absolute; top: 16px; left: 16px;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600;
    background: rgba(4,3,8,0.55);
    backdrop-filter: blur(10px);
    color: #fff;
}
.detail-fav {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(4,3,8,0.45); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2); color: #fff;
}

.detail-panel { padding: 30px; border-radius: var(--radius-lg); }
.detail-panel h1 { font-size: 32px; font-weight: 800; }
.detail-panel .subtitle { color: var(--accent); font-weight: 600; margin-top: 6px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.detail-panel .badge { margin-top: 14px; }
.detail-panel hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.detail-panel h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.detail-panel .about-text { color: var(--text-muted); font-size: 15px; line-height: 1.7; white-space: pre-line; }

.info-list { margin-top: 26px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.info-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 18px;
    font-size: 14.5px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.info-row:last-child { border-bottom: none; }
.info-row .label { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 500; }
.info-row .value { color: var(--text); font-weight: 600; }

.detail-cta { margin-top: 26px; }

/* ---- Empty state ---------------------------------------------------- */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }

/* ---- 404 --------------------------------------------------------------- */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.error-page .code { font-family: var(--font-display); font-size: 96px; font-weight: 800; color: var(--accent); line-height: 1; }

@media (max-width: 720px) {
    .nav-links { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); padding: 8px; flex-direction: column; gap: 4px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 18px 45px rgba(0,0,0,.35); z-index: 999; }
    .nav-links.nav-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; width: 100%; }
    .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .navbar { position: relative; }
    .language-dropdown { position: fixed; top: 58px; right: 12px; width: min(190px, calc(100vw - 24px)); }

    /* Mobile profile detail: preserve the image's real 3:4 ratio instead of
       cropping it to fill the screen. The image is centered, so unused side
       space is intentional. The information card stays readable below it. */
    body.detail-page { overflow-x: hidden; overflow-y: auto; }
    .detail-page .breadcrumb, .detail-page .detail-wrap > .ad-zone { display: none; }
    .detail-page .container { padding-left: 12px; padding-right: 12px; }
    .detail-page .detail-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: auto;
        min-height: 0;
        margin: 10px 0 28px;
        align-items: stretch;
    }
    .detail-page .detail-media {
        width: 100%;
        min-height: 0;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        border-radius: 14px;
        overflow: hidden;
        background: transparent;
    }
    .detail-page .detail-media picture {
        display: block;
        width: min(58vw, 330px);
        max-width: 100%;
        line-height: 0;
    }
    .detail-page .detail-media img,
    .detail-page .detail-media .img-fallback {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: contain;
        object-position: center;
        border-radius: 14px;
    }
    .detail-page .detail-status-pill { top: 7px; left: max(7px, calc((100% - min(58vw, 330px)) / 2 + 7px)); padding: 6px 9px; font-size: 11px; gap: 5px; }
    .detail-page .detail-status-pill .pulse-dot { width: 6px; height: 6px; }
    .detail-page .detail-panel {
        min-width: 0;
        min-height: 0;
        padding: 16px 15px;
        border-radius: 14px;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }
    .detail-page .detail-panel h1 { font-size: clamp(25px, 7vw, 32px); line-height: 1.08; margin: 0; }
    .detail-page .detail-panel .subtitle { font-size: 13px; line-height: 1.3; margin-top: 6px; gap: 5px; }
    .detail-page .detail-panel .subtitle svg { width: 14px; height: 14px; flex-shrink: 0; }
    .detail-page .detail-panel .badge { margin-top: 10px; padding: 4px 8px; font-size: 10px; line-height: 1.15; align-self: flex-start; }
    .detail-page .detail-panel hr { margin: 13px 0; }
    .detail-page .detail-panel h4 { font-size: 14px; margin-bottom: 6px; }
    .detail-page .detail-panel .about-text { font-size: 13px; line-height: 1.5; display: block; overflow: visible; margin: 0; }
    .detail-page .info-list { margin-top: 13px; }
    .detail-page .info-row { padding: 9px 10px; font-size: 12px; min-width: 0; gap: 8px; line-height: 1.25; }
    .detail-page .info-row .label, .detail-page .info-row .value { min-width: 0; }
    .detail-page .detail-cta { margin-top: 16px; padding-top: 0; min-height: 48px; }
    .detail-page .btn-full { min-height: 44px; padding: 10px 12px; font-size: 12px; }
    .detail-page .detail-panel > .ad-zone { display: none; }
}


/* ---- Exclusive 16:9 thumbnail ----------------------------------------- */
.exclusive-thumbnail-wrap { width: 100%; max-width: 1200px; margin: 0 auto 28px; }
.exclusive-thumbnail-link { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #111; border: 1px solid var(--border); }
.exclusive-thumbnail-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.exclusive-thumbnail-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.28)); pointer-events: none; }
.exclusive-thumbnail-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.96); color: #111; box-shadow: 0 8px 28px rgba(0,0,0,.28); transition: transform .18s ease; }
.exclusive-thumbnail-link:hover .exclusive-thumbnail-play { transform: translate(-50%, -50%) scale(1.06); }
.exclusive-thumbnail-play svg { margin-left: 3px; }
@media (max-width: 600px) { .exclusive-thumbnail-wrap { margin-bottom: 22px; } .exclusive-thumbnail-link { border-radius: 12px; } .exclusive-thumbnail-play { width: 52px; height: 52px; } .exclusive-thumbnail-play svg { width: 22px; height: 22px; } }


/* Compact mobile profile cards: keep the existing two-column layout while
   making the cards short enough to show many profiles above the fold. */
@media (max-width: 540px) {
    .profile-card {
        aspect-ratio: 1.18 / 1;
    }
    /* Keep the model's face visible when the compact card crops the 4:5 source image. */
    .profile-card img {
        object-position: center top;
    }
    .profile-card:hover img {
        transform: none;
    }
    .card-info {
        padding: 8px 8px 7px;
    }
    .card-info h3 {
        font-size: 12px;
        line-height: 1.15;
    }
    .card-info .subtitle {
        font-size: 8.5px;
        line-height: 1.15;
        margin-top: 2px;
    }
    .card-badge {
        margin-top: 4px;
        padding: 2px 6px;
        gap: 3px;
        font-size: 8px;
        line-height: 1.1;
    }
    .card-status {
        top: 6px;
        right: 6px;
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
}

@media (max-width: 540px) {
    .navbar { padding: 10px 0; }
    .navbar-inner { gap: 8px; min-width: 0; }
    .brand { min-width: 0; flex: 1 1 auto; gap: 7px; font-size: 17px; white-space: nowrap; }
    .brand img { width: 32px; height: 32px; flex: 0 0 32px; }
    .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
    .navbar-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
    .online-pill { padding: 6px 9px; gap: 5px; font-size: 11px; white-space: nowrap; max-width: 92px; overflow: hidden; }
    .online-pill .pulse-dot { width: 7px; height: 7px; }
    .mobile-toggle, .language-toggle { width: 38px; min-width: 38px; height: 38px; padding: 0; }
    .language-toggle { gap: 3px; }
    .language-current { font-size: 10px; }
}

/* ---- Affiliate product rotators -------------------------------------- */
.affiliate-widget { grid-column: 1 / -1; width: 100%; margin: 2px 0 4px; }
.affiliate-product-link { min-height: 116px; display:flex; align-items:center; gap:16px; padding:12px; border:1px solid var(--border); border-radius:16px; background:var(--surface); box-shadow:var(--shadow-card); overflow:hidden; }
.affiliate-product-image { width:160px; height:96px; object-fit:contain; flex:0 0 auto; border-radius:10px; background:#111; transition:transform .22s ease, opacity .22s ease; }
.affiliate-slide-out { transform:translateX(-22px); opacity:0; }
.affiliate-slide-in { animation:affiliateSlideIn .24s ease both; }
@keyframes affiliateSlideIn { from { transform:translateX(22px); opacity:0; } to { transform:translateX(0); opacity:1; } }
.affiliate-product-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.affiliate-product-copy small { color:var(--text-faint); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.affiliate-product-copy strong { color:var(--text); font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Profile detail affiliate notification: upper-right, clear of the bottom CTA. */
.affiliate-detail-notification { position:fixed; top:76px; right:18px; bottom:auto; z-index:1200; width:min(360px, calc(100vw - 24px)); }
.affiliate-detail-notification a { display:flex; align-items:center; gap:11px; padding:9px 38px 9px 11px; border:1px solid var(--border-strong); border-radius:14px; background:var(--surface-solid); box-shadow:0 14px 38px rgba(0,0,0,.28); }
.affiliate-detail-notification img { width:58px; height:48px; object-fit:contain; flex:0 0 auto; border-radius:8px; background:#111; transition:transform .22s ease,opacity .22s ease; }
.affiliate-detail-notification span { display:flex; flex-direction:column; gap:2px; min-width:0; }
.affiliate-detail-notification small { color:var(--text-faint); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.affiliate-detail-notification strong { color:var(--text); font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.affiliate-detail-close { position:absolute; top:5px; right:6px; width:25px; height:25px; border:0; border-radius:50%; background:transparent; color:var(--text-muted); font-size:20px; line-height:25px; padding:0; cursor:pointer; z-index:2; }
.affiliate-detail-close:hover { background:var(--surface-soft); color:var(--text); }
@media (max-width:600px){.affiliate-widget{margin:0}.affiliate-product-link{min-height:0;padding:10px;gap:10px;border-radius:14px;display:flex;flex-direction:column;align-items:stretch}.affiliate-product-image{width:100%;height:170px;object-fit:contain;border-radius:10px}.affiliate-product-copy{padding:2px 3px 4px}.affiliate-product-copy strong{font-size:14px;line-height:1.25}.affiliate-detail-notification{top:72px;right:12px;bottom:auto;width:calc(100vw - 24px)}.affiliate-detail-notification a{padding:9px 38px 9px 10px}.affiliate-detail-notification img{width:64px;height:52px}.affiliate-detail-close{top:4px;right:5px}}
