:root {
    --ink: #17202b;
    --muted: #66717e;
    --accent: #f05a2b;
    --line: #e3e7ec;
    --paper: #ffffff;
    --soft: #f2f5f8;
    --night: #151b26;
    --radius: 16px;
}

* {
    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(--accent);
}

button, input {
    font: inherit;
}

button, summary {
    cursor: pointer;
}

button {
    color: inherit;
}

button:disabled {
    cursor: default;
}

:focus-visible {
    outline: 3px solid #328cff;
    outline-offset: 4px;
}

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

h1, h2, h3, p {
    margin-top: 0;
}

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

h2 {
    font-size: 27px;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 18px;
}

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

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

.site-header {
    background: var(--night);
    color: #fff;
}

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

.brand {
    flex-shrink: 0;
}

.header-note {
    color: #bac2ce;
    font-size: 14px;
    letter-spacing: 2px;
}

.library-button {
    margin-left: auto;
    padding: 9px 18px;
    border: 1px solid #47515f;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    min-height: 44px;
}

.nav-shell {
    border-top: 1px solid #303744;
}

.navigation summary {
    display: none;
}

.navigation nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.nav-link {
    padding: 9px 13px;
    border-radius: 8px;
    color: #c7ced8;
    font-size: 14px;
}

.nav-link.active {
    color: #fff;
    background: #343d4b;
}

.icon {
    display: inline-block;
    margin-right: 8px;
    font-weight: 500;
}

.section {
    margin-block: 64px;
}

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

.section-heading h2 {
    margin-bottom: 5px;
}

.section-heading h2 .icon {
    color: var(--accent);
}

.section-heading p {
    margin-bottom: 0;
    font-size: 14px;
}

.text-link {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 32px;
    align-items: center;
    margin-top: 36px;
}

.hero-copy {
    padding: 20px 0;
}

.hero h1 {
    font-size: 19px;
    margin-bottom: 14px;
}

.hero h2 {
    font-size: clamp(34px, 3.8vw, 50px);
    line-height: 1.25;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-copy > p {
    max-width: 420px;
}

.hero-actions, .bottom-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-block: 26px;
}

.button, .outline-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 22px;
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.button:hover {
    background: #d8491d;
    color: #fff;
}

.outline-button {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.hero-facts strong {
    color: var(--ink);
    font-size: 18px;
    margin-right: 3px;
}

.hero-visual {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--night);
    color: white;
}

.hero-caption {
    padding: 24px 28px;
}

.hero-caption h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.hero-caption p {
    color: #bdc6d2;
    font-size: 14px;
    margin-bottom: 0;
}

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

.cover img, .player-stage > img, .scene-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.cover img {
    transition: transform 250ms ease;
}

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

.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, #0008);
    z-index: 0;
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: #18202b70;
    border: 1px solid #ffffff90;
    backdrop-filter: blur(6px);
    padding-left: 3px;
    z-index: 1;
}

.hero-visual .cover {
    border-radius: 0;
}

.hero-visual .play-mark {
    width: 68px;
    height: 68px;
    font-size: 24px;
    background: var(--accent);
    border: 0;
}

.duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 2px 8px;
    border-radius: 5px;
    background: #0009;
    color: #fff;
    font-size: 12px;
    z-index: 1;
}

.grid-four, .grid-three, .category-grid, .topic-grid, .scene-grid, .highlight-grid {
    display: grid;
    gap: 26px 22px;
}

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

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

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 13px 0 8px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta > span {
    color: #c94a20;
}

.video-card h3 {
    min-height: 50px;
    margin-bottom: 8px;
}

.video-card h3, .clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.clamp {
    font-size: 14px;
    min-height: 48px;
    margin-bottom: 8px;
}

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

.timeline {
    padding: 8px 28px;
    background: var(--soft);
    border-radius: var(--radius);
}

.timeline article {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr) 44px;
    gap: 24px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.timeline article:last-child {
    border-bottom: 0;
}

.timeline time {
    color: var(--accent);
    font-size: 22px;
    font-weight: 700;
}

.timeline h3 {
    margin: 5px 0 8px;
}

.timeline p {
    font-size: 14px;
    margin-bottom: 0;
}

.round-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
}

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

.feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 32px;
    background: var(--soft);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 26px;
}

.feature > .cover {
    border-radius: 0;
}

.feature-copy {
    padding: 24px 26px 24px 0;
}

.feature-copy h3 {
    font-size: 24px;
}

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

.dual-feature .feature {
    display: block;
    margin-bottom: 0;
    background: var(--night);
    color: #fff;
}

.dual-feature .feature-copy {
    padding: 26px;
}

.dual-feature p {
    color: #bac4d1;
}

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

.category-tile {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 200ms;
}

.category-tile:hover {
    border-color: var(--accent);
}

.category-tile .icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #fff0e9;
    color: #d04c22;
    border-radius: 11px;
    font-size: 25px;
    margin-bottom: 18px;
}

.cat-1 .icon {
    color: #1766a6;
    background: #e8f2fc;
}

.cat-2 .icon {
    color: #226e61;
    background: #e7f6f0;
}

.cat-3 .icon {
    color: #7745aa;
    background: #f3ebfa;
}

.category-tile h3 {
    margin-bottom: 5px;
}

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

.category-tile > span:last-child {
    font-size: 12px;
    color: var(--muted);
}

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

.city-strip .cover {
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
}

.city-strip p {
    font-size: 14px;
}

.food-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.food-layout .feature {
    display: block;
    background: #fff2eb;
    margin-bottom: 0;
}

.food-layout .feature-copy {
    padding: 28px;
}

.food-notes article {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}

.food-notes article:first-child {
    padding-top: 0;
}

.food-number {
    color: #ca4b24;
    font-size: 30px;
    font-weight: 700;
}

.food-notes h3 {
    margin-bottom: 10px;
}

.food-notes p {
    font-size: 14px;
}

.rank-section {
    border-top: 3px solid var(--ink);
    padding-top: 28px;
}

.rank-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.rank-list li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 16px;
    padding: 20px 6px;
    border-bottom: 1px solid var(--line);
}

.rank-number {
    font-size: 34px;
    font-style: italic;
    font-weight: 700;
    color: #aeb8c3;
}

.rank-list li:nth-child(-n+3) .rank-number {
    color: var(--accent);
}

.rank-list h3 {
    margin-bottom: 6px;
}

.rank-list p {
    font-size: 12px;
    margin-bottom: 0;
}

.score {
    text-align: right;
    color: var(--accent);
    font-size: 24px;
    font-weight: 700;
}

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

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

.topic-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.topic-card .cover {
    border-radius: 0;
}

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

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

.topic-related {
    display: block;
    border-top: 1px solid var(--line);
    padding-top: 15px;
    color: #bc431c;
    font-size: 14px;
}

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

.tags a {
    padding: 10px 20px;
    border-radius: 40px;
    background: var(--soft);
    font-size: 14px;
}

.about-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.about-copy p {
    margin-bottom: 0;
}

.subscribe {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 200px;
    gap: 30px;
    align-items: center;
    padding: 36px;
    background: var(--night);
    border-radius: 20px;
    color: white;
}

.subscribe p {
    color: #b8c2cf;
    margin-bottom: 12px;
    font-size: 14px;
}

.subscribe-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: var(--accent);
    border-radius: 26px;
    font-size: 42px;
}

.subscribe-brand span {
    font-size: 16px;
    font-weight: 700;
}

.subscribe-actions {
    display: grid;
    gap: 12px;
}

.subscribe .outline-button {
    color: #fff;
    border-color: #586373;
}

.site-footer {
    background: var(--night);
    color: #b8c2cf;
    padding: 48px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-grid p {
    color: #b8c2cf;
    font-size: 14px;
    margin: 18px 0 0;
}

.footer-grid nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #333d4a;
    padding-top: 22px;
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    overflow-wrap: anywhere;
}

.channel-intro {
    padding: 36px;
    background: var(--soft);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.channel-intro h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.channel-intro h2 {
    font-size: 22px;
}

.channel-intro p {
    max-width: 850px;
}

.pill {
    display: inline-block;
    border-radius: 30px;
    background: #fff0e9;
    color: #b34320;
    padding: 5px 12px;
    font-size: 12px;
}

.video-heading h1 {
    font-size: 34px;
    max-width: 950px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.save-button {
    margin-left: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 15px;
    min-height: 44px;
}

.save-button[aria-pressed="true"] {
    color: #b6421d;
    background: #fff0e9;
}

.player {
    overflow: hidden;
    background: #10151d;
    border-radius: var(--radius);
    color: #fff;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.player-start {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 28px;
    padding-left: 10px;
}

.player-start[hidden] {
    display: none;
}

.preview-badge, .scene-caption {
    position: absolute;
    background: #000a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    left: 18px;
}

.preview-badge {
    top: 18px;
}

.scene-caption {
    bottom: 18px;
}

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

.player-controls button {
    background: transparent;
    color: #fff;
    border: 0;
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
}

.player-controls output {
    font-size: 12px;
    white-space: nowrap;
}

.player-controls > input {
    flex: 1;
    min-width: 40px;
    accent-color: var(--accent);
    min-height: 30px;
}

.volume {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #a4afbd;
}

.volume input {
    width: 65px;
}

.player-status {
    margin: 0;
    padding: 0 22px 16px;
    font-size: 12px;
    color: #b8c2cf;
}

.player:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
}

.player:fullscreen .player-stage {
    height: calc(100vh - 110px);
    width: 100%;
}

.player:fullscreen .player-stage > img {
    object-fit: contain;
}

.reading-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: start;
}

.reading-copy p {
    line-height: 1.95;
}

.reading-copy h2:not(:first-child) {
    margin-top: 30px;
}

.viewing-note {
    padding: 25px;
    border-radius: 12px;
    background: var(--soft);
}

.viewing-note h2 {
    font-size: 20px;
}

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

.scene-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.scene-grid img {
    height: auto;
}

.scene-grid figcaption {
    padding: 20px;
}

.scene-grid figcaption span {
    color: var(--accent);
    margin-right: 10px;
}

.scene-grid figcaption p {
    margin: 10px 0 0;
    font-size: 14px;
}

.highlight-grid article {
    border-top: 2px solid var(--accent);
    padding: 22px 0 0;
}

.highlight-grid p {
    font-size: 14px;
}

.ending {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 28px;
}

.ending h2 {
    font-size: 23px;
}

.ending p {
    margin-bottom: 0;
}

.adjacent {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    align-items: center;
    gap: 22px;
    margin-top: 26px;
    font-size: 14px;
}

.legal {
    max-width: 840px;
    margin: 40px auto 64px;
}

.back-top {
    position: fixed;
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--night);
    color: white;
    border: 1px solid #555;
    border-radius: 50%;
    z-index: 5;
}

.skip {
    position: fixed;
    top: -80px;
    left: 16px;
    background: white;
    padding: 14px;
    z-index: 99;
}

.skip:focus {
    top: 12px;
}

dialog {
    width: min(600px, calc(100% - 32px));
    max-height: 80vh;
    border: 0;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 100px #0004;
}

dialog::backdrop {
    background: #0c1427a8;
}

.dialog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-top button {
    width: 44px;
    height: 44px;
    font-size: 24px;
    background: var(--soft);
    border: 0;
    border-radius: 50%;
}

dialog li {
    margin-bottom: 15px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 100px);
    padding: 12px 22px;
    background: var(--night);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px #0003;
    z-index: 20;
    display: none;
}

.toast.visible {
    display: block;
}

.image-failed {
    object-fit: contain;
    color: #26364b;
    padding: 16px;
    background: #dbe3ec;
}
