:root {
  color-scheme: dark;
  --bg: #111312;
  --panel: #1b1e1c;
  --line: #2b302c;
  --text: #ecf0e9;
  --muted: #959e93;
  --accent: #c2e89b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page-shell { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }
.site-header { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 650; font-size: 20px; letter-spacing: -.5px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-content: center; grid-auto-flow: column; color: var(--bg); background: var(--accent); border-radius: 12px; font-weight: 800; font-size: 25px; letter-spacing: -2px; }
.brand-mark span { opacity: .55; }
.brand-caption { display: block; margin-top: 3px; font-size: 9px; letter-spacing: 1.8px; color: var(--muted); font-weight: 500; }
.header-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.header-note > span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.browse-bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 27px 0; }
.site-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.site-tab { padding: 9px 18px; color: var(--muted); font-size: 13px; border: 1px solid transparent; border-radius: 9px; transition: color .15s, background .15s; }
.site-tab:hover { color: var(--text); background: var(--panel); }
.site-tab[aria-current="page"] { background: var(--panel); border-color: var(--line); color: var(--accent); }
.search { display: flex; align-items: center; gap: 12px; width: min(500px, 100%); padding: 5px 5px 5px 16px; border: 1px solid var(--line); border-radius: 11px; background: #171a18; }
.search:focus-within { border-color: #8bac6f; }
.search svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--muted); stroke-width: 1.7; }
.search input { background: transparent; color: var(--text); width: 100%; min-width: 0; border: 0; padding: 8px 0; font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline-offset: 2px; }
.search button { display: flex; align-items: center; gap: 20px; background: var(--accent); color: #1b2712; border: 0; border-radius: 7px; padding: 10px 16px; font-size: 12px; font-weight: 650; }
.search button:hover { background: #d1f0b1; }
.intro { padding: 41px 0 44px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 2.4px; margin: 0 0 15px; }
h1 { font-size: clamp(25px, 3.6vw, 44px); font-weight: 550; line-height: 1.2; letter-spacing: -1.5px; margin: 0 0 14px; }
.intro > p:last-child { color: var(--muted); font-size: 14px; margin: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 22px 0; }
.section-heading h2 { font-weight: 550; font-size: 16px; margin: 0; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 20px; }
.video-card { min-width: 0; border-radius: 12px; background: #171a18; border: 1px solid #252a25; overflow: hidden; transition: border-color .2s, transform .2s; }
.video-card:hover { border-color: #647e52; transform: translateY(-3px); }
.video-card > a { display: block; height: 100%; }
.thumbnail { aspect-ratio: 16 / 10; position: relative; background: linear-gradient(135deg, #252f24, #191d19); overflow: hidden; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; color: var(--muted); font-size: 12px; transition: transform .25s; }
.video-card:hover img { transform: scale(1.035); }
.play-icon { position: absolute; bottom: 10px; right: 10px; width: 29px; height: 29px; display: grid; place-content: center; border: 1px solid #ffffff26; border-radius: 50%; background: #111312b3; color: #f3f6ef; font-size: 10px; padding-left: 2px; }
.card-body { padding: 14px 15px 12px; }
.card-body h3 { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 42px; }
.card-body p { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.card-body p > span:last-child { color: var(--accent); font-size: 14px; }
.watch-heading { padding: 24px 0; max-width: 1000px; margin: 0 auto; }
.watch-heading h1 { font-size: clamp(22px, 3vw, 32px); overflow-wrap: anywhere; margin: 14px 0 0; }
.back-link { color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--accent); }
.player { max-width: 1000px; margin: 0 auto 28px; background: #080a08; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.player video { width: 100%; max-height: 75vh; aspect-ratio: 16 / 9; }
.player-message { margin: 0; padding: 14px 18px; font-size: 12px; color: var(--muted); }
.streams { max-width: 1000px; margin: 0 auto 36px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.streams summary { font-size: 14px; font-weight: 550; }
.streams summary span { color: var(--accent); font-size: 10px; margin-left: 8px; }
.streams > p { color: var(--muted); font-size: 12px; }
.stream-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stream-play { border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--muted); padding: 4px 10px; font-size: 11px; }
.stream-play:hover:not(:disabled), .stream-play[aria-pressed="true"] { color: var(--accent); border-color: #647e52; }
.stream-play:disabled { opacity: .5; cursor: default; }
.stream-group { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.stream-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stream-group-heading h2 { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.stream-group-heading > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.hls-list { margin: 16px 0 0; padding: 0; list-style: none; }
.hls-list li { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); align-items: center; gap: 14px; margin-top: 12px; }
.stream-label { min-width: 0; }
.stream-label-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stream-label small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.hls-list a { color: var(--accent); font-size: 12px; }
.hls-list a:hover { text-decoration: underline; }
.hls-list input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px; background: var(--bg); color: var(--muted); font-size: 11px; }
.stream-link { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.hls-list .mpv-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; padding: 6px 10px; border: 1px solid #685487; border-radius: 6px; background: #292033; color: #dfcbfa; font-weight: 600; }
.hls-list .mpv-open:hover { border-color: #bda0e3; background: #382a47; text-decoration: none; }
.mpv-open svg { width: 23px; height: 23px; }
.mpv-open circle { stroke: currentColor; stroke-width: 1.5; }
.mpv-open path { fill: currentColor; }
.mpv-command { grid-column: 1 / -1; min-width: 0; }
.mpv-command summary { width: fit-content; color: var(--muted); font-size: 11px; }
.mpv-command textarea { display: block; resize: vertical; min-width: 0; width: 100%; margin: 9px 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font-family: ui-monospace, monospace; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.mpv-copy-status { margin-left: 10px; color: var(--muted); font-size: 11px; }
.empty { text-align: center; border: 1px dashed var(--line); border-radius: 14px; padding: 55px 24px; }
.empty-icon { display: block; color: var(--accent); font-size: 34px; }
.empty h3 { margin: 10px 0; font-size: 19px; font-weight: 500; }
.empty > p:not(.eyebrow) { margin: 0 auto 22px; max-width: 480px; font-size: 13px; color: var(--muted); }
.empty > a { font-size: 12px; color: var(--accent); }
.error-state { margin: 36px 0 60px; }
.error-state h1 { font-size: 30px; }
.pagination { text-align: center; margin: 40px 0 10px; }
.pagination a { display: inline-flex; gap: 30px; padding: 11px 22px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: var(--panel); }
.pagination a:hover { color: var(--accent); border-color: #647e52; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 60px; border-top: 1px solid var(--line); min-height: 80px; font-size: 11px; color: var(--muted); }
.site-footer > span:first-child { color: var(--text); font-weight: 550; }
.site-footer > span:last-child { border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: 9px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 10px; background: var(--accent); color: var(--bg); }
@media (min-width: 1500px) { .intro { padding-top: 50px; } }
@media (max-width: 1050px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .page-shell { width: calc(100% - 48px); } }
@media (max-width: 760px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } .browse-bar { flex-direction: column; align-items: stretch; gap: 18px; } .search { width: 100%; } .intro { padding: 22px 0 32px; } .site-header { min-height: 90px; } .header-note { display: none; } .site-footer > p { display: none; } }
@media (max-width: 480px) { .page-shell { width: calc(100% - 32px); } .brand { font-size: 18px; } .brand-mark { width: 38px; height: 38px; } .video-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } .thumbnail { aspect-ratio: 16 / 9; } .card-body h3 { min-height: auto; font-size: 14px; } .search button { gap: 12px; padding: 10px 12px; } .intro h1 { letter-spacing: -.7px; } .hls-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 16px; } .streams { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .video-card:hover, .video-card:hover img { transform: none; } }
