@charset "UTF-8";
/* ==========================================================================
   夜幕影视 YEJU — maccms10 template stylesheet
   Design tokens are declared first. Override them to re-skin the whole site.
   ========================================================================== */

:root {
    --ink: #0c0e14;
    --ink-2: #090b12;
    --surface: #171923;
    --surface-2: #20232f;
    --surface-3: #262a38;
    --line: #20232f;
    --line-strong: #333848;
    --text: #f7f7fb;
    --text-soft: #d4d5dc;
    --muted: #a9acba;
    --dim: #747785;
    --gold: #1683bd;
    --gold-strong: #8bd7f5;
    --gold-soft: rgba(22, 131, 189, 0.12);
    --accent: #1683bd;
    --accent-2: #8bd7f5;
    --positive: #45d69a;
    --green: #45d69a;
    --rose: #fc4274;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shell: 1480px;
    --gutter: 20px;
    --font-sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --font-display: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1100px 520px at 12% -8%, rgba(231, 181, 99, 0.07), transparent 62%),
        radial-gradient(900px 600px at 96% 8%, rgba(96, 127, 178, 0.08), transparent 60%),
        var(--ink);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, dl, dd, figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
::selection { background: var(--gold); color: #17120a; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #262b38; border-radius: 20px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #343a4b; }

.shell {
    width: min(var(--shell), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hidden { display: none !important; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid transparent;
    background: rgba(8, 9, 13, 0.68);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(8, 9, 13, 0.94);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: none;
    filter: drop-shadow(0 6px 18px rgba(231, 181, 99, 0.22));
}

.brand-name {
    display: block;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.1;
    color: #fff;
}

.brand-en {
    display: block;
    margin-top: 3px;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.36em;
    color: var(--muted);
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 6px;
}

.nav a {
    position: relative;
    display: block;
    padding: 9px 0;
    font-size: 14px;
    color: #b9c0cd;
    white-space: nowrap;
    transition: color 0.25s var(--ease);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width 0.28s var(--ease);
}

.nav a:hover,
.nav a.is-active { color: #fff; }
.nav a:hover::after,
.nav a.is-active::after { width: 18px; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-soft);
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.icon-btn:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.icon-btn svg { width: 18px; height: 18px; }

.search-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 186px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 13px;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.search-trigger:hover { border-color: var(--line-strong); color: var(--text-soft); }
.search-trigger svg { width: 15px; height: 15px; flex: none; }
.search-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger kbd {
    margin-left: auto;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--dim);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 15px 0 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 13px;
    color: var(--text-soft);
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.user-chip:hover { border-color: var(--line-strong); color: #fff; }
.user-chip img,
.user-chip .avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.user-chip--login { padding: 0 16px; }

.mobile-toggle { display: none; }

/* --------------------------------------------------------------------------
   2. Search layer
   -------------------------------------------------------------------------- */

.search-layer {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16vh 24px 24px;
    background: rgba(7, 9, 14, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), visibility 0.28s;
}

.search-layer.is-open { opacity: 1; visibility: visible; }

.search-layer-inner {
    width: min(780px, 100%);
    transform: translateY(-12px);
    transition: transform 0.35s var(--ease);
}

.search-layer.is-open .search-layer-inner { transform: translateY(0); }

.search-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--muted);
    text-transform: uppercase;
}

.search-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.search-close:hover { color: #fff; }

.search-form {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line-strong);
}

.search-form svg { width: 26px; height: 26px; color: var(--gold); flex: none; }

.search-form input {
    flex: 1;
    min-width: 0;
    height: 76px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

.search-form input::placeholder { color: #4c5361; }

.search-form button {
    flex: none;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: #1a1408;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.search-hot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--muted);
}

.search-hot a {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    transition: border-color 0.2s, color 0.2s;
}

.search-hot a:hover { border-color: var(--gold); color: var(--gold); }

/* --------------------------------------------------------------------------
   3. Mobile drawer
   -------------------------------------------------------------------------- */

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 150;
    visibility: hidden;
    pointer-events: none;
}

.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }

.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.7);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }

.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100%;
    padding: 26px 24px;
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
}

.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }

.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.mobile-nav { display: grid; gap: 2px; }

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    color: var(--text-soft);
}

.mobile-nav a:hover { color: var(--gold); }
.mobile-nav a small { font-size: 10px; letter-spacing: 0.18em; color: var(--dim); }

.mobile-drawer-foot {
    margin-top: 30px;
    display: grid;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

.hero { padding-top: 26px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
}

.hero-slider {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.hero-slider:not(.is-ready) .hero-slide:first-child { opacity: 1; visibility: visible; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center 22%;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 7s linear;
}

.hero-slide.is-active .hero-bg { transform: scale(1); }

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 14, 0.92) 0%, rgba(7, 9, 14, 0.64) 38%, rgba(7, 9, 14, 0.12) 72%, rgba(7, 9, 14, 0.38) 100%),
        linear-gradient(0deg, rgba(7, 9, 14, 0.94) 0%, rgba(7, 9, 14, 0.05) 52%, rgba(7, 9, 14, 0.22) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, 88%);
    padding: 56px 54px 62px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--gold);
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-size: clamp(38px, 4.6vw, 62px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.hero-sub {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 20px;
    font-size: 13px;
    color: #c9cfda;
}

.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #6d7482; }

.hero-score {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--gold);
    font-weight: 700;
}

.hero-score b { font-size: 22px; line-height: 1; font-family: var(--font-display); }
.hero-score small { font-size: 10px; letter-spacing: 0.08em; color: rgba(231, 181, 99, 0.7); }

.hero-desc {
    display: -webkit-box;
    margin-top: 16px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.8;
    color: #a9b0bd;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--gold); color: #171208; }
.btn-primary:hover { background: var(--gold-strong); }

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #e8ebf1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08); }

.btn-dark { background: #1d2230; color: #e9edf5; }
.btn-dark:hover { background: #262c3d; }

.btn-sm { height: 36px; padding: 0 16px; font-size: 12px; }
.btn-block { width: 100%; }

.hero-controls {
    position: absolute;
    right: 26px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-dots { display: flex; align-items: center; gap: 6px; }

.hero-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.32);
    transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.hero-dot.is-active { width: 24px; background: var(--gold); }

.hero-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

.hero-nav:hover { border-color: var(--gold); color: var(--gold); }
.hero-nav svg { width: 14px; height: 14px; }

/* Rank panel */

.rank-panel {
    display: flex;
    flex-direction: column;
    padding: 24px 22px 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--surface);
}

.rank-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.rank-head h2 { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; }
.rank-head em { font-style: normal; font-size: 9px; letter-spacing: 0.22em; color: var(--dim); }

.rank-list { flex: 1; margin-top: 6px; }

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.rank-item:last-child { border-bottom: 0; }

.rank-no {
    width: 22px;
    flex: none;
    font-family: var(--font-display);
    font-size: 17px;
    font-style: italic;
    color: #5b6272;
    text-align: center;
}

.rank-item:nth-child(-n+3) .rank-no { color: var(--gold); }

.rank-body { min-width: 0; flex: 1; }

.rank-name {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 550;
    color: #d6dbe5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-name:hover { color: var(--gold); }

.rank-meta { margin-top: 2px; font-size: 10px; color: var(--dim); }

.rank-score {
    flex: none;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--gold);
}

.rank-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.rank-more:hover { color: var(--gold); }

/* Update ticker */

.update-ticker {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.ticker-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(231, 181, 99, 0.12);
}

.ticker-track {
    display: flex;
    gap: 26px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.ticker-track::-webkit-scrollbar { display: none; }

.ticker-track a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-soft);
}

.ticker-track a:hover { color: var(--gold); }
.ticker-track a em { font-style: normal; font-size: 10px; color: var(--dim); }

/* --------------------------------------------------------------------------
   5. Section + cards
   -------------------------------------------------------------------------- */

.section { margin-top: 64px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.section-title {
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.section-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    padding-bottom: 3px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--muted);
    transition: color 0.25s var(--ease);
}

.more-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.more-link:hover { color: var(--gold); }
.more-link:hover svg { transform: translateX(4px); }

.poster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
}

.poster-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.poster-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }

.card { min-width: 0; }

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, #171b26, #0e1118);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s var(--ease), filter 0.4s var(--ease);
}

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 40%, rgba(7, 9, 14, 0.72) 100%);
    opacity: 0.75;
    transition: opacity 0.35s var(--ease);
}

.card:hover .card-poster img { transform: scale(1.055); filter: brightness(1.06); }
.card:hover .card-poster::after { opacity: 0.95; }

.card-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    max-width: calc(100% - 60px);
    overflow: hidden;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(8, 9, 13, 0.68);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 10px;
    font-weight: 500;
    color: #f2f4f8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-badge--gold { background: var(--gold); color: #171208; font-weight: 700; }

.card-score {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(8, 9, 13, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

.card-score small { font-family: var(--font-sans); font-size: 8px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(10, 11, 16, 0.35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.9);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.card-play svg { width: 17px; height: 17px; margin-left: 2px; }
.card:hover .card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px 11px 10px;
    background: linear-gradient(0deg, rgba(7, 9, 14, 0.9), transparent);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.66);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-title {
    margin-top: 11px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.45;
    color: #e6e9ef;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.22s var(--ease);
}

.card-title a:hover { color: var(--gold); }

.card-meta {
    margin-top: 3px;
    overflow: hidden;
    font-size: 11px;
    color: var(--dim);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta span + span::before {
    content: "·";
    margin: 0 5px;
    color: #4d5462;
}

/* Wide feature cards */

.feature-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-card:first-child { grid-row: span 2; min-height: 100%; }

.feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.feature-card:hover img { transform: scale(1.05); }

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 9, 14, 0.94) 0%, rgba(7, 9, 14, 0.36) 52%, rgba(7, 9, 14, 0.06) 100%);
}

.feature-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px;
}

.feature-kicker { font-size: 9px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }
.feature-title { margin-top: 7px; font-size: 20px; font-weight: 650; line-height: 1.35; }
.feature-card:first-child .feature-title { font-size: 28px; }
.feature-desc {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.7;
    color: #a9b0bd;
}

/* Latest updates */

.latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
}

.latest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

.latest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.latest-thumb {
    position: relative;
    flex: none;
    width: 102px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface-3);
}

.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-thumb span {
    position: absolute;
    left: 5px;
    bottom: 5px;
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.66);
    font-size: 9px;
    color: #fff;
}

.latest-body { min-width: 0; flex: 1; }

.latest-name {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 550;
    color: #dde1e9;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-name:hover { color: var(--gold); }

.latest-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-size: 10px;
    color: var(--dim);
    white-space: nowrap;
}

.latest-meta .sep { width: 2px; height: 2px; border-radius: 50%; background: #4b5260; }

.latest-side {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--surface);
}

.latest-side h3 { font-size: 15px; font-weight: 650; letter-spacing: 0.04em; }

.side-rank { margin-top: 12px; }

.side-rank li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.side-rank li:last-child { border-bottom: 0; }
.side-rank .no { width: 18px; font-family: var(--font-display); font-size: 14px; color: var(--dim); }
.side-rank li:nth-child(-n+3) .no { color: var(--gold); }
.side-rank .name { flex: 1; min-width: 0; overflow: hidden; font-size: 12px; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.side-rank .name:hover { color: var(--gold); }
.side-rank .hits { font-size: 9px; color: var(--dim); }

/* --------------------------------------------------------------------------
   6. Editorial / articles / topics on home
   -------------------------------------------------------------------------- */

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 20px;
}

.article-feature {
    position: relative;
    display: block;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.article-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.article-feature:hover img { transform: scale(1.04); }
.article-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 9, 14, 0.96), rgba(7, 9, 14, 0.12) 70%); }

.article-feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; }
.article-feature-body .tag { display: inline-block; padding: 3px 9px; border-radius: 4px; background: var(--gold); color: #171208; font-size: 10px; font-weight: 700; }
.article-feature-body h3 { margin-top: 12px; font-size: 24px; font-weight: 650; line-height: 1.4; }
.article-feature-body p { display: -webkit-box; margin-top: 8px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; color: #a9b0bd; }

.article-mini-list { display: grid; gap: 12px; }

.article-mini {
    display: flex;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.018);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.article-mini:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.035); }
.article-mini img { flex: none; width: 92px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface-3); }
.article-mini-body { min-width: 0; }
.article-mini-body h4 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; font-weight: 550; line-height: 1.55; color: #dde1e9; }
.article-mini-body time { display: block; margin-top: 6px; font-size: 10px; color: var(--dim); }

.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.topic-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.topic-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.topic-card:hover img { transform: scale(1.05); }
.topic-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 14, 0.92), rgba(7, 9, 14, 0.16)); }
.topic-card-body { position: relative; z-index: 2; padding: 32px; }
.topic-card-body span { font-size: 9px; letter-spacing: 0.24em; color: var(--gold); text-transform: uppercase; }
.topic-card-body h3 { margin-top: 9px; font-size: 25px; font-weight: 650; }
.topic-card-body p { display: -webkit-box; max-width: 76%; margin-top: 8px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; color: #a9b0bd; }

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 90px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent), #06070a;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, minmax(0, 0.7fr));
    gap: 48px;
    padding: 58px 0 44px;
}

.footer-brand p {
    max-width: 330px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.9;
    color: #7d8595;
}

.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badges span {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 9px;
    letter-spacing: 0.08em;
    color: var(--dim);
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #d9dee7;
    text-transform: uppercase;
}

.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: 12px; color: #818999; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 26px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: #656d7c;
}

.footer-bottom a { color: #8991a1; }
.footer-bottom a:hover { color: var(--gold); }

.back-top {
    position: fixed;
    right: 26px;
    bottom: 28px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(16, 19, 27, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s, color 0.25s, border-color 0.25s;
}

.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { border-color: var(--gold); color: var(--gold); }
.back-top svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   8. Shared page furniture
   -------------------------------------------------------------------------- */

.page-hero {
    padding: 38px 0 30px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 11px;
    color: var(--dim);
}

.breadcrumb a { color: #8c94a4; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { color: #454c59; }

.page-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.page-title {
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 720;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.page-desc { max-width: 720px; margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--muted); }

.page-count { font-size: 12px; color: var(--dim); }
.page-count b { color: var(--gold); font-family: var(--font-display); font-size: 17px; }

.section--tight { margin-top: 34px; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state img { width: 74px; opacity: 0.5; }
.empty-state h3 { margin-top: 18px; font-size: 17px; font-weight: 600; }
.empty-state p { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Filters */

.filter-panel {
    margin-top: 24px;
    padding: 6px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.016);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.filter-row:last-child { border-bottom: 0; }

.filter-label {
    flex: none;
    width: 54px;
    padding-top: 5px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--dim);
}

.filter-links { display: flex; flex-wrap: wrap; gap: 4px 3px; }

.filter-links a {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    color: #a2aab8;
    transition: color 0.2s, background 0.2s;
}

.filter-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.filter-links a.is-active { background: var(--gold); color: #171208; font-weight: 600; }

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 26px 0 20px;
}

.sort-links { display: flex; gap: 6px; }

.sort-links a {
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: #a2aab8;
}

.sort-links a:hover { border-color: var(--line-strong); color: #fff; }
.sort-links a.is-active { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

/* Pagination — styles both maccms's $pages output and custom lists */

.mac_pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 44px;
    font-size: 12px;
}

.mac_pages a,
.mac_pages span,
.mac_pages em,
.mac_pages input,
.mac_pages .page_tip,
.mac_pages .page_list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: #aab2c0;
    font-style: normal;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.mac_pages a:hover { border-color: var(--gold); color: var(--gold); }
.mac_pages .current,
.mac_pages .active,
.mac_pages span.current { border-color: var(--gold); background: var(--gold); color: #171208; font-weight: 700; }
.mac_pages .page_tip { border: 0; background: none; color: var(--dim); }
.mac_pages .page_list { display: flex; flex-wrap: wrap; gap: 6px; }

.page-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    color: var(--dim);
}

.page-jump input {
    width: 52px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    text-align: center;
    outline: 0;
}

/* --------------------------------------------------------------------------
   9. Detail page
   -------------------------------------------------------------------------- */

.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}

.detail-backdrop {
    position: absolute;
    inset: -80px;
    z-index: -1;
    background-position: center 25%;
    background-size: cover;
    filter: blur(60px) saturate(120%);
    opacity: 0.26;
    transform: scale(1.1);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 9, 13, 0.55), var(--ink) 78%);
}

.detail-wrap { padding: 40px 0 44px; }

.detail-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
}

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--surface-3);
    box-shadow: var(--shadow);
}

.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-poster .badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 9px;
    border-radius: 5px;
    background: var(--gold);
    color: #171208;
    font-size: 10px;
    font-weight: 700;
}

.detail-main { padding-top: 4px; }

.detail-title {
    font-size: clamp(32px, 3.6vw, 50px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: 0.005em;
}

.detail-sub {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 13px;
    margin-top: 20px;
    font-size: 13px;
    color: #b8bfcc;
}

.detail-meta .chip {
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    color: #c2c8d4;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 2px;
}

.score-badge .ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--score, 8) * 36deg), rgba(255, 255, 255, 0.08) 0);
}

.score-badge .ring::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--ink-2);
}

.score-badge .ring b {
    position: relative;
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--gold);
}

.score-badge .ring b small { font-size: 9px; color: var(--dim); }
.score-badge p { font-size: 10px; line-height: 1.5; color: var(--dim); }
.score-badge p strong { display: block; font-size: 11px; font-weight: 500; color: var(--text-soft); }

.detail-desc {
    display: -webkit-box;
    max-width: 860px;
    margin-top: 20px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13.5px;
    line-height: 1.85;
    color: #aab2c0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.detail-actions .btn { height: 44px; }
.detail-actions .icon-btn { width: 44px; height: 44px; }

.detail-actions .is-on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 30px;
    max-width: 820px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
}

.fact { display: flex; gap: 12px; min-width: 0; }
.fact dt { flex: none; width: 38px; color: var(--dim); }
.fact dd { min-width: 0; color: #c4cad5; }
.fact dd a { color: #c4cad5; }
.fact dd a:hover { color: var(--gold); }

/* Playlist */

.playlist-panel {
    margin-top: 44px;
    padding: 26px 28px 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), var(--surface);
}

.playlist-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.playlist-head h2 { font-size: 19px; font-weight: 650; letter-spacing: 0.03em; }
.playlist-head .hint { font-size: 11px; color: var(--muted); }

.source-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.source-tab {
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 12px;
    color: #aab2c0;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.source-tab:hover { border-color: var(--line-strong); color: #fff; }
.source-tab.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }

.source-panel { display: none; }
.source-panel.is-active { display: block; }

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 4px;
}

.episode-grid::-webkit-scrollbar { width: 6px; }
.episode-grid.is-expanded { max-height: none; overflow: visible; }

.episode {
    display: block;
    overflow: hidden;
    padding: 9px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.018);
    font-size: 12px;
    color: #b7becb;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.episode:hover { border-color: rgba(231, 181, 99, 0.6); color: var(--gold); background: var(--gold-soft); }
.episode.is-active { border-color: var(--gold); background: var(--gold); color: #171208; font-weight: 600; }

.playlist-empty { padding: 24px 0; font-size: 13px; color: var(--muted); }

.playlist-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    border: 0;
    background: none;
    font-size: 12px;
    color: var(--muted);
}

.playlist-more:hover { color: var(--gold); }

/* Detail content / tabs */

.content-panel {
    margin-top: 26px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.018);
}

.content-panel h2 { font-size: 18px; font-weight: 650; letter-spacing: 0.03em; }

.prose {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.95;
    color: #aeb5c2;
    word-break: break-word;
}

.prose p { margin-bottom: 14px; }
.prose img { max-width: 100%; height: auto; margin: 16px auto; border-radius: 14px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 18px 0; padding: 12px 18px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: #c8ceda; }

/* Comments */

.comment-panel {
    margin-top: 26px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.018);
}

.comment-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.comment-head h2 { font-size: 18px; font-weight: 650; }
.comment-head span { font-size: 11px; color: var(--dim); }

.mac_comment { min-height: 80px; font-size: 13px; color: #b6bdc9; }
.mac_comment a { color: var(--gold); }

.cmt-compose { margin-bottom: 24px; }

.cmt_form textarea,
.comment_content {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
    resize: vertical;
}

.cmt_form textarea:focus { border-color: rgba(231, 181, 99, 0.55); }

.cmt-compose-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cmt-compose-foot .comment_remaining,
.cmt-compose-foot .cmt-compose-hint { font-size: 10px; color: var(--dim); }
.cmt-compose-foot .comment_remaining { color: var(--gold); }
.cmt-compose-foot .mac_verify,
.cmt-compose-foot .comment-verify {
    width: 80px;
    height: 34px;
    margin-left: auto;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    outline: 0;
    color: #fff;
}
.cmt-compose-foot .mac_verify_img { width: 82px; height: 34px; border-radius: 5px; cursor: pointer; }
.cmt-compose-foot .comment_submit { margin-left: auto; }
.cmt-compose-foot .mac_verify + .mac_verify_img + .comment_submit { margin-left: 0; }

.cmt-list { display: grid; gap: 18px; }
.cmt-item { display: flex; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.cmt-item:first-child { border-top: 0; padding-top: 0; }

.cmt-avatar { flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--surface-3); }
.cmt-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cmt-main { min-width: 0; flex: 1; }
.cmt-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmt-meta strong { font-size: 12px; font-weight: 600; color: var(--text-soft); }
.cmt-meta time { font-size: 10px; color: var(--dim); }
.cmt-text { margin-top: 6px; font-size: 13px; line-height: 1.8; color: #b6bdc9; word-break: break-word; }
.cmt-text img { display: inline-block; width: 20px; vertical-align: -4px; }
.cmt-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.cmt-actions a { color: var(--muted); }
.cmt-actions a:hover { color: var(--gold); }
.cmt-actions em { font-style: normal; color: var(--gold); }

.cmt-replies { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.cmt-reply { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.045); }
.cmt-reply:first-child { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   10. Play page
   -------------------------------------------------------------------------- */

.watch-top { padding: 24px 0 0; }

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.player-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-stage iframe,
.player-stage .MacPlayer,
.player-stage > embed,
.player-stage > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.player-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    background: radial-gradient(600px 300px at 50% 40%, rgba(231, 181, 99, 0.08), transparent), #05060a;
    text-align: center;
}

.player-fallback img { width: 120px; border-radius: 12px; opacity: 0.8; }
.player-fallback h3 { font-size: 16px; font-weight: 600; }
.player-fallback p { font-size: 12px; color: var(--muted); }

.watch-info {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 2px 4px;
}

.watch-title { font-size: 24px; font-weight: 700; line-height: 1.3; }
.watch-title span { color: var(--gold); font-weight: 500; }
.watch-sub { margin-top: 7px; font-size: 12px; color: var(--muted); }

.watch-tools { display: flex; flex-wrap: wrap; gap: 8px; }

.watch-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--line);
}

.watch-actions .btn { height: 38px; padding: 0 16px; font-size: 12px; }

.watch-side {
    display: grid;
    gap: 16px;
}

.side-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.side-card h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.06em;
}

.side-card h3 a { font-size: 10px; font-weight: 400; color: var(--muted); }

.side-vod { display: flex; gap: 12px; }

.side-vod-poster {
    flex: none;
    width: 92px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface-3);
}

.side-vod-poster img { width: 100%; height: 100%; object-fit: cover; }
.side-vod-body { min-width: 0; font-size: 11px; color: var(--muted); }
.side-vod-body h4 { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.side-vod-body p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-height: 1.7; }

.side-episode-list { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }

.side-episode {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 12px;
    color: #a9b0bd;
}

.side-episode:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.side-episode.is-active { background: var(--gold-soft); color: var(--gold); }
.side-episode em { width: 18px; flex: none; font-style: normal; font-size: 10px; color: var(--dim); }
.side-episode span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.watch-content {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.018);
}

/* --------------------------------------------------------------------------
   11. Search page
   -------------------------------------------------------------------------- */

.search-page-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    height: 56px;
    padding: 0 8px 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
}

.search-page-form svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: none;
    font-size: 15px;
    color: #fff;
}

.search-page-form input::placeholder { color: var(--dim); }

.search-page-form button {
    flex: none;
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: #171208;
    font-size: 13px;
    font-weight: 700;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 18px;
    font-size: 12px;
    color: var(--muted);
}

.search-result-meta b { color: var(--gold); }

/* --------------------------------------------------------------------------
   12. Article pages
   -------------------------------------------------------------------------- */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.article-page { padding-top: 34px; }

.article-page-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }

.article-page-head h1 { font-size: clamp(28px, 3vw, 42px); font-weight: 720; line-height: 1.3; }

.article-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--dim);
}

.article-info a { color: var(--gold); }

.article-cover {
    margin: 26px 0 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }

.article-body {
    margin-top: 26px;
    font-size: 15px;
    line-height: 2.05;
    color: #b6bdc9;
    word-break: break-word;
}

.article-body p { margin-bottom: 20px; }
.article-body h2 { margin: 34px 0 14px; font-size: 22px; font-weight: 650; color: var(--text); }
.article-body h3 { margin: 28px 0 12px; font-size: 18px; font-weight: 600; color: var(--text); }
.article-body img { max-width: 100%; height: auto; margin: 20px auto; border-radius: 14px; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 7px; }
.article-body blockquote { margin: 22px 0; padding: 14px 20px; border-left: 2px solid var(--gold); background: var(--gold-soft); color: #cdd2dc; }

.article-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.article-pager a { max-width: 46%; overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.article-pager a:hover { color: var(--gold); }

.article-aside { display: grid; gap: 18px; }

.aside-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.aside-card h3 { margin-bottom: 14px; font-size: 14px; font-weight: 650; letter-spacing: 0.04em; }

.aside-article {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.aside-article:last-child { border-bottom: 0; }
.aside-article img { flex: none; width: 70px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-3); }
.aside-article h4 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; font-weight: 500; line-height: 1.55; color: #cfd4de; }
.aside-article:hover h4 { color: var(--gold); }

.article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }

.article-card { min-width: 0; }

.article-card-pic {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-3);
}

.article-card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.article-card:hover .article-card-pic img { transform: scale(1.05); }
.article-card-cat { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(8, 9, 13, 0.7); font-size: 9px; color: var(--gold); }
.article-card h3 { display: -webkit-box; margin-top: 11px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; font-weight: 550; line-height: 1.55; color: #dfe3eb; }
.article-card:hover h3 { color: var(--gold); }
.article-card time { display: block; margin-top: 6px; font-size: 10px; color: var(--dim); }

/* --------------------------------------------------------------------------
   13. Topic / actor
   -------------------------------------------------------------------------- */

.topic-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.topic-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0.35; filter: blur(2px); }
.topic-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(8, 9, 13, 0.66) 55%, var(--ink) 100%), linear-gradient(0deg, var(--ink), transparent); }
.topic-hero-inner { position: relative; z-index: 1; padding: 62px 0 54px; }
.topic-kicker { font-size: 10px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.topic-hero h1 { margin-top: 12px; font-size: clamp(34px, 4.4vw, 58px); font-weight: 740; line-height: 1.16; }
.topic-hero p { max-width: 720px; margin-top: 14px; font-size: 13px; line-height: 1.9; color: #aab2c0; }
.topic-hero .meta { display: flex; gap: 14px; margin-top: 18px; font-size: 11px; color: var(--dim); }

.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.topic-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 190px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.topic-item-pic { position: relative; overflow: hidden; background: var(--surface-3); }
.topic-item-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.topic-item:hover .topic-item-pic img { transform: scale(1.05); }
.topic-item-body { padding: 22px 22px 18px; }
.topic-item-body h3 { font-size: 20px; font-weight: 650; line-height: 1.35; }
.topic-item-body h3:hover { color: var(--gold); }
.topic-item-body p { display: -webkit-box; margin-top: 9px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 12px; line-height: 1.8; color: var(--muted); }
.topic-item-meta { display: flex; gap: 12px; margin-top: 14px; font-size: 10px; color: var(--dim); }

.actor-hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding: 44px 0; }
.actor-photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-3); }
.actor-photo img { width: 100%; height: 100%; object-fit: cover; }
.actor-info h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 720; }
.actor-info .en { margin-top: 6px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; color: var(--muted); }
.actor-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.actor-facts span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: #b6bdc9; }
.actor-bio { margin-top: 22px; font-size: 13.5px; line-height: 1.95; color: #aab2c0; }

/* --------------------------------------------------------------------------
   14. Auth pages
   -------------------------------------------------------------------------- */

.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 78px);
}

.auth-art {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 500px at 30% 20%, rgba(231, 181, 99, 0.2), transparent 60%),
        linear-gradient(135deg, #12151f 0%, #08090d 70%);
}

.auth-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.03) 78px 79px),
        repeating-linear-gradient(0deg, transparent 0 78px, rgba(255, 255, 255, 0.03) 78px 79px);
    -webkit-mask-image: radial-gradient(circle at 40% 42%, #000, transparent 72%);
    mask-image: radial-gradient(circle at 40% 42%, #000, transparent 72%);
}

.auth-art-inner {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 12%;
}

.auth-art-inner .mark { width: 54px; height: 54px; opacity: 0.9; }
.auth-art-inner blockquote { margin-top: 24px; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.auth-art-inner cite { display: block; margin-top: 18px; font-style: normal; font-size: 10px; letter-spacing: 0.24em; color: var(--gold); text-transform: uppercase; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: min(400px, 100%); }
.auth-card .brand { margin-bottom: 28px; }
.auth-card h1 { font-size: 28px; font-weight: 720; }
.auth-card > p { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

.auth-form { margin-top: 26px; display: grid; gap: 14px; }

.field label { display: block; margin-bottom: 7px; font-size: 11px; letter-spacing: 0.06em; color: #9ca4b3; }

.field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    background: rgba(255, 255, 255, 0.025);
    font-size: 14px;
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.field input:focus { border-color: rgba(231, 181, 99, 0.6); background: rgba(231, 181, 99, 0.04); }

.field-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.field-row img { width: 108px; height: 46px; border-radius: 12px; cursor: pointer; object-fit: cover; background: var(--surface-3); }

.auth-links { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.auth-links a { color: var(--gold); }

.auth-note { margin-top: 18px; font-size: 11px; line-height: 1.8; color: var(--dim); }

/* --------------------------------------------------------------------------
   15. Member center
   -------------------------------------------------------------------------- */

.member-page { padding: 36px 0 20px; }

.member-grid { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 26px; align-items: start; }

.member-side {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.member-profile { padding: 24px 20px; border-bottom: 1px solid var(--line); text-align: center; }

.member-avatar {
    width: 74px;
    height: 74px;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid rgba(231, 181, 99, 0.5);
    border-radius: 50%;
    background: var(--surface-3);
}

.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-profile h2 { margin-top: 12px; font-size: 17px; font-weight: 650; }
.member-profile p { margin-top: 3px; font-size: 10px; letter-spacing: 0.08em; color: var(--gold); }

.member-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.member-stats div { padding: 12px 6px; text-align: center; border-right: 1px solid var(--line); }
.member-stats div:last-child { border-right: 0; }
.member-stats b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.member-stats span { font-size: 10px; color: var(--dim); }

.member-nav { display: grid; padding: 8px; }
.member-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: #a7afbd; }
.member-nav a:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.member-nav a.is-active { background: var(--gold-soft); color: var(--gold); }
.member-nav svg { width: 16px; height: 16px; opacity: 0.85; }

.member-main { min-width: 0; }

.member-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.member-head h1 { font-size: 26px; font-weight: 700; }
.member-head p { margin-top: 4px; font-size: 12px; color: var(--muted); }

.member-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.stat-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent), var(--surface);
}

.stat-card span { font-size: 11px; color: var(--muted); }
.stat-card b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 30px; color: var(--gold); line-height: 1; }
.stat-card small { display: block; margin-top: 8px; font-size: 10px; color: var(--dim); }

.member-panel { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.016); }
.member-panel h3 { margin-bottom: 14px; font-size: 15px; font-weight: 650; }

.history-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.member-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.member-table th { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; color: var(--dim); text-align: left; }
.member-table td { padding: 12px; border-bottom: 1px solid var(--line); color: #b6bdc9; }
.member-table tr:last-child td { border-bottom: 0; }
.member-table a { color: var(--gold); }

/* --------------------------------------------------------------------------
   16. Gbook / map / status
   -------------------------------------------------------------------------- */

.gbook-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; align-items: start; padding-top: 32px; }

.gbook-form-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gbook-form-card h2 { font-size: 18px; font-weight: 650; }
.gbook-form-card p { margin-top: 6px; font-size: 12px; color: var(--muted); }

.gbook-textarea {
    width: 100%;
    min-height: 160px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
    resize: vertical;
}

.gbook-textarea:focus { border-color: rgba(231, 181, 99, 0.55); }

.gbook-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.gbook-form-foot .remaining { font-size: 11px; color: var(--dim); }
.gbook-form-foot .remaining b { color: var(--gold); }

.gbook-list { margin-top: 26px; display: grid; gap: 12px; }

.gbook-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.018); }
.gbook-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gbook-item-head b { font-size: 13px; font-weight: 600; }
.gbook-item-head time { font-size: 10px; color: var(--dim); }
.gbook-item p { margin-top: 8px; font-size: 13px; line-height: 1.85; color: #b3bac6; }
.gbook-reply { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--gold-soft); border-radius: 0 6px 6px 0; font-size: 12px; line-height: 1.8; color: #c6ccd7; }
.gbook-reply b { color: var(--gold); }

.map-section { margin-top: 36px; }
.map-section h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; }
.map-section h2::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--gold); }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.map-links a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: #a8b0be; }
.map-links a:hover { border-color: var(--gold); color: var(--gold); }

.status-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 78px); padding: 40px 22px; }
.status-card { width: min(560px, 100%); padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.status-code { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--gold); }
.status-card h1 { margin-top: 14px; font-size: 22px; font-weight: 650; }
.status-card p { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.status-card .btn { margin-top: 22px; }
.status-card form { margin-top: 20px; display: flex; gap: 8px; }

/* Actor grid */

.actor-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 18px;
    margin-top: 30px;
}

.actor-card { min-width: 0; text-align: center; }

.actor-card-photo {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-3);
}

.actor-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.actor-card:hover .actor-card-photo img { transform: scale(1.05); }

.actor-card-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #dfe3eb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actor-card:hover .actor-card-name { color: var(--gold); }

.actor-card-meta {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    font-size: 10px;
    color: var(--dim);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Report popup fragment (loaded by MAC.Gbook.Report) */

.report-box { padding: 22px; color: var(--text); background: var(--surface); border-radius: 16px; }
.report-title { margin-bottom: 12px; font-size: 14px; font-weight: 600; }

.report-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: rgba(255, 255, 255, 0.025);
    font-size: 13px;
    line-height: 1.75;
    color: var(--text);
    resize: vertical;
}

.report-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.report-foot .mac_verify,
.report-foot .gbook-verify { width: 80px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: #fff; outline: 0; }
.gbook-form-foot .gbook-verify { width: 92px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: #fff; outline: 0; }
.report-foot .mac_verify_img { width: 82px; height: 34px; border-radius: 5px; cursor: pointer; }
.report-foot .remaining { margin-left: auto; font-size: 10px; color: var(--dim); }

/* maccms home.js popups (login / message) */

.mac_pop_bg,
.mac_pop_msg_bg {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 5, 8, 0.74);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
}

.mac_pop {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 201;
    width: 400px;
    max-width: calc(100vw - 32px);
    max-height: 84vh;
    height: auto !important;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translate(-50%, -50%);
    display: none;
}

.mac_pop .pop_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.mac_pop .pop_top h2 { font-size: 15px; font-weight: 650; }
.mac_pop .pop_close { cursor: pointer; color: var(--muted); font-size: 14px; }
.mac_pop .pop_close:hover { color: #fff; }
.mac_pop .pop_content { max-height: calc(84vh - 56px); overflow-y: auto; padding: 20px; }

.mac_pop_msg {
    position: fixed;
    left: 50%;
    top: 18%;
    z-index: 201;
    width: 220px;
    height: auto !important;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
    text-align: center;
    font-size: 13px;
    display: none;
}

.ajax-login-hint { margin-bottom: 16px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.ajax-login-form { display: grid; gap: 12px; }
.ajax-login-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 11px; color: var(--muted); }
.ajax-login-links a { color: var(--gold); }

.ajax-user-head { display: flex; align-items: center; gap: 12px; }
.ajax-user-avatar { width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background: var(--surface-3); flex: none; }
.ajax-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ajax-user-head strong { font-size: 15px; }
.ajax-user-head p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.ajax-user-links { display: flex; gap: 8px; margin-top: 20px; }

/* Status forms */

.status-card form { margin-top: 20px; display: flex; gap: 8px; justify-content: center; }
.status-card form input {
    width: min(260px, 100%);
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: rgba(255, 255, 255, 0.025);
    color: #fff;
}
.status-card .btn { margin-top: 18px; }
.status-card form .btn { margin-top: 0; }

.btn.disabled,
a.disabled { opacity: 0.38; pointer-events: none; }

.member-nav a.is-active { background: var(--gold-soft); color: var(--gold); }

/* --------------------------------------------------------------------------
   17. Utilities & responsive
   -------------------------------------------------------------------------- */

.mt-0 { margin-top: 0 !important; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

.section-divider { height: 1px; margin: 56px 0; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; }

.loading-dots { display: inline-flex; gap: 4px; }
.loading-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: dotPulse 1.2s infinite; }
.loading-dots i:nth-child(2) { animation-delay: 0.15s; }
.loading-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotPulse {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 1180px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; }
    .hero-content { padding: 44px 40px 54px; }
    .poster-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .poster-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    :root { --gutter: 22px; }

    .nav { display: none; }
    .mobile-toggle { display: inline-flex; }
    .search-trigger { width: 40px; padding: 0; justify-content: center; }
    .search-trigger span, .search-trigger kbd { display: none; }
    .header-inner { height: 68px; gap: 14px; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-slider { min-height: 470px; }
    .rank-panel { padding: 18px 18px 12px; }
    .rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
    .rank-item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.045); padding-right: 14px; }
    .rank-item:nth-child(5), .rank-item:nth-child(6) { border-bottom: 0; }
    .rank-more { margin-top: 8px; padding-top: 12px; }

    .latest-layout { grid-template-columns: 1fr; gap: 26px; }
    .latest-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .latest-side h3 { grid-column: 1 / -1; }

    .editorial-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-card:first-child { grid-row: auto; min-height: 280px; grid-column: 1 / -1; }

    .detail-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
    .watch-layout { grid-template-columns: 1fr; }
    .watch-side { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .gbook-layout { grid-template-columns: 1fr; }
    .topic-item { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 820px) {
    .poster-grid, .poster-grid--5, .poster-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; }
    .detail-facts { grid-template-columns: 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-form-side { min-height: calc(100vh - 68px); }
    .watch-side { grid-template-columns: 1fr; }
    .topic-list { grid-template-columns: 1fr; }
    .topic-grid { grid-template-columns: 1fr; }
    .actor-hero { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; --radius: 14px; }

    body { font-size: 14px; }
    .header-inner { height: 62px; }
    .brand-mark { width: 32px; height: 32px; }
    .brand-name { font-size: 17px; }
    .brand-en { display: none; }
    .user-chip { padding: 0; width: 38px; justify-content: center; }
    .user-chip .user-name, .user-chip .user-caret { display: none; }
    .user-chip img, .user-chip .avatar-fallback { width: 26px; height: 26px; }

    .hero { padding-top: 16px; }
    .hero-slider { min-height: 430px; border-radius: 20px; }
    .hero-content { width: 100%; padding: 28px 22px 48px; }
    .hero-title { font-size: 32px; }
    .hero-sub { font-size: 12px; }
    .hero-desc { -webkit-line-clamp: 2; font-size: 12.5px; }
    .hero-actions { margin-top: 20px; gap: 8px; }
    .hero-actions .btn { height: 40px; padding: 0 18px; font-size: 12.5px; }
    .hero-controls { right: 16px; bottom: 14px; }
    .hero-nav { display: none; }

    .rank-panel { border-radius: 20px; }
    .rank-list { grid-template-columns: 1fr; }
    .rank-item:nth-child(odd) { border-right: 0; padding-right: 0; }
    .rank-item:nth-child(5) { border-bottom: 1px solid rgba(255, 255, 255, 0.045); }

    .update-ticker { margin-top: 12px; padding: 10px 14px; gap: 12px; }
    .ticker-track { gap: 18px; }

    .section { margin-top: 44px; }
    .section-head { margin-bottom: 18px; }
    .section-title { font-size: 23px; }
    .section-sub { display: none; }
    .more-link span { display: none; }

    .poster-grid, .poster-grid--5, .poster-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
    .card-title { font-size: 13px; margin-top: 9px; }
    .card-meta { font-size: 10px; }
    .card-play { width: 40px; height: 40px; opacity: 1; background: rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%); }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-card:first-child { min-height: 230px; }
    .feature-title, .feature-card:first-child .feature-title { font-size: 20px; }

    .latest-list { grid-template-columns: 1fr; }
    .latest-side { grid-template-columns: 1fr; }
    .latest-thumb { width: 88px; }

    .article-grid { grid-template-columns: 1fr; }
    .article-feature { min-height: 260px; }
    .article-feature-body h3 { font-size: 19px; }
    .article-mini img { width: 78px; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 22px; padding: 40px 0 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { font-size: 10px; }

    .page-hero { padding: 24px 0 20px; }
    .page-title { font-size: 28px; }
    .filter-panel { padding: 4px 12px; }
    .filter-row { gap: 8px; }
    .filter-label { width: 42px; font-size: 10px; }
    .filter-links a { padding: 3px 8px; font-size: 11px; }
    .filter-toolbar { margin: 18px 0 14px; }

    .detail-wrap { padding: 20px 0 28px; }
    .detail-grid { grid-template-columns: 132px minmax(0, 1fr); gap: 16px; }
    .detail-title { font-size: 26px; }
    .detail-sub { font-size: 11px; }
    .detail-meta { margin-top: 12px; gap: 6px 9px; font-size: 11px; }
    .score-badge .ring { width: 44px; height: 44px; }
    .score-badge .ring b { font-size: 16px; }
    .score-badge p { display: none; }
    .detail-desc { margin-top: 12px; -webkit-line-clamp: 3; font-size: 12px; }
    .detail-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .detail-actions .btn { width: 100%; padding: 0 10px; font-size: 12px; white-space: nowrap; }
    .detail-actions .btn-primary { grid-column: 1 / -1; }
    .detail-actions .icon-btn { width: 100%; height: 44px; border-radius: 999px; }
    .detail-facts { grid-column: 1 / -1; margin-top: 16px; padding-top: 14px; gap: 6px; font-size: 12px; }

    .playlist-panel { padding: 18px 16px 22px; margin-top: 26px; }
    .episode-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); max-height: 260px; }
    .episode { padding: 7px 5px; font-size: 11px; }

    .watch-top { padding-top: 14px; }
    .watch-title { font-size: 19px; }
    .watch-info { padding-top: 14px; }
    .watch-actions { padding: 10px 0 14px; }

    .search-form input { height: 60px; font-size: 21px; }
    .search-form button { height: 36px; padding: 0 16px; }
    .search-layer { padding-top: 12vh; }

    .article-layout { gap: 24px; }
    .article-aside { grid-template-columns: 1fr; }
    .article-body { font-size: 14px; line-height: 1.95; }

    .topic-hero-inner { padding: 38px 0 34px; }
    .topic-item { grid-template-columns: 1fr; }
    .topic-item-pic { aspect-ratio: 16 / 8; }
    .actor-hero { grid-template-columns: 1fr; }
    .actor-photo { width: 160px; }

    .member-grid { grid-template-columns: 1fr; }
    .member-side { display: grid; grid-template-columns: 1fr 1fr; }
    .member-profile { border-bottom: 0; border-right: 1px solid var(--line); }
    .member-stats { border-top: 0; align-self: center; }
    .member-nav { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
    .member-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .status-card { padding: 30px 20px; }
    .gbook-form-card { padding: 18px; }
    .gbook-layout { padding-top: 20px; }
}

@media (max-width: 380px) {
    .poster-grid, .poster-grid--5, .poster-grid--6 { gap: 14px 10px; }
    .hero-title { font-size: 28px; }
    .rank-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Conch-inspired refresh — charcoal + orange, denser 6-column grid
   Reference: kuaibo8.com (conch theme). Appended so it wins the cascade.
   ========================================================================== */


body {
    background: #0c0e14;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
}

h1, h2, h3, h4, h5, .section-title, .hero-title, .detail-title, .watch-title {
    letter-spacing: 0;
}

/* Header ------------------------------------------------------------------ */

.site-header {
    background: #0c0e14;
    border-bottom: 1px solid #20232f;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.site-header.is-scrolled { background: #0c0e14; border-color: #20232f; }
.header-inner { height: 64px; gap: 20px; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-size: 18px; letter-spacing: 0.06em; }
.brand-en { font-size: 8px; letter-spacing: 0.16em; color: #8d909f; }
.nav { gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 11px; font-size: 14px; color: #b5b5b5; }
.nav a::after { display: none; }
.nav a:hover, .nav a.is-active { color: #1683bd; background: transparent; }
.search-trigger {
    width: 196px; height: 34px; padding: 0 12px;
    border: 1px solid #333; border-radius: 4px;
    background: #171923; color: #a9acba;
}
.search-trigger:hover { border-color: #4a4d59; color: #e2e4ea; }
.search-trigger kbd { border-color: #2b3040; color: #747785; }
.icon-btn { width: 36px; height: 36px; border: 1px solid #333; border-radius: 4px; background: #171923; color: #c2c5d0; }
.icon-btn:hover { border-color: #1683bd; color: #1683bd; background: #171923; }
.user-chip { height: 36px; border: 1px solid #333; border-radius: 4px; background: #171923; color: #d4d5dc; }
.user-chip:hover { border-color: #1683bd; color: #fff; }

/* Hero: wide banner ------------------------------------------------------- */

.hero { padding-top: 14px; }
.hero-grid { grid-template-columns: 1fr; gap: 12px; }
.hero-slider {
    min-height: 0;
    aspect-ratio: 2.85 / 1;
    border: 0;
    border-radius: 14px;
    background: #171923;
}
.hero-bg { background-position: center 38%; }
.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.08) 100%),
                linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, transparent 62%);
}
.hero-content { width: min(620px, 72%); padding: 26px 30px; }
.hero-eyebrow {
    margin-bottom: 8px; padding: 2px 7px;
    border-radius: 2px; background: rgba(0, 0, 0, 0.45);
    font-size: 11px; letter-spacing: 0.08em; color: #b8e8fa;
}
.hero-eyebrow::before { display: none; }
.hero-title { font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; line-height: 1.25; }
.hero-sub { margin-top: 4px; font-size: 11px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.58); }
.hero-meta { margin-top: 9px; gap: 6px 10px; font-size: 12px; color: #e2e4ea; }
.hero-meta .dot { background: #8d909f; }
.hero-score b { font-size: 17px; }
.hero-desc { display: none; }
.hero-actions { margin-top: 14px; gap: 8px; }
.hero-actions .btn { height: 34px; padding: 0 18px; font-size: 13px; border-radius: 4px; }
.hero-controls { right: 16px; bottom: 12px; gap: 8px; }
.hero-nav { width: 30px; height: 30px; border-radius: 4px; background: rgba(0, 0, 0, 0.38); }
.hero-dot { width: 6px; height: 6px; }
.hero-dot.is-active { width: 20px; background: #1683bd; }

/* Rank becomes a full-width strip under the banner */

.rank-panel {
    padding: 12px 16px 10px;
    border: 1px solid #20232f;
    border-radius: 12px;
    background: #171923;
}
.rank-head { padding-bottom: 9px; border-bottom: 1px solid #20232f; }
.rank-head h2 { font-size: 15px; }
.rank-head h2::before { content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 7px; vertical-align: -2px; background: linear-gradient(#1683bd, #8bd7f5); }
.rank-head em { color: #747785; }
.rank-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 4px;
}
.rank-item { padding: 8px 0; border-bottom: 0; }
.rank-item:nth-child(odd) { border-right: 0; padding-right: 0; }
.rank-no { width: 16px; font-size: 14px; color: #747785; }
.rank-item:nth-child(-n+3) .rank-no { color: #1683bd; }
.rank-name { font-size: 12px; color: #e2e4ea; }
.rank-meta { display: none; }
.rank-score { font-size: 13px; color: #8bd7f5; }
.rank-more { display: none; }

.update-ticker { margin-top: 10px; padding: 8px 14px; border-radius: 10px; background: #12141d; }
.ticker-label { font-size: 11px; color: #1683bd; letter-spacing: 0.06em; }
.ticker-track a { font-size: 11px; color: #a9acba; }
.ticker-track a em { color: #747785; }

/* Section headers / grids ------------------------------------------------ */

.section { margin-top: 38px; }
.section-head {
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #20232f;
}
.eyebrow { display: flex; }
.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px; font-weight: 700; line-height: 1.2;
}
.section-title::before {
    content: ""; width: 3px; height: 17px; border-radius: 1px;
    background: linear-gradient(180deg, #1683bd, #8bd7f5);
}
.section-sub { margin-top: 3px; font-size: 11px; color: #8d909f; }
.more-link { font-size: 12px; color: #a9acba; gap: 4px; }
.more-link:hover { color: #1683bd; }

.poster-grid,
.poster-grid--5,
.poster-grid--6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 12px;
}

.card-poster { aspect-ratio: 0.69; border-radius: 12px; background: #20232f; box-shadow: none; }
.card-poster img { transition: transform 0.4s var(--ease); }
.card:hover .card-poster img { transform: scale(1.04); }
.card-badge {
    top: 5px; left: 5px; padding: 1px 5px; border-radius: 2px;
    background: rgba(0, 0, 0, 0.62); font-size: 10px; line-height: 17px;
}
.card-score {
    top: 5px; right: 5px; padding: 1px 5px; border-radius: 2px;
    background: rgba(0, 0, 0, 0.58); font-size: 12px; color: #b8e8fa;
}
.card-score small { font-size: 8px; color: #b8e8fa; }
.card-play { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.45); }
.card-play svg { width: 14px; height: 14px; }
.card-foot { display: none; }
.card-title { margin-top: 7px; font-size: 13px; font-weight: 400; line-height: 1.45; color: #d8d8d8; }
.card-title a:hover { color: #1683bd; }
.card-meta { margin-top: 2px; font-size: 11px; color: #8d909f; }
.card-meta span + span::before { color: #5f6270; margin: 0 4px; }

/* Buttons / pills --------------------------------------------------------- */

.btn { height: 38px; padding: 0 18px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.btn-primary { background: linear-gradient(90deg, #1683bd, #8bd7f5); color: #fff; }
.btn-primary:hover { background: linear-gradient(90deg, #2a9fd6, #8bd7f5); }
.btn-ghost { border-color: #2b3040; background: #2a2a2a; color: #e2e4ea; }
.btn-ghost:hover { border-color: #1683bd; color: #1683bd; background: #2a2a2a; }
.btn-dark { background: #20232f; color: #e2e4ea; }
.btn-dark:hover { background: #2b3040; }
.filter-links a { border-radius: 4px; padding: 5px 10px; font-size: 12px; color: #a9acba; }
.filter-links a:hover { color: #fff; background: #20232f; }
.filter-links a.is-active { background: linear-gradient(90deg, #1683bd, #8bd7f5); color: #fff; font-weight: 500; }
.filter-panel { border: 0; border-radius: 10px; background: #171923; padding: 4px 14px; }
.filter-row { border-bottom-color: #20232f; }
.sort-links a { border-radius: 4px; padding: 5px 11px; font-size: 12px; }
.sort-links a.is-active { border-color: #1683bd; color: #1683bd; background: rgba(22, 131, 189, 0.1); }
.mac_pages a, .mac_pages span, .mac_pages .page_tip { border-radius: 4px; height: 32px; min-width: 32px; }
.mac_pages .current { background: #1683bd; border-color: #1683bd; color: #fff; }

/* Feature / editorial / topics ------------------------------------------- */

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-card, .feature-card:first-child { grid-row: auto; min-height: 190px; border-radius: 12px; border-color: #20232f; }
.feature-body { padding: 16px; }
.feature-kicker { font-size: 10px; color: #8bd7f5; letter-spacing: 0.04em; }
.feature-title, .feature-card:first-child .feature-title { font-size: 19px; font-weight: 600; }
.feature-desc { font-size: 12px; color: #c2c5d0; }

.latest-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
.latest-list { column-gap: 24px; }
.latest-item { padding: 10px 0; border-bottom-color: #20232f; }
.latest-thumb { width: 92px; border-radius: 4px; }
.latest-name { font-size: 13px; }
.latest-meta { font-size: 10px; color: #747785; }
.latest-side { padding: 14px; border-radius: 12px; background: #171923; border-color: #20232f; }
.latest-side h3 { font-size: 14px; }
.side-rank li { padding: 7px 0; }
.side-rank .no { color: #747785; }
.side-rank li:nth-child(-n+3) .no { color: #1683bd; }
.side-rank .name { font-size: 12px; color: #d4d5dc; }
.side-rank .hits { color: #8bd7f5; }

.editorial-grid { gap: 12px; }
.article-feature { min-height: 300px; border-radius: 12px; border-color: #20232f; }
.article-feature-body { padding: 20px; }
.article-feature-body h3 { font-size: 21px; font-weight: 600; }
.article-feature-body .tag { background: #1683bd; color: #fff; border-radius: 2px; font-weight: 500; }
.article-mini { border-radius: 10px; border-color: #20232f; background: #171923; padding: 8px; }
.article-mini img { width: 82px; border-radius: 4px; }
.article-mini-body h4 { font-size: 12px; color: #e2e4ea; }
.topic-grid { gap: 12px; }
.topic-card { min-height: 180px; border-radius: 12px; border-color: #20232f; }
.topic-card-body { padding: 22px; }
.topic-card-body h3 { font-size: 21px; font-weight: 600; }
.topic-card-body span { color: #8bd7f5; }

/* Page hero / filters ---------------------------------------------------- */

.page-hero { padding: 26px 0 20px; background: #12141d; border-bottom-color: #20232f; }
.page-title { font-size: 26px; font-weight: 700; }
.page-title-row { align-items: center; }
.page-desc { margin-top: 6px; font-size: 12px; color: #a9acba; }
.breadcrumb { margin-bottom: 10px; font-size: 11px; color: #747785; }
.breadcrumb a:hover { color: #1683bd; }
.page-count b { color: #1683bd; font-size: 15px; }

/* Detail ----------------------------------------------------------------- */

.detail-hero { background: #0c0e14; border-bottom-color: #20232f; }
.detail-backdrop { filter: blur(40px); opacity: 0.18; }
.detail-wrap { padding: 24px 0 30px; }
.detail-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.detail-poster { border-radius: 12px; border-color: #333; box-shadow: none; }
.detail-poster .badge { border-radius: 2px; background: #1683bd; color: #fff; font-weight: 500; }
.detail-title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.detail-sub { font-size: 11px; color: #8d909f; letter-spacing: 0.08em; }
.detail-meta { margin-top: 12px; gap: 6px 9px; font-size: 12px; color: #c2c5d0; }
.detail-meta .chip { border-radius: 2px; border-color: #2b3040; background: #171923; font-size: 11px; padding: 2px 7px; }
.score-badge .ring { width: 50px; height: 50px; }
.score-badge .ring b { font-size: 18px; color: #8bd7f5; }
.score-badge .ring::before { background: #0c0e14; }
.detail-desc { margin-top: 12px; font-size: 12.5px; line-height: 1.8; color: #a9acba; -webkit-line-clamp: 2; }
.detail-actions { margin-top: 16px; gap: 8px; }
.detail-actions .btn { height: 36px; font-size: 12px; }
.detail-actions .icon-btn { width: 36px; height: 36px; }
.detail-facts { margin-top: 16px; padding-top: 14px; border-top-color: #20232f; gap: 7px 24px; font-size: 12px; }
.fact dt { color: #747785; width: 34px; }
.fact dd { color: #c2c5d0; }

.playlist-panel, .content-panel, .comment-panel, .watch-content {
    border: 1px solid #20232f;
    border-radius: 12px;
    background: #171923;
}
.playlist-panel { margin-top: 24px; padding: 18px 20px 22px; }
.playlist-head { margin-bottom: 12px; }
.playlist-head h2 { font-size: 16px; }
.playlist-head .hint { font-size: 11px; color: #8d909f; }
.source-tabs { gap: 6px; margin-bottom: 14px; }
.source-tab { border-radius: 4px; padding: 6px 13px; font-size: 12px; border-color: #2b3040; color: #c2c5d0; background: #2a2a2a; }
.source-tab.is-active { border-color: #1683bd; background: rgba(22, 131, 189, 0.12); color: #1683bd; }
.episode-grid { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.episode { border-radius: 4px; border-color: #2b3040; background: #20232f; padding: 8px 6px; font-size: 12px; color: #c2c5d0; }
.episode:hover { border-color: #1683bd; color: #1683bd; background: rgba(22, 131, 189, 0.08); }
.episode.is-active { border-color: #1683bd; background: linear-gradient(90deg, #1683bd, #8bd7f5); color: #fff; }
.content-panel { padding: 20px; }
.content-panel h2 { font-size: 16px; }
.prose { font-size: 13px; line-height: 1.9; color: #a9acba; }
.comment-panel { padding: 20px; }
.cmt_form textarea { background: #2a2a2a; border-color: #2b3040; }
.cmt-compose-foot .comment_submit { border-radius: 4px; }

/* Play ------------------------------------------------------------------- */

.watch-top { padding: 16px 0 0; }
.watch-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
.player-shell { border-radius: 12px; border-color: #20232f; box-shadow: none; }
.watch-info { padding: 14px 0 2px; }
.watch-title { font-size: 20px; }
.watch-sub { font-size: 11px; color: #8d909f; }
.watch-actions { padding: 10px 0 14px; gap: 6px; border-bottom-color: #20232f; }
.watch-actions .btn { height: 32px; padding: 0 13px; font-size: 12px; }
.side-card { border-radius: 12px; border-color: #20232f; background: #171923; padding: 14px; }
.side-card h3 { font-size: 13px; margin-bottom: 10px; }
.side-vod-poster { width: 80px; border-radius: 4px; }
.side-vod-body h4 { font-size: 13px; }
.side-episode { padding: 7px 4px; border-radius: 6px; }
.side-episode.is-active { color: #1683bd; background: rgba(22, 131, 189, 0.1); }

/* Articles / topics / actor ---------------------------------------------- */

.article-feature-body h3, .article-page-head h1 { font-weight: 600; }
.article-page-head h1 { font-size: 28px; }
.article-body { font-size: 14px; line-height: 2; color: #c2c5d0; }
.article-card-pic { border-radius: 10px; }
.article-card h3 { font-size: 13px; }
.aside-card { border-radius: 10px; background: #171923; border-color: #20232f; }
.topic-item { border-radius: 12px; border-color: #20232f; background: #171923; }
.topic-hero { background: #12141d; }
.topic-hero h1 { font-size: 34px; }
.topic-hero p { color: #a9acba; }
.actor-card-photo { border-radius: 12px; border-color: #20232f; }
.actor-photo { border-radius: 12px; }

/* Member / auth / gbook -------------------------------------------------- */

.member-side, .member-panel, .gbook-form-card, .gbook-item, .stat-card, .status-card {
    border-color: #20232f;
    background: #171923;
}
.member-nav a { border-radius: 4px; }
.member-nav a.is-active { background: rgba(22, 131, 189, 0.12); color: #1683bd; }
.member-avatar { border-color: #1683bd; }
.member-stats b, .stat-card b { color: #8bd7f5; }
.member-profile p { color: #8bd7f5; }
.auth-art { background: linear-gradient(135deg, #242424 0%, #0c0e14 70%); }
.auth-art::before { opacity: 0.5; }
.auth-art-inner cite { color: #1683bd; }
.field input { border-radius: 4px; background: #2a2a2a; border-color: #2b3040; }
.field input:focus { border-color: #1683bd; background: #2a2a2a; }
.auth-links a { color: #1683bd; }
.gbook-textarea { background: #2a2a2a; border-color: #2b3040; }
.gbook-textarea:focus { border-color: #1683bd; }
.report-box { background: #171923; }
.report-textarea { background: #2a2a2a; border-color: #2b3040; }
.report-foot .gbook-verify, .gbook-form-foot .gbook-verify { border-color: #2b3040; }

/* Footer ----------------------------------------------------------------- */

.site-footer { margin-top: 50px; border-top-color: #20232f; background: #090b12; }
.footer-top { padding: 34px 0 26px; gap: 32px; }
.footer-brand p { margin-top: 10px; font-size: 12px; color: #8d909f; line-height: 1.8; }
.footer-badges span { border-color: #333; color: #747785; }
.footer-col h4 { margin-bottom: 12px; font-size: 12px; letter-spacing: 0.06em; color: #d4d5dc; }
.footer-col ul { gap: 7px; }
.footer-col a { font-size: 12px; color: #8d909f; }
.footer-col a:hover { color: #1683bd; }
.footer-bottom { padding: 14px 0 20px; border-top-color: #20232f; font-size: 11px; color: #747785; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1180px) {
    .poster-grid, .poster-grid--5, .poster-grid--6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .rank-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .header-inner { height: 58px; }
    .hero-slider { aspect-ratio: 2.15 / 1; }
    .poster-grid, .poster-grid--5, .poster-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rank-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 200px minmax(0, 1fr); }
    .watch-layout { grid-template-columns: 1fr; }
    .latest-layout { grid-template-columns: 1fr; }
    .latest-side { display: block; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .article-aside { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .hero-slider { aspect-ratio: 1.9 / 1; }
    .hero-content { width: 82%; padding: 20px 22px; }
    .poster-grid, .poster-grid--5, .poster-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
    .rank-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
    .detail-grid { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 640px) {
    :root { --gutter: 12px; }
    .header-inner { height: 54px; gap: 8px; }
    .brand-mark { width: 28px; height: 28px; }
    .brand-name { font-size: 16px; }
    .brand-en { display: none; }
    .search-trigger { width: 34px; height: 34px; padding: 0; justify-content: center; }
    .search-trigger span, .search-trigger kbd { display: none; }
    .user-chip { height: 34px; padding: 0 8px; }
    .icon-btn { width: 34px; height: 34px; }

    .hero { padding-top: 10px; }
    .hero-slider { aspect-ratio: 1.35 / 1; border-radius: 12px; }
    .hero-content { width: 100%; padding: 16px 16px 26px; }
    .hero-title { font-size: 21px; }
    .hero-sub { font-size: 10px; }
    .hero-meta { margin-top: 7px; font-size: 11px; }
    .hero-actions { margin-top: 10px; }
    .hero-actions .btn { height: 30px; padding: 0 14px; font-size: 12px; }
    .hero-controls { right: 10px; bottom: 8px; }

    .rank-panel { padding: 10px 12px 8px; }
    .rank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
    .rank-item { padding: 6px 0; }
    .rank-item:nth-child(odd) { border-right: 0; padding-right: 0; }
    .rank-head h2 { font-size: 14px; }
    .rank-head em { display: none; }

    .section { margin-top: 26px; }
    .section-head { margin-bottom: 10px; padding-bottom: 8px; }
    .section-title { font-size: 17px; }
    .section-sub { display: none; }
    .more-link span { display: inline; }

    .poster-grid, .poster-grid--5, .poster-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
    .card-poster { border-radius: 10px; }
    .card-title { font-size: 12px; margin-top: 5px; }
    .card-meta { font-size: 10px; }
    .card-badge { top: 4px; left: 4px; padding: 0 4px; font-size: 9px; }
    .card-score { top: 4px; right: 4px; font-size: 11px; }
    .card-play { width: 32px; height: 32px; opacity: 1; transform: translate(-50%, -50%); }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-card, .feature-card:first-child { min-height: 170px; }
    .feature-title, .feature-card:first-child .feature-title { font-size: 18px; }

    .latest-layout { gap: 18px; }
    .latest-list { grid-template-columns: 1fr; }
    .latest-thumb { width: 80px; }
    .latest-side { display: none; }

    .article-feature { min-height: 240px; }
    .article-feature-body { padding: 14px; }
    .article-feature-body h3 { font-size: 18px; }
    .article-mini img { width: 72px; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0 18px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { font-size: 11px; }

    .detail-wrap { padding: 16px 0 22px; }
    .detail-grid { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
    .detail-title { font-size: 22px; }
    .detail-sub { font-size: 10px; }
    .detail-meta { gap: 5px 7px; }
    .detail-meta .chip { font-size: 10px; padding: 1px 5px; }
    .score-badge .ring { width: 42px; height: 42px; }
    .score-badge .ring b { font-size: 15px; }
    .detail-desc { font-size: 11.5px; -webkit-line-clamp: 3; }
    .detail-actions { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
    .detail-actions .btn { height: 32px; font-size: 11px; }
    .detail-actions .icon-btn { height: 32px; }
    .detail-facts { margin-top: 12px; padding-top: 10px; gap: 5px; font-size: 11.5px; }

    .playlist-panel, .content-panel { padding: 14px; }
    .episode-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 5px; }
    .episode { padding: 7px 4px; font-size: 11px; }

    .watch-top { padding-top: 10px; }
    .watch-layout { gap: 14px; }
    .watch-title { font-size: 17px; }
    .watch-actions .btn { height: 30px; font-size: 11px; }
    .watch-side { gap: 12px; }
    .side-card { padding: 12px; }

    .page-hero { padding: 18px 0 14px; }
    .page-title { font-size: 22px; }
    .page-desc { font-size: 11px; }
    .filter-panel { padding: 2px 10px; }
    .filter-row { gap: 6px; padding: 7px 0; }
    .filter-label { width: 38px; font-size: 10px; }
    .filter-links a { padding: 3px 7px; font-size: 11px; }

    .auth-form-side { min-height: calc(100vh - 54px); }
}

@media (max-width: 380px) {
    .poster-grid, .poster-grid--5, .poster-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
    .hero-title { font-size: 19px; }
}

/* Final polish for the conch-style card art */

.hero-bg { filter: saturate(1.18) brightness(1.06); }
.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 48%, rgba(0, 0, 0, 0.04) 100%),
                linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, transparent 62%);
}
.card-poster img { filter: saturate(1.12); }
.card-poster::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.58) 100%);
    opacity: 1;
}
.card:hover .card-poster::after { opacity: 1; }
@media (min-width: 641px) {
    .card-title { font-size: 14px; color: #f7f7fb; }
    .card-meta { font-size: 11.5px; color: #8d909f; }
}
.card-badge { background: rgba(0, 0, 0, 0.55); }

.hero-bg { filter: saturate(1.35) brightness(1.08); }
.card-poster img { filter: saturate(1.45) contrast(1.05) brightness(1.04); }

/* Carousel stacking: only the active slide is visible after JS init */
.hero-slide { z-index: 0; }
.hero-slide.is-active { z-index: 2; }

/* Floating player: follow bottom-right after the player scrolls out */
.player-holder { position: relative; }
.player-float-close { display: none; }

.player-shell.is-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 130;
    width: 380px;
    max-width: calc(100vw - 32px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: #000;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.62);
}

.player-shell.is-floating .player-stage { border-radius: 9px; }

.player-shell.is-floating .player-float-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.player-shell.is-floating .player-float-close:hover {
    border-color: #1683bd;
    background: #1683bd;
}

@media (max-width: 1024px) {
    .player-shell.is-floating { position: static; width: auto; max-width: none; border: 0; box-shadow: none; }
    .player-shell.is-floating .player-float-close { display: none; }
}

.episode.is-locked { opacity: 0.42; cursor: not-allowed; color: #a9acba; }
.episode.is-locked:hover { border-color: #2b3040; color: #a9acba; background: #20232f; }

/* Footer — conch-style legal + brand row */
.footer-legal-row {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) 320px;
    gap: 48px;
    padding: 34px 0 28px;
    border-bottom: 1px solid #20232f;
}

.footer-legal p {
    max-width: 820px;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.9;
    color: #8d909f;
}

.footer-legal p:last-of-type { margin-bottom: 14px; }

.footer-map-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #5f6270;
}

.footer-map-links a { color: #a9acba; }
.footer-map-links a:hover { color: #1683bd; }
.footer-map-links span { color: #4a4d59; }

.footer-brand-side { text-align: right; }
.footer-brand-side .brand { justify-content: flex-end; margin-bottom: 12px; }
.footer-brand-side .brand-mark { width: 32px; height: 32px; }
.footer-brand-side .brand-name { font-size: 17px; }
.footer-brand-side p { font-size: 11px; line-height: 1.8; color: #747785; }
.footer-brand-side .footer-version { margin-top: 4px; color: #1683bd; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 14px 0 22px;
    border-top: 0;
    font-size: 11px;
    color: #747785;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-nav a { color: #a9acba; }
.footer-nav a:hover { color: #1683bd; }

@media (max-width: 820px) {
    .footer-legal-row { grid-template-columns: 1fr; gap: 22px; padding: 24px 0 20px; }
    .footer-brand-side { text-align: left; }
    .footer-brand-side .brand { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Play page notice / source */
.play-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(22, 131, 189, 0.22);
    border-radius: 10px;
    background: rgba(22, 131, 189, 0.06);
    font-size: 12px;
    line-height: 1.6;
    color: #c9a08b;
}

.play-notice strong { color: #62c7f0; font-weight: 600; }
.watch-source { margin-left: 8px; color: #8bd7f5; }

/* Channel child links + rank row */
.section-children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -4px 0 12px;
}

.section-children a {
    padding: 3px 9px;
    border-radius: 6px;
    background: #222;
    font-size: 12px;
    color: #a9acba;
}

.section-children a:hover { background: #20232f; color: #1683bd; }

.rank-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rank-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #20232f;
    border-radius: 10px;
    background: #171923;
}

.rank-mini:hover { border-color: #1683bd; }

.rank-mini-no {
    flex: none;
    width: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #1683bd;
    text-align: center;
}

.rank-mini img {
    flex: none;
    width: 42px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #333;
}

.rank-mini-body { flex: 1; min-width: 0; }
.rank-mini-body b {
    display: block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    color: #e2e4ea;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-mini-body small { display: block; margin-top: 3px; font-size: 10px; color: #8d909f; }
.rank-mini em { flex: none; font-style: normal; font-size: 12px; color: #8bd7f5; }

@media (max-width: 1024px) {
    .rank-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .rank-mini-grid { grid-template-columns: 1fr; }
    .section-children { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .section-children a { flex: none; }
}

/* ==========================================================================
   Tech skin layer — HUD lines, cyan/orange glow, vector icon system
   ========================================================================== */

:root {
    --cyan: #8bd7f5;
    --cyan-soft: rgba(139, 215, 245, 0.12);
    --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

.ico {
    width: 16px;
    height: 16px;
    flex: none;
    vertical-align: -3px;
    color: currentColor;
}

.ico--sm { width: 14px; height: 14px; }
.ico--lg { width: 20px; height: 20px; }

body {
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(22, 131, 189, 0.12), transparent 62%),
        radial-gradient(900px 600px at 100% 6%, rgba(139, 215, 245, 0.07), transparent 60%),
        #0c0e14;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

/* System status strip */
.sys-bar {
    position: relative;
    z-index: 91;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 15, 19, 0.92);
}
.sys-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 26px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: #747785;
    text-transform: uppercase;
}
.sys-status { display: inline-flex; align-items: center; gap: 6px; color: #9aa7b4; }
.sys-status i {
    width: 5px; height: 5px; border-radius: 50%;
    background: #42e39a;
    box-shadow: 0 0 8px rgba(66, 227, 154, 0.8);
    animation: sysPulse 2s ease-in-out infinite;
}
@keyframes sysPulse { 0%,100%{opacity:.45} 50%{opacity:1} }
.sys-sep { color: #3b414b; }
.sys-right { margin-left: auto; color: #5f6270; }

/* Header glass + gradient hairline */
.site-header {
    background: rgba(17, 19, 24, 0.8);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent 4%, rgba(22, 131, 189, 0.55) 32%, rgba(139, 215, 245, 0.35) 68%, transparent 96%);
    opacity: 0.55;
    pointer-events: none;
}
.brand-mark { filter: drop-shadow(0 0 10px rgba(22, 131, 189, 0.45)); }
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav a .ico { color: #6f7885; transition: color .2s; }
.nav a:hover .ico, .nav a.is-active .ico { color: #1683bd; }
.nav a.is-active { text-shadow: 0 0 16px rgba(22, 131, 189, 0.45); }

/* Hero HUD frame */
.hero-slider {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(22, 131, 189, 0.08), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.hero-slider::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(#1683bd, #1683bd) left top / 26px 1px no-repeat,
        linear-gradient(#1683bd, #1683bd) left top / 1px 26px no-repeat,
        linear-gradient(#8bd7f5, #8bd7f5) right top / 26px 1px no-repeat,
        linear-gradient(#8bd7f5, #8bd7f5) right top / 1px 26px no-repeat,
        linear-gradient(#1683bd, #1683bd) left bottom / 26px 1px no-repeat,
        linear-gradient(#1683bd, #1683bd) left bottom / 1px 26px no-repeat,
        linear-gradient(#8bd7f5, #8bd7f5) right bottom / 26px 1px no-repeat,
        linear-gradient(#8bd7f5, #8bd7f5) right bottom / 1px 26px no-repeat;
    opacity: 0.6;
}
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px);
    mix-blend-mode: screen;
}
.hero-eyebrow {
    font-family: var(--mono);
    letter-spacing: 0.18em;
    color: #b8e8fa;
    border: 1px solid rgba(139, 215, 245, 0.35);
    background: rgba(22, 131, 189, 0.08);
    box-shadow: 0 0 18px rgba(22, 131, 189, 0.12);
}
.hero-title { text-shadow: 0 0 34px rgba(22, 131, 189, 0.2), 0 8px 30px rgba(0, 0, 0, 0.5); }
.hero-sub { font-family: var(--mono); letter-spacing: 0.14em; color: rgba(139, 215, 245, 0.55); }
.hero-controls { padding: 4px 6px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: rgba(0, 0, 0, 0.28); }

/* Rank panel HUD */
.rank-panel {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 131, 189, 0.045), transparent 40%), #171923;
}
.rank-no { font-family: var(--mono); font-weight: 700; }
.rank-item:nth-child(-n+3) .rank-no { text-shadow: 0 0 10px rgba(22, 131, 189, 0.6); }
.rank-score { font-family: var(--mono); }

/* Section headers */
.section-head {
    border-bottom: 0;
    background-image: linear-gradient(90deg, rgba(22, 131, 189, 0.65), rgba(255, 255, 255, 0.06) 42%, transparent 100%);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 1px;
}
.section-title { gap: 9px; }
.section-title::before { width: 4px; height: 18px; box-shadow: 0 0 14px rgba(22, 131, 189, 0.65); }
.section-title .ico { color: #2a9fd6; filter: drop-shadow(0 0 8px rgba(22, 131, 189, 0.35)); }
.section-sub { font-family: var(--mono); letter-spacing: 0.04em; color: #6c7480; }

/* Cards: gradient edge + orange/cyan hover */
.card-poster {
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}
.card-poster::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; height: 1px;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}
.card:hover .card-poster {
    border-color: rgba(22, 131, 189, 0.5);
    box-shadow: 0 0 0 1px rgba(22, 131, 189, 0.12), 0 14px 34px rgba(22, 131, 189, 0.13);
}
.card-badge { border: 1px solid rgba(255, 255, 255, 0.08); }
.card-score { color: #b8e8fa; border: 1px solid rgba(139, 215, 245, 0.12); }
.card-play { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 24px rgba(22, 131, 189, 0.2); }

/* Buttons / pills */
.btn-primary {
    box-shadow: 0 0 22px rgba(22, 131, 189, 0.22);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(22, 131, 189, 0.36); }
.btn-ghost .ico { color: #62c7f0; }
.filter-panel {
    border: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(28, 30, 35, 0.7);
}
.filter-links a.is-active { box-shadow: 0 0 16px rgba(22, 131, 189, 0.24); }
.section-children a { border: 1px solid rgba(255, 255, 255, 0.055); background: rgba(255, 255, 255, 0.022); }
.section-children a:hover { border-color: rgba(22, 131, 189, 0.4); box-shadow: 0 0 14px rgba(22, 131, 189, 0.1); }

/* Rank row */
.rank-mini {
    background: linear-gradient(120deg, rgba(22, 131, 189, 0.035), transparent 55%), #171923;
    border-color: rgba(255, 255, 255, 0.06);
}
.rank-mini:hover { box-shadow: 0 0 22px rgba(22, 131, 189, 0.1); }
.rank-mini-no { font-family: var(--mono); }
.rank-mini em { font-family: var(--mono); color: #b8e8fa; }

/* Play / detail glow */
.player-shell { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 1px rgba(22, 131, 189, 0.08), 0 26px 70px rgba(0, 0, 0, 0.45); }
.player-shell.is-floating { border-color: rgba(22, 131, 189, 0.4); box-shadow: 0 0 0 1px rgba(22, 131, 189, 0.12), 0 20px 70px rgba(0, 0, 0, 0.7); }
.play-notice { box-shadow: inset 3px 0 0 #1683bd, 0 0 20px rgba(22, 131, 189, 0.06); }
.playlist-panel, .content-panel, .comment-panel, .side-card { border-color: rgba(255, 255, 255, 0.07); }
.source-tab.is-active { box-shadow: 0 0 16px rgba(22, 131, 189, 0.2); }
.episode.is-active { box-shadow: 0 0 14px rgba(22, 131, 189, 0.28); }
.score-badge .ring { box-shadow: 0 0 24px rgba(22, 131, 189, 0.18); }
.detail-title { text-shadow: 0 0 30px rgba(22, 131, 189, 0.12); }

/* Page hero + type blocks */
.page-hero {
    background:
        linear-gradient(90deg, rgba(22, 131, 189, 0.05), transparent 35%),
        linear-gradient(180deg, #171923, #1d1f23);
}
.page-title { text-shadow: 0 0 26px rgba(22, 131, 189, 0.12); }
.breadcrumb { font-family: var(--mono); letter-spacing: 0.04em; }

/* Footer grid + glow */
.site-footer {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(600px 240px at 20% 0, rgba(22, 131, 189, 0.08), transparent 70%),
        radial-gradient(500px 260px at 85% 10%, rgba(139, 215, 245, 0.05), transparent 70%),
        #131416;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
    mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.footer-legal, .footer-brand-side, .footer-bottom { position: relative; z-index: 1; }
.footer-map-links a { display: inline-flex; align-items: center; gap: 5px; }
.footer-version { font-family: var(--mono); letter-spacing: 0.1em; }
.footer-nav a { display: inline-flex; align-items: center; gap: 5px; }

/* Mobile */
@media (max-width: 640px) {
    .sys-bar-inner { height: 22px; font-size: 8px; }
    .sys-right { display: none; }
    .hero-slider::before { inset: 6px; }
    .section-title .ico { width: 15px; height: 15px; }
}


/* Final glass / blue-tech layer */
.hero-slider { border-radius: 28px; background: #171923; }
.hero-shade { background: linear-gradient(90deg, rgba(6, 10, 18, 0.9) 0%, rgba(6, 10, 18, 0.46) 50%, rgba(6, 10, 18, 0.05) 100%), linear-gradient(0deg, rgba(6, 10, 18, 0.9) 0%, transparent 62%); }
.hero-eyebrow { color: #b8e8fa; border-color: rgba(139, 215, 245, 0.35); background: rgba(22, 131, 189, 0.12); box-shadow: 0 0 20px rgba(22, 131, 189, 0.18); }
.hero-title { text-shadow: 0 0 38px rgba(22, 131, 189, 0.28), 0 8px 30px rgba(0, 0, 0, 0.5); }
.hero-sub { color: rgba(184, 232, 250, 0.6); }
.hero-slider::before { opacity: 0.75; }
.card-poster { border-radius: 14px; background: #171923; }
.card:hover .card-poster { border-color: rgba(139, 215, 245, 0.5); box-shadow: 0 0 0 1px rgba(139, 215, 245, 0.14), 0 18px 40px rgba(22, 131, 189, 0.16); }
.card-title a:hover { color: #8bd7f5; }
.card-play { border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 0 26px rgba(22, 131, 189, 0.3); }

.section-title { color: #f7f7fb; }
.section-title::before { background: linear-gradient(180deg, #8bd7f5, #1683bd); box-shadow: 0 0 16px rgba(139, 215, 245, 0.45); }
.section-title .ico { color: #8bd7f5; filter: drop-shadow(0 0 8px rgba(139, 215, 245, 0.4)); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.22em; color: #8bd7f5; opacity: 0.85; }
.eyebrow::before { width: 14px; height: 1px; background: #8bd7f5; box-shadow: 0 0 8px rgba(139, 215, 245, 0.6); }
.section-head { background-image: linear-gradient(90deg, rgba(139, 215, 245, 0.55), rgba(255, 255, 255, 0.06) 42%, transparent 100%); }

.btn-primary { background: linear-gradient(135deg, #8bd7f5, #1683bd); color: #07131c; box-shadow: 0 0 24px rgba(22, 131, 189, 0.28), inset 0 1px rgba(255, 255, 255, 0.5); }
.btn-primary:hover { background: linear-gradient(135deg, #b8e8fa, #2a9fd6); color: #07131c; box-shadow: 0 0 30px rgba(139, 215, 245, 0.4); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.045); color: #e2e4ea; }
.btn-ghost:hover { border-color: rgba(139, 215, 245, 0.55); color: #8bd7f5; }
.btn-dark { background: rgba(255, 255, 255, 0.06); color: #d4d5dc; }
.nav a:hover, .nav a.is-active { color: #8bd7f5; text-shadow: 0 0 16px rgba(139, 215, 245, 0.35); }
.nav a:hover .ico, .nav a.is-active .ico { color: #8bd7f5; }
.icon-btn:hover { border-color: #8bd7f5; color: #8bd7f5; box-shadow: 0 0 16px rgba(22, 131, 189, 0.25); }
.user-chip:hover { border-color: #8bd7f5; }
.search-trigger:hover { border-color: rgba(139, 215, 245, 0.5); }

.rank-panel, .filter-panel, .playlist-panel, .content-panel, .comment-panel, .latest-side,
.side-card, .gbook-form-card, .gbook-item, .member-side, .member-panel, .stat-card,
.status-card, .aside-card, .article-mini, .topic-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 55%), rgba(23, 25, 35, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}
.rank-panel { border-radius: 20px; }
.playlist-panel, .content-panel, .comment-panel, .side-card, .latest-side { border-radius: 20px; }
.filter-panel { border-radius: 16px; }
.rank-no { color: #8bd7f5; }
.rank-score { color: #8bd7f5; }
.rank-item:nth-child(-n+3) .rank-no { color: #8bd7f5; text-shadow: 0 0 12px rgba(139, 215, 245, 0.5); }
.section-children a:hover { border-color: rgba(139, 215, 245, 0.45); color: #8bd7f5; box-shadow: 0 0 14px rgba(22, 131, 189, 0.14); }
.rank-mini:hover { border-color: rgba(139, 215, 245, 0.5); box-shadow: 0 0 24px rgba(22, 131, 189, 0.16); }
.rank-mini-no, .rank-mini em { color: #8bd7f5; }
.filter-links a.is-active { background: linear-gradient(90deg, #1683bd, #8bd7f5); color: #07131c; box-shadow: 0 0 18px rgba(22, 131, 189, 0.28); }
.sort-links a.is-active { border-color: #8bd7f5; color: #8bd7f5; background: rgba(22, 131, 189, 0.14); }
.page-title { color: #f7f7fb; text-shadow: 0 0 30px rgba(22, 131, 189, 0.2); }
.breadcrumb a:hover { color: #8bd7f5; }
.page-count b { color: #8bd7f5; }
.player-shell { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 1px rgba(22, 131, 189, 0.12), 0 30px 80px rgba(0, 0, 0, 0.5); }
.player-shell.is-floating { border-color: rgba(139, 215, 245, 0.45); box-shadow: 0 0 0 1px rgba(139, 215, 245, 0.18), 0 22px 70px rgba(0, 0, 0, 0.7); }
.play-notice { border-color: rgba(139, 215, 245, 0.25); background: rgba(22, 131, 189, 0.08); color: #a9c9d8; box-shadow: inset 3px 0 0 #1683bd; }
.play-notice strong { color: #8bd7f5; }
.watch-source { color: #8bd7f5; }
.source-tab.is-active { border-color: #8bd7f5; background: rgba(22, 131, 189, 0.16); color: #8bd7f5; box-shadow: 0 0 18px rgba(22, 131, 189, 0.2); }
.episode.is-active { background: linear-gradient(90deg, #1683bd, #8bd7f5); color: #07131c; box-shadow: 0 0 16px rgba(22, 131, 189, 0.3); }
.score-badge .ring b { color: #8bd7f5; }
.detail-title { text-shadow: 0 0 32px rgba(22, 131, 189, 0.22); }
.detail-poster .badge { background: #1683bd; }
.member-nav a.is-active { background: rgba(22, 131, 189, 0.14); color: #8bd7f5; }
.member-stats b, .stat-card b { color: #8bd7f5; }
.member-avatar { border-color: rgba(139, 215, 245, 0.6); }
.auth-art { background: radial-gradient(700px 500px at 30% 20%, rgba(22, 131, 189, 0.3), transparent 60%), linear-gradient(135deg, #121722 0%, #090b12 70%); }
.auth-art-inner cite { color: #8bd7f5; }
.field input:focus { border-color: rgba(139, 215, 245, 0.6); background: rgba(22, 131, 189, 0.06); }
.auth-links a { color: #8bd7f5; }
.footer-version, .footer-map-links a:hover, .footer-nav a:hover { color: #8bd7f5; }
.back-top:hover { border-color: #8bd7f5; color: #8bd7f5; }
.mac_pages .current { background: #1683bd; border-color: #1683bd; color: #fff; }

@media (max-width: 640px) {
    .hero-slider { border-radius: 18px; }
    .rank-panel { border-radius: 16px; }
}

/* Header local playback history */
.history-wrap { position: relative; }
.history-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 160;
    width: 330px;
    max-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%), rgba(20, 23, 33, 0.92);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, visibility 0.22s, transform 0.22s ease;
}
.history-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.history-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px; color: #d4d5dc;
}
.history-panel-head button {
    border: 0; background: none; color: #747785; font-size: 11px; cursor: pointer;
}
.history-panel-head button:hover { color: #8bd7f5; }
.history-list { max-height: 330px; overflow-y: auto; padding: 6px; }
.history-item {
    display: flex; gap: 10px; align-items: center;
    padding: 7px; border-radius: 10px; color: #c2c5d0;
}
.history-item:hover { background: rgba(139, 215, 245, 0.08); color: #fff; }
.history-item img {
    width: 46px; height: 64px; flex: none; object-fit: cover; border-radius: 6px; background: #262a38;
}
.history-item-body { min-width: 0; flex: 1; }
.history-item-body b {
    display: block; overflow: hidden; font-size: 12px; font-weight: 500;
    text-overflow: ellipsis; white-space: nowrap;
}
.history-item-body small { display: block; margin-top: 3px; font-size: 10px; color: #747785; }
.history-empty { padding: 26px 12px; text-align: center; font-size: 12px; color: #747785; }
.history-all {
    display: block; padding: 11px; border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center; font-size: 11px; color: #8bd7f5;
}
.history-all:hover { background: rgba(139, 215, 245, 0.06); }

@media (max-width: 640px) {
    .history-panel { position: fixed; top: 88px; left: 12px; right: 12px; width: auto; max-height: 70vh; }
    .history-list { max-height: calc(70vh - 100px); }
}

/* Editable ad slots (template/yeju/ads/*.html) */
.ad-slot {
    margin: 14px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
    text-align: center;
}
.ad-slot img { display: inline-block; max-width: 100%; height: auto; border-radius: 16px; }
.ad-slot:empty,
.ad-slot:not(:has(*)) { display: none; }

/* Typographic scale */
.hero-title { font-size: clamp(34px, 4vw, 56px); }
.section-title { font-size: clamp(22px, 2.2vw, 30px); }
.page-title { font-size: clamp(28px, 3vw, 40px); }
.brand-name { font-size: 20px; }
@media (max-width: 640px) {
    .hero-title { font-size: clamp(26px, 7vw, 38px); }
    .section-title { font-size: 20px; }
}

/* ==========================================================================
   Play page: WGONE-style right sidebar
   ========================================================================== */

.watch-layout--sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 440px);
    gap: 20px;
    align-items: start;
}

.watch-main { min-width: 0; }

.watch-sidebar {
    position: sticky;
    top: 96px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 112px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 55%),
        rgba(20, 23, 33, 0.86);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.sidebar-tabs {
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    min-height: 56px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
}

.sidebar-tabs button,
.sidebar-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 650;
    color: #8d909f;
    cursor: pointer;
}

.sidebar-tabs button.is-active,
.sidebar-tabs a:hover { color: #f7f7fb; }
.sidebar-tabs button.is-active .ico,
.sidebar-tabs a:hover .ico { color: #8bd7f5; }
.sidebar-tabs button.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(90deg, #1683bd, #8bd7f5);
    box-shadow: 0 0 12px rgba(139, 215, 245, 0.5);
}
.sidebar-tabs .sidebar-back {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #747785;
    white-space: nowrap;
}
.sidebar-tabs .sidebar-back:hover { color: #8bd7f5; }

.sidebar-body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.sidebar-video { padding: 20px 18px 18px; }
.sidebar-video .eyebrow { margin-bottom: 6px; }
.sidebar-video h1 {
    margin: 0 0 9px;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #f7f7fb;
}

.sidebar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-bottom: 11px;
    font-size: 12px;
    color: #a9acba;
}
.sidebar-meta span + span::before {
    content: "·";
    margin-right: 12px;
    color: #4a4d59;
}
.sidebar-ep {
    padding: 1px 7px;
    border: 1px solid rgba(139, 215, 245, 0.3);
    border-radius: 3px;
    background: rgba(22, 131, 189, 0.12);
    color: #8bd7f5;
}

.sidebar-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: #8d909f;
}
.sidebar-stats span { display: inline-flex; align-items: center; gap: 5px; }
.sidebar-stats .ico { color: #8bd7f5; }

.sidebar-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 12.5px;
    line-height: 1.7;
    color: #a9acba;
}

.sidebar-actions {
    display: flex;
    gap: 9px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-icon-btn {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: #c2c5d0;
    cursor: pointer;
}
.side-icon-btn .ico { width: 18px; height: 18px; }
.side-icon-btn:hover {
    border-color: rgba(139, 215, 245, 0.55);
    background: rgba(22, 131, 189, 0.14);
    color: #8bd7f5;
    box-shadow: 0 0 16px rgba(22, 131, 189, 0.18);
}

.sidebar-episodes {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.sidebar-episodes .playlist-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
}
.sidebar-episodes .playlist-head h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    font-size: 19px;
}
.sidebar-episodes .playlist-head .hint {
    max-width: 130px;
    overflow: hidden;
    margin: 0;
    font-family: var(--mono);
    font-size: 10px;
    color: #747785;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-episodes .source-tabs { gap: 7px; margin-bottom: 12px; }
.sidebar-episodes .source-tab { min-height: 36px; padding: 0 12px; font-size: 11px; }
.sidebar-episodes .episode-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    max-height: none;
    overflow: visible;
}
.sidebar-episodes .episode {
    min-height: 38px;
    justify-content: center;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
}
.sidebar-episodes .playlist-more { margin-top: 10px; }

.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    margin-top: 10px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(23, 25, 35, 0.7);
}
.player-toolbar .now-playing {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    color: #8d909f;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-toolbar .now-playing b { color: #d4d5dc; font-weight: 500; }
.player-toolbar .now-playing em { font-style: normal; color: #8bd7f5; }
.pulse-dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: #45d69a;
    box-shadow: 0 0 9px rgba(69, 214, 154, 0.8);
    animation: sysPulse 1.8s ease-in-out infinite;
}
.player-tools { display: flex; flex: none; gap: 7px; }
.player-tools .btn { padding: 7px 10px; font-size: 11px; }

.watch-main .watch-content {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(23, 25, 35, 0.6);
}
.watch-main .watch-content h2 { margin: 2px 0 12px; font-size: 20px; }
.watch-main .watch-recommend { margin-top: 24px; }
.watch-main .watch-recommend .section-head { margin-bottom: 12px; }

@media (max-width: 1179px) {
    .watch-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
    .watch-sidebar { position: static; max-height: none; margin-top: 16px; }
    .sidebar-body { overflow: visible; }
    .watch-main .watch-content { margin-top: 16px; }
}

@media (max-width: 640px) {
    .sidebar-tabs { gap: 14px; padding: 0 13px; min-height: 50px; }
    .sidebar-tabs button, .sidebar-tabs a { height: 50px; font-size: 13px; }
    .sidebar-tabs .sidebar-back { font-size: 10px; }
    .sidebar-video { padding: 16px 13px 14px; }
    .sidebar-video h1 { font-size: 21px; }
    .sidebar-episodes { padding: 15px 13px; }
    .sidebar-episodes .episode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sidebar-episodes .playlist-head h2 { font-size: 17px; }
    .player-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
    .player-tools { width: 100%; overflow-x: auto; }
    .player-tools .btn { flex: none; }
    .watch-main .watch-content { padding: 16px; }
}

/* Sidebar panels / compact discussion */
.sidebar-panel[hidden] { display: none !important; }
.sidebar-panel.is-active { display: block; }

.sidebar-discussion { padding: 18px; }
.sidebar-discussion-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.sidebar-discussion-head h2 { margin: 2px 0 0; font-size: 20px; }
.sidebar-discussion-head > span { font-size: 11px; color: #747785; }
.sidebar-discussion-head em { font-style: normal; color: #8bd7f5; }

.sidebar-discussion .cmt-compose { margin-bottom: 12px; }
.sidebar-discussion .cmt-compose textarea { height: 70px; min-height: 70px; padding: 9px 10px; border-radius: 9px; font-size: 12px; }
.sidebar-discussion .cmt-compose-foot { gap: 6px; margin-top: 8px; }
.sidebar-discussion .cmt-compose-foot .comment-remaining,
.sidebar-discussion .cmt-compose-hint { font-size: 10px; }
.sidebar-discussion .cmt-compose-foot .comment-verify { width: 56px; height: 32px; font-size: 11px; }
.sidebar-discussion .cmt-compose-foot .mac_verify_img { width: 72px; height: 32px; border-radius: 7px; }
.sidebar-discussion .comment_submit { height: 32px; padding: 0 10px; font-size: 11px; }
.sidebar-discussion .cmt-list { max-height: none; }
.sidebar-discussion .cmt-item { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); border-radius: 0; background: transparent; }
.sidebar-discussion .cmt-avatar img { width: 30px; height: 30px; border-radius: 50%; }
.sidebar-discussion .cmt-meta { gap: 8px; }
.sidebar-discussion .cmt-meta strong { font-size: 12px; }
.sidebar-discussion .cmt-meta time { font-size: 10px; }
.sidebar-discussion .cmt-text { margin-top: 4px; font-size: 12px; line-height: 1.6; }
.sidebar-discussion .cmt-actions { margin-top: 6px; gap: 12px; font-size: 10px; }

.play-notice { align-items: flex-start; }
.play-notice strong { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.watch-top .play-notice { margin-bottom: 12px; }

/* ==========================================================================
   Homepage hero — WGONE full-width layout
   ========================================================================== */

.hero--wgone {
    position: relative;
    width: 100%;
    padding: 18px 0 0;
    background: transparent;
}

.hero--wgone .hero-slider {
    position: relative;
    width: min(calc(100% - 40px), var(--shell));
    height: min(64vh, 680px);
    min-height: 540px;
    margin: 0 auto;
    aspect-ratio: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background: #171923;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.hero--wgone .hero-slide { height: 100%; }

.hero--wgone .hero-bg,
.hero--wgone .hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 24%;
    transform: scale(1.02);
    transition: transform 7s ease;
}
.hero--wgone .hero-slide.is-active .hero-bg { transform: scale(1); }

.hero--wgone .hero-shade {
    background:
        linear-gradient(90deg, rgba(6, 9, 16, 0.96) 0%, rgba(6, 9, 16, 0.74) 34%, rgba(6, 9, 16, 0.18) 70%, rgba(6, 9, 16, 0.02) 100%),
        linear-gradient(0deg, rgba(6, 9, 16, 0.94) 0%, rgba(6, 9, 16, 0.18) 54%, transparent 78%);
}

.hero--wgone .hero-content {
    position: absolute;
    top: auto;
    bottom: clamp(42px, 6vw, 76px);
    left: clamp(34px, 6vw, 94px);
    z-index: 3;
    width: min(600px, 52%);
    padding: 0;
    transform: none;
}

.hero--wgone .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #b8e8fa;
}

.hero-type {
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8bd7f5, #1683bd);
    color: #07131c;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero--wgone .hero-title {
    max-width: 700px;
    margin: 0 0 16px;
    font-size: clamp(42px, 5.2vw, 76px);
    font-weight: 760;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.hero--wgone .hero-title a { color: #f7f7fb; }
.hero--wgone .hero-title a:hover { color: #b8e8fa; }

.hero--wgone .hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin: 0;
    color: #d4d5dc;
    font-size: 13px;
}
.hero--wgone .hero-meta > span:not(.hero-score) + span::before {
    content: "·";
    margin-right: 14px;
    color: #5f6270;
}
.hero-score { display: inline-flex; align-items: baseline; gap: 2px; color: #45d69a; }
.hero-score b { font-size: 17px; font-weight: 750; }
.hero-score small { font-size: 10px; color: #8d909f; }

.hero--wgone .hero-summary {
    display: -webkit-box;
    max-width: 520px;
    margin: 18px 0 24px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #c2c5d0;
    font-size: 14px;
    line-height: 1.8;
}

.hero--wgone .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero--wgone .hero-actions .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }

.hero-poster {
    position: absolute;
    right: clamp(34px, 6vw, 92px);
    bottom: 9%;
    z-index: 3;
    width: clamp(190px, 19vw, 286px);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transform: rotate(2.5deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hero-poster:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 36px 80px rgba(0, 0, 0, 0.6); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-poster-score {
    position: absolute;
    top: 11px;
    right: 11px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(8, 11, 18, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: #8bd7f5;
}

.hero--wgone .hero-controls {
    right: 30px;
    bottom: 24px;
    z-index: 4;
    gap: 10px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(10, 13, 20, 0.42);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.hero--wgone .hero-nav {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1100px) {
    .hero--wgone .hero-content { width: 58%; }
    .hero-poster { right: 5%; width: 210px; }
}

@media (max-width: 820px) {
    .hero--wgone { padding-top: 10px; }
    .hero--wgone .hero-slider {
        width: calc(100% - 24px);
        height: 38vh;
        min-height: 320px;
        border-radius: 22px;
    }
    .hero--wgone .hero-bg { background-position: 62% center; }
    .hero--wgone .hero-shade {
        background: linear-gradient(0deg, rgba(6, 9, 16, 0.98) 4%, rgba(6, 9, 16, 0.72) 58%, rgba(6, 9, 16, 0.18) 100%);
    }
    .hero--wgone .hero-content {
        bottom: 38px;
        left: 22px;
        width: calc(100% - 44px);
    }
    .hero--wgone .hero-eyebrow { margin-bottom: 9px; font-size: 9px; }
    .hero--wgone .hero-title { margin-bottom: 9px; font-size: clamp(27px, 7vw, 36px); letter-spacing: -0.035em; }
    .hero--wgone .hero-meta { gap: 6px 10px; font-size: 11px; }
    .hero--wgone .hero-meta > span:not(.hero-score) + span::before { margin-right: 10px; }
    .hero--wgone .hero-summary { margin: 9px 0 13px; -webkit-line-clamp: 2; font-size: 11.5px; line-height: 1.6; }
    .hero--wgone .hero-actions { gap: 8px; }
    .hero--wgone .hero-actions .btn { min-height: 38px; padding: 0 14px; font-size: 11px; }
    .hero-poster { display: none; }
    .hero--wgone .hero-controls { right: 14px; bottom: 12px; padding: 4px; }
    .hero--wgone .hero-nav { display: none; }
    .hero--wgone .hero-dots { padding: 0 4px; }
}

@media (max-width: 520px) {
    .hero--wgone .hero-slider { height: 34vh; min-height: 300px; }
    .hero--wgone .hero-title { font-size: 27px; }
}

.history-panel::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
}

@media (max-width: 1179px) {
    .watch-layout--sidebar { display: flex; flex-direction: column; gap: 16px; }
    .watch-main { display: contents; }
    .player-holder { order: 1; }
    .player-toolbar { order: 2; margin-top: 0; }
    .watch-main > .ad-slot { order: 3; }
    .watch-sidebar { order: 4; margin-top: 0; }
    .watch-main .watch-content { order: 5; margin-top: 0; }
    .watch-main .watch-recommend { order: 6; margin-top: 8px; }
}

@media (max-width: 1179px) {
    .watch-layout--sidebar { align-items: stretch; }
    .watch-layout--sidebar .player-holder,
    .watch-layout--sidebar .player-toolbar,
    .watch-layout--sidebar .watch-sidebar,
    .watch-layout--sidebar .watch-content,
    .watch-layout--sidebar .watch-recommend,
    .watch-layout--sidebar .ad-slot { width: 100%; }
}

/* Homepage four-star picks */
.home-picks { margin-top: 26px; }
.picks-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.pick-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 55%), rgba(23, 25, 35, 0.72);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pick-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 215, 245, 0.45);
    box-shadow: 0 16px 38px rgba(22, 131, 189, 0.16);
}
.pick-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #20232f;
}
.pick-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.pick-card:hover .pick-media img { transform: scale(1.055); }
.pick-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 9, 16, 0.86) 0%, rgba(6, 9, 16, 0.12) 55%, rgba(6, 9, 16, 0.28) 100%);
}
.pick-no {
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.pick-stars {
    position: absolute;
    top: 9px;
    right: 9px;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 4px 7px;
    border: 1px solid rgba(139, 215, 245, 0.28);
    border-radius: 6px;
    background: rgba(8, 11, 18, 0.68);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #8bd7f5;
}
.pick-stars .ico { width: 11px; height: 11px; }
.pick-stars em {
    margin-left: 4px;
    font-family: var(--mono);
    font-size: 8px;
    font-style: normal;
    letter-spacing: 0.08em;
    color: #b8e8fa;
}
.pick-body { display: block; padding: 12px 13px 13px; }
.pick-body strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    color: #f7f7fb;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pick-body small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    font-size: 10.5px;
    color: #8d909f;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pick-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 10px;
    color: #747785;
}
.pick-meta i { font-style: normal; color: #8bd7f5; }

@media (max-width: 1024px) {
    .picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 640px) {
    .home-picks { margin-top: 18px; }
    .picks-grid { gap: 10px; }
    .pick-card { border-radius: 12px; }
    .pick-media { aspect-ratio: 16 / 11; }
    .pick-no { top: 8px; left: 9px; font-size: 18px; }
    .pick-stars { top: 7px; right: 7px; padding: 3px 5px; }
    .pick-stars em { display: none; }
    .pick-body { padding: 9px 10px 10px; }
    .pick-body strong { font-size: 13px; }
    .pick-meta { margin-top: 5px; }
}

/* Keep many playback sources on one horizontal rail */
.sidebar-episodes .source-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    padding: 0 0 7px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.sidebar-episodes .source-tabs::-webkit-scrollbar { display: none; }
.sidebar-episodes .source-tab {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 10.5px;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .sidebar-episodes .source-tab { min-height: 30px; padding: 0 8px; font-size: 10px; }
}

.sidebar-episodes { min-width: 0; }
.sidebar-episodes #play-sources { min-width: 0; }

/* Quick comment entry in the play sidebar */
.comment-cta {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: 13px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: #8d909f;
    text-align: left;
    cursor: pointer;
}
.comment-cta:hover { border-color: rgba(139, 215, 245, 0.45); background: rgba(22, 131, 189, 0.09); }
.comment-cta-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: rgba(22, 131, 189, 0.16);
    color: #8bd7f5;
}
.comment-cta-icon .ico { width: 14px; height: 14px; }
.comment-cta-text { flex: 1; min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.comment-cta > .ico { color: #5f6270; }
.comment-cta:hover > .ico { color: #8bd7f5; }
.sidebar-comment-box { border-top: 1px solid rgba(255, 255, 255, 0.09); }

/* UP NEXT: six picks in two rows of three */
.watch-main .watch-recommend .poster-grid--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.watch-main .watch-recommend .card-poster { border-radius: 12px; }
@media (max-width: 1024px) {
    .watch-main .watch-recommend .poster-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Navigation typography: larger, heavier, sans-serif */
.breadcrumb {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #8d909f;
}
.breadcrumb a { color: #b8bcc8; font-weight: 600; }
.breadcrumb span.sep { color: #4a4d59; font-weight: 500; }

.nav a { font-size: 15px; font-weight: 600; }
.mobile-nav a { font-size: 15px; font-weight: 600; }
.mobile-nav a small { font-weight: 500; }

.filter-label { font-size: 12px; font-weight: 600; color: #8d909f; }
.filter-links a { font-size: 13px; font-weight: 600; padding: 5px 11px; }
.filter-links a.is-active { font-weight: 700; }
.sort-links a { font-size: 13px; font-weight: 600; }
.section-children a { font-size: 13px; font-weight: 600; padding: 5px 11px; }

.page-title { font-size: clamp(32px, 3.2vw, 44px); font-weight: 800; }
.page-title .ico { width: 26px; height: 26px; }
.page-desc { margin-top: 8px; font-size: 14px; font-weight: 450; line-height: 1.75; color: #a9acba; }
.page-count { font-size: 13px; font-weight: 500; }
.section-title { font-size: clamp(24px, 2.3vw, 31px); font-weight: 800; }
.section-title .ico { width: 20px; height: 20px; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; }
.section-sub { font-family: var(--font-sans); font-size: 12px; font-weight: 450; letter-spacing: 0; }

.footer-nav a, .footer-map-links a { font-size: 12px; font-weight: 600; }
.source-tab { font-weight: 600; }
.episode { font-weight: 600; }

@media (max-width: 640px) {
    .breadcrumb { font-size: 11.5px; }
    .nav a { font-size: 14px; }
    .page-title { font-size: 28px; }
    .page-title .ico { width: 21px; height: 21px; }
    .page-desc { font-size: 12.5px; }
    .filter-links a, .section-children a { font-size: 12px; }
}

/* Page title icon: larger glass badge instead of a tiny inline glyph */
.page-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.page-title .ico {
    width: 48px;
    height: 48px;
    flex: none;
    padding: 10px;
    border: 1px solid rgba(139, 215, 245, 0.28);
    border-radius: 14px;
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(139, 215, 245, 0.18), transparent 60%),
        rgba(22, 131, 189, 0.1);
    color: #8bd7f5;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 0 22px rgba(22, 131, 189, 0.12);
}
@media (max-width: 640px) {
    .page-title { gap: 10px; }
    .page-title .ico { width: 40px; height: 40px; padding: 8px; border-radius: 11px; }
}

/* Search page: stronger input + visible SVG submit button */
.search-page-form {
    max-width: 760px;
    height: 60px;
    padding: 0 7px 0 20px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)), rgba(23, 25, 35, 0.78);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-page-form:focus-within {
    border-color: rgba(139, 215, 245, 0.58);
    box-shadow: 0 0 0 1px rgba(139, 215, 245, 0.12), 0 20px 46px rgba(22, 131, 189, 0.14);
}
.search-page-form > svg { width: 20px; height: 20px; color: #8bd7f5; }
.search-page-form input { font-size: 15px; font-weight: 500; }
.search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    padding: 0 24px;
    border-radius: 11px;
    background: linear-gradient(135deg, #b8e8fa, #1683bd);
    color: #07131c;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 0 20px rgba(22, 131, 189, 0.26), inset 0 1px rgba(255, 255, 255, 0.45);
}
.search-page-form button svg { width: 17px; height: 17px; color: #07131c; }
.search-page-form button:hover {
    background: linear-gradient(135deg, #e2f7ff, #2a9fd6);
    box-shadow: 0 0 26px rgba(139, 215, 245, 0.36);
}
@media (max-width: 640px) {
    .search-page-form { height: 52px; padding: 0 6px 0 14px; gap: 8px; border-radius: 13px; }
    .search-page-form > svg { width: 17px; height: 17px; }
    .search-page-form input { font-size: 13px; }
    .search-page-form button { height: 40px; padding: 0 15px; font-size: 12px; border-radius: 9px; }
    .search-page-form button svg { width: 14px; height: 14px; }
}

.gbook-prefill {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 8px 11px;
    border: 1px solid rgba(139, 215, 245, 0.24);
    border-radius: 8px;
    background: rgba(22, 131, 189, 0.08);
    font-size: 12px;
    color: #8d909f;
}
.gbook-prefill b { color: #8bd7f5; font-weight: 650; }

/* Site-wide status chips: high-contrast glass labels */
.card-badge,
.detail-poster .badge {
    top: 9px;
    left: 9px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 62px);
    padding: 4px 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 215, 245, 0.5);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(6, 10, 18, 0.94), rgba(12, 20, 32, 0.86));
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(22, 131, 189, 0.16);
    color: #e8f8ff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: none;
    border-radius: 50%;
    background: #8bd7f5;
    box-shadow: 0 0 8px rgba(139, 215, 245, 0.9);
}

.card-score {
    top: 9px;
    right: 9px;
    z-index: 3;
    padding: 4px 7px;
    border: 1px solid rgba(139, 215, 245, 0.5);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(6, 10, 18, 0.94), rgba(12, 20, 32, 0.86));
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(22, 131, 189, 0.16);
    color: #8bd7f5;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
}
.card-score small { color: #b8e8fa; font-size: 8px; font-weight: 600; }

.detail-poster .badge { font-size: 12px; }
.hero-poster-score {
    border-color: rgba(139, 215, 245, 0.5);
    background: rgba(6, 10, 18, 0.82);
    color: #8bd7f5;
    font-weight: 750;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.pick-stars {
    border-color: rgba(139, 215, 245, 0.45);
    background: rgba(6, 10, 18, 0.82);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.pick-stars .ico { width: 12px; height: 12px; }

@media (max-width: 640px) {
    .card-badge, .detail-poster .badge { top: 6px; left: 6px; padding: 3px 6px; font-size: 10px; }
    .card-score { top: 6px; right: 6px; padding: 3px 6px; font-size: 12px; }
}

.card-meta { color: #a9acba; font-size: 11.5px; }
.card-title { color: #e2e4ea; }

/* Backend star level badge on poster cards */
.card-stars {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 7px;
    border: 1px solid rgba(139, 215, 245, 0.5);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(6, 10, 18, 0.94), rgba(12, 20, 32, 0.86));
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(22, 131, 189, 0.16);
    color: #8bd7f5;
}
.card-stars .ico {
    width: 12px;
    height: 12px;
    filter: drop-shadow(0 0 4px rgba(139, 215, 245, 0.55));
}
@media (max-width: 640px) {
    .card-stars { top: 6px; right: 6px; padding: 3px 5px; gap: 1px; }
    .card-stars .ico { width: 10px; height: 10px; }
}

/* ==========================================================================
   Homepage horizontal rails — WGONE TV-style
   ========================================================================== */

.section-head-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.rail-nav { display: none; align-items: center; gap: 7px; }
[data-rail].has-overflow .rail-nav { display: flex; }

.rail-btn {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(23, 25, 35, 0.78);
    color: #c2c5d0;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.rail-btn:hover:not(:disabled) {
    border-color: rgba(139, 215, 245, 0.55);
    background: rgba(22, 131, 189, 0.16);
    color: #8bd7f5;
}
.rail-btn:disabled { opacity: 0.3; cursor: default; }

.home-rail-shell { position: relative; min-width: 0; }

.rail-track {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(160px, 15vw, 220px);
    gap: 16px;
    padding: 3px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { min-width: 0; scroll-snap-align: start; }

.rail-track--topics { grid-auto-columns: clamp(270px, 27vw, 360px); gap: 16px; }

/* Cards in rails keep the head/meta compact */
.rail-track .card-title { margin-top: 8px; }
.rail-track .card-meta { margin-top: 3px; }

@media (max-width: 1024px) {
    .rail-track { grid-auto-columns: clamp(150px, 21vw, 190px); gap: 13px; }
    .rail-track--topics { grid-auto-columns: clamp(240px, 36vw, 300px); }
}
@media (max-width: 640px) {
    .rail-nav { display: none !important; }
    .rail-track { grid-auto-columns: 42vw; gap: 11px; padding-bottom: 6px; }
    .rail-track--topics { grid-auto-columns: 78vw; gap: 12px; }
}

/* Episode pills: true horizontal + vertical centering */
.sidebar-episodes .episode {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}
@media (max-width: 640px) {
    .sidebar-episodes .episode { min-height: 38px; font-size: 11.5px; }
}

/* Report modal: cancel double padding and align the form */
.mac_pop .pop_content .report-box {
    margin: -20px;
    padding: 20px;
    border-radius: 0;
    background: transparent;
}
.mac_pop .pop_content .report-title { margin: 0 0 12px; font-size: 14px; font-weight: 650; }
.mac_pop .pop_content .report-textarea { min-height: 118px; width: 100%; }
.mac_pop .pop_content .report-foot {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}
.mac_pop .pop_content .report-foot .remaining {
    grid-column: 3;
    margin-left: 0;
    text-align: right;
}
.mac_pop .pop_content .report-foot .gbook_submit {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
}
@media (max-width: 640px) {
    .mac_pop .pop_content .report-box { margin: -16px; padding: 16px; }
    .mac_pop .pop_content .report-foot { grid-template-columns: auto auto; }
    .mac_pop .pop_content .report-foot .remaining { grid-column: 1 / -1; text-align: left; }
}

/* Play sidebar source tabs + episode grid alignment */
.sidebar-episodes .source-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 7px;
    scrollbar-width: none;
}
.sidebar-episodes .source-tabs::-webkit-scrollbar { display: none; }
.sidebar-episodes .source-tab {
    flex: 1 1 0;
    min-width: 62px;
    min-height: 34px;
    padding: 0 8px;
    overflow: hidden;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-episodes .episode-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* UP NEXT: four per row, two rows */
.watch-main .watch-recommend .poster-grid--6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1024px) {
    .watch-main .watch-recommend .poster-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 640px) {
    .sidebar-episodes .source-tab { min-width: 54px; padding: 0 6px; font-size: 10px; }
}

/* Keep the back-to-top button clear of the floating player */
body.has-floating-player .back-top {
    right: 420px;
    bottom: 26px;
    z-index: 131;
}

/* Place rail arrows in the side gutters instead of over posters */
.home-rail-shell {
    padding: 0 46px;
}
.rail-btn {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: none;
    transform: translateY(-50%);
}
[data-rail].has-overflow .rail-btn { display: grid; }
.rail-prev { left: 0; }
.rail-next { right: 0; }

@media (max-width: 640px) {
    .home-rail-shell { padding: 0; }
    .rail-btn { display: none !important; }
}

/* Label pages: 更新 / 排行榜 / 高分 / 推荐 */
.label-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.label-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
    font-weight: 600;
    color: #a9acba;
}
.label-tabs a:hover { border-color: rgba(139, 215, 245, 0.45); color: #8bd7f5; }
.label-tabs a.is-active {
    border-color: rgba(139, 215, 245, 0.55);
    background: linear-gradient(90deg, #1683bd, #8bd7f5);
    color: #07131c;
    box-shadow: 0 0 18px rgba(22, 131, 189, 0.22);
}

.label-rank-section .section-head { margin-bottom: 14px; }
.rank-page-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
}
.rank-page-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 10px;
    background: rgba(23, 25, 35, 0.55);
}
.rank-page-item:hover {
    border-color: rgba(139, 215, 245, 0.4);
    background: rgba(22, 131, 189, 0.07);
}
.rank-page-no {
    width: 30px;
    flex: none;
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    color: #8bd7f5;
    text-align: center;
}
.rank-page-item img {
    width: 42px;
    height: 58px;
    flex: none;
    object-fit: cover;
    border-radius: 5px;
    background: #20232f;
}
.rank-page-body { min-width: 0; flex: 1; }
.rank-page-body b {
    display: block;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e4ea;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-page-body small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    font-size: 10px;
    color: #8d909f;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-page-item em {
    flex: none;
    font-family: var(--mono);
    font-size: 10px;
    font-style: normal;
    color: #747785;
}
.label-page .poster-grid { margin-top: 4px; }

/* Stronger desktop rail arrows */
.home-rail-shell { padding: 0 54px; }
.rail-btn {
    width: 42px;
    height: 42px;
    border-color: rgba(139, 215, 245, 0.5);
    background: rgba(16, 23, 34, 0.92);
    color: #dff7ff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 18px rgba(22, 131, 189, 0.2);
    opacity: 1;
}
.rail-btn .ico { width: 18px; height: 18px; }
.rail-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1683bd, #8bd7f5);
    color: #07131c;
    transform: translateY(-50%) scale(1.05);
}
.rail-btn:disabled { opacity: 0.35; }

@media (max-width: 1024px) {
    .rank-page-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .home-rail-shell { padding: 0; }
    .rail-btn { display: none !important; }
    .label-tabs a { font-size: 11px; padding: 6px 10px; }
    .rank-page-list { gap: 7px; }
    .rank-page-no { width: 24px; font-size: 14px; }
    .rank-page-item img { width: 38px; height: 52px; }
}

.sidebar-episodes .source-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1280px) {
    .nav > a[href*="label/"] { display: none; }
    .mobile-toggle { display: inline-flex; }
}

/* Friend links: spaced chips */
.friend-links .section-head { margin-bottom: 13px; }
.friend-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 10px;
    align-items: center;
}
.friend-links-grid a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.028);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #a9acba;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.friend-links-grid a:hover {
    border-color: rgba(139, 215, 245, 0.45);
    background: rgba(22, 131, 189, 0.08);
    color: #8bd7f5;
}

/* Homepage anime: WGONE compact three-column list */
.anime-compact-panel {
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)), rgba(23, 25, 35, 0.68);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.anime-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 28px;
    margin: 0;
}
.anime-compact-grid .card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease;
}
.anime-compact-grid .card:hover { background: rgba(255, 255, 255, 0.045); transform: translateX(3px); }
.anime-compact-grid .card-poster {
    width: 52px;
    height: 70px;
    aspect-ratio: auto;
    border: 0;
    border-radius: 8px;
    background: #20232f;
    box-shadow: none;
    overflow: hidden;
}
.anime-compact-grid .card-poster img { width: 100%; height: 100%; object-fit: cover; }
.anime-compact-grid .card-badge,
.anime-compact-grid .card-stars,
.anime-compact-grid .card-score,
.anime-compact-grid .card-play,
.anime-compact-grid .card-foot { display: none !important; }
.anime-compact-grid .card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.38;
}
.anime-compact-grid .card-meta {
    margin-top: 4px;
    overflow: hidden;
    font-size: 10px;
    color: #8d909f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .anime-compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
}
@media (max-width: 640px) {
    .friend-links-grid { gap: 7px 8px; }
    .friend-links-grid a { min-height: 30px; padding: 5px 10px; font-size: 11px; }
    .anime-compact-panel { padding: 14px; border-radius: 16px; }
    .anime-compact-grid { grid-template-columns: 1fr; gap: 4px; }
}

/* Detail page community star rating */
.detail-main { position: relative; }
.detail-score-card {
    position: absolute;
    top: 4px;
    right: 0;
    z-index: 3;
    width: 292px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(155deg, rgba(139, 215, 245, 0.07), rgba(255, 255, 255, 0.012) 58%),
        rgba(20, 24, 34, 0.86);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.score-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.score-card-head .eyebrow { margin: 0; }
.score-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: #45d69a;
}
.score-live i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #45d69a;
    box-shadow: 0 0 8px rgba(69, 214, 154, 0.8);
}
.score-card-title { margin: 14px 0 0; font-size: 12px; color: #a9acba; }
.score-card-value { display: flex; align-items: baseline; gap: 5px; margin: 2px 0 7px; }
.score-card-value b {
    font-family: var(--mono);
    font-size: 40px;
    font-weight: 750;
    line-height: 1;
    color: #8bd7f5;
    text-shadow: 0 0 26px rgba(139, 215, 245, 0.24);
}
.score-card-value small { font-family: var(--mono); font-size: 11px; color: #747785; }
.score-stars { display: flex; gap: 4px; margin: 4px 0 10px; }
.score-stars button {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    background: none;
    color: #3d4552;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}
.score-stars button .ico { width: 27px; height: 27px; fill: currentColor; }
.score-stars button.is-on { color: #8bd7f5; filter: drop-shadow(0 0 7px rgba(139, 215, 245, 0.45)); }
.score-stars button.is-hover { color: #b8e8fa; transform: translateY(-1px); }
.score-card-meta { margin: 0; font-size: 11px; color: #8d909f; }
.score-card-meta b { color: #d4d5dc; font-weight: 600; }
.score-card-msg { min-height: 16px; margin: 7px 0 0; font-size: 10px; line-height: 1.5; color: #747785; }
.score-card-msg.is-ok { color: #45d69a; }
.score-card-msg.is-error { color: #fc8a9c; }

@media (max-width: 1320px) {
    .detail-score-card {
        position: static;
        width: 100%;
        max-width: 360px;
        margin-top: 18px;
    }
}
@media (max-width: 640px) {
    .detail-score-card { padding: 14px; border-radius: 14px; }
    .score-card-value b { font-size: 34px; }
    .score-stars button { width: 28px; height: 28px; }
    .score-stars button .ico { width: 25px; height: 25px; }
}

/* UP NEXT: 5 columns x 2 rows, tighter card scale */
.watch-main .watch-recommend .poster-grid--6 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 12px;
}
.watch-main .watch-recommend .card-poster { border-radius: 10px; }
.watch-main .watch-recommend .card-title {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
}
.watch-main .watch-recommend .card-meta {
    gap: 5px;
    margin-top: 4px;
    font-size: 9.5px;
}
.watch-main .watch-recommend .card-stars { gap: 1px; }
.watch-main .watch-recommend .card-stars .ico { width: 9px; height: 9px; }

@media (max-width: 1024px) {
    .watch-main .watch-recommend .poster-grid--6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 12px;
    }
}
@media (max-width: 640px) {
    .watch-main .watch-recommend .poster-grid--6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }
}

/* Category filter entry matches the plain subcategory links */
.filter-links a.filter-entry {
    padding: 5px 11px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-weight: 600;
    color: #a9acba;
}
.filter-links a.filter-entry:hover { color: #fff; background: #20232f; }

/* Current sub-category in card meta */
.card-meta .card-cat { color: #7fb9d4; }

/* Mobile filter accordion: one line until expanded */
.filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(139, 215, 245, 0.25);
    border-radius: 5px;
    background: rgba(22, 131, 189, 0.08);
    font-size: 10px;
    line-height: 1;
    color: #8bd7f5;
    cursor: pointer;
}
.filter-toggle[hidden] { display: none !important; }

@media (max-width: 768px) {
    .filter-panel { margin-top: 16px; padding: 6px 12px; border-radius: 12px; }
    .filter-row {
        position: relative;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 48px 8px 0;
    }
    .filter-label {
        width: 32px;
        padding-top: 5px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }
    .filter-row .filter-links {
        flex: 1;
        max-height: 29px;
        overflow: hidden;
        flex-wrap: wrap;
        gap: 4px 3px;
    }
    .filter-row.is-open .filter-links { max-height: none; }
    .filter-row .filter-links a {
        padding: 4px 7px;
        font-size: 11px;
        font-weight: 500;
    }
    .filter-toggle {
        position: absolute;
        top: 5px;
        right: 0;
        display: inline-flex;
    }
}

/* Mobile detail: stack poster, full-width info, collapsible synopsis */
.detail-desc-wrap { max-width: 860px; margin-top: 20px; }
.detail-desc-wrap .detail-desc { margin-top: 0; }
.detail-desc-toggle {
    display: none;
    align-items: center;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 11px;
    font-weight: 600;
    color: #8bd7f5;
    cursor: pointer;
}
.detail-desc-toggle[hidden] { display: none !important; }

@media (max-width: 640px) {
    .detail-wrap { padding-top: 22px; }
    .detail-grid { display: block; }
    .detail-poster {
        width: 108px;
        margin: 0 0 12px;
        border-radius: 9px;
    }
    .detail-poster .badge { top: 6px; left: 6px; font-size: 9px; }
    .detail-main { width: 100%; padding-top: 0; }
    .detail-title { font-size: 23px; line-height: 1.2; }
    .detail-sub { margin-top: 6px; }
    .detail-meta { margin-top: 10px; gap: 5px 7px; }
    .detail-desc-wrap { margin-top: 14px; }
    .detail-desc {
        margin-top: 0;
        font-size: 12px;
        line-height: 1.75;
        -webkit-line-clamp: 3;
    }
    .detail-desc.is-open {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }
    .detail-desc-toggle { display: inline-flex; }
    .detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        margin-top: 14px;
    }
    .detail-actions .btn { width: 100%; height: 36px; padding: 0 8px; font-size: 11px; }
    .detail-actions .btn-primary { grid-column: 1 / -1; }
    .detail-actions .icon-btn { width: 100%; height: 36px; border-radius: 999px; }
    .detail-facts {
        grid-template-columns: 1fr;
        margin-top: 14px;
        padding-top: 12px;
        gap: 6px;
        font-size: 11.5px;
    }
    .detail-score-card {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 16px;
    }
    .detail-story-panel { display: none; }
}

/* Mobile detail: poster on the left, title/meta/synopsis fill the right gap */
@media (max-width: 640px) {
    .detail-grid { display: block; }
    .detail-poster {
        float: left;
        width: 108px;
        margin: 0 14px 10px 0;
    }
    .detail-main { width: auto; padding-top: 0; }
    .detail-title { font-size: 21px; line-height: 1.22; }
    .detail-sub { margin-top: 5px; }
    .detail-meta { margin-top: 8px; overflow: hidden; }
    .detail-desc-wrap { margin-top: 10px; }
    .detail-desc { font-size: 11.5px; line-height: 1.65; -webkit-line-clamp: 3; }
    .detail-actions { clear: both; margin-top: 14px; }
    .detail-facts { clear: both; }
    .detail-score-card { clear: both; }
}

/* Play page mobile: summary expands, duplicate story block hidden */
.sidebar-summary-wrap { margin: 0; }
.sidebar-summary-toggle {
    display: none;
    align-items: center;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 11px;
    font-weight: 600;
    color: #8bd7f5;
    cursor: pointer;
}
.sidebar-summary-toggle[hidden] { display: none !important; }

@media (max-width: 640px) {
    .watch-main .watch-content { display: none !important; }
    .sidebar-summary.is-open {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }
    .sidebar-summary-toggle { display: inline-flex; }
}

/* Mobile drawer: compact two-column navigation */
.mobile-drawer-panel { padding: 22px 18px; }
.mobile-drawer-head { margin-bottom: 18px; }
.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.022);
    font-size: 13px;
    font-weight: 600;
    color: #d6d8e0;
}
.mobile-nav a:first-child { grid-column: 1 / -1; min-height: 44px; }
.mobile-nav a span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mobile-nav a .ico { width: 16px; height: 16px; flex: none; color: #8bd7f5; }
.mobile-nav a small { display: none; }
.mobile-nav a:hover {
    border-color: rgba(139, 215, 245, 0.4);
    background: rgba(22, 131, 189, 0.08);
    color: #8bd7f5;
}
.mobile-drawer-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}
.mobile-drawer-foot .btn {
    width: 100%;
    height: 36px;
    padding: 0 8px;
    font-size: 12px;
}

/* Mobile login / register: top aligned, compact glass card */
@media (max-width: 640px) {
    .auth-page {
        display: block;
        min-height: 0;
        background:
            radial-gradient(420px 300px at 80% 6%, rgba(22, 131, 189, 0.16), transparent 70%),
            transparent;
    }
    .auth-form-side {
        display: block;
        min-height: 0;
        padding: 20px 16px 30px;
    }
    .auth-card {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 22px 18px 20px;
        border: 1px solid rgba(255, 255, 255, 0.085);
        border-radius: 18px;
        background:
            linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 60%),
            rgba(17, 21, 30, 0.86);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    }
    .auth-card::before {
        content: "MEMBER // ACCESS";
        display: block;
        margin-bottom: 9px;
        font-family: var(--mono);
        font-size: 8px;
        font-weight: 600;
        letter-spacing: 0.22em;
        color: #8bd7f5;
    }
    .auth-card h1 { font-size: 25px; line-height: 1.2; }
    .auth-card > p { margin-top: 6px; font-size: 12px; line-height: 1.65; }
    .auth-form { margin-top: 18px; gap: 12px; }
    .field label { margin-bottom: 6px; font-size: 10.5px; }
    .field input { height: 44px; padding: 0 12px; font-size: 13.5px; }
    .field-row img { width: 104px; height: 44px; }
    .auth-form .btn-block { height: 44px; font-size: 13px; }
    .auth-links { margin-top: 12px; font-size: 11px; }
    .auth-note { margin-top: 14px; font-size: 10.5px; line-height: 1.65; }
}

/* Mobile homepage: six items per channel, two anime per row */
@media (max-width: 640px) {
    .home-channel-grid > .card:nth-child(n+7) { display: none !important; }
    .anime-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 10px;
    }
    .anime-compact-grid .card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 9px;
        padding: 6px;
    }
    .anime-compact-grid .card-poster { width: 44px; height: 60px; }
    .anime-compact-grid .card-title { font-size: 11.5px; line-height: 1.3; }
    .anime-compact-grid .card-meta { font-size: 9px; }
}

/* Anime compact cards: keep meta under the title, never under the poster */
.anime-compact-grid .card-poster {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}
.anime-compact-grid .card-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}
.anime-compact-grid .card-meta {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    overflow: visible;
    white-space: normal;
}

@media (max-width: 640px) {
    /* Narrow anime card: year + current sub-category are enough */
    .anime-compact-grid .card-meta span:nth-child(2) { display: none; }
    .anime-compact-grid .card-meta span + span::before { margin: 0 2px; }
}

/* Mobile pagination: summary on its own row, controls centered below */
@media (max-width: 640px) {
    .mac_pages {
        gap: 7px;
        margin-top: 24px;
        justify-content: center;
    }
    .mac_pages .page_tip {
        flex: 1 0 100%;
        height: auto;
        min-height: 18px;
        padding: 0 0 2px;
        border: 0;
        background: none;
        font-size: 11px;
        text-align: center;
    }
    .mac_pages a,
    .mac_pages .page_tip {
        border-radius: 7px;
    }
    .mac_pages a {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 11px;
    }
    .mac_pages a .ico { width: 11px; height: 11px; }
}

/* Mobile detail: inline highlighted synopsis toggle + two facts per row */
@media (max-width: 640px) {
    .detail-desc-wrap { position: relative; }
    .detail-desc-wrap .detail-desc { padding-bottom: 16px; }
    .detail-desc-toggle {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: inline-flex;
        padding: 2px 7px;
        border: 1px solid rgba(139, 215, 245, 0.45);
        border-radius: 5px;
        background: linear-gradient(90deg, #1683bd, #8bd7f5);
        box-shadow: 0 0 14px rgba(22, 131, 189, 0.25);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.5;
        color: #07131c;
    }
    .detail-desc-wrap.is-open .detail-desc-toggle {
        position: static;
        margin-top: 6px;
    }
    .detail-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 16px;
    }
    .detail-facts .fact { gap: 8px; align-items: flex-start; }
    .detail-facts .fact dt { width: 32px; }
    .detail-facts .fact dd {
        font-size: 11px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
}

/* Play page mobile: "看完还可以看" 3 columns x 2 rows */
@media (max-width: 640px) {
    .watch-main .watch-recommend .poster-grid--6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 8px;
    }
    .watch-main .watch-recommend .poster-grid--6 > .card:nth-child(n+7) {
        display: none !important;
    }
    .watch-main .watch-recommend .card-title {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.3;
    }
    .watch-main .watch-recommend .card-meta {
        gap: 3px;
        margin-top: 3px;
        font-size: 8.5px;
    }
    .watch-main .watch-recommend .card-badge {
        top: 4px;
        left: 4px;
        padding: 2px 4px;
        font-size: 8.5px;
    }
    .watch-main .watch-recommend .card-score {
        top: 4px;
        right: 4px;
        padding: 2px 4px;
        font-size: 10px;
    }
    .watch-main .watch-recommend .card-stars { gap: 1px; }
    .watch-main .watch-recommend .card-stars .ico { width: 8px; height: 8px; }
    .watch-main .watch-recommend .card-play { width: 28px; height: 28px; }
}

/* Mobile swipe hints for homepage rails */
.rail-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: #747785;
}
.rail-hint .ico { width: 12px; height: 12px; color: #8bd7f5; opacity: 0.9; }

@media (max-width: 640px) {
    [data-rail].has-overflow .rail-hint { display: flex; }
}

/* Open synopsis: keep the collapse control inline at the end of the text */
@media (max-width: 640px) {
    .detail-desc.is-open { padding-bottom: 0; }
    .detail-desc > .detail-desc-toggle {
        position: static;
        margin: 0 0 0 6px;
        padding: 1px 6px;
        vertical-align: baseline;
    }
    .detail-desc-wrap.is-open .detail-desc > .detail-desc-toggle {
        position: static;
        margin: 0 0 0 6px;
        padding: 1px 6px;
    }
}

@media (max-width: 640px) {
    .detail-meta .score-badge p { display: none; }
}

/* Footer: brand left, legal right, single link row */
.footer-legal-row {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
}
.footer-brand-side { text-align: left; }
.footer-brand-side .brand { justify-content: flex-start; }
.footer-legal { text-align: left; }
.footer-content-note {
    margin-top: 12px;
    color: #5f6270 !important;
}
.footer-bottom { justify-content: flex-start; }

@media (max-width: 820px) {
    .footer-legal-row { grid-template-columns: 1fr; gap: 20px; }
}

/* Footer legal copy aligned to the right edge */
.footer-legal { text-align: right; }
.footer-legal p { margin-left: auto; }

/* Footer: single legal block after removing duplicate link row */
.footer-legal-row {
    border-bottom: 0;
    padding-bottom: 30px;
}
@media (max-width: 1366px) {
    .nav-extra { display: none; }
}

/* Larger footer brand block */
.footer-legal-row { grid-template-columns: 340px minmax(0, 1fr); }
.footer-brand-side .brand { gap: 12px; margin-bottom: 14px; }
.footer-brand-side .brand-mark { width: 48px; height: 48px; }
.footer-brand-side .brand-name { font-size: 22px; }
.footer-brand-side .brand-en { font-size: 9px; }
.footer-brand-side p { font-size: 12px; }
.footer-brand-side .footer-version { margin-top: 5px; }

@media (max-width: 820px) {
    .footer-legal-row { grid-template-columns: 1fr; }
}

/* Header discovery dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    color: #b5b5b5;
    cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle { color: #8bd7f5; }
.nav-dropdown-toggle .ico { width: 16px; height: 16px; }
.nav-dropdown-chevron { transition: transform 0.2s ease; }
.nav-dropdown.is-open .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 180;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    width: 286px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #121722;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.nav-dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #a9acba;
}
.nav-dropdown-panel a:hover {
    background: rgba(22, 131, 189, 0.12);
    color: #8bd7f5;
}
.nav-dropdown-panel .ico { width: 14px; height: 14px; flex: none; }

/* Never squeeze the login chip */
.header-actions { flex: 0 0 auto; }
.user-chip { flex: 0 0 auto; white-space: nowrap; }
.user-chip .user-name { white-space: nowrap; }

/* Detail synopsis: expandable on desktop too, with no duplicate story panel */
.detail-desc-wrap { position: relative; }
.detail-desc-wrap .detail-desc { padding-bottom: 18px; }
.detail-desc-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border: 1px solid rgba(139, 215, 245, 0.45);
    border-radius: 5px;
    background: linear-gradient(90deg, #1683bd, #8bd7f5);
    box-shadow: 0 0 14px rgba(22, 131, 189, 0.25);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    color: #07131c;
    cursor: pointer;
}
.detail-desc-wrap.is-open .detail-desc-toggle {
    position: static;
    margin-top: 6px;
}
.detail-desc.is-open {
    display: block;
    overflow: visible;
    padding-bottom: 0;
    -webkit-line-clamp: unset;
}
.detail-desc > .detail-desc-toggle {
    position: static;
    margin: 0 0 0 6px;
    padding: 1px 6px;
    vertical-align: baseline;
}
.detail-desc-wrap.is-open .detail-desc > .detail-desc-toggle {
    position: static;
    margin: 0 0 0 6px;
    padding: 1px 6px;
}

/* Auth page left visual */
.auth-art-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.auth-art-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.05) brightness(0.62);
    transform: scale(1.02);
}
.auth-art-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 10, 16, 0.25), rgba(8, 10, 16, 0.72)),
        linear-gradient(0deg, rgba(8, 10, 16, 0.92), transparent 62%);
}
.auth-art::before { z-index: 1; pointer-events: none; }
.auth-art-inner { z-index: 2; pointer-events: none; }
.auth-art-inner a, .auth-art-inner .mark { pointer-events: auto; }

/* Auth visual: blurred backdrop + framed six-star poster */
.auth-art-visual { z-index: 1; }
.auth-art::before { z-index: 0; }
.auth-art-visual .auth-art-bg {
    position: absolute;
    top: -28px;
    left: -28px;
    width: calc(100% + 56px);
    height: calc(100% + 56px);
    object-fit: cover;
    filter: blur(26px) brightness(0.38) saturate(0.72);
    transform: none;
    z-index: 0;
}
.auth-art-visual .auth-art-poster {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(54%, 360px);
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6), 0 0 40px rgba(22, 131, 189, 0.12);
    filter: brightness(0.94) contrast(1.03);
    transform: translate(-50%, -50%);
}
.auth-art-visual::after { z-index: 1; }
.auth-art-inner { z-index: 3; }

/* Play sidebar synopsis: expandable on all screens, no duplicate story block */
.watch-main .watch-content { display: none !important; }
.sidebar-summary-wrap { position: relative; }
.sidebar-summary { padding-bottom: 16px; }
.sidebar-summary-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border: 1px solid rgba(139, 215, 245, 0.45);
    border-radius: 5px;
    background: linear-gradient(90deg, #1683bd, #8bd7f5);
    box-shadow: 0 0 14px rgba(22, 131, 189, 0.25);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    color: #07131c;
    cursor: pointer;
}
.sidebar-summary-toggle[hidden] { display: none !important; }
.sidebar-summary.is-open {
    display: block;
    overflow: visible;
    padding-bottom: 0;
    -webkit-line-clamp: unset;
}
.sidebar-summary-wrap.is-open .sidebar-summary-toggle {
    position: static;
    margin-top: 6px;
}
.sidebar-summary > .sidebar-summary-toggle {
    position: static;
    margin: 0 0 0 6px;
    padding: 1px 6px;
    vertical-align: baseline;
}
.sidebar-summary-wrap.is-open .sidebar-summary > .sidebar-summary-toggle {
    position: static;
    margin: 0 0 0 6px;
    padding: 1px 6px;
}

/* Member upgrade page */
.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.upgrade-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}
.upgrade-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.upgrade-card-head h3 { font-size: 17px; font-weight: 700; }
.upgrade-card-head p { margin-top: 4px; font-size: 11px; line-height: 1.6; color: #8d909f; }
.upgrade-current {
    flex: none;
    padding: 2px 6px;
    border: 1px solid rgba(139, 215, 245, 0.35);
    border-radius: 4px;
    font-size: 9px;
    color: #8bd7f5;
}
.upgrade-plans { display: grid; gap: 7px; margin-top: 14px; }
.upgrade-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
    font-size: 11px;
    color: #a9acba;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.upgrade-plan b { font-size: 12px; color: #8bd7f5; font-weight: 600; }
.upgrade-plan:hover { border-color: rgba(139, 215, 245, 0.45); background: rgba(22, 131, 189, 0.1); }
.upgrade-plan:disabled { opacity: 0.55; cursor: wait; }

@media (max-width: 1024px) { .upgrade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .upgrade-grid { grid-template-columns: 1fr; } }

/* Mobile footer brand block: full width and centered */
@media (max-width: 640px) {
    .footer-brand-side {
        width: 100%;
        text-align: center;
    }
    .footer-brand-side .brand { justify-content: center; }
    .footer-brand-side p { text-align: center; }
}

/* Header member dropdown */
.user-menu { position: relative; }
.user-menu .user-chip {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    cursor: pointer;
}
.user-menu-chevron { width: 12px; height: 12px; color: #747785; transition: transform 0.2s ease; }
.user-menu.is-open .user-menu-chevron { transform: rotate(180deg); }
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 190;
    width: 280px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #121722;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.user-menu.is-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-head { display: flex; align-items: center; gap: 10px; padding: 4px 2px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.user-dropdown-head img,
.user-dropdown-avatar {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(22, 131, 189, 0.18);
    color: #8bd7f5;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.user-dropdown-head b { display: block; font-size: 13px; color: #e2e4ea; }
.user-dropdown-head small { display: block; margin-top: 2px; font-size: 10px; color: #8bd7f5; }
.user-dropdown-stats { display: flex; gap: 18px; padding: 10px 2px; font-size: 10px; color: #8d909f; }
.user-dropdown-stats b { font-family: var(--mono); font-size: 14px; color: #d6d8e0; margin-right: 3px; }
.user-dropdown-links { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px 0; }
.user-dropdown-links a { padding: 7px 8px; border-radius: 5px; font-size: 11px; color: #a9acba; }
.user-dropdown-links a:hover { background: rgba(22, 131, 189, 0.12); color: #8bd7f5; }
.user-dropdown-logout { display: flex; margin-top: 4px; padding: 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 11px; color: #fc8a9c; }
.user-dropdown-logout:hover { color: #ffb1bd; }

/* Member avatar upload */
.member-avatar-editor {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.member-avatar-preview {
    width: 76px;
    height: 76px;
    flex: none;
    padding: 3px;
    border: 1px solid rgba(139, 215, 245, 0.45);
    border-radius: 50%;
    background: rgba(22, 131, 189, 0.1);
    overflow: hidden;
}
.member-avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #171923;
}
.member-avatar-copy p {
    margin: 6px 0 0;
    font-size: 10.5px;
    color: #8d909f;
}
.member-avatar-copy .member-avatar-tip { color: #8bd7f5; }
.member-avatar-copy .btn { margin: 0; }
@media (max-width: 640px) {
    .member-avatar-editor { align-items: flex-start; gap: 12px; }
    .member-avatar-preview { width: 64px; height: 64px; }
}

/* Member recharge packages */
.recharge-packages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.recharge-package {
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    font-family: var(--mono);
    font-size: 13px;
    color: #c2c5d0;
    cursor: pointer;
}
.recharge-package:hover,
.recharge-package.is-active {
    border-color: rgba(139, 215, 245, 0.5);
    background: rgba(22, 131, 189, 0.12);
    color: #8bd7f5;
}
@media (max-width: 640px) { .recharge-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 640px) {
    .user-dropdown { width: min(280px, calc(100vw - 32px)); }
}

/* Member payment confirmation */
.pay-order {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}
.pay-order div { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: #8d909f; }
.pay-order b { color: #d6d8e0; font-weight: 600; }
.pay-order .pay-amount { font-family: var(--mono); font-size: 22px; color: #8bd7f5; }
.pay-form h3 { margin: 20px 0 10px; font-size: 15px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
    color: #b5b8c4;
    cursor: pointer;
}
.pay-method:has(input:checked) { border-color: rgba(139, 215, 245, 0.55); background: rgba(22, 131, 189, 0.12); color: #8bd7f5; }
.pay-method input { accent-color: #1683bd; }
.pay-submit { margin-top: 18px; min-width: 180px; }
@media (max-width: 640px) {
    .pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pay-submit { width: 100%; }
}

/* Bound email/phone display */
.member-bound-value {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
    color: #8d909f;
}
.member-bind-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 10.5px;
    color: #8bd7f5;
}
.bind-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 12px;
    color: #8d909f;
}
.bind-current b { color: #d6d8e0; }

/* Mobile homepage movie ranking: two per row */
@media (max-width: 640px) {
    .rank-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .rank-mini { gap: 6px; padding: 6px; }
    .rank-mini-no { width: 16px; font-size: 12px; }
    .rank-mini img { width: 34px; height: 48px; }
    .rank-mini-body b { font-size: 10.5px; }
    .rank-mini-body small { margin-top: 2px; font-size: 8.5px; }
    .rank-mini em { font-size: 10px; }
}
