:root {
  color-scheme: dark;
  --ink: #f7f8fb;
  --muted: #a9afbf;
  --muted-2: #747b8f;
  --line: rgba(255,255,255,.1);
  --panel: rgba(17,20,28,.78);
  --panel-solid: #11141c;
  --bg: #07090e;
  --violet: #8b5cf6;
  --coral: #ff6b6b;
  --aqua: #22d3ee;
  --green: #50e3a4;
  --danger: #ff8f8f;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -10%, rgba(139,92,246,.16), transparent 32rem),
    radial-gradient(circle at 90% 16%, rgba(34,211,238,.08), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: white;
  color: #07090e;
  border-radius: .6rem;
}
.skip-link:focus { top: 1rem; }
.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; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(220px, 600px) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
  padding: .8rem clamp(1rem, 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,14,.82);
  backdrop-filter: blur(18px);
}

.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 850; letter-spacing: -.04em; font-size: 1.24rem; }
.logo-mark { width: 30px; height: 30px; border-radius: 10px; background: conic-gradient(from 210deg, var(--coral), var(--violet), var(--aqua), var(--coral)); position: relative; box-shadow: 0 0 28px rgba(139,92,246,.35); }
.logo-mark::after { content: ""; position: absolute; inset: 8px 6px 8px 10px; background: white; clip-path: polygon(0 0, 100% 50%, 0 100%); }

.site-search { position: relative; }
.site-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-search input {
  width: 100%;
  min-height: 44px;
  padding: .7rem 3rem .7rem 1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(255,255,255,.055);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.site-search input:focus { border-color: rgba(139,92,246,.85); background: rgba(255,255,255,.085); box-shadow: 0 0 0 4px rgba(139,92,246,.12); }
.site-search button { position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; }

.header-actions { display: flex; align-items: center; gap: .65rem; }
.text-link { color: var(--muted); padding: .55rem .7rem; font-weight: 650; }
.text-link:hover { color: white; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  color: white;
  font-weight: 760;
  background: linear-gradient(120deg, var(--violet), #6d4aff 65%, #4d8fff);
  box-shadow: 0 10px 35px rgba(109,74,255,.22);
  transition: transform .18s, filter .18s, border-color .18s;
}
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button:active { transform: translateY(0); }
.button.secondary { background: rgba(255,255,255,.055); border-color: var(--line); box-shadow: none; }
.button.danger { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.35); box-shadow: none; color: #ffd2d2; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

main { min-height: calc(100vh - 230px); }
.shell { width: min(1480px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 2rem)); margin-inline: auto; }

.hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(7,9,14,.04), rgba(7,9,14,.75)), repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,.017) 81px); mask-image: linear-gradient(to bottom, black, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); }
.eyebrow { display: inline-flex; gap: .55rem; align-items: center; margin: 0 0 1.2rem; color: #d9d0ff; font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--coral), var(--violet)); }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(3.15rem, 8vw, 7.4rem); line-height: .89; letter-spacing: -.075em; font-weight: 900; }
.gradient-text { color: transparent; background: linear-gradient(100deg, #fff 0 18%, #f0b1ff 53%, #7ceaff); background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 670px; margin: 1.7rem 0 0; color: #c3c7d2; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.promise-note { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 0 0; color: var(--muted); font-size: .86rem; }
.promise-note span:first-child { color: var(--green); font-weight: 900; }

.signal-card { position: relative; aspect-ratio: 1.05; overflow: hidden; border: 1px solid var(--line); border-radius: 38px; background: rgba(18,20,29,.7); box-shadow: var(--shadow); isolation: isolate; }
.signal-card::before, .signal-card::after { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; filter: blur(10px); }
.signal-card::before { left: -26%; top: -28%; background: radial-gradient(circle at 65% 65%, #ff7a68, #753aff 56%, transparent 57%); animation: drift 9s ease-in-out infinite alternate; }
.signal-card::after { right: -30%; bottom: -36%; background: radial-gradient(circle at 40% 40%, #63f0ff, #3155df 52%, transparent 53%); animation: drift 11s ease-in-out infinite alternate-reverse; }
.signal-core { position: absolute; z-index: 2; inset: 22%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(7,9,14,.65); backdrop-filter: blur(20px); }
.signal-core::before { content: ""; width: 0; height: 0; border-top: 30px solid transparent; border-bottom: 30px solid transparent; border-left: 48px solid white; margin-left: 12px; filter: drop-shadow(0 0 25px rgba(255,255,255,.4)); }
.orbit { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #e9e8ef; background: rgba(7,9,14,.72); backdrop-filter: blur(10px); font-size: .72rem; font-weight: 800; }
.orbit.one { top: 8%; right: 8%; }.orbit.two { left: 7%; bottom: 15%; }.orbit.three { right: 6%; bottom: 7%; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
@keyframes drift { to { transform: translate3d(5%, 6%, 0) scale(1.08); } }

.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.section-head h2, .page-title { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.055em; }
.section-head p { max-width: 570px; margin: 0; color: var(--muted); }
.feed-meta { color: var(--muted); font-size: .9rem; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.1vw, 1.8rem); }
.video-card { min-width: 0; }
.thumbnail { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--panel-solid); box-shadow: 0 12px 34px rgba(0,0,0,.2); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, filter .45s; }
.thumbnail:hover img { transform: scale(1.025); filter: saturate(1.1); }
.duration { position: absolute; right: .55rem; bottom: .55rem; padding: .22rem .48rem; border-radius: .4rem; color: white; background: rgba(0,0,0,.72); font-size: .72rem; font-weight: 750; }
.card-info { display: grid; grid-template-columns: 38px 1fr auto; gap: .75rem; padding: .9rem .15rem 0; align-items: start; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #0c0d13; background: linear-gradient(145deg, #fff, #b7c8ff); font-size: .76rem; font-weight: 900; }
.card-copy { min-width: 0; }
.card-title { display: -webkit-box; overflow: hidden; margin: 0 0 .25rem; color: #f6f6fa; font-size: 1rem; line-height: 1.28; font-weight: 760; letter-spacing: -.018em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-sub { color: var(--muted); font-size: .82rem; }
.hide-video { padding: .3rem; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.1rem; }

.empty-state { grid-column: 1 / -1; padding: clamp(2.5rem, 7vw, 6rem); border: 1px dashed rgba(255,255,255,.16); border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.025); }
.empty-state .empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 22px; color: #eee8ff; background: rgba(139,92,246,.14); font-size: 1.6rem; }
.empty-state h3 { margin: 0 0 .4rem; font-size: 1.45rem; }
.empty-state p { max-width: 500px; margin: 0 auto 1.4rem; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principle { padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.principle-number { color: #bdadff; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.principle h3 { margin: 2.2rem 0 .7rem; font-size: 1.35rem; letter-spacing: -.03em; }
.principle p { margin: 0; color: var(--muted); }

.page-hero { padding: clamp(3rem, 8vw, 7rem) 0 2rem; }
.page-hero .lead { max-width: 720px; margin: 1.2rem 0 0; color: #c1c6d2; font-size: 1.12rem; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; padding: .55rem .8rem; border: 1px solid rgba(80,227,164,.24); border-radius: 999px; color: #b7f8d8; background: rgba(80,227,164,.075); font-size: .78rem; font-weight: 800; }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 1.4rem; padding-bottom: 6rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.upload-panel { padding: clamp(1.1rem, 3vw, 2rem); }
.closed-panel { align-self: start; padding: clamp(1.5rem, 4vw, 3rem); }
.closed-panel h2 { margin: 0 0 .8rem; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.045em; }
.closed-panel p:not(.eyebrow) { max-width: 650px; margin: 0 0 1.5rem; color: var(--muted); }
.drop-zone { position: relative; display: grid; place-items: center; min-height: 250px; padding: 2rem; border: 1px dashed rgba(255,255,255,.25); border-radius: 18px; text-align: center; background: rgba(255,255,255,.025); transition: border .2s, background .2s; }
.drop-zone.dragging { border-color: var(--aqua); background: rgba(34,211,238,.06); }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone strong { display: block; margin-bottom: .35rem; font-size: 1.15rem; }
.drop-zone span { color: var(--muted); font-size: .88rem; }
.file-badge { display: inline-flex; margin-top: .8rem; padding: .35rem .7rem; border-radius: 999px; color: #dcd4ff; background: rgba(139,92,246,.13); font-size: .78rem; font-weight: 750; }
.form-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { color: #e1e3ea; font-size: .85rem; font-weight: 740; }
.field small { color: var(--muted-2); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .82rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: white;
  background: rgba(255,255,255,.045);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.1); }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; color: #c7cad3; font-size: .86rem; }
.check-row input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--violet); }
.upload-progress { display: none; margin-top: 1rem; }
.upload-progress.visible { display: block; }
.progress-track { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); appearance: none; }
.progress-track::-webkit-progress-bar { background: rgba(255,255,255,.08); border-radius: 8px; }
.progress-track::-webkit-progress-value { border-radius: 8px; background: linear-gradient(90deg, var(--violet), var(--aqua)); transition: width .25s; }
.progress-track::-moz-progress-bar { border-radius: 8px; background: linear-gradient(90deg, var(--violet), var(--aqua)); }
.status-message { min-height: 1.5rem; margin: .8rem 0 0; color: var(--muted); }
.status-message.error { color: var(--danger); }
.status-message.success { color: var(--green); }
.sidebar-card { padding: 1.3rem; }
.sidebar-card h3 { margin: 0 0 1rem; }
.promise-list { display: grid; gap: .9rem; padding: 0; margin: 0; list-style: none; }
.promise-list li { display: grid; grid-template-columns: 24px 1fr; gap: .65rem; color: var(--muted); font-size: .86rem; }
.promise-list b { color: #cfc5ff; }

.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; padding: 2rem 0 6rem; }
.player-wrap { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #000; box-shadow: var(--shadow); }
.player-wrap video { width: 100%; height: 100%; background: black; }
.watch-title { margin: 1.2rem 0 .75rem; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; }
.watch-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.creator-line { display: flex; align-items: center; gap: .75rem; }
.creator-line .avatar { width: 44px; height: 44px; }
.creator-name { font-weight: 780; }.creator-meta { color: var(--muted); font-size: .82rem; }
.watch-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.watch-actions .button { min-height: 40px; padding: .58rem .85rem; font-size: .82rem; }
.description-box { margin-top: 1rem; padding: 1.1rem; border-radius: 16px; background: rgba(255,255,255,.05); color: #c7cbd5; white-space: pre-wrap; }
.rail h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.rail-list { display: grid; gap: 1rem; }
.rail .card-info { grid-template-columns: 32px 1fr; }.rail .avatar { width: 32px; height: 32px; border-radius: 10px; }

.notice { padding: 1rem 1.1rem; border: 1px solid rgba(139,92,246,.25); border-radius: 14px; color: #d5d0e2; background: rgba(139,92,246,.07); }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: none; place-items: center; padding: 1rem; background: rgba(0,0,0,.74); backdrop-filter: blur(10px); }
.modal-backdrop.open { display: grid; }
body.modal-open { overflow: hidden; }
.modal { width: min(540px, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.3rem; border: 1px solid var(--line); border-radius: 20px; background: #12151e; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-head h2 { margin: 0; }.modal-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: white; background: transparent; cursor: pointer; }

.prose { padding-bottom: 6rem; color: #c5c9d3; }
.prose h2 { margin: 2.6rem 0 .8rem; color: white; font-size: 1.55rem; letter-spacing: -.03em; }
.prose h3 { margin: 1.8rem 0 .6rem; color: white; }
.prose p, .prose li { max-width: 790px; }
.prose li + li { margin-top: .55rem; }
.prose a { color: #c7baff; text-decoration: underline; text-underline-offset: 3px; }
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.3rem 0; }
.policy-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.policy-card h3 { margin-top: 0; }
.policy-card.allow { border-color: rgba(80,227,164,.25); }.policy-card.remove { border-color: rgba(255,107,107,.24); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.stat { padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.stat strong { display: block; font-size: 2.25rem; letter-spacing: -.06em; }.stat span { color: var(--muted); font-size: .84rem; }
.top-gap { margin-top: 1rem; }
.top-gap-lg { margin-top: 1.2rem; }

.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.15); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 2.5rem 0; }
.footer-copy p { max-width: 480px; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: .7rem 1rem; color: var(--muted); font-size: .82rem; }
.footer-bottom { padding: 1rem 0 1.7rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .76rem; }

.toast { position: fixed; z-index: 90; right: 1rem; bottom: 1rem; max-width: 360px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: white; background: #1c202b; box-shadow: var(--shadow); transform: translateY(130%); transition: transform .25s; }
.toast.show { transform: translateY(0); }

:focus-visible { outline: 3px solid rgba(124,234,255,.9); outline-offset: 3px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: .65rem; }
  .site-search { grid-row: 2; grid-column: 1 / -1; }
  .site-header { padding-block: .65rem; }
  .hero-grid, .upload-layout, .watch-layout { grid-template-columns: 1fr; }
  .signal-card { width: min(620px, 100%); margin-inline: auto; aspect-ratio: 1.45; }
  .signal-core { inset: 19% 34%; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { margin-top: 1rem; }.rail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; grid-template-columns: 1fr auto; }
  .site-search { grid-row: 2; grid-column: 1 / -1; }
  .header-actions .text-link { display: none; }
  .wordmark { font-size: 1.08rem; }.logo-mark { width: 27px; height: 27px; }
  .header-actions .button { min-height: 38px; padding: .58rem .8rem; font-size: .8rem; }
  .shell, .narrow { width: min(100% - 1.2rem, 1480px); }
  .hero { padding-top: 3.4rem; }.hero h1 { font-size: clamp(3.05rem, 16vw, 5rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions .button { flex: 1; }
  .signal-card { aspect-ratio: 1.05; border-radius: 26px; }.signal-core { inset: 25%; }
  .orbit { font-size: .62rem; }.orbit.three { display: none; }
  .section-head { align-items: start; flex-direction: column; }
  .video-grid, .principles, .policy-grid, .stat-grid, .rail-list { grid-template-columns: 1fr; }
  .page-hero { padding-top: 2.7rem; }
  .upload-panel { padding: 1rem; }.drop-zone { min-height: 210px; }
  .watch-layout { padding-top: .7rem; }.player-wrap { margin-inline: -.6rem; border-radius: 0; }
  .watch-bar { align-items: stretch; }.watch-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .watch-actions .button { padding-inline: .45rem; }
  .footer-inner { grid-template-columns: 1fr; }.footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* App-first video experience */
body {
  background: #0f0f0f;
  color: #f1f1f1;
}

.site-header {
  min-height: 64px;
  grid-template-columns: minmax(210px, 1fr) minmax(300px, 680px) minmax(210px, 1fr);
  gap: 1.5rem;
  padding: .6rem 1.35rem;
  border-bottom: 0;
  background: rgba(15,15,15,.96);
  backdrop-filter: blur(12px);
}

.header-brand, .header-actions { display: flex; align-items: center; }
.header-brand { gap: .7rem; }
.header-actions { justify-content: flex-end; }
.nav-toggle, .policy-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f1f1f1;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
}
.nav-toggle:hover, .policy-link:hover { background: #272727; }
.wordmark { gap: .55rem; font-size: 1.22rem; }
.logo-mark { width: 31px; height: 23px; border-radius: 7px; box-shadow: none; background: linear-gradient(135deg, #865dff, #bf54ee); }
.logo-mark::after { inset: 6px 7px 6px 11px; }
.site-search { display: grid; grid-template-columns: minmax(0, 1fr) 64px; }
.site-search input {
  min-height: 42px;
  padding: .55rem 1rem;
  border-color: #303030;
  border-radius: 999px 0 0 999px;
  background: #121212;
  font-size: 1rem;
}
.site-search input:focus { border-color: #3268b8; background: #121212; box-shadow: inset 1px 0 #3268b8; }
.site-search button {
  position: static;
  width: auto;
  height: 42px;
  border: 1px solid #303030;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  color: #f1f1f1;
  background: #222;
  font-size: 1.3rem;
}
.creator-button { min-height: 38px; padding: .5rem .85rem; background: #272727; border-color: #3b3b3b; box-shadow: none; font-size: .86rem; }
.creator-button:hover { background: #3b3b3b; }
.policy-link { margin-right: .4rem; }

.nav-drawer { position: fixed; z-index: 70; inset: 0; visibility: hidden; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; background: rgba(0,0,0,.55); transition: opacity .2s; }
.drawer-panel {
  position: absolute;
  inset: 0 auto 0 0;
  display: grid;
  align-content: start;
  gap: .25rem;
  width: min(290px, 86vw);
  padding: .7rem 1rem;
  background: #0f0f0f;
  transform: translateX(-102%);
  transition: transform .22s ease;
  box-shadow: 18px 0 50px rgba(0,0,0,.42);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1rem; padding: 0 .2rem .8rem; border-bottom: 1px solid #292929; }
.drawer-head button { width: 40px; height: 40px; border: 0; border-radius: 50%; color: white; background: transparent; font-size: 1.5rem; cursor: pointer; }
.drawer-panel > a { padding: .78rem 1rem; border-radius: 10px; font-weight: 650; }
.drawer-panel > a:hover { background: #272727; }
body.nav-open { overflow: hidden; }
body.nav-open .nav-drawer { visibility: visible; pointer-events: auto; }
body.nav-open .drawer-scrim { opacity: 1; }
body.nav-open .drawer-panel { transform: translateX(0); }

.browse-main { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.side-nav {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow: auto;
  padding: .8rem .75rem 1.5rem;
  border-right: 1px solid #272727;
  background: #0f0f0f;
}
.side-nav-group { display: grid; gap: .15rem; padding-bottom: .75rem; }
.secondary-nav { padding-top: .75rem; border-top: 1px solid #272727; }
.side-nav-link { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: .8rem; min-height: 44px; padding: .55rem .85rem; border-radius: 10px; color: #ddd; font-size: .9rem; }
.side-nav-link span { text-align: center; font-size: 1.12rem; }
.side-nav-link b { font-weight: 580; }
.side-nav-link:hover, .side-nav-link.active { background: #272727; color: white; }
.side-note { margin: .8rem .85rem; color: #888; font-size: .76rem; line-height: 1.45; }

.feed-view { min-width: 0; padding: 1.6rem clamp(1rem, 2.6vw, 2.5rem) 5rem; }
.feed-intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 0 0 1.1rem; }
.feed-intro h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.08; letter-spacing: -.045em; }
.feed-intro p:not(.feed-kicker) { max-width: 660px; margin: .5rem 0 0; color: #aaa; font-size: .92rem; }
.feed-kicker { margin: 0 0 .28rem; color: #bca8ff; font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.compact-button { flex: 0 0 auto; min-height: 40px; padding: .6rem 1rem; box-shadow: none; font-size: .85rem; }
.topic-chips {
  position: sticky;
  z-index: 20;
  top: 64px;
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  margin: 0 calc(clamp(1rem, 2.6vw, 2.5rem) * -1);
  padding: .75rem clamp(1rem, 2.6vw, 2.5rem);
  scrollbar-width: none;
  background: rgba(15,15,15,.96);
}
.topic-chips::-webkit-scrollbar { display: none; }
.topic-chip { flex: 0 0 auto; padding: .42rem .78rem; border-radius: 8px; color: #f1f1f1; background: #272727; font-size: .83rem; font-weight: 650; }
.topic-chip:hover { background: #3d3d3d; }
.topic-chip.active { color: #0f0f0f; background: #f1f1f1; }
.feed-section { padding-top: 1.25rem; }
.feed-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.feed-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1rem; }
.thumbnail { border-radius: 12px; box-shadow: none; }
.card-info { grid-template-columns: 38px minmax(0, 1fr) auto; gap: .7rem; padding: .72rem .08rem 0; }
.avatar { border-radius: 50%; }
.card-title { margin-bottom: .34rem; font-size: .94rem; line-height: 1.34; font-weight: 700; }
.card-creator, .card-sub { color: #aaa; font-size: .79rem; line-height: 1.4; }
.card-creator { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide-video { border-radius: 50%; }
.hide-video:hover { color: white; background: #272727; }
.feed-promise { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 4rem; padding: 1.2rem 1.35rem; border: 1px solid #303030; border-radius: 14px; background: #181818; }
.feed-promise > div { display: flex; align-items: center; gap: 1rem; }
.promise-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; color: white; background: #6848e8; font-size: 1.25rem; }
.feed-promise h2 { margin: 0 0 .15rem; font-size: 1rem; }
.feed-promise p { margin: 0; color: #aaa; font-size: .82rem; }
.feed-promise > a { flex: 0 0 auto; color: #c9baff; font-size: .84rem; font-weight: 700; }

.watch-layout { width: min(1700px, calc(100% - 2rem)); grid-template-columns: minmax(0, 1fr) 402px; gap: 1.5rem; padding-top: 1.4rem; }
.watch-primary { min-width: 0; }
.player-wrap { border-radius: 12px; box-shadow: none; }
.player-quick-controls { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding-top: .55rem; }
.player-quick-controls button, .action-pill {
  min-height: 38px;
  padding: .48rem .85rem;
  border: 0;
  border-radius: 999px;
  color: #f1f1f1;
  background: #272727;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}
.player-quick-controls button:hover, .action-pill:hover { background: #3d3d3d; }
.player-quick-controls button:disabled { opacity: .45; cursor: wait; }
.player-status { margin-left: auto; color: #8f8f8f; font-size: .75rem; }
.watch-title { margin: .75rem 0 .65rem; font-size: clamp(1.25rem, 2vw, 1.45rem); letter-spacing: -.025em; }
.watch-bar { align-items: center; padding-bottom: .8rem; border: 0; }
.creator-line .avatar { width: 42px; height: 42px; }
.creator-name { font-size: .93rem; }
.action-pill.danger { color: #ffb5b5; background: #321b1b; }
.description-box { margin-top: .65rem; padding: .9rem 1rem; border-radius: 12px; color: #ddd; background: #272727; font-size: .88rem; }
.moderation-actions { margin-top: .7rem; }
.rail h2 { margin: 0 0 .8rem; font-size: 1rem; }
.rail-list { gap: .75rem; }
.rail .video-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: .55rem; }
.rail .thumbnail { border-radius: 8px; }
.rail .card-info { display: block; padding: 0; }
.rail .avatar, .rail .hide-video { display: none; }
.rail .card-title { margin-bottom: .25rem; font-size: .82rem; line-height: 1.28; }
.rail .card-creator, .rail .card-sub { font-size: .72rem; }

@media (max-width: 1420px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watch-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .rail .video-card { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: minmax(190px, 1fr) minmax(260px, 560px) minmax(150px, 1fr); }
  .browse-main { display: block; }
  .side-nav { display: none; }
  .watch-layout { grid-template-columns: 1fr; }
  .rail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; gap: .45rem .7rem; padding: .55rem .7rem; }
  .site-search { grid-column: 1 / -1; grid-row: 2; }
  .policy-link { display: none; }
  .creator-button span:last-child { display: none; }
  .creator-button { width: 40px; padding: 0; }
  .feed-view { padding-inline: .75rem; }
  .feed-intro { align-items: flex-start; margin-top: .25rem; }
  .feed-intro p:not(.feed-kicker) { max-width: 520px; }
  .feed-intro .compact-button { display: none; }
  .topic-chips { top: 106px; margin-inline: -.75rem; padding-inline: .75rem; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem .8rem; }
  .feed-promise { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .watch-layout { width: min(100% - 1.2rem, 1700px); padding-top: .7rem; }
  .rail-list { grid-template-columns: 1fr; }
  .rail .video-card { grid-template-columns: 168px minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .feed-intro h1 { font-size: 1.72rem; }
  .feed-intro p:not(.feed-kicker) { font-size: .84rem; }
  .feed-heading { margin-bottom: .8rem; }
  .video-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .thumbnail { border-radius: 10px; }
  .card-title { font-size: .98rem; }
  .feed-promise { margin-top: 2.7rem; }
  .player-quick-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .player-quick-controls button { padding-inline: .4rem; }
  .player-status { grid-column: 1 / -1; margin: 0; text-align: center; }
  .watch-bar { align-items: flex-start; }
  .watch-actions { display: flex; flex-wrap: nowrap; width: 100%; overflow-x: auto; }
  .watch-actions .action-pill { flex: 0 0 auto; }
  .player-wrap { margin-inline: -.6rem; border-radius: 0; }
  .rail .video-card { grid-template-columns: 46% minmax(0, 1fr); }
}
