:root {
  color-scheme: dark;
  --ink: #f0f0f0;
  --muted: #bcbcbc;
  --line: #484545;
  --paper: #2c2a2a;
  --surface: #343232;
  --forest: #1abc9c;
  --forest-dark: #168d75;
  --coral: #d96c5c;
  --sun: #e1b94b;
  --radius: 6px;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; scrollbar-color: #aab7ae var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #e1b94b; outline-offset: 3px; }
::selection { background: #c9dfd1; color: #143424; }
.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; }

.topbar { position: sticky; z-index: 20; top: 0; background: #242222; color: #f6f6f6; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-inner { width: min(1440px, calc(100% - 48px)); height: 70px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: #242222; background: var(--sun); border-radius: 5px; }
.brand-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-size: 19px; font-weight: 700; }
.top-nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.top-link { position: relative; height: 100%; padding: 0 2px; display: inline-flex; flex: none; align-items: center; border: 0; background: transparent; color: #b9c1bc; font-size: 14px; white-space: nowrap; cursor: pointer; }
.top-link:hover, .top-link.is-current { color: #fff; }
.top-link.is-current::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--sun); content: ''; }
.search-form { position: relative; margin-left: auto; width: min(340px, 33vw); height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #4b4747; border-radius: 5px; background: #302e2e; }
.search-form:focus-within { border-color: #7a8d82; }
.search-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: #a9b4ac; stroke-width: 1.8; stroke-linecap: round; }
.search-form input { min-width: 0; flex: 1; border: 0; outline: none; background: transparent; color: #fff; font-size: 13px; }
.search-form input::placeholder { color: #9ba69e; }
.search-form kbd { padding: 1px 6px; border: 1px solid #575252; border-radius: 3px; color: #c4c1c1; font: 11px 'Segoe UI', sans-serif; }
.clear-search, .icon-button { display: grid; place-items: center; border: 0; cursor: pointer; }
.clear-search { width: 22px; height: 22px; flex: none; background: transparent; color: #b9c1bc; }
.clear-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-menu-button { display: none !important; }

.shell { width: min(1320px, calc(100% - 48px)); margin: 34px auto 80px; display: grid; grid-template-columns: 220px minmax(0,1fr); align-items: start; gap: 38px; }
.sidebar { position: sticky; top: 96px; min-width: 0; }
.sidebar-section { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.sidebar-heading { margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; color: #b5b0b0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.category-list { display: grid; gap: 3px; }
.category-button { width: 100%; min-height: 38px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 4px; background: transparent; color: #e1dddd; text-align: left; font-size: 13px; cursor: pointer; }
.category-button:hover { background: #403e3e; }
.category-button.is-active { background: #3b3939; box-shadow: inset 2px 0 var(--forest); color: #fff; font-weight: 600; }
.category-label { display: inline-flex; align-items: center; gap: 10px; }
.category-dot { width: 7px; height: 7px; border-radius: 50%; background: #777272; }
.category-button.is-active .category-dot { background: var(--forest); }
.category-count { color: #aaa4a4; font-size: 11px; font-variant-numeric: tabular-nums; }
.category-button.is-active .category-count { color: #c5c0c0; }
.recent-section { padding-top: 23px; }
.recent-heading { margin-bottom: 12px; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: var(--forest); font-size: 12px; cursor: pointer; }
.text-button:hover { color: var(--forest-dark); text-decoration: underline; text-underline-offset: 3px; }
.recent-list { display: grid; gap: 11px; }
.recent-empty { color: #aaa4a4; font-size: 12px; line-height: 1.6; }
.recent-item { min-width: 0; display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 10px; cursor: pointer; }
.recent-thumb { width: 64px; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; background: #d9e0db; }
.recent-title { display: -webkit-box; overflow: hidden; color: #e1dddd; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.recent-item:hover .recent-title { color: var(--forest); }
.sidebar-note { margin-top: 21px; padding: 11px 12px; display: flex; align-items: flex-start; gap: 9px; background: #363434; color: #c8c2c2; border-radius: 4px; }
.sidebar-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.note-indicator { width: 7px; height: 7px; margin-top: 4px; flex: none; border-radius: 50%; background: var(--coral); }

.feed { min-width: 0; }
.feed-head { min-height: 94px; margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.feed-kicker { margin: 0 0 8px; display: flex; align-items: center; gap: 9px; color: #53cbb1; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.kicker-line { width: 22px; height: 1px; background: var(--coral); }
.feed-head h1 { margin: 0; font-size: 29px; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.feed-subtitle { margin: 8px 0 0; color: #bcb7b7; font-size: 13px; }
.feed-controls { display: flex; align-items: center; gap: 13px; padding-bottom: 2px; }
.sort-control { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: #383636; }
.sort-button { min-width: 48px; height: 28px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: #c0bbbb; font-size: 12px; cursor: pointer; }
.sort-button.is-active { background: #555151; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.view-select-wrap select { height: 34px; padding: 0 25px 0 9px; border: 1px solid var(--line); border-radius: 4px; background: #393737; color: #f0f0f0; font-size: 12px; }
.active-filters { min-height: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.active-filters:not(:empty) { margin-top: -9px; margin-bottom: 12px; }
.filter-chip { padding: 4px 9px; border: 1px solid #51675b; border-radius: 3px; background: #343c37; color: #b5dfd0; font-size: 11px; }
.result-line { min-height: 26px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.result-line p { margin: 0; color: #b0aaaa; font-size: 11px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: 20px; row-gap: 29px; }
.entry-card { min-width: 0; }
.entry-poster-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #403d3d; border-radius: var(--radius); }
.entry-poster { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.entry-card:hover .entry-poster { transform: scale(1.035); }
.poster-shade { position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(14,22,17,.58)); pointer-events: none; }
.duration { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 3px; background: rgba(17,24,20,.82); color: #fff; font-size: 10px; font-variant-numeric: tabular-nums; }
.play-card { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; display: grid; place-items: center; transform: translate(-50%,-43%); border: 1px solid rgba(255,255,255,.76); border-radius: 50%; background: rgba(23,32,28,.46); color: #fff; opacity: 0; cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.play-card svg { width: 19px; height: 19px; fill: currentColor; }
.entry-card:hover .play-card, .play-card:focus-visible { opacity: 1; transform: translate(-50%,-50%); }
.save-card { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 4px; background: rgba(20,28,23,.52); color: #fff; cursor: pointer; }
.save-card svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.save-card.is-saved { background: var(--coral); border-color: var(--coral); }
.save-card.is-saved svg, .watch-save.is-saved svg { fill: currentColor; }
.entry-content { padding-top: 10px; }
.entry-meta { margin-bottom: 5px; display: flex; align-items: center; gap: 7px; color: #b3adad; font-size: 10px; }
.entry-category { color: #53cbb1; font-weight: 700; }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: #8d8787; }
.entry-title { margin: 0; color: #f0f0f0; font-size: 15px; line-height: 1.5; font-weight: 600; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; cursor: pointer; }
.entry-title:hover { color: var(--forest); }
.entry-description { margin: 5px 0 0; color: #b3adad; font-size: 11px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.entry-tags { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.entry-tag { padding: 2px 6px; border-radius: 2px; background: #403e3e; color: #cbc5c5; font-size: 9px; }
.pagination { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.page-button { min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: #373535; color: #e1dddd; font-size: 12px; cursor: pointer; }
.page-button:hover:not(:disabled), .page-button.is-current { border-color: var(--forest); background: #1abc9c; color: #1b2721; }
.page-button:disabled { opacity: .45; cursor: default; }
.page-button svg { width: 15px; height: 15px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pagination-label { margin: 0 5px; color: #b3adad; font-size: 11px; }
.empty-state { min-height: 350px; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #3a3939; color: #53cbb1; }
.empty-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.empty-state h2 { margin: 17px 0 6px; font-size: 18px; }
.empty-state p { margin: 0 0 18px; color: #bcb7b7; font-size: 13px; }
.button { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; }
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-dark { background: #167e68; color: #fff; }
.button-dark:hover { background: #11624f; }

.watch-page { width: min(1320px, calc(100% - 48px)); margin: 25px auto 76px; }
.watch-topline { min-height: 39px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.back-button { padding: 7px 0; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #5bd2b8; font-size: 13px; font-weight: 600; cursor: pointer; }
.back-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.watch-breadcrumb { color: #b0aaaa; font-size: 12px; }
.watch-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 34px; align-items: start; }
.watch-main { min-width: 0; }
.player-frame { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #111713; border-radius: 5px; }
.player-frame video { width: 100%; height: 100%; display: block; object-fit: contain; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.play-symbol { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(23,32,28,.58); color: #fff; transition: transform .2s ease; }
.play-symbol svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.player-overlay:hover .play-symbol { transform: scale(1.08); }
.player-frame.is-playing .player-overlay { display: none; }
.demo-watermark { position: absolute; top: 13px; left: 14px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 2px; color: rgba(255,255,255,.84); font-size: 9px; font-weight: 700; letter-spacing: .1em; pointer-events: none; }
.watch-info { padding-top: 20px; }
.watch-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.watch-meta { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; color: #bcb7b7; font-size: 11px; }
.watch-title-row h1 { margin: 0; font-size: 25px; line-height: 1.35; font-weight: 700; }
.icon-button { width: 39px; height: 39px; flex: none; border: 1px solid var(--line); border-radius: 4px; background: #393737; color: #e1dddd; }
.icon-button:hover { border-color: #638373; color: #63d4bb; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.watch-save.is-saved { color: var(--coral); border-color: #e7b3ad; }
.watch-actions { margin-top: 15px; display: flex; align-items: center; gap: 15px; }
.sample-badge { display: inline-flex; align-items: center; gap: 7px; color: #6a766e; font-size: 11px; }
.sample-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.watch-description { max-width: 70ch; margin: 18px 0 0; color: #d0cccc; font-size: 13px; line-height: 1.8; }
.watch-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.watch-tags .entry-tag { padding: 5px 9px; border: 1px solid #555151; background: #393737; font-size: 10px; }
.media-credit { margin: 15px 0 0; color: #aaa4a4; font-size: 10px; }
.watch-aside { padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: #343232; }
.aside-head { display: flex; align-items: center; gap: 9px; }
.aside-head h2 { margin: 0; font-size: 15px; }
.aside-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--coral); transform: rotate(45deg); }
.aside-copy { margin: 8px 0 15px; color: #b0aaaa; font-size: 11px; }
.queue-list { display: grid; gap: 2px; }
.queue-item { width: 100%; padding: 9px 6px; display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 10px; border: 0; border-bottom: 1px solid #484545; background: transparent; text-align: left; cursor: pointer; }
.queue-item:hover, .queue-item.is-current { background: #403e3e; }
.queue-thumb { width: 74px; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; background: #403d3d; }
.queue-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.queue-copy strong { display: -webkit-box; overflow: hidden; font-size: 11px; line-height: 1.45; font-weight: 600; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.queue-copy small { color: #b0aaaa; font-size: 9px; }
.related-section { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-title-row { margin-bottom: 17px; display: flex; align-items: baseline; gap: 11px; }
.section-title-row h2 { margin: 0; font-size: 17px; }
.section-title-row span { color: #b0aaaa; font-size: 11px; }
.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.related-card { min-width: 0; cursor: pointer; }
.related-card img { width: 100%; aspect-ratio: 16/10; display: block; object-fit: cover; border-radius: 4px; }
.related-card h3 { margin: 8px 0 0; font-size: 12px; line-height: 1.5; font-weight: 600; }
.related-card:hover h3 { color: var(--forest); }

.footer { border-top: 1px solid var(--line); background: #282626; }
.footer-inner { width: min(1320px, calc(100% - 48px)); min-height: 65px; margin: 0 auto; display: flex; align-items: center; gap: 17px; color: #bcb7b7; font-size: 10px; }
.footer-brand { color: #5bd2b8; font-size: 13px; font-weight: 700; }
.footer-admin { margin-left: auto; color: #62d4bb; }
.footer-year { margin-left: auto; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 22px; padding: 11px 15px; border-radius: 4px; background: #151414; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .topbar-inner { gap: 26px; }
  .shell, .watch-page { width: min(100% - 36px, 1320px); }
  .shell { grid-template-columns: 190px minmax(0,1fr); gap: 25px; }
  .entry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 17px; }
  .watch-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 22px; }
}
@media (max-width: 720px) {
  .topbar-inner { width: calc(100% - 28px); height: 62px; gap: 13px; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 17px; }
  .top-nav { gap: 13px; }
  .top-link { font-size: 12px; }
  .search-form { width: auto; min-width: 38px; height: 36px; margin-left: auto; padding: 0 9px; }
  .search-form input { width: min(29vw,150px); font-size: 12px; }
  .search-form kbd { display: none; }
  .mobile-menu-button { width: 34px; height: 34px; display: grid !important; background: transparent; color: #e8ede9; }
  .mobile-menu-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .shell { width: calc(100% - 28px); margin-top: 24px; display: block; }
  .sidebar { position: fixed; z-index: 30; top: 62px; right: 0; bottom: 0; width: min(300px, 84vw); padding: 22px 18px 30px; overflow-y: auto; background: #302e2e; box-shadow: -12px 10px 32px rgba(0,0,0,.38); transform: translateX(105%); transition: transform .22s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .feed-head { min-height: auto; margin-bottom: 20px; align-items: flex-end; }
  .feed-head h1 { font-size: 25px; }
  .feed-kicker { font-size: 9px; }
  .feed-subtitle { max-width: 32ch; font-size: 11px; line-height: 1.5; }
  .feed-controls { gap: 6px; }
  .sort-control { padding: 2px; }
  .sort-button { min-width: 40px; height: 27px; padding: 0 7px; font-size: 11px; }
  .view-select-wrap select { height: 31px; padding-left: 6px; padding-right: 18px; font-size: 10px; }
  .entry-grid { gap: 22px 12px; }
  .entry-title { font-size: 13px; }
  .entry-description { font-size: 10px; }
  .entry-tags { gap: 4px; }
  .entry-tag { font-size: 8px; }
  .play-card { width: 36px; height: 36px; opacity: 1; }
  .play-card svg { width: 16px; height: 16px; }
  .watch-page { width: 100%; margin: 17px auto 52px; }
  .watch-topline { padding: 0 15px; }
  .watch-layout { display: flex; flex-direction: column; gap: 25px; }
  .watch-main { width: 100%; }
  .player-frame { border-radius: 0; }
  .watch-info { padding: 16px 15px 0; }
  .watch-title-row h1 { font-size: 21px; }
  .watch-description { font-size: 12px; }
  .watch-aside { width: calc(100% - 30px); margin: 0 15px; padding: 15px; }
  .queue-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 8px; }
  .queue-item { grid-template-columns: 62px minmax(0,1fr); gap: 7px; padding: 8px 3px; }
  .queue-thumb { width: 62px; }
  .related-section { margin: 31px 15px 0; }
  .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 11px; }
  .footer-inner { width: calc(100% - 28px); min-height: 58px; gap: 11px; font-size: 9px; }
}
@media (max-width: 420px) {
  .topbar-inner { gap: 9px; }
  .brand-name { display: none; }
  .top-nav { gap: 9px; }
  .top-link { font-size: 11px; }
  .search-form input { width: 24vw; }
  .feed-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .feed-controls { width: 100%; justify-content: flex-end; margin-top: -7px; }
  .entry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .entry-poster-wrap { aspect-ratio: 1.22; }
  .entry-description { display: none; }
  .watch-title-row h1 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Embedded source home shown in category route 0 */
.integrated-home-frame {
  display: block;
  width: 100%;
  height: min(82vh, 1100px);
  min-height: 680px;
  border: 0;
  border-radius: 12px;
  background: #111;
  margin: 0 0 24px;
}
@media (max-width: 700px) {
  .integrated-home-frame { height: 78vh; min-height: 620px; border-radius: 8px; }
}
