:root {
    --ink: #202832;
    --muted: #626a73;
    --accent: #ff6238;
    --line: #e5e8eb;
    --paper: #ffffff;
    --wash: #f4f6f8;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #177eb6;
    outline-offset: 5px;
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.4;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.4;
    margin-bottom: 22px;
}

h3 {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
}

p {
    margin-bottom: 16px;
    color: var(--muted);
}

button {
    border: 0;
}

.wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.topbar {
    display: flex;
    align-items: center;
    min-height: 96px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    flex-shrink: 0;
}

.brand img {
    flex-shrink: 0;
}

.brand-light {
    font-weight: 500;
    margin-left: 5px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: 400;
}

.header-note {
    color: #777f87;
    font-size: 14px;
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

.library-link {
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 9px 20px;
    font-size: 14px;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    padding: 12px 0 16px;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    white-space: nowrap;
}

.nav a span {
    margin-right: 8px;
    font-size: 20px;
}

.nav a[aria-current="page"] {
    color: #c83b16;
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.nav a:hover,
.text-link:hover,
h3 a:hover {
    color: #c83b16;
}

.menu-button {
    display: none;
}

.hero {
    margin-top: 32px;
    background: #18232d;
    color: white;
    border-radius: 22px;
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    overflow: hidden;
    min-height: 470px;
}

.hero-copy {
    padding: 44px 30px 30px 38px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: #a33d22;
}

.hero .eyebrow {
    color: #ffae94;
}

.hero h1 {
    font-size: 17px;
    letter-spacing: .5px;
    margin: 20px 0 10px;
}

.hero h2 {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.4;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.hero p {
    color: #bfcbd3;
}

.hero-actions,
.video-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 9px;
    background: var(--accent);
    color: #171c21;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
}

.button:hover {
    background: #ff805b;
}

.button.ghost {
    color: inherit;
    background: transparent;
    border-color: #bac2c9;
}

.hero .ghost {
    border-color: #586570;
}

.hero .hero-foot {
    margin-top: 26px;
    margin-bottom: 0;
    font-size: 12px;
    color: #a5b5c0;
}

.hero-feature {
    min-width: 0;
    background: #23313d;
}

.hero-feature .cover {
    border-radius: 0;
}

.hero-feature .play-mark {
    width: 68px;
    height: 68px;
    font-size: 25px;
    background: #ff6238;
    color: #19232d;
}

.hero-caption {
    padding: 22px 28px 18px;
}

.hero-caption h3 {
    font-size: 23px;
}

.hero-caption p {
    font-size: 14px;
    margin-bottom: 8px;
}

.section {
    margin-block: 64px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
}

.text-link {
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    padding-block: 10px;
    display: inline-block;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.card-copy {
    min-width: 0;
}

.cover {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #283b45;
}

.cover img {
    width: 100%;
    height: 100%;
    transition: transform .3s ease;
    color: white;
    font-size: 14px;
}

.card:hover .cover img {
    transform: scale(1.025);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111a24a6;
    color: white;
    width: 43px;
    height: 43px;
    border: 1px solid #ffffff80;
    font-size: 16px;
    padding-left: 3px;
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 9px;
    background: #111a24d9;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    padding: 1px 7px;
    font-variant-numeric: tabular-nums;
}

.card-copy {
    padding-top: 13px;
}

.meta {
    font-size: 12px;
    color: #68717a;
    margin-bottom: 7px;
}

.card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
    font-size: 17px;
}

.card-copy > p:not(.meta) {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5em;
    margin-bottom: 0;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    background: var(--wash);
    padding: 10px 28px;
    border-radius: var(--radius);
}

.timeline article {
    display: grid;
    grid-template-columns: 58px 1fr 40px;
    gap: 15px;
    border-bottom: 1px solid #dce1e6;
    padding: 24px 0;
    align-items: start;
}

.timeline article:nth-last-child(-n+2) {
    border-bottom: 0;
}

.timeline time {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.timeline h3 {
    font-size: 17px;
    margin-top: 7px;
}

.timeline p {
    font-size: 14px;
    margin: 0;
}

.tag {
    background: #edf1f4;
    color: #495765;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.circle-link {
    display: grid;
    place-items: center;
    background: white;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 12px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    transition: border-color .2s;
}

.category:hover {
    border-color: var(--accent);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #e6f0fa;
    color: #28608d;
    border-radius: 12px;
    font-size: 23px;
    margin-bottom: 15px;
}

.category:nth-child(3n+2) .category-icon {
    background: #fff0e2;
    color: #9e561a;
}

.category:nth-child(3n+3) .category-icon {
    background: #e8f3ed;
    color: #28714c;
}

.category p {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.25em;
}

.category-count {
    font-size: 12px;
    color: #68717a;
}

.travel-section {
    padding: 32px;
    background: #edf4f8;
    border-radius: 20px;
}

.travel-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
}

.mini-stack {
    display: grid;
    gap: 16px;
}

.mini-stack .card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    align-items: start;
}

.mini-stack .card-copy {
    padding: 0;
}

.mini-stack h3 {
    margin: 0;
    font-size: 16px;
    min-height: 0;
}

.mini-stack .card-copy > p:not(.meta) {
    display: none;
}

.city-cards .card {
    border-bottom: 2px solid var(--ink);
    padding-bottom: 18px;
}

.food-section {
    background: #fff4e9;
    border-radius: 20px;
    padding: 36px;
}

.food-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 30px;
}

.food-header h2 {
    font-size: 30px;
}

.ranking {
    padding: 0;
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
}

.ranking li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 60px;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.rank-num {
    font-size: 31px;
    font-style: italic;
    font-weight: 800;
    color: #87939f;
}

.ranking li:first-child .rank-num {
    color: #e25029;
}

.ranking h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.ranking .meta {
    margin: 0;
}

.ranking strong {
    text-align: right;
    font-size: 22px;
    color: #c14622;
}

.ranking small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #68717a;
}

.topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.topic-banner {
    background: #202c37;
    border-radius: 16px;
    overflow: hidden;
    color: white;
}

.topic-banner .cover {
    border-radius: 0;
    aspect-ratio: 2 / 1;
}

.topic-banner > div:last-child {
    padding: 24px;
}

.topic-banner h3 {
    margin-top: 14px;
    font-size: 23px;
}

.topic-banner p {
    color: #c4cdd5;
    font-size: 14px;
}

.editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}

.editorial h3 {
    font-size: 27px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags a,
.tags > span {
    background: var(--wash);
    border-radius: 30px;
    padding: 9px 19px;
    font-size: 14px;
}

.tags a:hover {
    background: #ffe1d7;
}

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

.about-grid h2 {
    line-height: 1.6;
}

.subscribe {
    background: #202c37;
    color: white;
    padding: 36px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 112px 1fr auto;
    gap: 28px;
    align-items: center;
}

.subscribe h2 {
    margin-bottom: 12px;
}

.subscribe p {
    color: #ccd6dd;
}

.subscribe .eyebrow {
    color: #ffb8a2;
}

.fine {
    font-size: 12px;
}

.footer {
    background: var(--wash);
    border-top: 1px solid var(--line);
    padding: 42px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 50px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 14px;
}

.footer p {
    font-size: 13px;
    margin-bottom: 8px;
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-content: start;
    padding-top: 12px;
    font-size: 14px;
}

.footer nav a {
    min-height: 36px;
}

.footer .fine {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 13px;
    color: var(--muted);
    margin: 28px 0;
}

.category-hero {
    background: #edf4f8;
    padding: 40px;
    border-radius: 20px;
}

.category-hero h1 {
    margin-bottom: 14px;
}

.category-hero > p {
    max-width: 780px;
}

.featured-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
    align-items: center;
}

.video-heading {
    margin: 35px 0;
}

.video-heading h1 {
    max-width: 1000px;
}

.video-heading .meta {
    font-size: 14px;
    margin-bottom: 20px;
}

.player {
    background: #101922;
    color: white;
    border-radius: 18px;
    overflow: hidden;
    width: 100%;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
}

.player-image {
    height: 100%;
    width: 100%;
}

.center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 28px;
    background: var(--accent);
    color: #18222c;
}

.mode-pill {
    position: absolute;
    left: 20px;
    top: 18px;
    border-radius: 8px;
    background: #101922c9;
    padding: 5px 12px;
    font-size: 13px;
}

.player-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px 20px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.player-controls button {
    min-width: 44px;
    min-height: 44px;
    border-radius: 7px;
    background: #2b3b48;
    color: white;
}

.progress {
    flex: 1;
    min-width: 30px;
    accent-color: var(--accent);
}

.volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume input {
    width: 55px;
}

.player-status {
    font-size: 13px;
    color: #c5d0d9;
    margin: 0;
    padding: 0 24px 16px;
}

.player:fullscreen,
.player.cinema {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
}

.player:fullscreen .player-stage,
.player.cinema .player-stage {
    min-height: 0;
    max-height: calc(100vh - 130px);
}

.player:fullscreen .player-image,
.player.cinema .player-image {
    object-fit: contain;
}

.player.cinema {
    position: fixed;
    inset: 0;
    height: 100dvh;
    z-index: 100;
}

.cinema-open {
    overflow: hidden;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 50px;
}

.story-grid article h2:not(:first-child) {
    margin-top: 30px;
}

.lead {
    font-size: 18px;
    line-height: 2;
}

.notes {
    background: var(--wash);
    padding: 26px;
    border-radius: 16px;
}

.notes h2 {
    font-size: 22px;
}

.notes p,
.notes li {
    font-size: 14px;
}

.notes ul {
    padding-left: 20px;
    color: var(--muted);
}

.notes li {
    margin-bottom: 15px;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.scene-grid figure {
    margin: 0;
}

.scene-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #e6ebef;
}

.scene-grid figcaption {
    font-size: 14px;
    color: var(--muted);
    padding-top: 12px;
}

.scene-grid figcaption span {
    font-weight: 800;
    color: #c14622;
    margin-right: 12px;
}

.ending {
    padding: 35px;
    text-align: center;
    background: #edf4f8;
    border-radius: 16px;
}

.ending span {
    font-size: 14px;
    color: #526474;
}

.ending h2 {
    font-size: 23px;
    margin-top: 14px;
}

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 25px;
    font-size: 14px;
}

.prev-next > :last-child {
    text-align: right;
}

.prev-next > * {
    padding-block: 15px;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #202c37;
    color: white;
    border: 1px solid white;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    z-index: 4;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #16232e;
    color: white;
    border-radius: 10px;
    padding: 12px 22px;
    z-index: 10;
    max-width: calc(100% - 100px);
    display: none;
    box-shadow: 0 5px 30px #0003;
    font-size: 14px;
}

.toast.visible {
    display: block;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 20;
    background: #fff;
    padding: 12px;
}

.skip-link:focus {
    top: 10px;
}

.library-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

#saved-list,
#history-list {
    margin-bottom: 36px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
