:root {
  --bg: #101311;
  --panel: #181c19;
  --panel2: #242a25;
  --line: #2c322d;
  --cream: #f4f5f1;
  --muted: #b0b7af;
  --leaf: #c2eb91;
  --gold: var(--leaf);
  --sidebar: 209px;
  --header-height: 70px;
}
html { scroll-padding-top: calc(var(--header-height) + 16px); }
body { background: var(--bg); }
[hidden] { display: none !important; }
.ui-icon { width: 20px; height: 20px; display: block; flex: none; }
.sr-only, .skip-main:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-main:focus { position: fixed; z-index: 100; top: 4px; left: 4px; padding: 10px; color: #111; background: white; }
:where(button,a,input,select):focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
.topbar { height: var(--header-height); gap: 16px; padding: 0 26px; background: #111512f5; border-color: var(--line); }
.menu-toggle { width: 36px; flex-basis: 36px; color: #c7cdc6; padding: 7px; }
.brand { min-width: 172px; gap: 9px; }
.brand-mark { width: 33px; height: 33px; border-radius: 9px; border: 0; }
.brand-word { font: 800 21px/1 "DM Sans", system-ui, sans-serif; letter-spacing: -1.25px; }
.brand-word span { color: var(--leaf); }
.search { max-width: 540px; height: 40px; border-color: #3c443d; background: #1a1f1b; }
.search input { color: var(--cream); }
.search input::placeholder { color: #a4ada5; }
.search button { display: grid; place-items: center; width: 52px; background: #272e28; color: #e0e8de; }
.top-actions { gap: 16px; }
.upload-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 15px; color: #162016; background: var(--leaf); }
.upload-button span { margin: 0; font-size: 13px; color: inherit; }
.upload-button:hover, .spot-play:hover { background: #d2f5aa; }
.upload-button .ui-icon { width: 17px; height: 17px; }
.avatar { cursor: pointer; background-color: #384d3a; color: #f2ffeb; border: 1px solid #5c705c; }
.sidebar { top: var(--header-height); background: #111512; padding: 25px 13px 19px; }
.nav-item { gap: 14px; margin-bottom: 4px; height: 44px; padding: 0 15px; font-size: 13px; font-weight: 550; }
.nav-item .ui-icon { color: #acb8ad; }
.nav-item.active { background: #283629; color: var(--leaf); }
.nav-item.active .ui-icon { color: var(--leaf); }
.nav-divider { margin: 20px 10px; }
.nav-label { margin: 0 15px 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #a0aaa0; }
.sidebar-footer { line-height: 1.4; padding: 16px 10px 0; }
.footer-mark { display: flex; align-items: center; gap: 7px; font-weight: 800; letter-spacing: -.02em; font-size: 12px; color: #a4aea4; }
.footer-mark .ui-icon { width: 15px; height: 15px; }
.sidebar-footer small { display: block; margin-top: 7px; font-size: 10px; color: #8d988e; }
.main { margin-left: var(--sidebar); padding: var(--header-height) 0 0; }
.home-wrap { max-width: 1712px; margin: auto; padding: clamp(16px,2.2vw,34px) clamp(16px,2.55vw,42px) 48px; }
.spotlight { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(258px,22vw,360px); border: 1px solid #384438; border-radius: 18px; background: #1d2b21 url("cover.jpg") center 50%/cover no-repeat; }
.spotlight::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,rgba(9,18,12,.92),rgba(12,24,16,.76) 23%,rgba(12,24,16,.15) 65%), linear-gradient(0deg,rgba(8,17,12,.55),transparent 42%); }
.spotlight-picture { pointer-events: none; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 43%; }
.spotlight-copy { padding: 27px clamp(24px,3.25vw,58px) 32px; width: min(700px,72%); }
.spot-label { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .09em; font-weight: 750; color: #dbf4bb; }
.spot-label .ui-icon { width: 17px; height: 17px; }
.spotlight h1 { margin: 0; color: #fff; font-size: clamp(31px,3.3vw,55px); line-height: 1.2; letter-spacing: -.045em; font-weight: 850; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.spot-byline { margin: 12px 0 20px; font-size: 13px; line-height: 1.55; color: #d2dbd1; overflow-wrap: anywhere; }
.spot-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 24px; background: var(--leaf); color: #192617; padding: 11px 21px 11px 16px; font-weight: 750; font-size: 13px; cursor: pointer; }
.spot-play .ui-icon { width: 17px; height: 17px; }
.spot-pager { position: absolute; bottom: 22px; right: 24px; display: flex; align-items: center; gap: 9px; padding: 4px; border-radius: 24px; color: #fff; background: #101511c9; border: 1px solid #ffffff40; backdrop-filter: blur(12px); }
.spot-pager button { width: 31px; height: 31px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: transparent; cursor: pointer; }
.spot-pager button:hover { background: #ffffff28; }
.spot-pager .ui-icon { width: 15px; height: 15px; }
#spotNumber { font: 650 11px "DM Sans",system-ui,sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.spotlight-copy { animation: reveal .38s ease-out both; }
.spotlight.swap .spotlight-copy { animation-name: spotlight-swap; animation-duration: .25s; }
.discovery { margin-top: 30px; }
.spotlight[hidden] + .discovery { margin-top: 4px; }
.discovery-heading, .section-title, .filter-line, .feed-tabs { display: flex; align-items: center; }
.discovery-heading, .filter-line { justify-content: space-between; gap: 12px; }
.section-title { gap: 10px; min-width: 0; }
.section-emblem { color: var(--leaf); }
.section-emblem .ui-icon { width: 23px; height: 23px; }
.section-title h2 { font-size: clamp(20px,1.55vw,27px); line-height: 1.4; margin: 0; letter-spacing: -.04em; overflow-wrap: anywhere; }
.sort-control { position: relative; flex: none; display: flex; align-items: center; font-size: 12px; color: #d0d8cf; gap: 6px; }
.sort-control select { appearance: none; color: inherit; background: transparent; padding: 8px 19px 8px 0; border: 0; font: inherit; cursor: pointer; }
.sort-control select option { color: var(--cream); background: var(--panel); }
.sort-control > .ui-icon:first-child { width: 16px; height: 16px; }
.sort-control > .ui-icon:last-child { position: absolute; right: 0; width: 12px; height: 12px; pointer-events: none; }
.filter-line { margin: 15px 0 20px; }
.feed-tabs { gap: 7px; flex-wrap: wrap; }
.feed-tab { padding: 7px 13px; color: #c9d0c8; border: 1px solid #343b34; border-radius: 9px; background: #1d221e; cursor: pointer; font-size: 12px; font-weight: 600; transition: background .15s ease; }
.feed-tab:hover { background: #2a332c; }
.feed-tab.selected { background: #e5eedc; color: #1a2618; border-color: #e5eedc; }
.result-count { font: 500 12px "DM Sans",sans-serif; color: #a7b0a6; white-space: nowrap; }
.video-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,280px),1fr)); gap: 27px 18px; }
.video-card { position: relative; overflow: visible; min-width: 0; animation: reveal .28s ease-out both; animation-delay: var(--arrival,0ms); }
.card-open { color: inherit; width: 100%; display: block; text-align: left; border: 0; padding: 0; border-radius: 12px; background: none; cursor: pointer; }
.uploaded-card .thumbnail { display: block; border-radius: 13px; aspect-ratio: 16 / 9; background: #26352b; outline: 1px solid #ffffff0e; }
.thumbnail .thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 18% 25%,#4b634b,transparent 63%),linear-gradient(115deg,#2c402d,#16251c); color: #c7d5b7; }
.thumb-fallback .ui-icon { width: 40px; height: 40px; }
.thumbnail .thumb-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; transition: transform .22s ease-out; }
.card-open:hover .thumb-media, .card-open:focus-visible .thumb-media { transform: scale(1.028); }
.thumbnail .duration { position: absolute; right: 8px; bottom: 8px; background: #060907db; color: white; padding: 3px 6px; border-radius: 5px; font: 650 11px "DM Sans",sans-serif; }
.save-video { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 32px; height: 32px; background: #101910de; color: white; border: 1px solid #ffffff38; border-radius: 9px; cursor: pointer; }
.save-video .ui-icon { width: 16px; height: 16px; }
.save-video[aria-pressed="true"] { color: var(--leaf); }
@media (hover:hover) { .save-video { opacity: 0; } .video-card:hover .save-video, .video-card:focus-within .save-video, .save-video[aria-pressed="true"] { opacity: 1; } }
.video-info { display: flex; align-items: flex-start; gap: 10px; padding-top: 12px; }
.channel-avatar { width: 34px; height: 34px; flex: 0 0 34px; object-fit: cover; }
.channel-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.video-copy { display: block; min-width: 0; }
.video-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; line-height: 1.48; color: #f2f4ed; }
.card-byline, .card-date { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.6; }
.card-byline { margin-top: 4px; }
.feed-state { min-height: 175px; padding: 28px 18px; border: 1px dashed #354035; border-radius: 13px; display: grid; justify-items: center; align-content: center; text-align: center; background: #151b16; }
.state-icon { display: grid; place-items: center; color: var(--leaf); background: #263429; width: 36px; height: 36px; border-radius: 11px; margin-bottom: 9px; }
.feed-state b { font-size: 15px; }
.feed-state p { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.feed-state button { margin-top: 13px; border: 1px solid #4d5e4b; background: #202c22; color: var(--leaf); border-radius: 20px; padding: 7px 16px; font-size: 12px; cursor: pointer; }
.menu-shade { position: fixed; inset: var(--header-height) 0 0; z-index: 9; border: 0; background: #060a078f; }
@keyframes reveal { from { transform: translateY(5px); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes spotlight-swap { from { transform: translateX(6px); opacity: .35; } to { transform: none; opacity: 1; } }
@media (min-width:851px) { body.sidebar-collapsed { --sidebar: 74px; } .sidebar-collapsed .sidebar .nav-item { font-size: 9px; } }
@media (max-width:850px) {
  :root { --header-height: 60px; --sidebar: 220px; }
  .topbar { padding: 0 15px; gap: 12px; }
  .brand { min-width: auto; }
  .main { margin-left: 0; }
  .home-wrap { padding-top: 18px; }
  .sidebar { width: var(--sidebar); }
  .spotlight { min-height: 248px; }
  .spotlight-copy { width: 77%; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:580px) {
  :root { --header-height: 102px; }
  .topbar { height: var(--header-height); padding: 6px 13px 9px; display: grid; grid-template-columns: 31px 1fr auto; grid-template-rows: 36px 35px; gap: 9px 8px; }
  .menu-toggle { width: 31px; height: 31px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-word { font-size: 18px; }
  .search { grid-row: 2; grid-column: 1 / -1; width: 100%; max-width: none; height: 35px; }
  .search input { width: auto; font-size: 13px; padding: 0 14px; }
  .top-actions { grid-area: 1 / 3; gap: 8px; }
  .upload-button { width: auto; height: 30px; padding: 0 10px; }
  .upload-button span { font-size: 11px; }
  .top-actions .avatar { width: 30px; height: 30px; flex-basis: 30px; margin-left: 0; }
  .spotlight { min-height: 243px; border-radius: 13px; background-position: 61% center; }
  .spotlight-copy { padding: 23px 19px; width: 100%; }
  .spotlight h1 { max-width: 82%; font-size: 30px; -webkit-line-clamp: 3; }
  .spot-label { font-size: 10px; margin-bottom: 9px; }
  .spot-byline { font-size: 11px; width: 72%; }
  .spot-pager { right: 12px; bottom: 15px; gap: 4px; }
  .spot-pager button { width: 26px; height: 26px; }
  .spot-play { font-size: 12px; padding: 9px 14px; }
  .discovery { margin-top: 22px; }
  .filter-line { margin: 12px 0 16px; }
  .video-grid { gap: 22px 12px; }
}
@media (max-width:480px) { .video-grid { grid-template-columns: minmax(0,1fr); } .home-wrap { padding: 12px 13px 35px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
