:root {
  --ink: #202938;
  --ink-deep: #162531;
  --muted: #65717f;
  --line: #e7ebef;
  --paper: #f7f8fa;
  --card: #fff;
  --accent: #137d88;
  --accent-dark: #0e626c;
  --accent-soft: #e9f4f4;
  --focus: #137d88;
  --sidebar: 204px;
  --header: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a, select { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid #137d8866; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-button { display: inline-grid; flex-shrink: 0; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--accent-soft); color: var(--accent); }
.shell { width: min(1360px, calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 20px; padding: 10px 20px; border-radius: 8px; background: var(--accent); color: white; }
.skip-link:focus { top: 10px; }
.topbar { position: sticky; z-index: 30; top: 0; height: var(--header); border-bottom: 1px solid var(--line); background: #fff; }
.nav-shell { display: flex; align-items: center; height: 100%; gap: 28px; padding: 0 32px 0 26px; }
.brand { display: inline-flex; flex: 0 0 178px; align-items: center; gap: 9px; white-space: nowrap; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; transform: rotate(-5deg); }
.brand-symbol .icon { width: 26px; height: 26px; transform: rotate(5deg); }
.brand-word { color: #223b46; font-size: 28px; font-weight: 800; letter-spacing: -1.7px; line-height: 1; }
.brand-word > span { color: var(--accent); }
.brand-word small { margin-left: 8px; color: #64757e; font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.search { display: flex; align-items: center; width: min(460px, 43%); height: 40px; padding: 0 12px 0 4px; border: 1px solid transparent; border-radius: 9px; background: #f2f4f7; transition: border-color .16s, background-color .16s; }
.search:focus-within { border-color: #9fc7cb; background: #fff; }
.search button { display: grid; place-items: center; width: 38px; height: 36px; flex-shrink: 0; padding: 0; border: 0; background: transparent; color: #84909d; }
.search .icon { width: 18px; height: 18px; }
.search input { min-width: 0; width: 100%; height: 36px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search input::placeholder { color: #65717f; }
.search kbd { display: grid; place-items: center; min-width: 20px; height: 22px; margin-left: 8px; border: 1px solid #dce1e7; border-radius: 4px; color: #9aa2ae; font-family: inherit; font-size: 11px; }
.nav-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-history { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: #65717f; font-size: 12px; white-space: nowrap; }
.header-history:hover { color: var(--accent); }
.header-history .icon { width: 18px; height: 18px; }
.login-button, .logout-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 14px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; white-space: nowrap; }
.login-button:hover, .logout-button:hover { background: var(--accent-dark); }
.login-button .icon { width: 16px; height: 16px; }
.logout-button { background: var(--accent-soft); color: var(--accent); }
.logout-button:hover { color: #fff; }
.user-greeting { display: flex; align-items: center; gap: 7px; max-width: 120px; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.logout-form { margin: 0; }
.menu-toggle, .menu-backdrop { display: none; }
.site-sidebar { position: fixed; z-index: 25; inset: var(--header) auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); overflow-y: auto; border-right: 1px solid var(--line); background: #fff; padding: 25px 16px 20px; scrollbar-width: thin; }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.side-nav > a, .side-nav > button { display: flex; align-items: center; flex-shrink: 0; gap: 13px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px; background: transparent; color: #65717f; font-size: 13px; text-align: left; transition: color .15s, background-color .15s; }
.side-nav > a:hover, .side-nav > button:hover { background: #f4f7f8; color: var(--accent); }
.side-nav > .active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.side-nav .icon { width: 19px; height: 19px; }
.nav-label { margin: 23px 0 6px 16px; color: #65717f; font-size: 10px; letter-spacing: .5px; }
.nav-dot { display: none; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.active .nav-dot { display: block; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 48px; }
.sidebar-note { padding: 17px 14px 13px; border-radius: 10px; background: #f6f8fa; }
.note-symbol { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 10px; border: 1px solid #d5e7e8; border-radius: 8px; color: #649ba1; }
.note-symbol .icon { width: 21px; height: 21px; }
.sidebar-note strong { font-size: 12px; font-weight: 600; }
.sidebar-note p { margin: 7px 0 14px; color: #65717f; font-size: 11px; line-height: 1.9; }
.sidebar-note button { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; border: 0; border-top: 1px solid #e5ebed; background: transparent; color: var(--accent); padding: 12px 0 0; font-size: 10px; }
.sidebar-note button .icon { width: 14px; height: 14px; }
.sidebar-signature { display: block; margin-top: 19px; color: #a4acb5; font-size: 9px; text-align: center; }
.workspace { margin-left: var(--sidebar); }
main { min-height: calc(100vh - 210px); }
main:focus { outline: none; }
.page-shell { padding-top: 31px; padding-bottom: 14px; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-intro h1 { margin: 0; font-size: 29px; font-weight: 750; line-height: 1.3; letter-spacing: -1px; }
.intro-dot { margin-left: 3px; color: var(--accent); }
.page-intro p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.quiet-link { display: inline-flex; align-items: center; gap: 9px; color: #65717f; font-size: 11px; white-space: nowrap; }
.quiet-link:hover { color: var(--accent); }
.quiet-link .icon { width: 17px; height: 17px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #5caaa2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 20px; }
.hero-feature, .spotlight-card { position: relative; display: block; height: clamp(286px, 26vw, 366px); min-width: 0; overflow: hidden; border-radius: 14px; background: #355969; color: white; isolation: isolate; }
.hero-feature > img, .spotlight-card > img { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-feature > img { object-position: 50% 26%; }
.hero-feature::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0c273cba 0%, #132b4340 67%, #132b4300), linear-gradient(0deg, #12223487, transparent 65%); content: ''; transition: background-color .2s; }
.hero-feature:hover::after { background-color: #102d4b18; }
.feature-badge, .spotlight-badge { position: absolute; top: 21px; left: 24px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid #ffffff45; border-radius: 5px; background: #ffffff19; color: #fff; backdrop-filter: blur(10px); font-size: 10px; }
.feature-badge > span { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.hero-copy { position: absolute; right: 24px; bottom: 29px; left: 30px; }
.hero-category { color: #e2e9ed; font-size: 10px; }
.hero-copy h2 { max-width: 82%; margin: 8px 0 8px; font-size: clamp(25px, 2.4vw, 35px); font-weight: 700; line-height: 1.4; letter-spacing: .5px; text-wrap: balance; }
.hero-copy p { margin: 0 0 21px; color: #e3eaf0; font-size: 11px; }
.hero-link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px 10px 10px; border-radius: 7px; background: #fff; color: #254b5b; font-size: 11px; font-weight: 600; transition: background-color .15s; }
.hero-feature:hover .hero-link { background: #e5f3f3; }
.hero-link .icon { width: 19px; height: 19px; }
.hero-duration { position: absolute; right: 17px; bottom: 16px; color: #e1e7ed; font-size: 10px; }
.spotlight-card::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #0f2233dc, #162f4833 55%, #162f4800); content: ''; }
.spotlight-card > img { object-position: center 9%; }
.spotlight-badge { top: 21px; left: 20px; background: #152b3d26; }
.spotlight-copy { position: absolute; right: 22px; bottom: 23px; left: 22px; }
.spotlight-copy > span { color: #dce6ed; font-size: 10px; }
.spotlight-copy h2 { margin: 4px 0 10px; font-size: 20px; font-weight: 600; }
.spotlight-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #d3dee5; font-size: 10px; }
.spotlight-play { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ffffff80; border-radius: 50%; color: white; }
.spotlight-card:hover .spotlight-play { background: #ffffff30; }
.discovery-note { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: #edf4f6; }
.discovery-note > .icon { width: 35px; height: 35px; color: var(--accent); }
.discovery-note h2 { margin-bottom: 10px; font-size: 26px; }
.discovery-note p { color: var(--muted); font-size: 12px; }
.continue-strip { display: flex; align-items: center; gap: 13px; min-height: 76px; margin-top: 20px; padding: 14px 20px; border: 1px solid #e1ebed; border-radius: 10px; background: #f0f6f7; }
.continue-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e0eef0; color: #5d929a; }
.continue-icon .icon { width: 20px; height: 20px; }
.continue-strip strong { font-size: 12px; font-weight: 550; color: #456673; }
.continue-strip p { margin: 3px 0 0; color: #607c86; font-size: 10px; }
.continue-strip > button { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; border: 0; background: transparent; color: #4e7d87; font-size: 11px; white-space: nowrap; }
.continue-strip > button:hover { color: var(--accent-dark); }
.continue-strip > button .icon { width: 15px; height: 15px; }
.section { margin-top: 35px; scroll-margin-top: 100px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.4px; }
.section-heading h1 { font-size: 27px; }
.section-heading p { margin: 5px 0 0; color: #65717f; font-size: 11px; }
.popular-flame { width: 18px; height: 18px; margin-left: 5px; color: #d5966d; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.filter-tabs { display: flex; align-items: center; gap: 8px; }
.filter-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 7px 14px; border: 1px solid #e6e9ed; border-radius: 7px; background: #fff; color: #65717f; font-size: 11px; white-space: nowrap; transition: color .15s, border-color .15s, background-color .15s; }
.filter-tabs button:hover { border-color: #a8ced1; color: var(--accent); }
.filter-tabs button.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.filter-tabs .icon { width: 14px; height: 14px; }
.filter-tabs .is-pending { opacity: .6; }
.filter-note { color: #a0a8b1; font-size: 10px; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 27px 18px; transition: opacity .15s; }
.video-grid.is-loading { opacity: .45; pointer-events: none; }
.video-card { display: block; min-width: 0; }
.cover-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 9px; background: #e8edf0; }
.cover-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-card:hover .cover-wrap img { transform: scale(1.035); }
.cover-play { position: absolute; inset: 0; display: grid; place-items: center; background: #162f4933; opacity: 0; transition: opacity .2s; }
.cover-play .icon { width: 40px; height: 40px; padding: 6px; border: 1px solid #ffffff70; border-radius: 50%; background: #ffffff25; color: #fff; backdrop-filter: blur(5px); }
.video-card:hover .cover-play, .video-card:focus-visible .cover-play { opacity: 1; }
.duration { position: absolute; right: 7px; bottom: 7px; padding: 1px 5px; border-radius: 3px; background: #0f1a2bb0; color: #fff; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.7; }
.video-card h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 21px; margin: 9px 0 5px; color: #394452; font-size: 13px; font-weight: 550; line-height: 1.65; overflow-wrap: anywhere; }
.video-card:hover h3 { color: var(--accent); }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #65717f; font-size: 10px; }
.video-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-meta > span:last-child { flex-shrink: 0; }
.end-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 48px 0 26px; color: #a1aab4; font-size: 10px; }
.end-note > span { width: 45px; height: 1px; background: #e1e6eb; }
.end-note .icon { width: 14px; height: 14px; color: #9ab7be; }
.end-note p { margin: 0; }
.end-note a { color: #5e929b; }
.footer { margin-top: 35px; border-top: 1px solid var(--line); padding: 26px 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brand { color: #56747e; font-size: 18px; font-weight: 750; letter-spacing: -1px; }
.footer-brand span { margin-left: 5px; color: #65717f; font-size: 10px; font-weight: 400; letter-spacing: .5px; }
.footer p { margin: 4px 0 0; color: #a1a9b2; font-size: 9px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 21px; color: #65717f; font-size: 10px; }
.footer-links button { border: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; }
.footer-links a:hover, .footer-links button:hover { color: var(--accent); }
.footer-credit { color: #adb5bd; font-size: 9px; }
.listing-page { min-height: calc(100vh - 242px); padding-top: 39px; padding-bottom: 40px; }
.listing-page > .section-heading { margin-bottom: 27px; }
.result-count { color: #65717f; font-size: 12px; white-space: nowrap; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 25px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.category-filters a { padding: 6px 13px; border-radius: 6px; color: #65717f; font-size: 12px; }
.category-filters a:hover { color: var(--accent); }
.category-filters a.selected { background: var(--accent-soft); color: var(--accent); }
.sort-control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sort-control label { color: #65717f; font-size: 11px; }
.sort-control select { max-width: 140px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #687585; font-size: 11px; cursor: pointer; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 38px 0 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 12px; }
.pagination .selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.pagination a:hover { border-color: #8bbcc1; color: var(--accent); }
.pagination .icon { width: 15px; height: 15px; }
.empty { grid-column: 1 / -1; padding: 70px 25px; border: 1px dashed #d9e2e7; border-radius: 14px; background: #fff; text-align: center; overflow-wrap: anywhere; }
.empty > span, .empty-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 30px; }
.empty-icon .icon { width: 26px; height: 26px; }
.empty h1, .empty h2 { margin: 16px 0 8px; font-size: 21px; }
.empty p { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.full-empty { margin-top: 70px; margin-bottom: 70px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; padding: 10px 21px; font-size: 12px; cursor: pointer; }
.primary-button:hover { background: var(--accent-dark); }
.eyebrow { display: block; margin-bottom: 9px; color: var(--accent); font-size: 11px; }
.image-fallback { object-fit: cover !important; }
body.has-modal, body.menu-open { overflow: hidden; }
.modal-backdrop, .library-backdrop { position: fixed; z-index: 70; inset: 0; visibility: hidden; opacity: 0; background: #14233273; backdrop-filter: blur(3px); transition: opacity .18s; }
.modal-backdrop { display: grid; align-items: center; justify-items: center; padding: 20px; }
.modal-backdrop.open, .library-backdrop.open { visibility: visible; opacity: 1; }
.login-modal { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 34px; border-radius: 17px; background: #fff; box-shadow: 0 18px 80px #16263824; transform: translateY(8px); transition: transform .18s; }
.open .login-modal { transform: translateY(0); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.auth-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 23px; font-weight: 750; letter-spacing: -1px; }
.auth-brand .icon { width: 26px; height: 26px; }
.auth-tabs { display: flex; gap: 25px; margin: 24px 0 23px; border-bottom: 1px solid var(--line); }
.auth-tab { border: 0; border-bottom: 2px solid transparent; padding: 8px 3px; background: transparent; color: #65717f; font-size: 13px; }
.auth-tab.selected { border-color: var(--accent); color: var(--accent); }
.login-modal h2 { margin: 0; font-size: 23px; }
.auth-panel > p { margin: 7px 0 21px; color: var(--muted); font-size: 12px; }
.auth-panel label { display: block; margin-top: 15px; color: #526271; font-size: 12px; }
.auth-panel input { width: 100%; height: 42px; margin-top: 7px; padding: 10px 12px; border: 1px solid #dfe5e9; border-radius: 7px; background: #fafbfc; color: var(--ink); font-size: 12px; }
.auth-panel input:focus { border-color: #8db9be; background: white; }
.auth-panel .primary-button { width: 100%; margin-top: 16px; }
.auth-message { display: none; margin: 12px 0 0; padding: 9px 11px; border-radius: 6px; font-size: 11px; }
.auth-message.is-visible { display: block; }
.auth-message.is-error { background: #fff0ed; color: #b65343; }
.auth-message.is-success { background: var(--accent-soft); color: var(--accent); }
.auth-footnote { margin: 20px 0 0; color: #a3aab3; font-size: 10px; text-align: center; }
.library-backdrop { display: flex; justify-content: flex-end; }
.library-drawer { width: min(510px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: #fff; padding: 28px; box-shadow: -12px 0 60px #16263817; transform: translateX(35px); transition: transform .2s; }
.open .library-drawer { transform: translateX(0); }
.library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.library-heading h2 { margin: 0; font-size: 23px; }
.library-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.library-actions { display: flex; align-items: center; justify-content: space-between; min-height: 50px; margin-top: 17px; border-bottom: 1px solid var(--line); color: #65717f; font-size: 10px; }
.library-actions button { padding: 6px 0; border: 0; background: transparent; color: #9a7270; font-size: 11px; }
.library-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.library-item-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.library-cover { position: relative; flex-shrink: 0; width: 128px; height: 80px; overflow: hidden; border-radius: 7px; background: #e6edf0; }
.library-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.library-copy { flex: 1; min-width: 0; }
.library-copy h3, .library-copy strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0 0 7px; font-size: 12px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.library-item-link:hover h3 { color: var(--accent); }
.library-copy p, .library-copy small { margin: 0; color: #65717f; font-size: 10px; }
.library-remove { display: grid; flex-shrink: 0; place-items: center; min-width: 28px; min-height: 30px; border: 0; border-radius: 5px; background: transparent; color: #9aa5af; font-size: 20px; }
.library-remove:hover { background: #fff0ed; color: #b65343; }
.library-remove .icon { width: 16px; height: 16px; }
.library-progress { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #eaf0f3; }
.library-progress > span { display: block; height: 100%; background: var(--accent); }
.library-cover .library-progress { position: absolute; right: 0; bottom: 0; left: 0; display: block; margin: 0; height: 3px; }
.library-empty, .library-loading { padding: 75px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.library-empty h3 { color: var(--ink); font-size: 18px; }
.library-empty p { margin: 10px 0 24px; }
.library-empty > .icon { width: 38px; height: 38px; color: #a1b8c0; }
.back-top { position: fixed; z-index: 15; right: 22px; bottom: 24px; visibility: hidden; opacity: 0; border: 1px solid var(--line); background: #fff; box-shadow: 0 3px 15px #192f3d0a; transition: opacity .15s, visibility .15s; }
.back-top.is-visible { visibility: visible; opacity: 1; }
[data-site-toast] { position: fixed; z-index: 100; bottom: 28px; left: 50%; max-width: calc(100% - 32px); padding: 12px 22px; border: 1px solid #ffffff20; border-radius: 9px; background: #263e4cf2; box-shadow: 0 4px 20px #16263820; color: #fff; font-size: 12px; text-align: center; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .16s, transform .16s, visibility .16s; }
[data-site-toast].is-visible { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
[data-site-toast][data-tone="error"] { background: #9c5149; }
@media (min-width: 1700px) {
  :root { --sidebar: 228px; }
  .brand { flex-basis: 202px; }
  .video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  :root { --sidebar: 178px; }
  .nav-shell { gap: 20px; padding-right: 26px; padding-left: 22px; }
  .brand { flex-basis: 156px; gap: 7px; }
  .brand-word { font-size: 26px; }
  .brand-word small { font-size: 10px; margin-left: 6px; }
  .brand-symbol { width: 30px; height: 30px; border-radius: 9px; }
  .shell { width: calc(100% - 48px); }
  .site-sidebar { padding-right: 12px; padding-left: 12px; }
  .side-nav > a, .side-nav > button { padding-right: 12px; padding-left: 12px; gap: 10px; font-size: 12px; }
  .sidebar-signature { font-size: 8px; }
  .nav-actions { gap: 17px; }
  .footer-credit { display: none; }
  .hero-grid { gap: 16px; }
  .hero-copy { left: 25px; }
  .hero-copy h2 { font-size: 27px; }
  .video-grid { gap: 23px 14px; }
  .video-meta { font-size: 9px; }
}
@media (max-width: 1050px) and (min-width: 901px) {
  .header-history span { display: none; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .spotlight-copy { right: 16px; left: 16px; }
  .spotlight-copy h2 { font-size: 17px; }
}
@media (max-width: 900px) {
  :root { --header: 66px; --sidebar: 210px; }
  .nav-shell { gap: 16px; padding: 0 22px; }
  .menu-toggle { display: inline-grid; width: 27px; }
  .brand { flex-basis: auto; }
  .brand-word small { display: none; }
  .search { width: min(410px, 46%); margin-left: auto; }
  .nav-actions { margin-left: 0; gap: 16px; }
  .header-history span { display: none; }
  .site-sidebar { z-index: 45; inset: var(--header) auto 0 0; padding: 25px 16px 20px; transform: translateX(-100%); visibility: hidden; }
  .menu-open .site-sidebar { transform: translateX(0); visibility: visible; animation: menu-enter .2s ease; }
  .menu-backdrop { position: fixed; z-index: 40; inset: var(--header) 0 0; width: 100%; border: 0; background: #15283773; }
  .menu-open .menu-backdrop { display: block; }
  .workspace { margin-left: 0; }
  .shell { width: calc(100% - 44px); }
  .hero-feature, .spotlight-card { height: 310px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-meta { font-size: 10px; }
  .sidebar-bottom { padding-top: 30px; }
  .side-nav > a, .side-nav > button { font-size: 13px; }
}
@media (max-width: 620px) {
  :root { --header: 112px; }
  html { scroll-padding-top: 130px; }
  .nav-shell { position: relative; align-content: flex-start; flex-wrap: wrap; height: 112px; gap: 0 12px; padding: 12px 18px 11px; }
  .menu-toggle { width: 25px; height: 34px; }
  .brand-symbol { width: 28px; height: 28px; border-radius: 8px; }
  .brand-word { font-size: 25px; }
  .brand { height: 34px; gap: 6px; }
  .brand-word small { display: inline; font-size: 9px; margin-left: 6px; }
  .nav-actions { height: 34px; gap: 12px; margin-left: auto; }
  .login-button { min-height: 32px; padding: 6px 10px; font-size: 10px; }
  .login-button .icon { width: 13px; height: 13px; }
  .header-history { display: none; }
  .user-greeting { max-width: 80px; font-size: 10px; }
  .logout-button { min-height: 30px; padding: 6px 9px; font-size: 10px; }
  .search { order: 4; flex-basis: 100%; width: 100%; height: 35px; margin: 12px 0 0; border-radius: 7px; }
  .search input, .search button { height: 33px; }
  .search input { font-size: 12px; }
  .search kbd { display: none; }
  .shell { width: calc(100% - 36px); }
  .page-shell { padding-top: 23px; }
  .page-intro { margin-bottom: 20px; align-items: flex-end; }
  .page-intro h1 { font-size: 27px; }
  .page-intro p { font-size: 10px; }
  .page-intro > .quiet-link { gap: 5px; padding-bottom: 2px; font-size: 9px; }
  .page-intro .quiet-link > .icon { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { height: 250px; border-radius: 12px; }
  .hero-feature > img { object-position: 50% 37%; }
  .hero-copy { bottom: 25px; left: 24px; }
  .hero-copy h2 { margin-top: 7px; font-size: 26px; }
  .hero-copy p { margin-bottom: 18px; }
  .feature-badge { top: 19px; left: 23px; }
  .spotlight-card { display: none; }
  .spotlight-card > img { object-position: 50% 23%; }
  .spotlight-card::after { background: linear-gradient(90deg, #0c273cd6, #17304733); }
  .spotlight-badge { top: 17px; left: 20px; padding: 2px 7px; font-size: 9px; }
  .spotlight-copy { right: 20px; bottom: 17px; left: 20px; }
  .spotlight-copy > span { display: none; }
  .spotlight-copy h2 { margin-bottom: 4px; font-size: 18px; }
  .spotlight-copy > div { font-size: 9px; }
  .spotlight-play { position: absolute; right: 0; bottom: 9px; width: 38px; height: 38px; }
  .continue-strip { min-height: 71px; gap: 9px; padding: 13px 12px; margin-top: 16px; border-radius: 8px; }
  .continue-icon { width: 31px; height: 31px; flex-shrink: 0; }
  .continue-icon .icon { width: 17px; height: 17px; }
  .continue-strip strong { font-size: 10px; }
  .continue-strip p { max-width: 22em; font-size: 9px; }
  .continue-strip > button { gap: 1px; padding: 0; font-size: 9px; }
  .continue-strip > button .icon { width: 12px; height: 12px; }
  .section { margin-top: 29px; }
  .section-heading { gap: 10px; margin-bottom: 17px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading h1 { font-size: 24px; overflow-wrap: anywhere; }
  .section-heading p { font-size: 10px; }
  .section-heading .quiet-link { gap: 4px; font-size: 10px; }
  .section-heading .quiet-link .icon { width: 14px; height: 14px; }
  .filter-row { display: block; margin-bottom: 18px; }
  .filter-tabs { gap: 7px; overflow-x: auto; padding: 3px 2px 5px; margin: -3px -2px -5px; }
  .filter-tabs button { min-height: 34px; flex-shrink: 0; padding: 7px 11px; font-size: 10px; }
  .filter-tabs .icon { width: 13px; height: 13px; }
  .filter-note { display: none; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .cover-wrap { border-radius: 7px; }
  .video-card h3 { margin: 7px 0 4px; font-size: 12px; }
  .video-meta { font-size: 9px; gap: 4px; }
  .duration { right: 5px; bottom: 5px; font-size: 9px; }
  .end-note { gap: 7px; margin: 35px 0 20px; font-size: 9px; }
  .end-note > span { width: 15px; }
  .end-note .icon { display: none; }
  .footer { margin-top: 20px; padding: 22px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 17px; }
  .footer-links { gap: 24px; font-size: 10px; }
  .catalog-toolbar { align-items: flex-start; gap: 10px; }
  .category-filters { gap: 3px; }
  .category-filters a { padding: 6px 8px; font-size: 11px; }
  .sort-control { gap: 0; }
  .sort-control label { display: none; }
  .sort-control select { max-width: 104px; padding: 6px; font-size: 10px; }
  .result-count { font-size: 10px; }
  .listing-page { padding-bottom: 25px; }
  .empty { padding: 55px 20px; }
  .empty h2 { font-size: 18px; }
  .empty p { font-size: 11px; }
  .library-drawer { padding: 23px 20px; }
  .library-cover { width: 105px; height: 70px; }
  .library-copy h3 { font-size: 11px; }
  .library-item-link { gap: 11px; }
  .library-heading h2 { font-size: 22px; }
  .library-heading p { font-size: 11px; }
  .login-modal { padding: 29px 25px; }
  .back-top { right: 13px; bottom: 15px; width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@keyframes menu-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
