:root {
    --ink: #15333e;
    --muted: #5f737c;
    --brand: #087f72;
    --mint: #b0f0d9;
    --line: #dde7e7;
    --paper: #f4f7f7;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--brand);
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled, input:disabled {
    cursor: not-allowed;
}

:focus-visible {
    outline: 3px solid #149c89;
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

figure, h1, h2, h3, p, blockquote {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.45;
}

h2 {
    font-size: 26px;
    letter-spacing: -0.6px;
}

h3 {
    font-size: 18px;
}

p {
    color: var(--muted);
}

[hidden] {
    display: none !important;
}

.container {
    width: calc(100% - 64px);
    max-width: 1200px;
    margin-inline: auto;
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    vertical-align: middle;
}

.skip {
    position: absolute;
    z-index: 50;
    top: -80px;
    padding: 12px;
    background: white;
}

.skip:focus {
    top: 0;
}

header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 92px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
}

.header-note {
    border-left: 1px solid var(--line);
    padding-left: 28px;
    color: var(--muted);
    font-size: 14px;
}

.saved-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 16px;
    background: #eff7f4;
    border-radius: 24px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-height: 60px;
}

.navigation a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 10px;
    font-size: 14px;
    border-bottom: 3px solid transparent;
}

.navigation a[aria-current] {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 700;
}

.menu-button {
    display: none;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    padding: 10px;
}

.hero {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    color: white;
    background: #102c35;
    border-radius: 20px;
    overflow: hidden;
}

.hero-copy {
    padding: 38px 32px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 9px;
}

.hero .eyebrow {
    color: var(--mint);
}

.hero h1 {
    font-size: clamp(24px, 2.3vw, 32px);
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.hero p {
    color: #c0d2d7;
    font-size: 14px;
}

.hero-feature {
    margin-top: 26px;
    padding-left: 16px;
    border-left: 2px solid var(--mint);
}

.hero-feature > span {
    color: #9db7c0;
    font-size: 12px;
}

.hero-feature h2 {
    font-size: 25px;
    margin: 5px 0;
}

.hero-art {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-art .cover {
    border-radius: 12px;
}

.hero-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: 12px;
    color: #b9cbd1;
}

.hero-caption > span:first-child {
    color: var(--mint);
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0 16px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    padding: 11px 19px;
    border-radius: 7px;
    font-size: 14px;
    min-height: 44px;
    transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    color: #123d38;
    background: var(--mint);
    font-weight: 700;
}

.ghost {
    color: white;
    border-color: #55737c;
}

.dark {
    background: var(--ink);
    color: white;
}

.dark:hover {
    background: var(--brand);
    color: white;
}

.outline {
    background: transparent;
    border-color: #a9bfc2;
    color: var(--ink);
}

.hero-meta, .micro, .meta {
    font-size: 12px;
    color: var(--muted);
}

.hero-meta {
    color: #a1b8c1;
}

.section {
    margin-top: 62px;
}

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

.section-heading h2, .prose h2 {
    display: flex;
    align-items: center;
    gap: 11px;
}

.section-heading h2 > .icon {
    color: var(--brand);
    width: 24px;
    height: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand);
    min-height: 44px;
}

.grid-3, .grid-4, .short-grid, .category-grid, .scene-grid {
    display: grid;
    gap: 24px;
}

.grid-3, .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4, .short-grid, .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.cover {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #31555e;
    overflow: hidden;
    isolation: isolate;
}

.cover::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(transparent 45%, #061e2ac7);
    pointer-events: none;
}

.cover img, .player-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.cover:hover img {
    transform: scale(1.035);
}

.cover-play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ffffff9e;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #0a263c5c;
    color: white;
    z-index: 1;
}

.badge, .duration {
    position: absolute;
    bottom: 10px;
    color: white;
    font-size: 12px;
    z-index: 1;
}

.badge {
    left: 12px;
}

.duration {
    right: 10px;
    padding: 1px 5px;
    background: #10293599;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
}

.card-copy {
    padding-top: 12px;
}

.card-copy h3 {
    margin: 4px 0 7px;
}

.card-copy p, .short-card p {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 48px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.meta .icon {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
}

.category-grid {
    gap: 14px;
}

.category-tile {
    padding: 22px;
    border-radius: 10px;
    background: #e3f0ed;
    position: relative;
}

.category-tile > .icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
}

.category-tile p {
    font-size: 14px;
    margin-top: 7px;
    min-height: 48px;
}

.category-tile span {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 14px;
}

.cat-1, .cat-5 {
    background: #e4ebf4;
}

.cat-2, .cat-6 {
    background: #f4ebe0;
}

.cat-3, .cat-7 {
    background: #edeaf4;
}

.update-list {
    background: white;
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.update-row {
    display: grid;
    grid-template-columns: 60px 150px minmax(0, 1fr) 44px;
    gap: 24px;
    align-items: center;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.update-row:last-child {
    border: 0;
}

.update-row time b {
    font-size: 29px;
    line-height: 1.1;
    font-weight: 500;
}

.update-row time span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.update-row h3 {
    margin: 4px 0;
}

.update-row p {
    font-size: 14px;
}

.circle-link {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.spotlight {
    background: #e9eef0;
    border-radius: 15px;
    padding: 28px;
}

.short-card {
    position: relative;
    border-top: 3px solid var(--brand);
    padding-top: 16px;
}

.short-number {
    font-size: 38px;
    font-weight: 300;
    color: #749b99;
    line-height: 1;
    display: block;
    margin-bottom: 14px;
}

.short-card h3 {
    margin: 13px 0 6px;
}

.short-card .micro {
    display: inline-block;
    margin-top: 10px;
}

.anime-section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 36px;
}

.anime-section .cover {
    border-radius: 35px 10px 10px 10px;
}

.rank-layout {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 40px;
    padding: 32px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.rank-intro {
    background: #12343b;
    border-radius: 10px;
    padding: 30px;
    color: white;
}

.rank-intro h3 {
    font-size: 28px;
    margin: 18px 0;
}

.rank-intro p {
    color: #becfd4;
    font-size: 14px;
}

.rank-intro .eyebrow, .rank-intro .text-link {
    color: var(--mint);
}

.rank-intro .text-link {
    margin-top: 25px;
}

.ranking {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.ranking li:last-child {
    border-bottom: 0;
}

.rank-num {
    font-size: 26px;
    color: #719596;
    font-style: italic;
    font-family: Georgia, serif;
}

.ranking li:first-child .rank-num {
    color: #c38527;
}

.ranking h3 {
    font-size: 16px;
}

.ranking p, .ranking small {
    font-size: 12px;
}

.ranking strong {
    font-weight: 500;
    color: var(--brand);
    text-align: right;
}

.ranking small {
    display: block;
    color: var(--muted);
}

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

.topic-card {
    background: #17363d;
    color: white;
    border-radius: 14px;
    overflow: hidden;
}

.topic-card .cover {
    border-radius: 0;
    aspect-ratio: 2.35 / 1;
}

.topic-card > div {
    padding: 25px;
}

.topic-card h3 {
    font-size: 25px;
    margin-bottom: 12px;
}

.topic-card .eyebrow, .topic-card .text-link {
    color: var(--mint);
}

.topic-card p {
    color: #bfd0d3;
    font-size: 14px;
}

.topic-card .text-link {
    margin-top: 18px;
}

.documentary-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
}

.documentary-feature h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

.documentary-feature p {
    font-size: 14px;
}

blockquote {
    margin: 16px 0;
    padding-left: 14px;
    border-left: 2px solid var(--brand);
    font-size: 14px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud a {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 12px 22px;
    font-size: 14px;
}

.about-strip {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.about-strip h3 {
    font-size: 30px;
}

.about-strip p + p {
    margin-top: 12px;
}

.subscribe {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    background: #dcedea;
    padding: 40px;
    border-radius: 18px;
}

.subscribe h2 {
    margin-bottom: 10px;
}

.subscribe-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 10px;
    border-right: 1px solid #b6d2cc;
}

.subscribe-mark span, .subscribe-status {
    font-size: 12px;
}

footer {
    margin-top: 64px;
    background: #0e2931;
    color: white;
    padding-top: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 35px;
}

footer .brand small, footer p {
    color: #a9bec4;
}

footer p {
    font-size: 14px;
    margin-top: 15px;
    max-width: 420px;
}

.footer-main nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
    align-content: center;
    font-size: 14px;
}

.footer-main nav a {
    min-height: 40px;
}

.footer-bottom {
    border-top: 1px solid #31505a;
    padding-block: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #a9bec4;
}

.back-top {
    position: fixed;
    right: 16px;
    bottom: 20px;
    border: 1px solid #517c84;
    background: #183e46;
    color: white;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.back-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    margin-block: 26px;
}

.category-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    background: #e0edeb;
    border-radius: 16px;
    padding: 36px;
}

.category-hero h1 {
    font-size: 38px;
    margin-bottom: 8px;
}

.category-hero h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.category-hero p {
    margin-bottom: 14px;
}

.theme-movies, .theme-documentary {
    background: #e0e8ed;
}

.theme-drama, .theme-shorts {
    background: #f0e8dc;
}

.theme-anime, .theme-topic {
    background: #e9e5f1;
}

.channel-pick {
    border-left: 3px solid var(--brand);
    padding: 12px 0 12px 25px;
    max-width: 850px;
}

.channel-pick p {
    margin: 14px 0 20px;
}

.video-intro {
    max-width: 900px;
    margin-bottom: 28px;
}

.video-intro h1 {
    font-size: 36px;
    margin-bottom: 14px;
}

.detail-meta {
    display: flex;
    gap: 12px 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

.player {
    background: #0b1c23;
    color: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 980px;
    margin-inline: auto;
}

.player-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 550px;
    background: #142f3a;
}

.player-scene {
    position: absolute;
    inset: 0;
}

.player-scene figcaption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 24px 18px 12px;
    background: linear-gradient(transparent, #0b1c23d9);
    font-size: 14px;
}

.player-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0b1c23c9;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.big-play {
    position: absolute;
    width: 72px;
    height: 72px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border: 1px solid white;
    background: #123c459e;
    color: white;
    border-radius: 50%;
}

.big-play .icon {
    width: 30px;
    height: 30px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    font-size: 12px;
}

.player-controls button {
    border: 0;
    background: #26464e;
    color: white;
    border-radius: 5px;
    padding: 10px 14px;
    min-height: 44px;
}

.progress-label {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.progress-label input {
    width: 100%;
    min-width: 0;
    accent-color: var(--mint);
}

.volume-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-label input {
    width: 50px;
}

.player-controls output {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.player-status {
    font-size: 12px;
    padding: 0 18px 14px;
    color: #bfd0d5;
}

.watch-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 22px;
}

.favorite-status {
    font-size: 12px;
    color: var(--muted);
}

.scene-grid img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    border-radius: 9px;
}

.scene-grid figcaption {
    padding-top: 12px;
    font-size: 14px;
}

.scene-grid p {
    margin-top: 8px;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 48px;
    margin-top: 48px;
}

.prose h2 {
    font-size: 23px;
    margin: 26px 0 14px;
}

.prose p + p {
    margin-top: 16px;
}

.viewing-note {
    background: #e6eeec;
    padding: 26px;
    border-radius: 12px;
}

.viewing-note h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.viewing-note p {
    font-size: 14px;
    margin-bottom: 12px;
}

.end-note {
    margin-top: 42px;
    border-block: 1px solid var(--line);
    padding: 28px 0;
}

.end-note h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
}

.prev-next a {
    flex: 1;
    background: white;
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 8px;
}

.prev-next small {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.standalone {
    max-width: 850px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.standalone h1 {
    margin-bottom: 24px;
    font-size: 34px;
}

.standalone .button {
    margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
