:root {
    --ink: #20222b;
    --muted: #70737e;
    --accent: #f02d57;
    --accent-dark: #c81c42;
    --line: #e7e8ed;
    --surface: #f5f6f8;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font: 16px/1.75 "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

button, input {
    font: inherit;
}

button, a, input {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

button:disabled, input:disabled {
    cursor: default;
}

:focus-visible {
    outline: 3px solid #137de1;
    outline-offset: 5px;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: #dce2e7;
}

h1, h2, h3, p, figure {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.45;
    font-weight: 750;
}

h2 {
    font-size: 27px;
    letter-spacing: -.5px;
}

h3 {
    font-size: 17px;
}

p {
    overflow-wrap: anywhere;
}

.container {
    width: calc(100% - 64px);
    max-width: 1200px;
    margin-inline: auto;
}

section {
    margin-block: 66px;
}

.icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    vertical-align: middle;
}

.site-header {
    background: #20222b;
    color: #fff;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-block: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.3;
}

.brand img {
    width: 42px;
    height: 42px;
    background: transparent;
}

.brand strong {
    margin-left: 5px;
    font-weight: 600;
}

.brand small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 4px;
    color: #bfc0ca;
}

.header-note {
    color: #bfc0ca;
    font-size: 14px;
    margin-left: 20px;
}

.library-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 9px;
    border: 1px solid #4b4d57;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #393b44;
    padding-block: 9px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    padding: 11px 17px;
    border-radius: 8px;
    white-space: nowrap;
    color: #c9cbd3;
}

.main-nav a[aria-current="page"], .main-nav a:hover {
    background: #37323c;
    color: #ff6d8c;
}

.main-nav a:last-child {
    margin-left: auto;
}

.menu-toggle {
    display: none;
    color: #fff;
    border: 1px solid #555661;
    background: transparent;
    border-radius: 8px;
    padding: 9px 12px;
}

.hero {
    display: grid;
    grid-template-columns: .83fr 1.17fr;
    align-items: center;
    gap: 38px;
    margin-block: 38px 30px;
}

.hero-copy {
    padding: 20px 0;
}

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 1.6px;
    margin-bottom: 9px;
}

.hero-copy > .eyebrow {
    color: var(--accent);
}

.hero h1 {
    font-size: 17px;
    font-weight: 650;
    margin-bottom: 10px;
}

.hero-statement {
    font-size: clamp(32px, 3.5vw, 45px);
    font-weight: 800;
    letter-spacing: -1.7px;
    line-height: 1.4;
    margin-bottom: 19px;
}

.hero-statement span {
    color: var(--accent);
}

.hero-copy > p:not(.hero-statement):not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-block: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    text-align: center;
}

.button:hover {
    background: var(--accent-dark);
    color: #fff;
}

.button.secondary {
    background: #fff;
    border-color: #d9dbe2;
    color: var(--ink);
}

.button[aria-pressed="true"] {
    color: var(--accent);
    border-color: var(--accent);
}

.text-link {
    font-size: 14px;
    font-weight: 650;
    flex-shrink: 0;
}

.hero-foot {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--muted);
}

.hero-feature {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #263e47;
    color: #fff;
}

.cover {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 11px;
    background: #dce2e7;
    isolation: isolate;
}

.cover img {
    height: 100%;
    aspect-ratio: 16 / 9;
    transition: transform .4s ease;
}

.cover:hover img {
    transform: scale(1.035);
}

.cover::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, #0005);
    pointer-events: none;
    z-index: 0;
}

.play-mark {
    position: absolute;
    left: 13px;
    bottom: 13px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    color: #fff;
    background: #ffffff25;
    border: 1px solid #ffffffa0;
    border-radius: 50%;
    z-index: 1;
}

.play-mark .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.quality, .duration {
    position: absolute;
    z-index: 1;
    color: #fff;
    background: #151922ad;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    line-height: 1.6;
}

.quality {
    top: 10px;
    left: 10px;
}

.duration {
    right: 10px;
    bottom: 15px;
    font-variant-numeric: tabular-nums;
}

.hero-feature > .cover {
    aspect-ratio: 1.6;
    border-radius: 0;
}

.hero-feature .play-mark {
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%);
    width: 64px;
    height: 64px;
    background: #ffffff25;
    backdrop-filter: blur(5px);
}

.hero-feature .play-mark .icon {
    width: 27px;
    height: 27px;
}

.hero-caption {
    padding: 22px 26px 26px;
}

.hero-caption h2 {
    font-size: 23px;
}

.hero-caption > p:not(.eyebrow) {
    font-size: 14px;
    color: #d0dfe0;
    margin-top: 9px;
}

.hero-caption .eyebrow, .hero-caption .meta {
    color: #b9dad5;
}

.hero-caption .meta {
    display: block;
    margin-top: 11px;
}

.discovery-strip {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--surface);
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 14px;
}

.discovery-strip > span {
    color: var(--muted);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 26px;
}

.section-heading h2 {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-heading h2 .icon {
    color: var(--accent);
    width: 25px;
    height: 25px;
}

.video-grid {
    display: grid;
    gap: 30px 22px;
}

.grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
    min-width: 0;
}

.card-copy {
    padding: 14px 0 0;
}

.card-copy h3, .excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-copy h3 {
    min-height: 49px;
}

.card-copy .eyebrow {
    color: var(--accent-dark);
    display: flex;
    justify-content: space-between;
    letter-spacing: 0;
}

.card-copy .eyebrow span {
    color: var(--muted);
    font-weight: 400;
}

.excerpt {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin-top: 9px;
    min-height: 46px;
}

.meta {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

.card-copy > .meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    gap: 6px;
}

.split-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 42px;
}

.popular-panel {
    background: #fff4f6;
    padding: 28px;
    border-radius: var(--radius);
}

.popular-panel .section-heading h2 {
    font-size: 23px;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
}

.list-row:last-child {
    border-bottom: 0;
}

.list-row > div {
    min-width: 0;
    flex: 1;
}

.list-row h3 {
    font-size: 15px;
}

.mini-cover {
    position: relative;
    width: 104px;
    flex: 0 0 104px;
    aspect-ratio: 16 / 9;
    border-radius: 7px;
    overflow: hidden;
}

.mini-cover img {
    height: 100%;
}

.mini-cover > span {
    position: absolute;
    left: 5px;
    bottom: 3px;
    color: #fff;
    filter: drop-shadow(0 1px 3px #000);
}

.mini-cover .icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.update-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.rank-number {
    font: italic 700 26px/1.2 Georgia, serif;
    color: var(--accent);
    min-width: 30px;
}

.rank-score {
    font-size: 20px;
    font-weight: 750;
    text-align: right;
    min-width: 52px;
}

.rank-score small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.popular-panel .mini-cover {
    display: none;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.category-tile {
    padding: 20px;
    border-radius: 12px;
    transition: transform .2s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    color: var(--ink);
}

.category-tile > .icon {
    width: 27px;
    height: 27px;
    margin-bottom: 12px;
}

.category-tile p {
    color: #606573;
    font-size: 13px;
    min-height: 46px;
    margin-top: 7px;
}

.category-tile > span {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-top: 16px;
}

.tone-0 {
    background: #fff0f3;
}

.tone-1 {
    background: #eaf5f6;
}

.tone-2 {
    background: #fff4e8;
}

.tone-3 {
    background: #eef1ff;
}

.tone-4 {
    background: #eff5ec;
}

.travel-section {
    background: #183e44;
    color: #fff;
    padding: 32px;
    border-radius: 18px;
}

.travel-section .eyebrow, .travel-section .section-heading .icon {
    color: #a8d6cc;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.travel-story > div {
    padding-top: 18px;
}

.travel-story > div > p:last-child {
    color: #c0d4d5;
    font-size: 14px;
    margin-top: 9px;
}

.city-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    border-block: 1px solid var(--line);
    padding-block: 26px;
}

.city-feature h3 {
    font-size: 27px;
    margin-bottom: 16px;
}

.city-feature p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 20px;
}

.food-section .cover {
    border-radius: 11px 11px 0 0;
}

.food-section .video-card {
    border: 1px solid #eee2d5;
    border-radius: 12px;
    overflow: hidden;
    background: #fffaf5;
}

.food-section .card-copy {
    padding: 16px;
}

.rank-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.rank-columns > div > h3 {
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ink);
}

.ranking-section > .muted {
    margin-top: 20px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.topic-card {
    overflow: hidden;
    border-radius: 12px;
    background: #f0f1f5;
}

.topic-card > a {
    display: grid;
    grid-template-columns: .85fr 1fr;
    height: 100%;
}

.topic-card img {
    height: 100%;
    aspect-ratio: 1;
}

.topic-card a > div {
    padding: 24px;
}

.topic-card p {
    font-size: 14px;
    color: var(--muted);
    margin-block: 9px 17px;
}

.topic-card a > div > span:last-child {
    font-size: 14px;
    font-weight: 650;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.editor-note {
    border-left: 3px solid var(--accent);
    padding: 3px 0 3px 22px;
}

.editor-note > .icon {
    color: var(--accent);
    margin-bottom: 13px;
}

.editor-note p {
    color: var(--muted);
    font-size: 14px;
    margin-block: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags a, .pill {
    background: var(--surface);
    border-radius: 30px;
    padding: 8px 17px;
    font-size: 14px;
}

.tags a:hover {
    background: #fff0f3;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 60px;
    padding-top: 45px;
    border-top: 1px solid var(--line);
}

.about-section h2 {
    font-size: 34px;
}

.about-section p:not(.eyebrow) {
    font-size: 15px;
    color: var(--muted);
    margin-top: 14px;
}

.subscribe-section {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 35px;
    border-radius: 16px;
    background: #fff1f4;
    margin-bottom: 60px;
}

.subscribe-section > img {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    background: transparent;
}

.subscribe-section > div:first-of-type {
    flex: 1;
}

.subscribe-section p:not(.eyebrow) {
    font-size: 14px;
    color: var(--muted);
    margin-top: 9px;
}

.subscribe-actions {
    display: grid;
    gap: 10px;
    min-width: 170px;
}

.site-footer {
    background: #20222b;
    color: #f5f5f8;
    padding-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-inner p {
    margin-top: 15px;
    color: #b6b9c4;
    font-size: 14px;
}

.footer-inner nav {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 18px 28px;
    align-content: center;
    font-size: 14px;
    color: #c4c7d1;
}

.footer-bottom {
    border-top: 1px solid #3b3e47;
    padding-block: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: #a8aab5;
}

.back-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 18px #1c203012;
    z-index: 5;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    padding: 10px 18px;
    background: #fff;
    z-index: 100;
}

.skip-link:focus {
    top: 10px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-block: 26px;
    overflow-wrap: anywhere;
}

.category-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 35px;
    border-radius: 18px;
    margin-top: 0;
}

.category-hero h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.category-hero h1 > .icon {
    width: 33px;
    height: 33px;
    margin-right: 10px;
}

.category-hero h2 {
    font-size: 20px;
}

.category-hero p:not(.eyebrow) {
    color: #626773;
    margin-block: 14px 20px;
}

.pill {
    display: inline-block;
    background: #ffffffb3;
    font-size: 12px;
}

.category-intro {
    max-width: 850px;
    border-left: 4px solid var(--accent);
    padding-left: 24px;
}

.category-intro p {
    color: var(--muted);
    margin-block: 18px;
}

.video-heading {
    margin-block: 32px;
}

.video-heading h1 {
    font-size: 34px;
}

.video-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}

.player {
    background: #12151d;
    color: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1a2731;
}

.player-image {
    width: 100%;
    height: 100%;
    opacity: .8;
}

.player-big {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: #fff;
    border: 1px solid #ffffffb0;
    background: var(--accent);
}

.player-big .icon {
    width: 33px;
    height: 33px;
    fill: currentColor;
}

.preview-label {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #111927cf;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.scene-caption {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    text-shadow: 0 2px 4px #000;
    background: #12151da0;
    border-radius: 6px;
    padding: 6px 12px;
}

.player-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 15px 20px;
    font-size: 13px;
}

.player-controls button {
    color: #fff;
    background: #353944;
    border: 0;
    padding: 9px 13px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 14px;
    min-height: 42px;
}

.player-time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.player-progress {
    flex: 1;
    min-width: 40px;
    accent-color: var(--accent);
}

.volume-control {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
    color: #b6b9c4;
}

.player-volume {
    width: 60px;
}

.player-status {
    color: #bec4d0;
    padding: 0 20px 16px;
    font-size: 13px;
}

.player:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
}

.player:fullscreen .player-stage {
    min-height: 0;
    flex: 1;
}

.player:fullscreen .player-image {
    object-fit: contain;
    background: #12151d;
}

.watch-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap;
}

.save-status {
    color: var(--muted);
    font-size: 14px;
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 55px;
    align-items: start;
}

.story-body h2 {
    margin-block: 30px 16px;
    font-size: 25px;
}

.story-body > h2:first-of-type {
    margin-top: 0;
}

.story-body p {
    color: #535863;
    line-height: 2;
}

.story-body .lead {
    font-size: 18px;
    color: var(--ink);
}

.watch-note {
    background: var(--surface);
    padding: 26px;
    border-radius: 12px;
}

.watch-note h2 {
    font-size: 21px;
}

.watch-note p:not(.eyebrow) {
    font-size: 14px;
    color: #646977;
    margin-block: 16px;
}

.highlights {
    padding: 0;
    list-style: none;
}

.highlights li {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.highlights strong, .highlights span {
    display: block;
}

.highlights span {
    color: var(--muted);
    font-size: 15px;
    margin-top: 6px;
}

.scene-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.scene-gallery img {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
}

.scene-gallery figcaption {
    display: flex;
    gap: 12px;
    font-size: 14px;
    margin-top: 12px;
}

.scene-gallery figcaption span {
    color: var(--accent);
}

.end-note {
    text-align: center;
    border-block: 1px solid var(--line);
    padding-block: 34px;
}

.end-note p {
    color: var(--muted);
    margin-top: 13px;
}

.episode-nav {
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.episode-nav a {
    flex: 1;
    padding: 20px;
    background: var(--surface);
    border-radius: 9px;
    font-size: 14px;
}

.episode-nav small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.episode-nav .back-category {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
}

.topic-hero {
    text-align: center;
}

.topic-hero > p:not(.eyebrow) {
    margin-block: 16px 25px;
    color: var(--muted);
}

.topic-hero > .cover {
    max-width: 850px;
    margin-inline: auto;
}

.legal {
    max-width: 850px;
}

.legal h1 {
    font-size: 36px;
}

.legal h2 {
    font-size: 23px;
    margin-block: 28px 12px;
}

.legal p {
    color: #606573;
}

.legal .button {
    margin-top: 30px;
}

.library-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}

.library-item button {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 15px;
}

#saved-list, #history-list {
    padding-block: 20px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}
