/* =========================================================================
   Cineby — full-width cinematic dark UI
   One self-contained stylesheet: system fonts, no @import, no external url().
   Every component class is prefixed "cb-" so it can never collide with the
   "page-<type>" class that layout.php puts on <body>.
   ========================================================================= */

:root {
    --primary: #dc2626;
    --accent-hi: #f87171;
    --accent-glow: #dc262659;
    --accent-soft: #dc26261f;
    --accent-line: #dc262666;

    --bg: #05070a;
    --surface-1: #0b0f14;
    --surface-2: #141922;
    --surface-3: #1d2430;
    --border-subtle: #1d2430;
    --border-strong: #2a3242;

    --text-hi: #eef1f6;
    --text-mid: #b3bccb;
    --text-low: #8a94a6;

    --bar: 80px;
    --dock: 0px;
    --container: 1390px;
    --gutter: 24px;
    --card-w: 190px;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-pill: 999px;

    --shadow-1: 0 10px 24px -12px #000000b3;
    --shadow-2: 0 24px 56px -24px #000000cc;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-hi);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-bottom: var(--dock);
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 2px solid var(--accent-hi);
    outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

.cb-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;
}

.cb-shell { display: flex; flex-direction: column; min-height: 100vh; }
.cb-main { flex: 1 0 auto; padding-top: var(--bar); }
.cb-main-flush { padding-top: 0; }
body.page-landing .cb-main { padding-top: 0; }

.cb-section {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 36px var(--gutter) 56px;
}
.cb-section-narrow { max-width: 1040px; }

/* ---------------------------------------------------------------- buttons */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-hi);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s var(--ease), background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.cb-btn:active { transform: scale(.975); }
.cb-btn-sm { padding: 8px 16px; font-size: 13px; }

.cb-btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 26px -12px var(--accent-glow);
}
.cb-btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 30px -12px var(--accent-glow); }

.cb-btn-light { background: var(--text-hi); color: #05070a; }
.cb-btn-light:hover { background: #fff; box-shadow: 0 12px 28px -14px #ffffff66; }

.cb-btn-ghost {
    background: #ffffff0d;
    border-color: #ffffff1f;
    color: var(--text-hi);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cb-btn-ghost:hover { border-color: var(--accent-line); color: #fff; }

/* -------------------------------------------------------- badges & chips */
.cb-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cb-badge-soft {
    background: #ffffff14;
    color: var(--text-mid);
    font-weight: 600;
}

.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-pill);
    background: var(--surface-1);
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 500;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cb-chip:hover { color: var(--text-hi); border-color: var(--accent-line); background: var(--surface-2); }
.cb-chip.is-active { color: #fff; background: var(--primary); border-color: transparent; }

/* ----------------------------------------------------------- search field */
.cb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-pill);
    background: #0b0f1499;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.cb-search:focus-within {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: var(--surface-1);
}
.cb-search-icon { display: flex; color: var(--text-low); flex: 0 0 auto; }
.cb-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--text-hi);
    font-size: 14px;
    outline: none;
}
.cb-search-input::placeholder { color: var(--text-low); }
.cb-search-submit {
    flex: 0 0 auto;
    padding: 8px 18px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s ease;
}
.cb-search-submit:hover { filter: brightness(1.1); }

.cb-search-wrap { width: 100%; max-width: 560px; margin-top: 20px; }
.cb-search-hero { width: 100%; }

/* ------------------------------------------------------------------ topbar */
.cb-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    transition: background .28s ease, border-color .28s ease, backdrop-filter .28s ease;
    border-bottom: 1px solid transparent;
}
.cb-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #05070abf, #05070a00);
    pointer-events: none;
    transition: opacity .28s ease;
}
.cb-topbar.is-scrolled {
    background: #05070ae0;
    border-bottom-color: var(--border-subtle);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.cb-topbar.is-scrolled::before { opacity: 0; }

.cb-topbar-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    height: var(--bar);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.cb-brand { display: inline-flex; align-items: center; gap: 10px; }
.cb-brand-mark {
    width: 36px; height: 36px;
    object-fit: contain;
    border-radius: 9px;
    transition: transform .3s var(--ease);
}
.cb-brand:hover .cb-brand-mark { transform: scale(1.07); }
.cb-brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
}

.cb-search-slot { width: 100%; max-width: 460px; margin: 0 auto; }
.cb-search-bar { width: 100%; }

.cb-nav { display: flex; align-items: center; gap: 4px; }
.cb-nav-link {
    padding: 8px 13px;
    border-radius: var(--r-sm);
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s ease, background .2s ease;
}
.cb-nav-link:hover { color: #fff; background: #ffffff14; }
.cb-nav-link.is-active { color: var(--accent-hi); }

.cb-icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid #ffffff14;
    border-radius: var(--r-sm);
    background: #ffffff0a;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cb-icon-btn:hover { color: var(--accent-hi); border-color: var(--accent-line); }

.cb-search-row {
    display: none;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter) 12px;
}
.cb-search-row.is-open { display: block; }

/* -------------------------------------------------------------- bottom dock */
.cb-dock { display: none; }

/* -------------------------------------------------------------------- hero */
.cb-hero {
    position: relative;
    height: 82vh;
    min-height: 460px;
    max-height: 820px;
    overflow: hidden;
    background: var(--bg);
}
.cb-hero-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cb-hero-track::-webkit-scrollbar { display: none; }

.cb-hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.cb-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.cb-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 26%;
    transform: scale(1.02);
}
.cb-hero-scrim {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(180deg, #05070a00 38%, #05070aeb 86%, var(--bg) 100%),
        linear-gradient(90deg, #05070ad9 0, #05070a66 46%, #05070a00 72%);
}
.cb-hero-vignette {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, #05070a99 0, #05070a00 34%);
}
.cb-hero-glow {
    position: absolute; right: -12%; top: -14%; width: 55%; height: 60%;
    z-index: 1; pointer-events: none; filter: blur(40px);
    background: radial-gradient(ellipse at center, var(--accent-soft) 0, #05070a00 62%);
}

.cb-hero-body {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding-bottom: 13vh;
}
.cb-hero-copy {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.cb-hero-copy > * { max-width: 640px; }

.cb-hero-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 11px;
    border: 1px solid var(--accent-line);
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-hi);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.cb-hero-title {
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-shadow: 0 8px 26px #0000008c;
}
.cb-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #eef1f6d1;
    font-size: 13px;
}
.cb-hero-rating { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-hi); font-weight: 600; }
.cb-hero-divider { width: 3px; height: 3px; border-radius: 50%; background: #eef1f659; }
.cb-hero-overview {
    margin-top: 14px;
    color: #eef1f6c2;
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cb-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.cb-hero-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-top: -22px;
    border: 1px solid #ffffff1f;
    border-radius: 50%;
    background: #05070a99;
    color: var(--text-hi);
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s ease, border-color .2s ease, background .2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.cb-hero:hover .cb-hero-nav { opacity: 1; }
.cb-hero-nav:hover { border-color: var(--accent-line); background: #05070ad9; color: var(--accent-hi); }
.cb-hero-nav-prev { left: 18px; }
.cb-hero-nav-next { right: 18px; }

.cb-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}
.cb-hero-dot {
    width: 24px; height: 3px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #eef1f63d;
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.cb-hero-dot:hover { background: #eef1f666; }
.cb-hero-dot.is-active { width: 44px; background: var(--primary); box-shadow: 0 0 12px var(--accent-glow); }

/* -------------------------------------------------------------- card rails */
.cb-rows {
    display: flex;
    flex-direction: column;
    gap: 44px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 44px 0 56px;
}
.cb-row-flat { margin-top: 12px; }

.cb-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 var(--gutter);
    margin-bottom: 16px;
}
.cb-row-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cb-row-title::before {
    content: "";
    flex: 0 0 auto;
    width: 3px; height: 20px;
    border-radius: 2px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--accent-glow);
}
.cb-row-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cb-row-more {
    padding: 6px 12px;
    border-radius: var(--r-pill);
    color: var(--text-low);
    font-size: 13px;
    font-weight: 500;
    transition: color .2s ease, background .2s ease;
}
.cb-row-more:hover { color: var(--accent-hi); background: #ffffff0a; }

.cb-rail-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    background: var(--surface-1);
    color: var(--text-mid);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.cb-rail-nav:hover:not(:disabled) { color: var(--accent-hi); border-color: var(--accent-line); }
.cb-rail-nav:disabled { opacity: .3; cursor: default; }

.cb-rail { position: relative; }
.cb-rail-track {
    display: flex;
    gap: 16px;
    padding: 4px var(--gutter) 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cb-rail-track::-webkit-scrollbar { display: none; }
.cb-rail-cell { flex: 0 0 var(--card-w); width: var(--card-w); scroll-snap-align: start; }

/* -------------------------------------------------------------------- card */
.cb-card { display: block; position: relative; }
.cb-card-art {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--surface-1), var(--surface-2));
    transition: border-color .25s ease, box-shadow .25s ease;
}
.cb-card:hover .cb-card-art {
    border-color: var(--accent-line);
    box-shadow: 0 16px 34px -18px #000000cc, 0 0 0 1px var(--accent-soft);
}
.cb-card-poster {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .55s var(--ease);
}
.cb-card:hover .cb-card-poster { transform: scale(1.06); }
.cb-card-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, #05070ae6, #05070a33 42%, #05070a00 70%);
    opacity: .45;
    transition: opacity .25s ease;
}
.cb-card:hover .cb-card-scrim { opacity: .85; }

.cb-card-quality {
    position: absolute;
    right: 7px; top: 7px;
    padding: 3px 7px;
    border-radius: 5px;
    background: #05070ac7;
    border: 1px solid #ffffff1f;
    color: var(--text-hi);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cb-card-rank {
    position: absolute;
    left: 0; top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30px; height: 38px;
    padding: 5px 2px 7px;
    background: var(--primary);
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    box-shadow: 0 4px 10px var(--accent-glow);
}
.cb-card-rank b { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.cb-card-rank i { font-size: 12px; font-style: normal; font-weight: 800; line-height: 1; margin-top: 2px; }

.cb-card-play {
    position: absolute;
    left: 50%; top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: #05070ab8;
    border: 1px solid #ffffff2e;
    color: #fff;
    opacity: 0;
    transform: scale(.82);
    transition: opacity .25s ease, transform .25s var(--ease);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cb-card:hover .cb-card-play { opacity: 1; transform: scale(1); }

.cb-card-title {
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-hi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease;
}
.cb-card:hover .cb-card-title { color: var(--accent-hi); }
.cb-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: var(--text-low);
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
}
.cb-card-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-hi); }
.cb-card-dot { color: #ffffff33; }

/* ---------------------------------------------------------- grids / heads */
.cb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 26px 18px;
}
.cb-grid-tight { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 14px; }

.cb-head {
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    background:
        radial-gradient(900px 260px at 12% -40%, var(--accent-soft), #05070a00 70%),
        linear-gradient(180deg, var(--surface-1), var(--bg));
}
.cb-head-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px var(--gutter) 34px;
}
.cb-head-eyebrow {
    color: var(--text-low);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.cb-head-title {
    margin-top: 6px;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
}
.cb-head-sub { margin-top: 10px; max-width: 720px; color: var(--text-mid); font-size: 15px; }
.cb-head-count { margin-top: 8px; color: var(--text-low); font-size: 13px; }

.cb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12.5px; color: var(--text-low); }
.cb-crumb { transition: color .2s ease; }
a.cb-crumb:hover { color: var(--accent-hi); }
.cb-crumb-sep { color: #ffffff29; }

.cb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
    margin-bottom: 22px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-pill);
    background: var(--surface-1);
    width: fit-content;
    max-width: 100%;
}
.cb-tab {
    padding: 8px 18px;
    border-radius: var(--r-pill);
    color: var(--text-mid);
    font-size: 13.5px;
    font-weight: 600;
    transition: color .2s ease, background .2s ease;
}
.cb-tab:hover { color: var(--text-hi); background: #ffffff0a; }
.cb-tab.is-active { color: #fff; background: var(--primary); }

.cb-chipbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.cb-chiprow { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cb-chiprow-label {
    flex: 0 0 auto;
    padding-top: 7px;
    min-width: 62px;
    color: var(--text-low);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 70px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
    background: var(--surface-1);
    text-align: center;
}
.cb-empty-title { font-size: 19px; font-weight: 700; }
.cb-empty-text { color: var(--text-low); font-size: 14px; }
.cb-empty .cb-btn { margin-top: 8px; }

/* ------------------------------------------------------------- pagination */
.cb-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}
.cb-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 11px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--surface-1);
    color: var(--text-mid);
    font-size: 13.5px;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
a.cb-pager-btn:hover { color: #fff; border-color: var(--accent-line); background: var(--surface-2); }
.cb-pager-btn.is-current { color: #fff; background: var(--primary); border-color: transparent; }
.cb-pager-btn.is-disabled { opacity: .35; }
.cb-pager-gap { padding: 0 4px; color: var(--text-low); }
.cb-pager-info { margin-left: auto; color: var(--text-low); font-size: 12.5px; }

/* ---------------------------------------------------------- detail page */
.cb-detail-hero {
    position: relative;
    padding-top: calc(var(--bar) + 40px);
    padding-bottom: 46px;
    border-bottom: 1px solid var(--border-subtle);
    /* No overflow:hidden here — an open season/episode dropdown has to be able to
       paint past the bottom edge of the hero. The decorative layers clip themselves. */
}
.cb-detail-bg { position: absolute; inset: 0; overflow: hidden; }
.cb-detail-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.cb-detail-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, #05070ae0 0, #05070ad1 42%, var(--bg) 96%),
        linear-gradient(90deg, #05070aeb 0, #05070a9e 55%, #05070a70 100%);
}
.cb-detail-glow {
    position: absolute; left: 0; top: -18%; width: 52%; height: 70%;
    z-index: 1; pointer-events: none; filter: blur(48px);
    background: radial-gradient(ellipse at center, var(--accent-soft) 0, #05070a00 66%);
}
.cb-detail-inner {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 36px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.cb-detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid #ffffff1a;
    border-radius: 14px;
    box-shadow: var(--shadow-2);
}
.cb-detail-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.02;
}
.cb-detail-year { color: var(--text-low); font-weight: 600; font-size: .55em; letter-spacing: -0.01em; }
.cb-detail-tagline { margin-top: 10px; color: var(--accent-hi); font-size: 14px; font-style: italic; }
.cb-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--text-mid);
    font-size: 13px;
}
.cb-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--accent-line);
    border-radius: var(--r-pill);
    background: var(--accent-soft);
    color: var(--accent-hi);
    font-weight: 700;
}
.cb-detail-metaitem { color: var(--text-low); }
.cb-detail-chips { margin-top: 16px; }
.cb-detail-overview {
    margin-top: 18px;
    max-width: 720px;
    color: var(--text-mid);
    font-size: 14.5px;
    line-height: 1.7;
}

.cb-picker { position: relative; z-index: 40; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.cb-picker-group { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cb-picker-inline { flex-direction: row; align-items: center; }
.cb-picker-label {
    color: var(--text-low);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.cb-picker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 190px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface-1);
    color: var(--text-hi);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.cb-picker-btn:hover { border-color: var(--accent-line); background: var(--surface-2); }

.cb-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    display: none;
    min-width: 230px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: #05070af2;
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.cb-menu.is-open { display: block; }
.cb-menu-right { left: auto; right: 0; }
.cb-menu-item {
    display: block;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    color: var(--text-mid);
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s ease, background .15s ease;
}
.cb-menu-item:hover { color: #fff; background: #ffffff0f; }
.cb-menu-item.is-selected { color: var(--accent-hi); background: var(--accent-soft); }
.cb-menu-empty { display: block; padding: 9px 12px; color: var(--text-low); font-size: 13px; }

.cb-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.cb-watch { position: relative; display: flex; align-items: stretch; }
.cb-watch-main { border-top-right-radius: 0; border-bottom-right-radius: 0; padding-right: 18px; }
.cb-watch-caret {
    padding: 11px 13px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: none;
    border-left: 1px solid #00000033;
}

.cb-detail-body { padding-top: 30px; }
.cb-tabnav {
    position: relative;
    z-index: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border-subtle);
    scrollbar-width: none;
}
.cb-tabnav::-webkit-scrollbar { display: none; }
.cb-tabbtn {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 18px;
    border: 0;
    background: transparent;
    color: var(--text-low);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease;
}
.cb-tabbtn:hover { color: var(--text-hi); }
.cb-tabbtn.is-active { color: #fff; }
.cb-tabbtn.is-active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.cb-panel { display: none; }
.cb-panel.is-active { display: block; }
.cb-panel-title { margin-bottom: 14px; font-size: 18px; font-weight: 700; }
.cb-panel-text { color: var(--text-mid); font-size: 14.5px; line-height: 1.75; max-width: 780px; }
.cb-panel-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }

.cb-facts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: var(--surface-1);
    height: fit-content;
}
.cb-fact { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: var(--r-sm); }
.cb-fact:nth-child(odd) { background: #ffffff05; }
.cb-fact-label { color: var(--text-low); font-size: 12.5px; }
.cb-fact-value { color: var(--text-hi); font-size: 12.5px; font-weight: 600; text-align: right; }

.cb-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px 14px; }
.cb-cast-card { display: block; text-align: left; }
.cb-cast-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: var(--surface-2);
    transition: border-color .2s ease;
}
.cb-cast-card:hover .cb-cast-photo { border-color: var(--accent-line); }
.cb-cast-name { display: block; margin-top: 9px; font-size: 13px; font-weight: 600; }
.cb-cast-role { display: block; color: var(--text-low); font-size: 11.5px; }

.cb-eplist { display: flex; flex-direction: column; gap: 6px; }
.cb-eprow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: var(--surface-1);
    transition: border-color .2s ease, background .2s ease, transform .2s var(--ease);
}
.cb-eprow:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateX(3px); }
.cb-eprow.is-active { border-color: var(--primary); background: var(--accent-soft); }
.cb-epnum {
    flex: 0 0 auto;
    min-width: 34px;
    color: var(--text-low);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.cb-eprow.is-active .cb-epnum { color: var(--accent-hi); }
.cb-eptitle { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-epplay { flex: 0 0 auto; color: var(--text-low); }
.cb-eprow:hover .cb-epplay { color: var(--accent-hi); }
.cb-seasonlist { margin-top: 20px; }

/* ---------------------------------------------------------- player page */
.cb-stage {
    background: #000;
    border-bottom: 1px solid var(--border-subtle);
}
.cb-stage-frame {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000;
}
.cb-stage-iframe { width: 100%; height: 100%; border: 0; transition: opacity .3s ease; }
.cb-stage-iframe.is-loading { opacity: .15; }
.cb-stage-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-low);
    font-size: 13px;
    background: #05070ae6;
}
.cb-stage-loading.is-on { display: flex; }
.cb-spinner {
    width: 34px; height: 34px;
    border: 3px solid #ffffff1f;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: cb-spin .8s linear infinite;
}
@keyframes cb-spin { to { transform: rotate(360deg); } }

.cb-playbar { border-bottom: 1px solid var(--border-subtle); background: var(--surface-1); }
.cb-playbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px var(--gutter) 20px;
}
.cb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-low);
    font-size: 13px;
    font-weight: 500;
    transition: color .2s ease;
}
.cb-back:hover { color: var(--accent-hi); }
.cb-playbar-title { margin-top: 8px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.cb-playbar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 10px; font-size: 13px; }
.cb-playbar-metaitem { color: var(--text-low); }
.cb-playbar-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-hi); font-weight: 600; }
.cb-epnav { display: flex; gap: 10px; }

.cb-playbody { padding-top: 26px; }

.cb-servers {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    background: var(--surface-1);
}
.cb-servers-label {
    color: var(--text-low);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.cb-servers-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-server {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cb-server:hover { color: #fff; border-color: var(--accent-line); }
.cb-server.is-active { color: #fff; background: var(--primary); border-color: transparent; box-shadow: 0 8px 20px -10px var(--accent-glow); }
.cb-server-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.cb-server.is-active .cb-server-dot { opacity: 1; }

.cb-epstrip { margin-top: 24px; }
.cb-epstrip-head { position: relative; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cb-epstrip-title { font-size: 17px; font-weight: 700; }
.cb-eptiles {
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.cb-eptile {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 168px;
    padding: 10px 13px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: var(--surface-1);
    transition: border-color .2s ease, background .2s ease;
}
.cb-eptile:hover { border-color: var(--accent-line); background: var(--surface-2); }
.cb-eptile.is-active { border-color: var(--primary); background: var(--accent-soft); }
.cb-eptile-num { color: var(--text-low); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.cb-eptile.is-active .cb-eptile-num { color: var(--accent-hi); }
.cb-eptile-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cb-notice {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary);
    border-radius: var(--r-md);
    background: var(--surface-1);
}
.cb-notice-icon { flex: 0 0 auto; color: var(--accent-hi); }
.cb-notice-title { font-size: 14px; font-weight: 700; }
.cb-notice-text { margin-top: 5px; color: var(--text-low); font-size: 13.5px; line-height: 1.65; }
.cb-notice-link { display: inline-block; margin-top: 8px; color: var(--accent-hi); font-size: 13px; font-weight: 600; }
.cb-notice-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------- 404 page */
.cb-notfound {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 90px var(--gutter) 110px;
    text-align: center;
}
.cb-notfound-code {
    font-size: clamp(76px, 16vw, 150px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(180deg, var(--text-hi) 10%, #05070a00 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cb-notfound-title { margin-top: -8px; font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; }
.cb-notfound-text { margin-top: 10px; color: var(--text-low); }
.cb-notfound .cb-search-wrap { margin-left: auto; margin-right: auto; }
.cb-notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* -------------------------------------------------------------- prose */
.cb-prose { color: var(--text-mid); font-size: 15px; line-height: 1.8; }
.cb-prose h2 {
    margin: 34px 0 14px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-hi);
}
.cb-prose h2:first-child { margin-top: 0; }
.cb-prose h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 700; color: var(--text-hi); }
.cb-prose p { margin: 0 0 14px; }
.cb-prose ul, .cb-prose ol { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.cb-prose ol { list-style: decimal; }
.cb-prose li { margin-bottom: 6px; }
.cb-prose a { color: var(--accent-hi); }
.cb-prose a:hover { text-decoration: underline; }
.cb-prose strong { color: var(--text-hi); }
.cb-seo { padding-top: 0; }

.cb-section-narrow.cb-lp-article { padding-top: 10px; }
.cb-static-aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}
.cb-static-aside-title {
    width: 100%;
    margin-bottom: 4px;
    color: var(--text-low);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------- landing */
.cb-lp-bar { position: relative; z-index: 20; }
.cb-lp-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px var(--gutter);
}
.cb-lp-nav { display: flex; align-items: center; gap: 4px; }
.cb-lp-mobilenav {
    display: none;
    flex-direction: column;
    gap: 2px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter) 14px;
}
.cb-lp-mobilenav.is-open { display: flex; }
.cb-lp-mobilenav .cb-nav-link {
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: var(--surface-1);
}

.cb-lp-hero { position: relative; overflow: hidden; }
.cb-lp-aurora {
    position: absolute;
    left: 50%; top: -260px;
    width: 1100px; height: 700px;
    transform: translateX(-50%);
    pointer-events: none;
    filter: blur(60px);
    background:
        radial-gradient(ellipse at 50% 40%, var(--accent-soft) 0, #05070a00 62%),
        radial-gradient(ellipse at 22% 60%, #1d243066 0, #05070a00 60%);
}
.cb-lp-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 880px;
    margin: 0 auto;
    padding: 56px var(--gutter) 24px;
    text-align: center;
}
.cb-lp-logo {
    width: 84px; height: 84px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 50px -22px var(--accent-glow);
}
.cb-lp-title {
    margin-top: 24px;
    font-size: clamp(28px, 4.6vw, 46px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
}
.cb-lp-intro { margin-top: 16px; max-width: 660px; color: var(--text-mid); font-size: 16px; line-height: 1.7; }
.cb-lp-search { width: 100%; margin-top: 28px; padding: 8px 8px 8px 16px; }
.cb-lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.cb-lp-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.cb-lp-share-label {
    color: var(--text-low);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.cb-lp-share-btn {
    padding: 7px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-pill);
    background: var(--surface-1);
    color: var(--text-mid);
    font-size: 12.5px;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease;
}
.cb-lp-share-btn:hover { color: #fff; border-color: var(--accent-line); }

.cb-lp-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 var(--gutter);
}
.cb-lp-feature {
    padding: 22px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface-1), #05070a);
    transition: border-color .25s ease, transform .25s var(--ease);
}
.cb-lp-feature:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.cb-lp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    color: var(--accent-hi);
}
.cb-lp-feature-title { margin-top: 14px; font-size: 16px; font-weight: 700; }
.cb-lp-feature-text { margin-top: 7px; color: var(--text-low); font-size: 13.5px; line-height: 1.65; }

.cb-lp-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 18px 0 22px;
}
.cb-lp-point {
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: var(--surface-1);
}
.cb-lp-point h3 { margin: 0 0 6px; font-size: 15px; }
.cb-lp-point p { margin: 0; color: var(--text-low); font-size: 13.5px; line-height: 1.6; }
.cb-lp-genres, .cb-lp-quick { margin: 4px 0 22px; }

.cb-faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.cb-faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: var(--surface-1);
    overflow: hidden;
}
.cb-faq-q {
    padding: 14px 18px;
    color: var(--text-hi);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.cb-faq-q::-webkit-details-marker { display: none; }
.cb-faq-q::after { content: "+"; float: right; color: var(--accent-hi); font-weight: 700; }
.cb-faq-item[open] .cb-faq-q::after { content: "\2013"; }
.cb-faq-a { padding: 0 18px 16px; color: var(--text-low); font-size: 14px; line-height: 1.7; }

.cb-lp-network { padding-top: 10px; }
.cb-lp-network-title { margin-bottom: 18px; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; }
.cb-lp-network-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cb-lp-network-card {
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: var(--surface-1);
    transition: border-color .2s ease, transform .2s var(--ease);
}
.cb-lp-network-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.cb-lp-network-card h3 { font-size: 15px; font-weight: 700; }
.cb-lp-network-card span { display: block; margin-top: 4px; color: var(--text-low); font-size: 12.5px; }

/* -------------------------------------------------------------- footer */
.cb-footer {
    flex: 0 0 auto;
    margin-top: 40px;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, #05070a, var(--surface-1));
}
.cb-footer-inner { max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter) 34px; }
.cb-footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 42px; }
.cb-brand-footer .cb-brand-mark { width: 32px; height: 32px; }
.cb-brand-footer .cb-brand-name { font-size: 18px; }
.cb-footer-desc { margin-top: 14px; max-width: 420px; color: var(--text-mid); font-size: 13.5px; line-height: 1.7; }
.cb-footer-note { margin-top: 10px; max-width: 420px; color: var(--text-low); font-size: 12.5px; line-height: 1.65; }
.cb-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cb-social-link {
    padding: 6px 13px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-pill);
    color: var(--text-low);
    font-size: 12.5px;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease;
}
.cb-social-link:hover { color: #fff; border-color: var(--accent-line); }

.cb-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.cb-footer-col-title {
    margin-bottom: 12px;
    color: var(--text-hi);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.cb-footer-list { display: flex; flex-direction: column; gap: 9px; }
.cb-footer-link { color: var(--text-low); font-size: 13.5px; transition: color .2s ease; }
.cb-footer-link:hover { color: var(--accent-hi); }

.cb-footer-network {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    background: #ffffff05;
}
.cb-footer-network-title {
    color: var(--text-low);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.cb-footer-network-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-footer-network-link {
    padding: 6px 13px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-mid);
    font-size: 12.5px;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease;
}
.cb-footer-network-link:hover { color: #fff; border-color: var(--accent-line); }

.cb-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}
.cb-copyright { color: var(--text-low); font-size: 12.5px; }
.cb-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* ==================================================== responsive: tablet */
@media (max-width: 1100px) {
    :root { --card-w: 168px; --gutter: 20px; }
    .cb-detail-inner { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
    .cb-panel-split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .cb-footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .cb-search-slot { max-width: 340px; }
}

@media (max-width: 900px) {
    .cb-lp-features { grid-template-columns: minmax(0, 1fr); }
}

/* ==================================================== responsive: mobile */
@media (max-width: 768px) {
    :root {
        --bar: 62px;
        --dock: 84px;
        --gutter: 16px;
        --card-w: 144px;
    }

    .cb-topbar-inner { grid-template-columns: auto auto; justify-content: space-between; gap: 12px; }
    .cb-search-slot { display: none; }
    .cb-nav { display: none; }
    .cb-icon-btn { display: inline-flex; }
    .cb-topbar.is-scrolled .cb-search-row { border-top: 1px solid var(--border-subtle); padding-top: 10px; }
    .cb-brand-name { font-size: 18px; }
    .cb-brand-mark { width: 30px; height: 30px; }

    .cb-dock {
        position: fixed;
        left: 0; right: 0;
        bottom: 0;
        z-index: 70;
        display: flex;
        justify-content: center;
        padding: 0 12px 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        pointer-events: none;
    }
    .cb-dock-panel {
        display: flex;
        align-items: center;
        gap: 4px;
        max-width: 100%;
        padding: 7px 9px;
        border: 1px solid #ffffff14;
        border-radius: 20px;
        background: #0b0f14e8;
        box-shadow: 0 24px 56px -24px #000000e6, inset 0 1px 0 #ffffff0d;
        backdrop-filter: blur(22px) saturate(140%);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        pointer-events: auto;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .cb-dock-panel::-webkit-scrollbar { display: none; }
    .cb-dock-item {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        min-width: 58px;
        padding: 7px 8px;
        border-radius: 14px;
        color: var(--text-low);
        transition: color .2s ease, background .2s ease;
    }
    .cb-dock-item:hover, .cb-dock-item.is-active { color: var(--accent-hi); background: #ffffff0a; }
    .cb-dock-icon { display: flex; }
    .cb-dock-label { font-size: 10px; font-weight: 600; letter-spacing: .01em; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .cb-hero { height: 74vh; min-height: 420px; }
    .cb-hero-body { padding-bottom: 76px; }
    .cb-hero-nav { display: none; }
    .cb-hero-overview { -webkit-line-clamp: 2; font-size: 14px; }
    .cb-hero-cta .cb-btn { padding: 10px 18px; }

    .cb-rows { gap: 34px; padding: 30px 0 40px; }
    .cb-row-title { font-size: 17px; }
    .cb-rail-nav { display: none; }
    .cb-row-head { margin-bottom: 12px; }

    .cb-section { padding: 26px var(--gutter) 40px; }
    .cb-head-inner { padding: 26px var(--gutter) 24px; }
    .cb-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px 12px; }
    .cb-grid-tight { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

    .cb-detail-hero { padding-top: calc(var(--bar) + 26px); padding-bottom: 32px; }
    .cb-detail-inner { grid-template-columns: 116px minmax(0, 1fr); gap: 18px; }
    .cb-detail-overview { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .cb-picker-btn { min-width: 0; width: 100%; }
    .cb-picker { flex-direction: column; gap: 10px; }
    .cb-picker-group { width: 100%; }
    .cb-menu { width: 100%; min-width: 0; max-height: 260px; }
    .cb-detail-actions .cb-btn { flex: 1 1 auto; }

    .cb-playbar-inner { flex-direction: column; align-items: stretch; }
    .cb-epnav { justify-content: space-between; }
    .cb-epnav .cb-btn { flex: 1 1 0; }
    .cb-servers { flex-direction: column; align-items: flex-start; gap: 10px; }

    .cb-footer { margin-top: 26px; }
    .cb-footer-inner { padding: 34px var(--gutter) 28px; }
    .cb-footer-bottom { flex-direction: column; align-items: flex-start; }

    .cb-lp-bar-inner { padding: 16px var(--gutter); }
    .cb-lp-nav { display: none; }
    .cb-lp-hero-inner { padding: 34px var(--gutter) 18px; }
    .cb-lp-logo { width: 68px; height: 68px; }
}

@media (max-width: 480px) {
    :root { --card-w: 132px; }

    .cb-search { padding: 5px 5px 5px 12px; }
    .cb-search-submit { padding: 8px 13px; font-size: 12px; }

    .cb-hero { height: 70vh; min-height: 380px; }
    .cb-hero-title { font-size: 26px; }
    .cb-hero-meta { gap: 8px; font-size: 12px; }
    .cb-hero-overview { display: none; }
    .cb-hero-dots { bottom: 18px; }
    .cb-hero-dot { width: 18px; }
    .cb-hero-dot.is-active { width: 32px; }

    .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-grid-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-cast { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); }

    .cb-detail-inner { grid-template-columns: minmax(0, 1fr); }
    .cb-detail-poster { width: 132px; }
    .cb-detail-title { font-size: 25px; }
    .cb-watch { width: 100%; }
    .cb-watch-main { flex: 1 1 auto; }

    .cb-tabs { width: 100%; }
    .cb-tab { flex: 1 1 auto; text-align: center; padding: 8px 12px; }
    .cb-chiprow { flex-direction: column; gap: 8px; }
    .cb-chiprow-label { padding-top: 0; }

    .cb-eptile { width: 146px; }
    .cb-pager-info { width: 100%; margin-left: 0; margin-top: 6px; }
    .cb-footer-legal { gap: 12px; }
    .cb-notfound { padding: 56px var(--gutter) 80px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .cb-hero-track { scroll-behavior: auto; }
}
