:root {
    color-scheme: dark;
    --page: #101114;
    --surface: #191a1f;
    --surface-raised: #202127;
    --surface-soft: #24262d;
    --text: #f4f2ef;
    --text-muted: #a3a2a5;
    --text-dim: #a3a2a5;
    --line: rgba(255, 255, 255, .09);
    --accent: #d5fa6b;
    --accent-ink: #16190d;
    --shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.theme-light { color-scheme: light; }
.theme-light body,
body.theme-light {
    --page: #fff;
    --surface: #fff;
    --surface-raised: #fff;
    --surface-soft: #f4f4f4;
    --text: #17181b;
    --text-muted: #66696d;
    --text-dim: #6b6d72;
    --line: rgba(16, 17, 20, .1);
    --accent: #627f14;
    --accent-ink: #fff;
    --shadow: 0 18px 50px rgba(30, 30, 30, .09);
}

/* Light content cards use white; auxiliary poster placeholders stay neutral. */
.theme-light .home-empty,
.theme-light .detail-hero { background: var(--surface); }
.theme-light .poster-placeholder { background: linear-gradient(145deg, var(--surface-soft), var(--surface)); }

* { box-sizing: border-box; }
/* Keep document navigation and history restoration immediate; the top button opts into smooth scrolling. */
html { scroll-behavior: auto; }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: 'DM Sans', 'Noto Sans SC', system-ui, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.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; }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--page) 88%, transparent);
    backdrop-filter: blur(18px);
}
.header-inner, .page-shell, .footer-inner {
    width: min(1380px, calc(100% - 64px));
    margin-inline: auto;
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 40px; }
.brand { min-width: max-content; display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.045em; }
.brand-name { font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--accent-ink); background: var(--accent); border-radius: 11px 11px 11px 3px; font-size: 19px; font-weight: 800; }
.brand-logo { width: auto; max-width: 160px; max-height: 42px; object-fit: contain; }
.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 28px; min-width: 0; }
.nav-link { position: relative; display: inline-flex; align-items: center; color: var(--text-muted); font-size: 13px; white-space: nowrap; transition: color .2s ease; }
.nav-link::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ''; transform: scaleX(0); transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 19px; margin-left: auto; }
.search-form { display: flex; align-items: center; width: 236px; height: 38px; padding: 0 8px 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.search-form:focus-within { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.search-form input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-form input::placeholder { color: var(--text-dim); }
.search-form button { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; color: var(--text-muted); background: transparent; cursor: pointer; font-size: 21px; }
.search-form button:hover { color: var(--accent); }
.member-link { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.member-link:hover { color: var(--accent); }

.page-shell { min-height: calc(100vh - 150px); padding-top: 30px; padding-bottom: 88px; }
.hero-carousel { --hero-gutter: max(32px, calc((100% - 1380px) / 2)); position: relative; height: clamp(400px, 40vw, 580px); overflow: hidden; background: radial-gradient(ellipse at 75% 25%, #334a38, transparent 65%), #111713; isolation: isolate; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { display: flex; align-items: flex-end; visibility: hidden; opacity: 0; transition: opacity .65s ease, visibility .65s ease; }
.hero-slide.is-active { visibility: visible; opacity: 1; }
.hero-cover-link { position: absolute; z-index: 1; inset: 0; }
.hero-cover-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.hero-copy { pointer-events: none; }
.hero-copy .primary-button { position: relative; z-index: 2; pointer-events: auto; }
/* Tighten only the first home advertisement below the carousel. */
.home-page .hero-carousel + .page-shell { padding-top: 12px; }
.home-page .hero-carousel + .page-shell > .site-ad:first-child,
.home-page .hero-carousel + .page-shell > .promotion-group:first-child { margin-top: 0; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,12,10,.94) 0%, rgba(8,12,10,.72) 29%, rgba(8,12,10,.12) 68%, rgba(8,12,10,.3) 100%), linear-gradient(0deg, rgba(8,12,10,.92), transparent 60%); }
.hero-copy { --hero-title-lines: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: min(1380px, calc(100% - 64px)); margin-inline: auto; padding-bottom: 92px; }
.hero-copy .primary-button { justify-self: start; height: 44px; margin-top: 0; white-space: nowrap; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero-copy h1 { display: -webkit-box; max-width: 600px; height: calc(var(--hero-title-lines) * 1.18em); margin: 0; overflow: hidden; color: #fff; font-size: clamp(32px, 3.5vw, 48px); font-weight: 800; letter-spacing: -.05em; line-height: 1.18; overflow-wrap: anywhere; text-wrap: balance; -webkit-box-orient: vertical; -webkit-line-clamp: var(--hero-title-lines); }
.hero-description { display: -webkit-box; max-width: 500px; height: 3.6em; margin: 0; overflow: hidden; color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero-meta, .detail-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: rgba(255,255,255,.72); font-size: 12px; }
.hero-meta { max-width: 600px; min-width: 0; height: 28px; overflow: hidden; flex-wrap: nowrap; }
.hero-meta > span { flex-shrink: 0; white-space: nowrap; }
.hero-meta > span:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero-meta span:not(.hero-score), .detail-meta span:not(.hero-score) { padding: 5px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: rgba(255,255,255,.08); }
.hero-score { color: #ffcc74; font-weight: 700; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; margin-top: 24px; padding: 0 20px; border: 0; border-radius: 7px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 25%, transparent); font-size: 13px; font-weight: 700; transition: transform .2s ease, filter .2s ease; }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-2px); }
.carousel-arrow { position: absolute; z-index: 3; top: auto; bottom: 29px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; appearance: none; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(16,17,20,.35); backdrop-filter: blur(8px); cursor: pointer; line-height: 0; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.carousel-arrow svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); background: rgba(16,17,20,.72); }
.carousel-prev { right: calc(var(--hero-gutter) + 54px); }
.carousel-next { right: var(--hero-gutter); }
.hero-thumbnails { position: absolute; z-index: 3; right: var(--hero-gutter); bottom: 92px; display: flex; gap: 7px; max-width: min(48%, 330px); overflow-x: auto; padding: 4px; scrollbar-width: none; }
.hero-thumbnails::-webkit-scrollbar { display: none; }
.hero-thumb { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 56px; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; color: var(--accent); background: rgba(20,21,23,.7); cursor: pointer; opacity: .63; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb.is-active, .hero-thumb:hover { border-color: var(--accent); opacity: 1; transform: translateY(-2px); }
.hero-thumb > span { font-size: 20px; font-weight: 800; }
.carousel-dots { position: absolute; z-index: 3; left: var(--hero-gutter); bottom: 29px; display: flex; gap: 5px; max-width: calc(100% - 160px); overflow: hidden; }
.carousel-dot { position: relative; flex: 0 0 28px; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: flex-basis .25s ease; }
.carousel-dot::after { position: absolute; inset: 20px 0; border-radius: 999px; background: rgba(255,255,255,.42); content: ''; }
.carousel-dot.is-active { flex-basis: 40px; }
.carousel-dot.is-active::after { background: var(--accent); }
.carousel-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 4px; }

.content-section { margin-top: 66px; }
.section-heading, .watch-heading { --heading-size: clamp(23px, 2.7vw, 30px); }
.section-heading > div, .watch-heading > div { display: grid; position: relative; isolation: isolate; min-width: 0; max-width: 100%; align-content: start; font-size: var(--heading-size); }
.section-heading .eyebrow, .watch-heading .eyebrow {
    order: 2;
    grid-area: 1 / 1;
    align-self: start;
    position: relative;
    z-index: 0;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    margin: .4em 0 0;
    overflow: hidden;
    color: transparent;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, transparent) 0%, color-mix(in srgb, var(--accent) 12%, transparent) 50%, color-mix(in srgb, var(--accent) 2%, transparent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Impact, Haettenschweiler, "Arial Narrow", sans-serif;
    font-size: inherit;
    font-stretch: condensed;
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}
.section-heading h1, .section-heading h2, .watch-heading h1 { order: 1; grid-area: 1 / 1; align-self: start; position: relative; z-index: 1; }
.section-heading .section-description, .watch-heading .watch-episode-title { order: 3; grid-area: 2 / 1; position: relative; z-index: 1; margin-top: 5px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: inherit; font-weight: 750; letter-spacing: -.05em; line-height: 1.2; }
.section-heading > .text-link { display: inline-flex; flex-shrink: 0; align-items: center; min-height: calc(var(--heading-size) * 1.2); padding-block: 4px; }
.section-heading > .text-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.section-description { margin: 8px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.section-mark, .result-count { color: var(--text-dim); font-size: 12px; }
.section-mark { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.text-link { color: var(--text-muted); font-size: 12px; transition: color .2s ease; white-space: nowrap; }
.text-link span { margin-left: 5px; color: var(--accent); }
.text-link:hover { color: var(--accent); }

.week-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; }
.week-tabs::-webkit-scrollbar { display: none; }
.week-tab { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 72px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-muted); background: var(--surface); cursor: pointer; font-size: 12px; white-space: nowrap; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.week-tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.week-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.week-tab:active { transform: translateY(1px); }
.week-tab.is-active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); font-weight: 700; }
.week-panel { padding-top: 5px; }
.week-track { --week-columns: min(var(--week-page-size, 8), var(--week-column-limit, 8)); --week-gap: 17px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--week-columns) - 1) * var(--week-gap)) / var(--week-columns)); gap: var(--week-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; margin-inline: -14px; padding: 16px 14px 18px; }
.week-track .video-card { scroll-snap-align: start; }
.week-track:focus-visible, .week-track .video-card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.week-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.week-navigation[hidden] { display: none; }
.week-browse-hint { color: var(--text-muted); font-size: 11px; }
.week-page-controls { display: flex; align-items: center; gap: 10px; }
.week-page-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--surface); cursor: pointer; transition: color .2s ease, border-color .2s ease, transform .15s ease; }
.week-page-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.week-page-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.week-page-button:active:not(:disabled) { transform: translateY(1px); }
.week-page-button:disabled { opacity: .35; cursor: not-allowed; }
.week-page-status { min-width: 62px; color: var(--text-muted); font-size: 11px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .week-page-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); } }
.week-empty { display: flex; align-items: center; gap: 10px; min-height: 88px; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--text-muted); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.week-empty span { color: var(--accent); font-size: 17px; }
.week-empty p { margin: 0; font-size: 12px; }

.home-page { --video-grid-columns: 8; }
.video-grid { display: grid; grid-template-columns: repeat(var(--video-grid-columns, 8), minmax(0, 1fr)); gap: 28px 17px; }
.video-card { --poster-radius: 9px; position: relative; z-index: 0; isolation: isolate; display: flex; min-width: 0; flex-direction: column; color: var(--text); }
.video-card::before { position: absolute; z-index: -1; inset: 0 0 auto; aspect-ratio: .7; border-radius: var(--poster-radius); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 48%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 24%, transparent); content: ''; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.video-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--poster-radius); }
.video-card:focus-visible::before { opacity: 1; }
.text-poster-grid .video-card::before { display: none; }
.text-poster-grid .poster-wrap { display: none; }
.text-poster-grid .video-card { min-height: 62px; justify-content: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.text-poster-grid .video-card:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); transform: translateY(-2px); }
.text-poster-grid .video-card-title { margin-top: 0; }
.poster-wrap { position: relative; display: block; aspect-ratio: .7; overflow: hidden; border: 1px solid var(--line); border-radius: var(--poster-radius, 9px); background: var(--surface-raised); isolation: isolate; transition: border-color .25s ease; }
.poster-wrap::after { position: absolute; z-index: 1; top: -25%; left: -100%; width: 70%; height: 150%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08) 30%, rgba(255,255,255,.32) 50%, rgba(255,255,255,.08) 70%, transparent); content: ''; opacity: 0; pointer-events: none; transform: skewX(-20deg); }
.cover-image { color: transparent; font-size: 0; opacity: 0; }
.cover-image.is-loaded { opacity: 1; }
.cover-image[hidden] { display: none; }
.poster-image { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .35s ease, opacity .2s ease; }
.poster-placeholder { position: absolute; inset: 0; display: block; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 9%, var(--surface-raised)), transparent 60%), linear-gradient(145deg, var(--surface-soft), var(--surface)); pointer-events: none; }
@keyframes poster-sweep { 0% { opacity: 0; transform: translateX(0) skewX(-20deg); } 20%, 65% { opacity: 1; } 100% { opacity: 0; transform: translateX(320%) skewX(-20deg); } }
@media (hover: hover) and (pointer: fine) {
    .video-card:hover { z-index: 1; }
    .video-card:hover::before { opacity: 1; }
    .video-card:hover .poster-wrap { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
    .video-card:hover .poster-wrap::after { animation: poster-sweep .85s ease-out both; }
    .video-card:hover .poster-image { filter: brightness(.85); transform: scale(1.045); }
}
.poster-score, .poster-status { position: absolute; z-index: 2; display: inline-flex; align-items: center; padding: 5px 7px; border-radius: 4px; color: #fff; background: rgba(13,14,17,.75); font-size: 10px; line-height: 1; backdrop-filter: blur(8px); }
.poster-score { top: 9px; right: 9px; color: #ffd27d; }
.poster-status { bottom: 9px; left: 9px; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-card-title { display: block; overflow: hidden; margin-top: 11px; font-size: 13px; font-weight: 650; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.video-card:hover .video-card-title { color: var(--accent); }
.category-module + .category-module { margin-top: 48px; }
.ranking-english { margin-left: 10px; color: var(--text-dim); font-size: 10px; font-weight: 600; letter-spacing: .12em; vertical-align: 3px; }
.ranking-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.ranking-card { min-width: 0; padding: 17px 16px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ranking-card-heading { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ranking-badge { display: inline-grid; place-items: center; height: 20px; padding: 0 6px; border-radius: 4px; color: var(--accent-ink); background: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.ranking-card-heading h3 { flex: 1; overflow: hidden; margin: 0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-card-heading > a { color: var(--text-dim); font-size: 17px; }
.ranking-list { margin: 0; padding: 0; list-style: none; }
.ranking-list li a { display: flex; align-items: center; gap: 10px; min-height: 58px; border-bottom: 1px solid var(--line); }
.ranking-list li:last-child a { border-bottom: 0; }
.rank-number { width: 25px; color: var(--text-dim); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-1, .rank-2, .rank-3 { color: var(--accent); }
.rank-title { display: flex; min-width: 0; flex: 1; flex-direction: column; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rank-title small, .rank-hits small { margin-top: 5px; color: var(--text-dim); font-size: 9px; font-weight: 400; }
.rank-hits { display: flex; flex-direction: column; align-items: end; color: var(--text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.ranking-list a:hover .rank-title { color: var(--accent); }
.ranking-empty { display: flex; align-items: center; min-height: 58px; color: var(--text-dim); font-size: 11px; }
.links-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.links-list a { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 51px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-muted); background: var(--surface); font-size: 11px; transition: border-color .2s ease, color .2s ease; }
.links-list a:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--text); }
.links-list img { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; }
.links-list a > span:nth-child(1), .links-list a > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-arrow { margin-left: auto; color: var(--text-dim); }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.home-empty { min-height: 340px; margin-top: 22px; padding: 50px 24px; border: 1px dashed var(--line); border-radius: 15px; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 58%), var(--surface); }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 16px; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); font-size: 24px; }
.home-empty h1 { margin: 0; font-size: 25px; letter-spacing: -.05em; }
.home-empty > p:not(.eyebrow), .compact-empty > p { max-width: 480px; margin: 10px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.home-empty .primary-button { margin-top: 22px; }
.search-results-section { margin-top: 7px; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.search-results-section .section-heading { margin-bottom: 20px; }
.search-results-section .video-grid { grid-template-columns: repeat(var(--video-grid-columns, 8), minmax(0, 1fr)); }
.compact-empty { min-height: 190px; padding: 30px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); }
.compact-empty .empty-icon { width: 42px; height: 42px; margin-bottom: 12px; border-radius: 13px; font-size: 19px; }
.compact-empty strong { font-size: 14px; }
.compact-empty .text-link { margin-top: 16px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; color: var(--text-dim); font-size: 10px; }
.footer-inner > span { flex: 1; }
.footer-brand { color: var(--text); font-size: 12px; font-weight: 700; }
.footer-inner > a:last-child:hover { color: var(--accent); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; margin: 7px 0 25px; color: var(--text-dim); font-size: 11px; }
.breadcrumbs a:hover { color: var(--accent); }
.catalog-heading { --heading-size: 35px; margin-bottom: 28px; }
.pagination-wrap { display: flex; justify-content: center; margin-top: 34px; }
.site-pagination, .pagination-pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.site-pagination .pagination-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-muted); background: var(--surface); font-size: 12px; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-pagination .pagination-direction { padding-inline: 12px; }
.site-pagination .pagination-link[aria-current="page"] { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.site-pagination a:hover, .site-pagination a:active { border-color: var(--accent); color: var(--accent); }
.site-pagination a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-pagination [aria-disabled="true"] { color: var(--text-dim); cursor: default; }
.pagination-ellipsis { padding-inline: 3px; color: var(--text-dim); }
.pagination-status { display: none; color: var(--text-muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 660px) {
    .site-pagination { flex-wrap: nowrap; gap: 12px; }
    .site-pagination .pagination-pages { display: none; }
    .pagination-status { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; min-height: 44px; }
}

.detail-hero { display: grid; grid-template-columns: minmax(190px, 280px) minmax(0, 1fr); gap: clamp(25px, 5vw, 60px); align-items: center; padding: clamp(22px, 5vw, 56px); border: 1px solid var(--line); border-radius: 17px; background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 52%), var(--surface); }
.detail-poster-wrap { border-radius: 10px; box-shadow: var(--shadow); }
.detail-poster { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { margin: 0; font-size: clamp(32px, 5vw, 51px); letter-spacing: -.06em; line-height: 1.13; }
.detail-subtitle { margin: 10px 0 0; color: var(--text-muted); font-size: 15px; }
.detail-meta { margin-top: 17px; color: var(--text-muted); }
.detail-meta span:not(.hero-score) { border-color: var(--line); color: var(--text-muted); background: var(--surface-raised); }
.detail-line { margin: 17px 0 0; color: var(--text-muted); font-size: 12px; }
.detail-line strong { margin-right: 10px; color: var(--text); }
.detail-summary { max-width: 670px; margin: 19px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.9; }
.detail-content { margin-top: 45px; }
.description-copy { color: var(--text-muted); font-size: 13px; line-height: 2; white-space: pre-line; }
.episode-group { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.episode-group h3 { margin: 0 0 15px; font-size: 13px; }
.episode-list { display: flex; flex-wrap: wrap; gap: 8px; }
.episode-list a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-muted); background: var(--surface-raised); font-size: 11px; transition: .2s ease; }
.episode-list a:hover { border-color: var(--accent); color: var(--accent); }
.detail-no-play { margin-top: 45px; }
.back-home-link { display: inline-flex; margin-top: 30px; color: var(--text-muted); font-size: 12px; }
.back-home-link:hover { color: var(--accent); }
.watch-heading { --heading-size: clamp(25px, 4vw, 38px); display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 25px 0 22px; }
.watch-heading h1 { margin: 0; font-size: inherit; letter-spacing: -.05em; line-height: 1.2; }
.watch-episode-title { margin: 9px 0 0; color: var(--text-muted); font-size: 14px; }
.watch-player-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #000; box-shadow: var(--shadow); }
#mxpro-dplayer { width: 100%; aspect-ratio: 16 / 9; min-height: 240px; }
.watch-episodes { margin-top: 34px; }
.episode-list a.is-active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.episode-list a[aria-current="page"] { cursor: default; }

@media (max-width: 1120px) {
    .header-inner, .page-shell, .footer-inner { width: min(100% - 48px, 1380px); }
    .hero-carousel { --hero-gutter: 24px; }
    .hero-copy { width: calc(100% - 48px); }
    .header-inner { gap: 25px; }
    .main-nav { gap: 19px; }
    .video-grid, .search-results-section .video-grid { grid-template-columns: repeat(var(--video-grid-columns-tablet, 5), minmax(0, 1fr)); }
    .week-track { --week-column-limit: 5; }
    .ranking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .links-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .header-inner, .page-shell, .footer-inner { width: calc(100% - 36px); }
    .header-inner { flex-wrap: wrap; gap: 0 18px; min-height: 67px; }
    .brand-name { font-size: 18px; }
    .main-nav { order: 3; width: 100%; height: 40px; gap: 21px; overflow-x: auto; scrollbar-width: none; }
    .main-nav::-webkit-scrollbar { display: none; }
    .nav-link { font-size: 11px; }
    .header-actions { gap: 12px; }
    .search-form { width: min(31vw, 210px); height: 34px; }
    .member-link { font-size: 11px; }
    .page-shell { padding-top: 20px; }
    .hero-carousel { --hero-gutter: 18px; height: clamp(196px, 56.25vw, 360px); touch-action: pan-y pinch-zoom; }
    .home-page .hero-carousel + .page-shell { padding-top: 8px; }
    .hero-copy { width: calc(100% - 36px); gap: 6px; padding-bottom: 44px; }
    .hero-copy h1 { max-width: 75%; font-size: clamp(21px, 4.1vw, 32px); }
    .hero-copy .primary-button { padding-inline: 14px; font-size: 12px; }
    .hero-description, .hero-thumbnails, .hero-meta, .hero-copy .primary-button, .carousel-arrow { display: none; }
    .hero-shade { background: linear-gradient(90deg, rgba(8,12,10,.86), rgba(8,12,10,.2) 80%), linear-gradient(0deg, rgba(8,12,10,.86), transparent 85%); }
    .carousel-dots { right: var(--hero-gutter); bottom: 0; left: auto; max-width: calc(100% - 2 * var(--hero-gutter)); overflow-x: auto; scrollbar-width: none; }
    .carousel-dots::-webkit-scrollbar { display: none; }
    .carousel-dot { flex-basis: 16px; width: 16px; }
    .carousel-dot.is-active { flex-basis: 24px; }
    .week-track { scrollbar-width: none; }
    .week-track::-webkit-scrollbar { display: none; }
    .content-section { margin-top: 52px; }
    .video-grid, .search-results-section .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 13px; }
    .week-track { --week-column-limit: 4; --week-gap: 13px; }
    .video-card { --poster-radius: 7px; }
    .poster-wrap { border-radius: 7px; }
    .ranking-grid { gap: 10px; }
    .links-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .header-inner, .page-shell, .footer-inner { width: calc(100% - 28px); }
    .header-inner { gap: 0 12px; }
    .brand-mark { width: 30px; height: 30px; border-radius: 9px 9px 9px 3px; font-size: 17px; }
    .brand-name { font-size: 16px; }
    .brand-logo { max-width: 120px; max-height: 34px; }
    .header-actions { gap: 8px; }
    .search-form { width: 37vw; height: 32px; padding-left: 10px; }
    .search-form input { font-size: 10px; }
    .member-link { font-size: 10px; }
    .main-nav { height: 37px; }
    .hero-carousel { --hero-gutter: 14px; }
    .hero-copy { width: calc(100% - 28px); }
    .hero-copy h1 { max-width: 85%; font-size: clamp(21px, 5.6vw, 27px); }
    .carousel-arrow svg { width: 18px; height: 18px; }
    .content-section { margin-top: 43px; }
    .section-heading { --heading-size: 23px; margin-bottom: 17px; }
    .section-description { font-size: 10px; }
    .section-mark { padding: 6px 8px; font-size: 9px; }
    .week-tabs { gap: 5px; }
    .week-tab { flex: 1 0 0; min-width: 0; height: 44px; padding: 0 4px; font-size: 11px; }
    .video-grid, .search-results-section .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px 10px; }
    .week-track { --week-column-limit: 3; --week-gap: 10px; }
    .week-browse-hint { font-size: 10px; }
    .week-page-controls { gap: 6px; }
    .video-card-title { margin-top: 8px; font-size: 11px; }
    .poster-score, .poster-status { padding: 4px 5px; font-size: 8px; }
    .poster-score { top: 6px; right: 6px; }
    .poster-status { bottom: 6px; left: 6px; max-width: calc(100% - 12px); }
    .ranking-grid { grid-template-columns: 1fr; }
    .ranking-card { padding: 14px 13px 8px; }
    .ranking-list li a { min-height: 52px; }
    .links-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .links-list a { min-height: 44px; padding-inline: 9px; font-size: 10px; }
    .footer-inner { min-height: 60px; gap: 10px; font-size: 9px; }
    .footer-brand { font-size: 10px; }
    .search-results-section { padding: 15px 11px; }
    .search-results-section .section-heading { align-items: start; }
    .detail-hero { grid-template-columns: minmax(105px, 34%) minmax(0, 1fr); gap: 18px; padding: 16px; border-radius: 12px; }
    .detail-copy h1 { font-size: 27px; }
    .detail-subtitle { font-size: 12px; }
    .detail-meta { gap: 5px; margin-top: 12px; font-size: 9px; }
    .detail-meta span:not(.hero-score) { padding: 4px 6px; }
    .detail-line { margin-top: 12px; font-size: 10px; }
    .detail-line strong { margin-right: 6px; }
    .detail-summary { margin-top: 12px; font-size: 10px; line-height: 1.65; }
    .catalog-heading { --heading-size: 30px; }
    .breadcrumbs { margin-top: 3px; font-size: 10px; }
    .episode-group { padding: 13px; }
    .episode-list { gap: 6px; }
    .episode-list a { min-height: 32px; padding-inline: 9px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .video-card .poster-wrap::after { animation: none !important; opacity: 0; }
    .video-card:hover .poster-image { transform: none; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
