:root {
  color-scheme: dark;
  --bg: #070708;
  --bg-soft: #0f0f11;
  --panel: #171719;
  --panel-2: #222226;
  --text: #f7f4f6;
  --muted: #aaa2a8;
  --line: #2d2d32;
  --accent: #ff4d8d;
  --accent-2: #ff80b0;
  --warn: #facc15;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.mobile-menu-button,
.mobile-rail-head,
.mobile-menu-backdrop {
  display: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 7, .96);
}

.age-gate-box {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #1d1d21, #141416);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.age-gate-icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.age-gate-logo {
  margin-bottom: 12px;
  font-size: 2.35rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.age-gate-warning {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
}

.age-gate-sub {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

.age-gate-btns {
  display: grid;
  gap: 10px;
}

.age-gate-btns button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
}

.age-gate-btns .age-no {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 10px clamp(14px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(12, 12, 13, .96);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 950;
  letter-spacing: .05em;
  text-decoration: none;
}

.menu-mark {
  color: var(--accent);
  font-size: 1.2rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #202024;
}

.search input {
  min-width: 0;
  padding: 11px 16px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search button,
.submit-pill {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
}

.search button {
  padding: 0 18px;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
}

.submit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.home-shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr) 300px;
  gap: 20px;
  width: min(1680px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 3vw, 34px) 56px;
}

.discover-rail,
.info-rail {
  position: sticky;
  top: 68px;
  align-self: start;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 84px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.rail-item,
.rail-group,
.rail-more,
.info-card,
.ad-slot,
.ops-card {
  border: 1px solid #1f1f22;
  border-radius: 8px;
  background: var(--panel);
}

.rail-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 820;
  text-decoration: none;
}

.rail-item span {
  color: var(--accent);
}

.rail-item.is-active {
  background: #1d1d21;
}

.rail-group {
  overflow: hidden;
}

.rail-group summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 820;
  list-style: none;
}

.rail-group summary::-webkit-details-marker {
  display: none;
}

.rail-group summary::after {
  content: "⌄";
  color: var(--muted);
}

.rail-group[open] summary::after {
  transform: rotate(180deg);
}

.rail-group button,
.rail-group a,
.rail-more {
  display: flex;
  width: calc(100% - 20px);
  min-height: 38px;
  align-items: center;
  margin: 0 10px 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.rail-group button:hover,
.rail-group a:hover,
.rail-more:hover {
  background: #242429;
  color: var(--text);
}

.rail-more {
  width: 100%;
  justify-content: center;
  margin: 0;
  border: 1px solid var(--line);
  background: #242429;
  color: var(--text);
}

.content-flow {
  min-width: 0;
}

.notice-band {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(250, 204, 21, .38);
  border-radius: 8px;
  background: rgba(250, 204, 21, .09);
  color: #f7e7a4;
  font-size: .86rem;
  line-height: 1.55;
}

.notice-band strong {
  flex: 0 0 auto;
  color: var(--warn);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.hero-copy,
.hero-panel,
.ad-board,
.quick-filters,
.admin-panel {
  border: 1px solid #1f1f22;
  border-radius: 8px;
  background: var(--panel);
}

.admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 77, 141, .14), transparent 48%),
    var(--panel);
}

.admin-panel h2 {
  margin-top: 5px;
  font-size: 1.15rem;
}

.admin-panel p:not(.section-kicker) {
  margin-top: 9px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-stats div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(12, 12, 13, .74);
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  font-size: 1.35rem;
  line-height: 1;
}

.admin-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 760;
}

.hero-copy {
  padding: 22px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 77, 141, .22), transparent 22rem),
    var(--panel);
}

.eyebrow,
.section-kicker {
  color: var(--accent-2);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin-top: 8px;
  font-size: clamp(1.9rem, 3.3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.78;
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.hero-panel div {
  padding: 18px;
  background: #171719;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  margin-bottom: 7px;
  font-size: 1.08rem;
}

.hero-panel span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.ad-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--line);
}

.ad-slot {
  min-height: 118px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #151518;
}

.ad-slot.featured {
  background:
    linear-gradient(135deg, rgba(255, 77, 141, .24), rgba(255, 77, 141, .04)),
    #151518;
}

.ad-slot span,
.compact-ad span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 77, 141, .16);
  color: var(--accent-2);
  font-size: .68rem;
  font-weight: 900;
}

.ad-slot strong,
.compact-ad strong {
  display: block;
  font-size: .98rem;
}

.ad-slot p,
.info-card p,
.ops-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.62;
}

.quick-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding: 12px;
  scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.category {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #242429;
  color: var(--text);
  font-weight: 760;
}

.category.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin-top: 4px;
  font-size: 1.22rem;
}

.section-head select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 14px;
}

.video-card {
  min-width: 0;
}

.thumb {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--panel-2);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) brightness(.78);
  transform: scale(1.01);
  transition: transform 180ms ease, filter 180ms ease;
}

.thumb-gradient {
  position: absolute;
  inset: 0;
  mix-blend-mode: color;
  opacity: .58;
  pointer-events: none;
}

.video-card:hover .thumb img {
  filter: saturate(1) brightness(.9);
  transform: scale(1.055);
}

.quality-badge,
.demo-badge,
.duration,
.preview-note {
  position: absolute;
  border-radius: 4px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
}

.quality-badge {
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  background: rgba(255, 77, 141, .92);
}

.demo-badge {
  top: 7px;
  right: 7px;
  padding: 3px 7px;
  background: rgba(250, 204, 21, .96);
  color: #1b1300;
}

.duration {
  right: 7px;
  bottom: 7px;
  padding: 3px 7px;
}

.thumb-tags {
  position: absolute;
  left: 7px;
  right: 56px;
  bottom: 7px;
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.thumb-tag {
  flex: 0 0 auto;
  max-width: 96px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: .68rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-tag:hover {
  background: var(--accent);
}

.play-mark {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  clip-path: polygon(28% 18%, 28% 82%, 84% 50%);
  pointer-events: none;
}

.card-body h3 {
  margin-top: 9px;
  font-size: .92rem;
  line-height: 1.35;
}

.creator-name {
  margin-top: 4px;
  color: var(--accent-2);
  font-size: .78rem;
}

.video-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: .75rem;
}

.empty {
  padding: 32px 0;
  color: var(--muted);
}

.info-card {
  padding: 16px;
}

.info-card h2 {
  margin-bottom: 10px;
  font-size: .98rem;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
}

.source-row > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.source-row strong {
  display: block;
  font-size: .84rem;
}

.source-row p {
  margin-top: 2px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.compact-ad {
  min-height: 250px;
  display: grid;
  align-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 77, 141, .22), transparent),
    var(--panel);
}

.ops-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.ops-card {
  padding: 18px;
}

.ops-card h2 {
  margin-top: 4px;
  font-size: 1.05rem;
}

.ops-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent-2);
  font-size: .84rem;
  font-weight: 780;
  text-decoration: none;
}

.watch-page {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 40px) 56px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
}

.watch-player {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #000 center / cover no-repeat;
  box-shadow: inset 0 -80px 120px rgba(0, 0, 0, .52);
}

.preview-play {
  position: relative;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--player-accent, var(--accent)) 80%, #000 20%);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .08);
}

.preview-play .play-mark {
  inset: 22px 19px;
  width: 46px;
  height: 46px;
  background: #fff;
}

.preview-play.is-playing {
  animation: pulse 1.1s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.preview-note {
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
}

.watch-info {
  padding: 16px 0;
}

.watch-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.watch-info h2 {
  margin-top: 3px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.rating-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
}

#watchMeta,
.watch-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}

.safety-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.safety-strip span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .78rem;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.watch-actions button,
.watch-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.watch-actions a {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.watch-actions a.is-disabled {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--muted);
  cursor: not-allowed;
}

#likeButton.liked {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

#backBtn {
  margin-left: auto;
}

.watch-right h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.related-list {
  display: flex;
  max-height: calc(100vh - 140px);
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

.related-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.related-card:hover {
  background: var(--panel);
}

.related-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
}

.related-info {
  min-width: 0;
  padding-top: 2px;
}

.related-title,
.related-meta {
  display: block;
}

.related-title {
  color: var(--text);
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.38;
}

.related-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.4;
}

.site-footer {
  display: flex;
  width: min(1680px, 100%);
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 40px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}

.site-footer strong {
  color: var(--text);
  font-size: .95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--accent-2);
  font-weight: 760;
  text-decoration: none;
}

@media (max-width: 1380px) {
  .home-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .info-rail {
    display: none;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    display: none;
  }

  .home-shell {
    grid-template-columns: 1fr;
  }

  .discover-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .rail-group {
    min-width: 0;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-section,
  .hero,
  .admin-panel,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .ad-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 9px 14px 10px;
  }

  .mobile-menu-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--accent);
    font-size: 1.25rem;
  }

  .brand {
    gap: 8px;
    font-size: 1.25rem;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .menu-mark {
    display: none;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

  .submit-pill {
    min-height: 36px;
    padding: 0 12px;
    font-size: .84rem;
  }

  .discover-rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 401;
    display: block;
    width: min(86vw, 340px);
    max-height: none;
    padding: 14px;
    overflow-y: auto;
    background: #0d0d0f;
    box-shadow: 20px 0 60px rgba(0, 0, 0, .56);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .discover-rail.is-open {
    transform: translateX(0);
  }

  .mobile-rail-head {
    position: sticky;
    top: -14px;
    z-index: 2;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    margin: -14px -14px 12px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 13, 15, .97);
    font-size: 1.05rem;
  }

  .mobile-rail-head button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: block;
    visibility: hidden;
    border: 0;
    background: rgba(0, 0, 0, .68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-menu-backdrop.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .discover-rail > * {
    margin-bottom: 10px;
  }

  .home-shell {
    padding-top: 12px;
  }

  .notice-band {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: .78rem;
  }

  .hero {
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
    line-height: 1.12;
  }

  .hero p:not(.eyebrow) {
    margin-top: 10px;
    font-size: .88rem;
    line-height: 1.65;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(155px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .hero-panel::-webkit-scrollbar {
    display: none;
  }

  .hero-panel div {
    min-height: 108px;
    padding: 14px;
    scroll-snap-align: start;
  }

  .ad-board {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-inline: -12px;
    padding: 0 12px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ad-board::-webkit-scrollbar {
    display: none;
  }

  .ad-slot {
    flex: 0 0 min(82vw, 330px);
    min-height: 128px;
    border: 1px solid var(--line);
    border-radius: 8px;
    scroll-snap-align: start;
  }

  .quick-filters {
    position: sticky;
    top: 116px;
    z-index: 80;
    margin-inline: -12px;
    margin-bottom: 18px;
    padding-inline: 12px;
    border-width: 1px 0;
    border-radius: 0;
    background: rgba(15, 15, 17, .96);
    backdrop-filter: blur(12px);
  }

  .category {
    min-height: 36px;
    padding: 0 14px;
    font-size: .84rem;
  }

  .notice-band,
  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .watch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-page {
    padding: 14px 12px 42px;
  }

  .watch-layout {
    gap: 12px;
  }

  .watch-player {
    margin-inline: -12px;
    width: calc(100% + 24px);
    border-radius: 0;
  }

  .related-list {
    max-height: none;
  }

  #backBtn {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .home-shell {
    padding-inline: 12px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head select {
    width: 100%;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .thumb-tags {
    right: 54px;
  }
}
