:root {
  --ink: #14213b;
  --ink-strong: #08142b;
  --muted: #66738a;
  --subtle: #8792a6;
  --blue: #0a73ff;
  --blue-strong: #0059d6;
  --blue-soft: rgba(10, 115, 255, .12);
  --green: #24a767;
  --orange: #e98024;
  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .76);
  --glass-soft: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .76);
  --line-soft: rgba(48, 76, 120, .11);
  --shadow: 0 24px 70px rgba(52, 77, 119, .14), 0 3px 12px rgba(52, 77, 119, .07);
  --shadow-soft: 0 12px 35px rgba(52, 77, 119, .10);
  --radius: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(170, 215, 255, .46), transparent 28rem),
    radial-gradient(circle at 90% 23%, rgba(211, 190, 255, .45), transparent 30rem),
    linear-gradient(145deg, #f7fbff 0%, #e9f3ff 44%, #f6f2ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.65) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.65) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(10, 115, 255, .28); outline-offset: 3px; }

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.ambient-one { width: 390px; height: 390px; left: -120px; top: 210px; background: rgba(50, 172, 255, .27); }
.ambient-two { width: 460px; height: 460px; right: -170px; top: 500px; background: rgba(168, 123, 255, .24); animation-delay: -5s; }
.ambient-three { width: 280px; height: 280px; left: 47%; top: 72%; background: rgba(73, 224, 196, .18); animation-delay: -9s; }
@keyframes drift { to { transform: translate3d(28px, -20px, 0) scale(1.06); } }

.progress-ribbon,
.sidebar,
.player-card,
.group-card {
  background: linear-gradient(145deg, rgba(255,255,255,.70), rgba(255,255,255,.42));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--shadow);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
}

.progress-ribbon {
  position: sticky;
  top: 12px;
  z-index: 200;
  width: min(1120px, calc(100% - 32px));
  min-height: 48px;
  margin: 12px auto 0;
  padding: 7px 10px 7px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.ribbon-label { color: var(--subtle); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.ribbon-track { flex: 1; height: 6px; min-width: 60px; overflow: hidden; border-radius: 99px; background: rgba(47, 69, 106, .10); box-shadow: inset 0 1px 2px rgba(36,52,79,.12); }
.ribbon-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #08a7ff, #6867ff); box-shadow: 0 0 16px rgba(44, 126, 255, .46); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ribbon-pct { min-width: 36px; color: var(--blue); font-size: 13px; font-weight: 750; text-align: right; }
.ribbon-stats { display: flex; gap: 16px; padding-left: 15px; border-left: 1px solid var(--line-soft); }
.ribbon-stat { color: var(--subtle); font-size: 11px; white-space: nowrap; }
.ribbon-stat strong { color: var(--ink); font-weight: 700; }
.reset-btn { padding: 7px 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.48); cursor: pointer; font-size: 11px; font-weight: 700; transition: .2s ease; }
.reset-btn:hover { color: #ce3d52; background: rgba(255,255,255,.82); transform: translateY(-1px); }

.hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 50px; }
nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-strong); font-size: 17px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: linear-gradient(145deg, #168dff, #625cff); box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 8px 20px rgba(57, 100, 231, .25); font-size: 15px; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; padding: 5px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; background: rgba(255,255,255,.38); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(50,78,118,.08); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.tab { min-width: 72px; padding: 8px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 680; transition: .22s ease; }
.tab:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.tab.active { color: white; background: linear-gradient(145deg, #1588ff, #066be9); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 5px 14px rgba(3,102,224,.28); }
.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 68px;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  color: #7b8799;
  background: rgba(255,255,255,.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(50,78,118,.08);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  cursor: pointer;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 3px;
  top: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 10px rgba(45,66,100,.18), inset 0 1px 0 white;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
.theme-icon { position: relative; z-index: 1; display: grid; place-items: center; font-size: 14px; line-height: 1; transition: color .2s ease; }
.theme-icon:first-child { color: #d98619; }
html[data-theme="dark"] .theme-toggle::before { transform: translateX(31px); background: #33415b; }
html[data-theme="dark"] .theme-icon:first-child { color: #77839a; }
html[data-theme="dark"] .theme-icon:last-child { color: #d9e7ff; }

.hero-content { max-width: 900px; }
.eyebrow, .now-label { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { margin-bottom: 18px; }
.eyebrow span, .now-label span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(10,115,255,.09); }
h1 { max-width: 850px; color: var(--ink-strong); font-size: clamp(45px, 6.5vw, 84px); font-weight: 760; letter-spacing: -.065em; line-height: .98; }
h1 em { color: transparent; background: linear-gradient(100deg, #0878ff 5%, #6865f1 55%, #a354de); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.hero-content > p:not(.eyebrow) { max-width: 620px; margin: 25px 0 28px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.55; letter-spacing: -.015em; }
.search-wrap { position: relative; width: min(600px, 100%); margin-bottom: 17px; }
.search-wrap svg { position: absolute; top: 50%; left: 18px; transform: translateY(-50%); color: #748197; pointer-events: none; }
input[type="search"] { width: 100%; min-height: 55px; padding: 14px 76px 14px 49px; border: 1px solid rgba(255,255,255,.86); border-radius: 18px; outline: 0; color: var(--ink-strong); background: rgba(255,255,255,.59); box-shadow: inset 0 1px 0 white, 0 14px 34px rgba(47,77,122,.11); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); transition: .22s ease; }
input[type="search"]::placeholder { color: #8a96a8; }
input[type="search"]:focus { border-color: rgba(10,115,255,.35); background: rgba(255,255,255,.82); box-shadow: 0 0 0 4px rgba(10,115,255,.08), 0 18px 40px rgba(47,77,122,.14); }
.search-hint { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); padding: 4px 8px; border: 1px solid rgba(57,81,119,.10); border-radius: 7px; background: rgba(228,235,246,.75); color: var(--subtle); font-size: 10px; font-weight: 700; pointer-events: none; }
.stats { display: flex; flex-wrap: wrap; gap: 7px; }
.stat { padding: 6px 11px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; color: var(--subtle); background: rgba(255,255,255,.35); font-size: 11px; font-weight: 600; -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
.stat strong { color: var(--ink); }

.tracker { display: none !important; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 70px; align-items: start; }
.sidebar { position: sticky; top: 78px; max-height: calc(100vh - 96px); padding: 11px; overflow: auto; border-radius: 24px; scrollbar-width: thin; scrollbar-color: rgba(70,93,129,.18) transparent; }
.sidebar h2 { padding: 7px 9px 12px; margin-bottom: 5px; border-bottom: 1px solid var(--line-soft); color: var(--subtle); font-size: 10px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.side-link { display: flex; align-items: center; width: 100%; gap: 9px; padding: 10px 11px; border: 0; border-radius: 13px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; font-size: 12px; font-weight: 620; transition: .18s ease; }
.side-link::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #bdc6d5; }
.side-link:hover { color: var(--ink); background: rgba(255,255,255,.54); }
.side-link.active { color: var(--blue); background: var(--blue-soft); }
.side-link.active::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(10,115,255,.1); }
.content { min-width: 0; }

.player-card, .group-card { overflow: hidden; border-radius: var(--radius); }
.player-card { margin-bottom: 18px; }
.player-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.now-label { margin-bottom: 7px; color: var(--blue); font-size: 9px; }
.now-label span { width: 6px; height: 6px; }
#videoTitle { color: var(--ink-strong); font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.watch-status, .mark-btn, #openYoutube { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 13px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.watch-status { border: 1px solid rgba(57,81,119,.10); color: var(--subtle); background: rgba(239,243,249,.72); }
.watch-status.complete { color: var(--green); background: rgba(36,167,103,.10); border-color: rgba(36,167,103,.16); }
.mark-btn { border: 0; color: white; background: linear-gradient(145deg, #1689ff, #0869df); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px rgba(3,102,224,.22); cursor: pointer; transition: .2s ease; }
.mark-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 9px 20px rgba(3,102,224,.28); }
.mark-btn:disabled { opacity: .38; cursor: not-allowed; }
#openYoutube { border: 1px solid rgba(57,81,119,.10); color: var(--muted); background: rgba(255,255,255,.5); transition: .2s ease; }
#openYoutube:hover { color: var(--blue); background: rgba(255,255,255,.82); }
.player-frame { position: relative; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: linear-gradient(145deg, #dceaff, #eee9ff); }
.player-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.player-frame iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.empty-player { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #74839a; font-size: 14px; font-weight: 580; }
.empty-player::before { content: "▶"; display: grid; place-items: center; width: 62px; height: 62px; padding-left: 3px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; color: white; background: linear-gradient(145deg, rgba(30,141,255,.84), rgba(101,92,241,.84)); box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 13px 30px rgba(56,96,200,.25); }

.cards { display: grid; gap: 16px; }
.group-card { scroll-margin-top: 80px; }
.group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 22px 18px; border-bottom: 1px solid var(--line-soft); }
.group-kicker { margin-bottom: 4px; color: var(--blue); font-size: 9px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.group-head h2 { color: var(--ink-strong); font-size: 23px; font-weight: 730; letter-spacing: -.035em; line-height: 1.15; }
.badge { flex: 0 0 auto; padding: 6px 11px; border: 1px solid rgba(232,128,36,.13); border-radius: 999px; color: var(--orange); background: rgba(232,128,36,.09); font-size: 10px; font-weight: 760; }
.category { padding: 17px 22px; border-top: 1px solid rgba(50,78,118,.08); }
.category:first-of-type { border-top: 0; }
.category-head, .topic-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category-head { margin-bottom: 11px; }
.category h3 { color: var(--ink); font-size: 14px; font-weight: 710; }
.category-head span, .topic-head span { padding: 3px 8px; border: 1px solid rgba(57,81,119,.08); border-radius: 999px; color: var(--subtle); background: rgba(237,242,249,.6); font-size: 9px; font-weight: 720; }
.playlist-btn, .video-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.78); color: var(--muted); background: rgba(255,255,255,.45); box-shadow: 0 4px 12px rgba(56,78,111,.06); cursor: pointer; font-weight: 650; transition: .18s ease; }
.playlist-btn { margin-bottom: 10px; padding: 8px 13px; border-radius: 12px; color: var(--blue); background: rgba(10,115,255,.08); font-size: 11px; }
.topic { margin-top: 10px; padding: 12px 0 3px; border-top: 1px solid rgba(50,78,118,.07); }
.topic:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.topic-head { margin-bottom: 9px; }
.topic h4 { color: #40506a; font-size: 12px; font-weight: 680; }
.video-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.video-btn { padding: 8px 12px; border-radius: 11px; font-size: 11px; }
.video-state { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #bcc6d5; transition: .18s ease; }
.playlist-btn:hover, .video-btn:hover { color: var(--ink); background: rgba(255,255,255,.80); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(56,78,111,.10); }
.playlist-btn.active, .video-btn.active { color: var(--blue-strong); border-color: rgba(10,115,255,.18); background: rgba(10,115,255,.10); }
.playlist-btn.active .video-state, .video-btn.active .video-state { background: var(--blue); box-shadow: 0 0 0 4px rgba(10,115,255,.1); }
.playlist-btn.watched, .video-btn.watched { color: var(--green); border-color: rgba(36,167,103,.15); background: rgba(36,167,103,.08); }
.playlist-btn.watched .video-state, .video-btn.watched .video-state { background: var(--green); }
.no-results { padding: 60px 24px; color: var(--subtle); text-align: center; font-size: 16px; }

.top-btn { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; color: var(--blue); background: rgba(255,255,255,.62); box-shadow: var(--shadow-soft), inset 0 1px 0 white; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); cursor: pointer; font-size: 18px; transition: .2s ease; }
.top-btn:hover { transform: translateY(-3px); background: rgba(255,255,255,.86); }

html[data-theme="dark"] {
  --ink: #eeeeee;
  --ink-strong: #ffffff;
  --muted: #a7a7a7;
  --subtle: #737373;
  --blue: #ffd60a;
  --blue-strong: #ffe45c;
  --blue-soft: rgba(255, 214, 10, .12);
  --green: #ffd60a;
  --orange: #ffd60a;
  --line: #282828;
  --line-soft: #222222;
  --shadow: 0 18px 48px rgba(0,0,0,.42);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.36);
}
html[data-theme="dark"] body {
  background: #050505;
}
html[data-theme="dark"] body::before,
html[data-theme="dark"] .ambient { display: none; }
html[data-theme="dark"] .progress-ribbon,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .player-card,
html[data-theme="dark"] .group-card {
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(30,30,30,.76), rgba(8,8,8,.64));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), var(--shadow);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  backdrop-filter: blur(30px) saturate(120%);
}
html[data-theme="dark"] .brand-mark { color: #050505; background: #ffd60a; box-shadow: none; }
html[data-theme="dark"] h1 em { color: #ffd60a; background: none; }
html[data-theme="dark"] .tabs,
html[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,.13); background: rgba(18,18,18,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.20); }
html[data-theme="dark"] .theme-toggle::before { background: #ffd60a; }
html[data-theme="dark"] .theme-icon:first-child { color: #666666; }
html[data-theme="dark"] .theme-icon:last-child { color: #050505; }
html[data-theme="dark"] .tab:hover,
html[data-theme="dark"] .side-link:hover { background: #191919; }
html[data-theme="dark"] .tab.active { color: #050505; background: #ffd60a; box-shadow: none; }
html[data-theme="dark"] input[type="search"] { border-color: rgba(255,255,255,.14); color: var(--ink-strong); background: rgba(18,18,18,.64); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 34px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
html[data-theme="dark"] input[type="search"]:focus { border-color: #ffd60a; background: rgba(22,22,22,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 3px rgba(255,214,10,.12); }
html[data-theme="dark"] input[type="search"]::placeholder { color: #666666; }
html[data-theme="dark"] .search-wrap svg { color: #ffd60a; }
html[data-theme="dark"] .search-hint,
html[data-theme="dark"] .watch-status,
html[data-theme="dark"] .category-head span,
html[data-theme="dark"] .topic-head span { border-color: #292929; background: #171717; }
html[data-theme="dark"] .stat,
html[data-theme="dark"] #openYoutube,
html[data-theme="dark"] .playlist-btn,
html[data-theme="dark"] .video-btn,
html[data-theme="dark"] .reset-btn,
html[data-theme="dark"] .top-btn { border-color: rgba(255,255,255,.13); background: rgba(24,24,24,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 24px rgba(0,0,0,.22); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html[data-theme="dark"] .playlist-btn:hover,
html[data-theme="dark"] .video-btn:hover,
html[data-theme="dark"] #openYoutube:hover,
html[data-theme="dark"] .top-btn:hover { background: #1b1b1b; }
html[data-theme="dark"] .topic h4 { color: #c4c4c4; }
html[data-theme="dark"] .player-frame { background: #090909; }
html[data-theme="dark"] .empty-player { color: #777777; }
html[data-theme="dark"] .empty-player::before { color: #050505; border-color: #ffd60a; background: #ffd60a; box-shadow: none; }
html[data-theme="dark"] .ribbon-track { background: #242424; box-shadow: none; }
html[data-theme="dark"] .ribbon-fill { background: #ffd60a; box-shadow: none; }
html[data-theme="dark"] .video-state { background: #555555; }
html[data-theme="dark"] .mark-btn { color: #050505; background: #ffd60a; box-shadow: none; }
html[data-theme="dark"] .mark-btn:hover:not(:disabled) { background: #ffe04a; box-shadow: none; }
html[data-theme="dark"] .watch-status.complete,
html[data-theme="dark"] .playlist-btn.watched,
html[data-theme="dark"] .video-btn.watched { color: #ffd60a; border-color: rgba(255,214,10,.25); background: rgba(255,214,10,.08); }
html[data-theme="dark"] .playlist-btn.active,
html[data-theme="dark"] .video-btn.active { color: #ffd60a; border-color: rgba(255,214,10,.30); background: rgba(255,214,10,.10); }
html[data-theme="dark"] .playlist-btn.active .video-state,
html[data-theme="dark"] .video-btn.active .video-state,
html[data-theme="dark"] .playlist-btn.watched .video-state,
html[data-theme="dark"] .video-btn.watched .video-state { background: #ffd60a; box-shadow: none; }
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] input:focus-visible { outline-color: rgba(255,214,10,.42); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .progress-ribbon, .sidebar, .player-card, .group-card { background: rgba(248,251,255,.96); }
  html[data-theme="dark"] .progress-ribbon,
  html[data-theme="dark"] .sidebar,
  html[data-theme="dark"] .player-card,
  html[data-theme="dark"] .group-card { background: #0e0e0e; }
}
@media (max-width: 960px) {
  .ribbon-stats { display: none; }
  .hero { padding-top: 34px; }
  nav { margin-bottom: 48px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; max-height: 220px; }
}
@media (max-width: 700px) {
  .progress-ribbon { top: 8px; width: calc(100% - 20px); margin-top: 8px; padding-left: 13px; gap: 9px; }
  .ribbon-label { display: none; }
  .hero, .layout { width: calc(100% - 28px); }
  .hero { padding: 27px 0 34px; }
  nav { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 42px; }
  .nav-actions { width: 100%; }
  .tabs { flex: 1; justify-content: stretch; }
  .tab { flex: 1; min-width: 0; padding-inline: 8px; }
  h1 { font-size: clamp(42px, 14vw, 62px); }
  .search-hint { display: none; }
  input[type="search"] { padding-right: 18px; }
  .player-top { align-items: flex-start; flex-direction: column; }
  .player-actions { width: 100%; }
  .player-card, .group-card { border-radius: 22px; }
}
@media (max-width: 480px) {
  .reset-btn { padding-inline: 10px; }
  .ribbon-track { min-width: 36px; }
  .hero-content > p:not(.eyebrow) { font-size: 16px; }
  .layout { padding-bottom: 50px; }
  .player-top, .group-head, .category { padding-left: 17px; padding-right: 17px; }
  .player-actions > * { flex: 1 1 auto; }
  .watch-status { flex-basis: 100%; }
  .group-head, .category-head { align-items: flex-start; }
  .group-head { flex-direction: column; }
  .video-btn { flex: 1 1 calc(50% - 7px); justify-content: flex-start; }
  .top-btn { right: 13px; bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
