/* =========================================================================
   noir — immersive dark cinema theme for Xcms
   Palette: deep slate-black canvas + platinum text + teal-cyan accent
   Type:    modern system sans (distinct from lumen's warm-gold serif)
   Prefix:  .no-   (zero-conflict with other themes / _shared .xc-*)
   ========================================================================= */

:root {
    --no-bg:        #070a12;
    --no-bg-soft:   #0b101c;
    --no-panel:     #0f1626;
    --no-card:      #121b2e;
    --no-card-2:    #16213a;
    --no-line:      rgba(150,175,225,.10);
    --no-line-2:    rgba(150,175,225,.18);
    --no-text:      #eaf1fb;
    --no-text-2:    #aeb9cd;
    --no-mute:      #6f7c95;
    --no-cyan:      #2dd4bf;
    --no-cyan-2:    #5eead4;
    --no-cyan-d:    #0e9c97;
    --no-cyan-soft: rgba(45,212,191,.14);
    --no-cyan-glow: rgba(45,212,191,.45);
    --no-star:      #fbbf24;
    --no-danger:    #fb7185;

    --no-r:      16px;
    --no-r-sm:   11px;
    --no-r-pill: 999px;
    --no-maxw:   1280px;

    --no-shadow:    0 20px 60px rgba(0,0,0,.55);
    --no-shadow-sm: 0 8px 24px rgba(0,0,0,.40);

    --no-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --no-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ----------------------- reset / base ----------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--no-bg);
    color: var(--no-text);
    font-family: var(--no-font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--no-cyan-2); text-decoration: none; transition: color .2s var(--no-ease); }
a:hover { color: var(--no-cyan); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--no-text); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--no-cyan-soft); color: var(--no-text); }

/* dark scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--no-card-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--no-card-2); border-radius: 10px; border: 2px solid var(--no-bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--no-cyan-d); }

/* ----------------------- utilities ----------------------- */
.no-container { width: 100%; max-width: var(--no-maxw); margin-inline: auto; padding-inline: 24px; }
.no-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .22em;
    text-transform: uppercase; color: var(--no-cyan); margin-bottom: 10px;
}

.no-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--no-r-pill); font-size: 14px; font-weight: 600;
    line-height: 1; cursor: pointer; transition: transform .2s var(--no-ease), box-shadow .2s var(--no-ease), background .2s var(--no-ease);
    white-space: nowrap;
}
.no-btn svg { width: 18px; height: 18px; }
.no-btn--primary {
    background: linear-gradient(135deg, var(--no-cyan) 0%, var(--no-cyan-d) 100%);
    color: #04201d; box-shadow: 0 8px 24px var(--no-cyan-glow);
}
.no-btn--primary:hover { color: #04201d; transform: translateY(-2px); box-shadow: 0 12px 32px var(--no-cyan-glow); }
.no-btn--ghost {
    background: rgba(255,255,255,.06); color: var(--no-text);
    border: 1px solid var(--no-line-2); backdrop-filter: blur(6px);
}
.no-btn--ghost:hover { color: var(--no-text); background: rgba(255,255,255,.12); border-color: var(--no-cyan); transform: translateY(-2px); }

.no-pill {
    display: inline-flex; align-items: center; padding: 4px 11px; font-size: 12px; font-weight: 500;
    border-radius: var(--no-r-pill); background: rgba(255,255,255,.08); color: var(--no-text-2);
    border: 1px solid var(--no-line);
}
.no-pill--accent { background: var(--no-cyan-soft); color: var(--no-cyan-2); border-color: rgba(45,212,191,.35); }
.no-pill--star { background: rgba(251,191,36,.12); color: var(--no-star); border-color: rgba(251,191,36,.3); }

/* ----------------------- header / nav ----------------------- */
.no-header {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(180deg, rgba(7,10,18,.92), rgba(7,10,18,.55));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--no-ease), border-color .3s var(--no-ease);
}
.no-header.is-scrolled {
    background: rgba(7,10,18,.88);
    border-bottom-color: var(--no-line);
    box-shadow: 0 6px 30px rgba(0,0,0,.4);
}
.no-header-inner {
    max-width: var(--no-maxw); margin-inline: auto; padding: 0 24px; height: 66px;
    display: flex; align-items: center; gap: 22px;
}
.no-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: .02em; color: var(--no-text); flex-shrink: 0; }
.no-logo:hover { color: var(--no-text); }
.no-logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--no-cyan); background: var(--no-cyan-soft); border: 1px solid rgba(45,212,191,.3); }
.no-logo-text { background: linear-gradient(90deg, var(--no-text), var(--no-cyan-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.no-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.no-nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    padding: 9px 13px; font-size: 14.5px; font-weight: 500; color: var(--no-text-2);
    border-radius: 9px; transition: color .2s var(--no-ease), background .2s var(--no-ease);
}
.no-nav-link:hover { color: var(--no-text); background: rgba(255,255,255,.06); }
.no-nav-link.is-active { color: var(--no-cyan); }
.no-nav-link.is-active::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
    background: var(--no-cyan); border-radius: 2px;
}
.no-nav-group { position: relative; }
.no-nav-group-toggle { cursor: pointer; }
.no-nav-group-arrow { font-size: 10px; opacity: .6; transition: transform .2s var(--no-ease); }
.no-nav-group-toggle[aria-expanded="true"] .no-nav-group-arrow { transform: rotate(180deg); }
.no-nav-submenu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 168px;
    background: var(--no-panel); border: 1px solid var(--no-line-2); border-radius: var(--no-r-sm);
    box-shadow: var(--no-shadow); padding: 7px;
    display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--no-ease), transform .2s var(--no-ease), visibility .2s;
    z-index: 110;
}
.no-nav-group:hover .no-nav-submenu,
.no-nav-group:focus-within .no-nav-submenu,
.no-nav-group.is-open .no-nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.no-nav-subitem { display: block; padding: 9px 12px; font-size: 14px; color: var(--no-text-2); border-radius: 7px; }
.no-nav-subitem:hover { color: var(--no-text); background: rgba(255,255,255,.06); }
.no-nav-subitem.is-active { color: var(--no-cyan); background: var(--no-cyan-soft); }

.no-search { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.no-search-input {
    width: 200px; padding: 9px 14px; font-size: 14px; color: var(--no-text);
    background: rgba(255,255,255,.06); border: 1px solid var(--no-line-2); border-radius: var(--no-r-pill) 0 0 var(--no-r-pill);
    outline: none; transition: width .25s var(--no-ease), border-color .2s var(--no-ease), background .2s var(--no-ease);
}
.no-search-input::placeholder { color: var(--no-mute); }
.no-search-input:focus { width: 260px; border-color: var(--no-cyan); background: rgba(255,255,255,.09); }
.no-search-btn {
    display: grid; place-items: center; width: 40px; height: 38px; color: #04201d;
    background: linear-gradient(135deg, var(--no-cyan), var(--no-cyan-d));
    border-radius: 0 var(--no-r-pill) var(--no-r-pill) 0;
}
.no-search-btn:hover { filter: brightness(1.08); }

.no-menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; }
.no-menu-toggle span { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--no-text); border-radius: 2px; transition: transform .25s var(--no-ease), opacity .2s var(--no-ease); }
.no-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.no-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.no-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.no-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.no-scrim[hidden] { display: none; }

.no-main { display: block; min-height: 50vh; }

/* ----------------------- hero (home) ----------------------- */
.no-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.no-hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center 18%;
    filter: saturate(1.05); transform: scale(1.04); z-index: -2;
}
.no-hero-veil {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(7,10,18,.96) 0%, rgba(7,10,18,.72) 38%, rgba(7,10,18,.25) 70%, rgba(7,10,18,.55) 100%),
        linear-gradient(0deg, var(--no-bg) 4%, rgba(7,10,18,.35) 45%, rgba(7,10,18,.7) 100%),
        radial-gradient(120% 80% at 85% 20%, rgba(45,212,191,.16), transparent 60%);
}
.no-hero-inner { width: 100%; max-width: var(--no-maxw); margin-inline: auto; padding: 0 24px 70px; position: relative; }
.no-hero-eyebrow { color: var(--no-cyan); }
.no-hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; line-height: 1.05;
    max-width: 16ch; text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.no-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.no-hero-desc { max-width: 60ch; color: var(--no-text-2); font-size: 15.5px; line-height: 1.7; }
.no-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ----------------------- sections / rows ----------------------- */
.no-section { padding: 46px 0 10px; }
.no-section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--no-line);
}
.no-section-head-text { display: flex; flex-direction: column; }
.no-section-title { font-size: clamp(1.3rem, 2.6vw, 1.85rem); }
.no-section-more { font-size: 13.5px; font-weight: 600; color: var(--no-cyan); white-space: nowrap; }
.no-section-more:hover { color: var(--no-cyan-2); }

.no-row { position: relative; margin: 0 -24px; padding: 4px 24px; }
.no-row-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scroll-behavior: smooth; }
.no-row-track > .no-card { flex: 0 0 188px; scroll-snap-align: start; }

/* ----------------------- cards ----------------------- */
.no-card { position: relative; }
.no-card-link { display: block; color: inherit; }
.no-card-link:hover { color: inherit; }
.no-card-poster {
    position: relative; aspect-ratio: 2 / 3; border-radius: var(--no-r-sm); overflow: hidden;
    background: var(--no-card); border: 1px solid var(--no-line);
    box-shadow: var(--no-shadow-sm);
}
.no-card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--no-ease); }
.no-card-link:hover .no-card-poster img { transform: scale(1.07); }
.no-card-poster::after {
    content: ""; position: absolute; inset: 0; border-radius: var(--no-r-sm);
    box-shadow: inset 0 0 0 1px rgba(45,212,191,0); transition: box-shadow .25s var(--no-ease);
}
.no-card-link:hover .no-card-poster::after { box-shadow: inset 0 0 0 2px var(--no-cyan), 0 0 26px var(--no-cyan-glow); }
.no-card-shine {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--no-ease);
    background: linear-gradient(160deg, rgba(94,234,212,.18), transparent 45%);
}
.no-card-link:hover .no-card-shine { opacity: 1; }
.no-card-badge {
    position: absolute; top: 8px; left: 8px; padding: 3px 8px; font-size: 11px; font-weight: 600;
    color: var(--no-text); background: rgba(7,10,18,.78); border: 1px solid var(--no-line-2);
    border-radius: var(--no-r-pill); backdrop-filter: blur(4px);
}
.no-card-score {
    position: absolute; top: 8px; right: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700;
    color: var(--no-star); background: rgba(7,10,18,.82); border-radius: var(--no-r-pill);
}
.no-card-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-40%) scale(.85);
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
    color: #04201d; background: var(--no-cyan); opacity: 0; transition: opacity .25s var(--no-ease), transform .25s var(--no-ease);
    box-shadow: 0 0 24px var(--no-cyan-glow);
}
.no-card-link:hover .no-card-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.no-card-body { padding: 10px 2px 4px; }
.no-card-title {
    font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--no-text);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.no-card-link:hover .no-card-title { color: var(--no-cyan-2); }
.no-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--no-mute); }
.no-card-meta span:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--no-line-2); }

/* ----------------------- grid ----------------------- */
.no-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 16px; }
.no-grid--rel { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }

/* ----------------------- list ----------------------- */
.no-list-pad { padding: 34px 0 60px; }
.no-list-head { padding-bottom: 18px; border-bottom: 1px solid var(--no-line); margin-bottom: 22px; }
.no-list-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.no-list-sub { margin-top: 8px; color: var(--no-text-2); font-size: 14px; }
.no-list-sub strong { color: var(--no-cyan-2); }

.no-filter {
    background: var(--no-panel); border: 1px solid var(--no-line); border-radius: var(--no-r);
    padding: 8px 18px; margin-bottom: 26px;
}
.no-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding: 9px 0; border-bottom: 1px dashed var(--no-line); }
.no-filter-row:last-child { border-bottom: 0; }
.no-filter-label { width: 48px; flex-shrink: 0; font-size: 13px; color: var(--no-mute); font-weight: 600; }
.no-filter-item {
    padding: 5px 13px; font-size: 13.5px; color: var(--no-text-2); border-radius: var(--no-r-pill);
    transition: color .2s var(--no-ease), background .2s var(--no-ease);
}
.no-filter-item:hover { color: var(--no-text); background: rgba(255,255,255,.06); }
.no-filter-item.is-active { color: #04201d; background: var(--no-cyan); font-weight: 600; }

/* ----------------------- pagination ----------------------- */
.no-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 40px; }
.no-page-btn, .no-page-num {
    min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: justify-center; justify-content: center;
    font-size: 14px; color: var(--no-text-2); background: var(--no-card); border: 1px solid var(--no-line);
    border-radius: 10px; transition: all .2s var(--no-ease);
}
.no-page-btn:hover, .no-page-num:hover { color: var(--no-text); border-color: var(--no-cyan); background: var(--no-card-2); transform: translateY(-1px); }
.no-page-num.is-active { color: #04201d; background: var(--no-cyan); border-color: var(--no-cyan); font-weight: 700; }

.no-empty {
    text-align: center; padding: 80px 20px; color: var(--no-mute);
    display: grid; gap: 16px; justify-items: center;
}
.no-empty p { font-size: 16px; }

/* ----------------------- detail ----------------------- */
.no-detail-hero { position: relative; overflow: hidden; isolation: isolate; padding: 0 0 46px; }
.no-detail-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 22%; filter: blur(2px) saturate(1.05); transform: scale(1.06); z-index: -2; }
.no-detail-hero-veil {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(7,10,18,.97) 0%, rgba(7,10,18,.82) 50%, rgba(7,10,18,.5) 100%),
        linear-gradient(0deg, var(--no-bg) 2%, rgba(7,10,18,.4) 60%, rgba(7,10,18,.75) 100%),
        radial-gradient(100% 70% at 80% 25%, rgba(45,212,191,.13), transparent 60%);
}
.no-detail-hero-inner { max-width: var(--no-maxw); margin-inline: auto; padding: 110px 24px 0; }
.no-detail-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; max-width: 20ch; text-shadow: 0 4px 28px rgba(0,0,0,.55); }
.no-detail-sub { color: var(--no-text-2); font-size: 15px; margin: -2px 0 4px; }
.no-detail-hook { max-width: 70ch; color: var(--no-text-2); font-size: 15px; line-height: 1.75; margin-top: 16px; }

.no-detail-grid { max-width: var(--no-maxw); margin-inline: auto; padding: 40px 24px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.no-detail-main { min-width: 0; }
.no-block { margin-bottom: 38px; }
.no-block-title {
    position: relative; font-size: 1.3rem; padding-left: 14px; margin-bottom: 18px;
}
.no-block-title::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; background: var(--no-cyan); border-radius: 4px; }
.no-synopsis { color: var(--no-text-2); font-size: 15px; line-height: 1.9; }
.no-synopsis--short { display: inline; }
.no-more-link { color: var(--no-cyan); font-weight: 600; }

/* aside */
.no-detail-aside { position: sticky; top: 86px; display: grid; gap: 18px; }
.no-aside-poster { aspect-ratio: 2 / 3; border-radius: var(--no-r); overflow: hidden; border: 1px solid var(--no-line-2); box-shadow: var(--no-shadow); }
.no-aside-poster img { width: 100%; height: 100%; object-fit: cover; }
.no-aside-play { width: 100%; }
.no-info-card {
    background: var(--no-panel); border: 1px solid var(--no-line); border-radius: var(--no-r);
    padding: 18px 20px;
}
.no-info-dl { display: grid; gap: 11px; }
.no-info-dl > div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 14px; align-items: start; }
.no-info-dl dt { color: var(--no-mute); font-weight: 500; }
.no-info-dl dd { margin: 0; color: var(--no-text-2); }
.no-info-dl dd a { color: var(--no-text-2); }
.no-info-dl dd a:hover { color: var(--no-cyan); }
.no-info-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.no-info-tags a { padding: 3px 10px; font-size: 12.5px; background: rgba(255,255,255,.06); border: 1px solid var(--no-line); border-radius: var(--no-r-pill); }

/* ----------------------- _shared reskin (dark / teal) ----------------------- */
.xc-breadcrumb {
    font-size: 13px; color: var(--no-mute); margin-bottom: 18px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
}
.xc-breadcrumb a { color: var(--no-text-2); }
.xc-breadcrumb a:hover { color: var(--no-cyan); }
.xc-breadcrumb > span { color: var(--no-text); font-weight: 500; }
.xc-breadcrumb-sep { color: var(--no-line-2); margin: 0 4px; }

/* meta bar: override the partial's inline light styles via higher specificity */
.xc-meta-bar { margin: 16px 0; }
.no-detail-hero-inner .xc-meta-badge--score { background: rgba(251,191,36,.16); color: var(--no-star); }
.no-detail-hero-inner .xc-meta-badge--update { background: var(--no-cyan-soft); color: var(--no-cyan-2); }
.no-detail-hero-inner .xc-meta-badge--info { background: rgba(94,234,212,.12); color: var(--no-cyan-2); }
.no-detail-hero-inner .xc-meta-tag { background: rgba(255,255,255,.07); color: var(--no-text-2); border: 1px solid var(--no-line); }

/* actor / director links */
.xc-meta-links { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--no-line); display: grid; gap: 10px; }
.xc-meta-row { font-size: 14px; line-height: 1.7; }
.xc-meta-label { color: var(--no-mute); font-weight: 500; }
.xc-meta-value a { color: var(--no-text-2); }
.xc-meta-value a:hover { color: var(--no-cyan); }

/* ----------------------- player + episodes ----------------------- */
.no-player-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--no-r); overflow: hidden; border: 1px solid var(--no-line-2); box-shadow: var(--no-shadow); }
.no-player-wrap--page { box-shadow: var(--no-shadow); }
.no-play-empty { text-align: center; padding: 40px; color: var(--no-mute); background: var(--no-panel); border-radius: var(--no-r); border: 1px solid var(--no-line); }
.no-play-empty a { color: var(--no-cyan); }

.no-ep-groups { margin-top: 18px; display: grid; gap: 16px; }
.no-ep-group-title { font-size: 14px; color: var(--no-text-2); margin-bottom: 10px; font-weight: 600; }
.no-ep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.no-ep {
    min-width: 48px; padding: 8px 14px; font-size: 13.5px; text-align: center;
    color: var(--no-text-2); background: var(--no-card); border: 1px solid var(--no-line);
    border-radius: 9px; transition: all .2s var(--no-ease);
}
.no-ep:hover { color: var(--no-text); border-color: var(--no-cyan); background: var(--no-card-2); transform: translateY(-1px); }
.no-ep.is-active { color: #04201d; background: var(--no-cyan); border-color: var(--no-cyan); font-weight: 700; }

.no-play-container { padding-top: 28px; }
.no-play-back { display: inline-flex; align-items: center; gap: 6px; color: var(--no-text-2); font-size: 14px; }
.no-play-back:hover { color: var(--no-cyan); }
.no-play-title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin: 8px 0 2px; }
.no-play-sub { color: var(--no-mute); font-size: 14px; margin-bottom: 18px; }
.no-nextbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-top: 18px; padding: 14px 18px; background: var(--no-panel); border: 1px solid var(--no-line);
    border-radius: var(--no-r); border-left: 3px solid var(--no-cyan);
}
.no-nextbar-info { font-size: 14px; color: var(--no-text-2); }
.no-nextbar-info strong { color: var(--no-text); }
.no-play-eps .no-ep-groups { margin-top: 0; }

/* ----------------------- person ----------------------- */
.no-person-head { position: relative; padding: 56px 0 30px; border-bottom: 1px solid var(--no-line); background:
    radial-gradient(80% 120% at 20% 0%, rgba(45,212,191,.08), transparent 60%), var(--no-bg-soft); }
.no-person-name { font-size: clamp(2rem, 4.5vw, 3rem); }
.no-person-sub { color: var(--no-text-2); font-size: 14.5px; margin-top: 8px; }
.no-person-sub strong { color: var(--no-cyan-2); }
.no-person-body { padding: 36px 0 60px; }
.no-media-list { display: grid; gap: 22px; }
.no-media { display: grid; grid-template-columns: 116px 1fr; gap: 20px; padding: 18px; background: var(--no-panel); border: 1px solid var(--no-line); border-radius: var(--no-r); transition: border-color .2s var(--no-ease), transform .2s var(--no-ease); }
.no-media:hover { border-color: var(--no-cyan); transform: translateY(-2px); }
.no-media-poster { position: relative; aspect-ratio: 2 / 3; border-radius: var(--no-r-sm); overflow: hidden; background: var(--no-card); }
.no-media-poster img { width: 100%; height: 100%; object-fit: cover; }
.no-media-badge { position: absolute; bottom: 6px; left: 6px; padding: 2px 7px; font-size: 11px; color: var(--no-text); background: rgba(7,10,18,.8); border-radius: var(--no-r-pill); }
.no-media-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.no-media-body h3 a { color: var(--no-text); }
.no-media-body h3 a:hover { color: var(--no-cyan); }
.no-media-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--no-mute); margin-bottom: 8px; }
.no-media-meta span:not(:last-child)::after { content: "·"; margin-left: 6px; }
.no-media-score { color: var(--no-star); }
.no-media-blurb { color: var(--no-text-2); font-size: 13.5px; line-height: 1.7; }
.no-media-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--no-cyan); font-weight: 600; }

/* ----------------------- footer ----------------------- */
.no-footer { background: var(--no-bg-soft); border-top: 1px solid var(--no-line); margin-top: 60px; }
.no-footer-grid {
    max-width: var(--no-maxw); margin-inline: auto; padding: 50px 24px 30px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.no-foot-friend-row { padding-top: 0; grid-template-columns: 1fr; gap: 12px; }
.no-foot-col h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--no-mute); margin-bottom: 14px; }
.no-foot-brand .no-logo { margin-bottom: 12px; }
.no-foot-desc { color: var(--no-text-2); font-size: 13.5px; line-height: 1.7; max-width: 42ch; }
.no-foot-links { display: grid; gap: 10px; }
.no-foot-links a { color: var(--no-text-2); font-size: 14px; }
.no-foot-links a:hover { color: var(--no-cyan); }
.no-friend { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.no-friend a { color: var(--no-mute); font-size: 13px; }
.no-friend a:hover { color: var(--no-cyan); }
.no-footer-bottom {
    border-top: 1px solid var(--no-line); padding: 22px 24px; text-align: center;
    color: var(--no-mute); font-size: 13px; line-height: 1.9;
}
.no-footer-bottom a { color: var(--no-text-2); }
.no-footer-bottom a:hover { color: var(--no-cyan); }
.no-sep { margin: 0 6px; color: var(--no-line-2); }
.no-disclaim { max-width: 90ch; margin: 8px auto 0; color: var(--no-mute); font-size: 12.5px; }

/* footer_rich auto-injection is skipped for noir in TemplatePresenter
   (SELF_FOOTER_THEMES) — we render our own native footer above, no CSS hide needed. */

/* ----------------------- responsive ----------------------- */
@media (max-width: 1024px) {
    .no-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .no-detail-aside { position: static; grid-template-columns: 200px 1fr; align-items: start; }
    .no-info-card { grid-column: 1 / -1; }
    .no-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .no-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .no-search { order: 3; margin-left: auto; }
    .no-search-input { width: 0; padding: 0; border: 0; background: transparent; }
    .no-search-input:focus { width: 60vw; padding: 9px 14px; background: rgba(255,255,255,.06); border: 1px solid var(--no-cyan); }
    .no-menu-toggle { display: flex; order: 4; }
    .no-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); z-index: 100;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 86px 20px 30px;
        background: var(--no-panel); border-left: 1px solid var(--no-line-2);
        transform: translateX(100%); transition: transform .3s var(--no-ease); overflow-y: auto;
    }
    .no-nav.is-open { transform: translateX(0); box-shadow: var(--no-shadow); }
    .no-nav-link { padding: 13px 14px; font-size: 15.5px; border-radius: 10px; }
    .no-nav-link.is-active::after { display: none; }
    .no-nav-group { width: 100%; }
    .no-nav-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(255,255,255,.03); padding: 4px 0 4px 12px; margin-top: 2px; display: none; }
    .no-nav-group.is-open .no-nav-submenu { display: grid; }
    .no-hero { min-height: 70vh; }
    .no-hero-inner { padding-bottom: 50px; }
    .no-row-track > .no-card { flex-basis: 138px; }
    .no-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 18px 12px; }
    .no-media { grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; }
}
@media (max-width: 520px) {
    .no-container, .no-hero-inner, .no-detail-hero-inner, .no-detail-grid, .no-footer-grid { padding-inline: 16px; }
    .no-footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .no-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
    .no-card-title { font-size: 13px; }
    .no-card-meta { font-size: 11.5px; }
    .no-filter-label { width: 40px; }
    .no-btn { padding: 11px 18px; }
    .no-hero-actions .no-btn { flex: 1; }
}

/* ----------------------- a11y polish ----------------------- */
:focus-visible { outline: 2px solid var(--no-cyan); outline-offset: 2px; border-radius: 4px; }
.no-card-link:focus-visible, .no-nav-link:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .no-card-poster img { transform: none !important; }
}

/* ----------------------- 页脚：社交关注 + 合作伙伴 ----------------------- */
.no-foot-social-row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 20px 0 4px; margin-top: 10px;
    border-top: 1px solid var(--no-line);
}
.no-foot-social-label { font-size: 13px; color: var(--no-mute); letter-spacing: .02em; }
.no-foot-social { display: flex; gap: 10px; flex-wrap: wrap; }
.no-soc-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--soc, var(--no-card-2)); color: #fff;
    font-size: 14px; font-weight: 700; text-decoration: none; opacity: .9;
    box-shadow: 0 4px 14px rgba(0,0,0,.30);
    transition: transform .2s var(--no-ease), opacity .2s var(--no-ease), box-shadow .2s var(--no-ease);
}
.no-soc-btn:hover { color: #fff; opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
@media (max-width: 560px) {
    .no-foot-social-row { gap: 12px; padding-top: 16px; }
    .no-soc-btn { width: 34px; height: 34px; font-size: 13px; }
}
/* vodplay rank sidebar grid */
.no-play-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.no-play-main { min-width: 0; }
.no-play-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 80px; }
.no-side-rank { margin: 0; }
@media (max-width: 900px) {
    .no-play-grid { grid-template-columns: 1fr; }
    .no-play-aside { position: static; }
}
