:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --panel: #171717;
  --panel-soft: #1f1f1f;
  --line: #2b2b2b;
  --text: #eeeeee;
  --muted: #9d9d9d;
  --soft: #707070;
  --accent: #d2a15f;
  --danger: #e07171;
  --sidebar: 248px;
  --radius: 6px;
  --font-sans: "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-sans);
}

.featured-section {
  position: relative;
  margin: 6px calc(0px - clamp(16px, 3vw, 38px)) 34px;
  padding: 20px clamp(14px, 1.4vw, 18px) 22px;
  border-top: 1px solid #3a3327;
  border-bottom: 1px solid #2a3036;
  background: #111417;
}

.premium-expiry {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
}

.featured-section::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: min(150px, 34%);
  height: 3px;
  background: var(--accent);
  content: "";
}

.section-heading--featured {
  align-items: end;
  justify-content: space-between;
  min-height: 0;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
}

.section-heading--featured h2 {
  margin: 0;
  color: #f4f5f6;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.featured-section__heading-copy {
  min-width: 0;
}

.featured-section__heading-copy > span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading--featured > .featured-section__count {
  color: #8f9aa5;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.video-grid.video-grid--featured {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, calc((100% - 60px) / 4));
  align-items: start;
  gap: 20px;
  padding-bottom: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #4d5660 #171a1d;
  scrollbar-width: thin;
}

.video-grid--featured .video-card {
  overflow: hidden;
  border: 1px solid #2c3339;
  border-radius: var(--radius);
  background: #0b0d0f;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 160ms ease, transform 160ms ease;
  scroll-snap-align: start;
}

.video-grid--featured .video-card:hover {
  border-color: #6a5632;
  transform: translateY(-2px);
}

.video-grid--featured .video-card__thumb {
  border: 0;
  border-bottom: 1px solid #252b31;
  border-radius: 0;
  box-shadow: none;
}

.video-grid--featured .video-card__thumb::before {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: var(--accent);
  color: #08090a;
  content: "Featured";
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.video-grid--featured .video-card__body {
  min-height: 124px;
  padding: 12px 13px 14px;
}

.video-grid--featured .video-card h2 {
  min-height: 2.45em;
  font-size: 1.03rem;
  line-height: 1.22;
}

.form-hint {
  margin-top: -8px;
  color: var(--soft);
  font-size: 0.78rem;
}

.admin-video-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.admin-video-toolbar .admin-section-title {
  margin: 0 0 8px;
}

.admin-video-filters {
  display: flex;
  gap: 6px;
}

.admin-video-filters a {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-video-filters a.is-active {
  border-color: rgba(224, 183, 100, 0.45);
  color: var(--accent-strong);
}

.admin-video-search {
  display: flex;
  gap: 7px;
  width: min(100%, 420px);
}

.admin-video-search input {
  min-width: 0;
  flex: 1;
}

.featured-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid rgba(224, 183, 100, 0.38);
  border-radius: 3px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
}

@media (min-width: 681px) and (max-width: 1120px) {
  .video-grid.video-grid--featured {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 42%);
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-color: #4d5660 #171a1d;
    scrollbar-width: thin;
  }

  .video-grid--featured .video-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 920px) {
  .admin-video-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-video-search {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .featured-section {
    width: calc(100% + 28px);
    margin: 4px -14px 28px;
    padding: 17px 14px 18px;
  }

  .section-heading--featured {
    margin-bottom: 14px;
  }

  .section-heading--featured h2 {
    font-size: 1.28rem;
  }

  .video-grid.video-grid--featured {
    display: grid;
    width: calc(100% + 14px);
    max-width: none;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    gap: 12px;
    padding: 0 14px 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-color: #4d5660 #171a1d;
    scrollbar-width: thin;
  }

  .video-grid--featured .video-card,
  .video-grid--featured .video-card__thumb {
    width: 100%;
    max-width: none;
  }

  .video-grid--featured .video-card {
    scroll-snap-align: start;
  }

  .video-grid--featured .video-card__body {
    min-height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-grid--featured .video-card {
    transition: none;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.mobile-header {
  display: none;
}

.page-shell {
  min-height: 100vh;
}

.browse-layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.browse-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 28px 22px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #111111;
}

.sidebar-brand {
  margin-bottom: 2px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0;
}

.primary-rail,
.filter-strip,
.tag-cloud {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.primary-rail a,
.filter-pill,
.tag {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.25;
}

.primary-rail a:hover,
.filter-pill:hover,
.tag:hover,
.primary-rail a.is-active,
.filter-pill.is-active,
.tag.is-active {
  background: var(--panel-soft);
  color: var(--text);
}

.browse-rail h2 {
  margin: 0 0 9px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.browse-main {
  min-width: 0;
  padding: 34px clamp(18px, 4vw, 54px) 54px;
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-title p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.search-panel {
  flex: 0 0 min(340px, 38vw);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #121212;
  color: var(--text);
  outline: none;
}

input,
select {
  min-height: 40px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 10px 12px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #141414;
  font-weight: 700;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.section-heading span {
  color: var(--soft);
  font-size: 0.88rem;
}

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

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090909;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.025);
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  font-size: 0.75rem;
}

.play-dot {
  display: none;
}

.video-card__body {
  padding: 12px;
}

.video-card h2 {
  display: -webkit-box;
  min-height: 2.45em;
  margin: 0 0 9px;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 0.8rem;
}

.video-card__meta a,
.creator-link {
  color: var(--muted);
}

.video-card__categories {
  display: flex;
  min-width: 0;
  max-height: 1.35em;
  flex-wrap: wrap;
  gap: 0 8px;
  overflow: hidden;
}

.video-card__meta > span:last-child {
  flex: 0 0 auto;
}

.creator-link {
  display: inline-flex;
  margin-top: 7px;
  font-size: 0.82rem;
}

.video-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.video-card__tags a {
  color: var(--soft);
  font-size: 0.78rem;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 54px);
}

.watch-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.watch-copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.watch-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.category-link {
  display: inline-flex;
  margin: 0 7px 7px 0;
  padding: 6px 8px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.watch-copy__stats,
.admin-list__top,
.admin-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.watch-copy__stats {
  justify-content: space-between;
  color: var(--soft);
  font-size: 0.88rem;
}

.player-panel {
  min-width: 0;
}

.stream-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.stream-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.stream-tab:hover,
.stream-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #050505;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
  aspect-ratio: 16 / 9;
}

.player-shell iframe,
.player-shell video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050505;
  object-fit: contain;
}

.player-shell iframe[hidden],
.player-shell video[hidden] {
  display: none;
}

.player-shell > .fluid_video_wrapper {
  width: 100% !important;
  height: 100% !important;
}

.player-shell > .fluid_video_wrapper[hidden] {
  display: none !important;
}

.player-shell .fluid_video_wrapper video {
  object-fit: contain;
}

.player-shell.is-playback-gated {
  border-color: #685226;
}

.player-ad-gate[hidden] {
  display: none;
}

.player-ad-gate {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: grid;
  overflow: hidden;
  place-items: center;
  padding: 0;
  background: #050607;
}

.player-ad-gate__poster,
.player-ad-gate__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-ad-gate__poster {
  object-fit: cover;
  opacity: 0.34;
}

.player-ad-gate__shade {
  background: rgb(2 3 4 / 72%);
}

.player-ad-gate__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.player-ad-gate__label {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 3px;
  background: rgb(5 7 9 / 82%);
  color: #d7dbe0;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgb(0 0 0 / 30%);
  text-transform: uppercase;
  pointer-events: none;
}

.player-ad-gate__creative button {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 3px;
  place-items: center;
  background: rgb(5 7 9 / 92%);
  color: #f3f4f5;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / 34%);
}

.player-ad-gate__creative button:hover,
.player-ad-gate__creative button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.player-ad-gate__creative button[hidden] {
  display: none;
}

.player-ad-gate__close-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.player-ad-gate__body {
  position: absolute;
  inset: 6px;
  display: grid;
  min-height: 0;
  place-items: center;
}

.player-ad-gate__creative {
  position: relative;
  width: auto;
  max-width: 100%;
  height: min(var(--placement-height, 250px), 100%);
  max-height: 100%;
  aspect-ratio: var(--placement-ratio, 300 / 250);
}

.player-ad-gate .site-footer__media-frame {
  width: 100%;
  height: 100%;
  background: #070809;
  border: 1px solid rgb(255 255 255 / 22%);
  box-shadow: 0 16px 34px rgb(0 0 0 / 48%);
}

.player-ad-gate__loading {
  position: absolute;
  color: #8c959e;
  font-size: 0.74rem;
  font-weight: 700;
}

.player-ad-gate.is-ready .player-ad-gate__loading {
  display: none;
}

.playback-gate[hidden] {
  display: none;
}

.playback-gate {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: #08090a;
  color: #f4f5f6;
  text-align: center;
}

.playback-gate__poster,
.playback-gate__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.playback-gate__poster {
  object-fit: cover;
  opacity: 0.28;
}

.playback-gate__shade {
  background: rgb(4 5 6 / 76%);
}

.playback-gate__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 580px);
  padding: 22px;
}

.playback-gate__brand {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.playback-gate h2,
.playback-gate p {
  margin: 0;
}

.playback-gate h2 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.playback-gate p {
  max-width: 520px;
  color: #d3d7db;
  font-size: 0.92rem;
  line-height: 1.5;
}

.playback-gate button {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #080808;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.playback-gate button:hover,
.playback-gate button:focus-visible {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.native-player-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #22282e;
  border-radius: var(--radius);
  background: rgb(5 5 5 / 82%);
  backdrop-filter: blur(6px);
}

.native-player-controls[hidden] {
  display: none;
}

.native-player-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.native-player-controls select {
  min-height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  color: var(--muted);
}

.pager a {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--panel);
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.2rem;
  padding: 1rem clamp(16px, 3vw, 38px);
}

.archive-links h2 {
  flex-basis: 100%;
  font-size: 1.1rem;
  margin: 0 0 .25rem;
}

.archive-links a { text-decoration: underline; text-underline-offset: .2em; }

.empty-state,
.admin-login {
  width: min(560px, 100%);
  margin: 80px auto;
  text-align: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 54px);
}

.admin-form,
.admin-list,
.admin-login form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-login form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 12px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

.admin-list__top {
  justify-content: space-between;
  margin-bottom: 12px;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.analytics-summary article,
.analytics-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #141414;
}

.analytics-summary article {
  padding: 12px;
}

.analytics-summary span,
.analytics-panel p,
.analytics-row small {
  color: var(--soft);
  font-size: 0.8rem;
}

.analytics-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 1.35rem;
}

.analytics-panel {
  margin-bottom: 14px;
  padding: 12px;
}

.analytics-panel h3 {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.analytics-video {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.analytics-video:first-of-type {
  border-top: 0;
}

.analytics-video img {
  width: 72px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: #090909;
}

.analytics-video h4 {
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.analytics-video p {
  margin: 0;
}

.analytics-video > strong,
.analytics-row strong {
  color: var(--text);
  font-size: 0.9rem;
}

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

.analytics-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.analytics-row:first-of-type {
  border-top: 0;
}

.analytics-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-section-title {
  margin: 20px 0 10px;
  font-size: 1rem;
}

.admin-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-item img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: #090909;
}

.admin-item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.admin-item p {
  margin-bottom: 8px;
  color: var(--muted);
}

.admin-item__actions {
  flex-wrap: wrap;
}

.admin-item__actions a,
.admin-item__actions button,
.button-ghost {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.validation,
[data-valmsg-for] {
  color: var(--danger);
  font-size: 0.84rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 3vw, 38px);
  border-top: 1px solid var(--line-soft);
  color: var(--soft);
  font-size: 0.78rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer__links a {
  color: var(--muted);
}

.site-footer__links a:hover {
  color: var(--accent);
}

@media (max-width: 1280px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: #111111;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand__mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--panel-soft);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
  }

  .brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .brand__text small {
    color: var(--soft);
    font-size: 0.7rem;
  }

  .site-nav {
    display: flex;
    gap: 8px;
  }

  .site-nav a {
    color: var(--muted);
    font-size: 0.9rem;
  }

  .browse-layout,
  .watch-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .browse-rail {
    position: static;
    height: auto;
    padding: 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-brand {
    display: none;
  }

  .primary-rail,
  .filter-strip,
  .tag-cloud {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .browse-main,
  .watch-layout,
  .admin-grid {
    padding: 22px 14px 36px;
  }

  .page-title {
    flex-direction: column;
  }

  .search-panel {
    flex: auto;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .form-row,
  .admin-item,
  .analytics-columns {
    grid-template-columns: 1fr;
  }

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

  .admin-item img {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .analytics-summary,
  .analytics-video,
  .analytics-row {
    grid-template-columns: 1fr;
  }
}

/* Tube-style ScatArchive redesign overrides */
:root {
  --bg: #08090a;
  --panel: #121416;
  --panel-soft: #1a1d20;
  --panel-raised: #202429;
  --line: #2a3036;
  --line-soft: #1c2025;
  --text: #f2f4f6;
  --muted: #a2abb4;
  --soft: #707b86;
  --accent: #c99a45;
  --accent-strong: #e0b764;
  --sidebar: 244px;
  --radius: 4px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 210px),
    var(--bg);
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 244px minmax(260px, 560px) auto;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px clamp(14px, 2vw, 26px);
  border-bottom: 1px solid #252b31;
  background: rgba(8, 9, 10, 0.96);
  backdrop-filter: blur(12px);
}

.site-support-notice[hidden] {
  display: none;
}

.site-support-notice {
  border-bottom: 1px solid #5b4725;
  background: #211c14;
  color: #f2f4f6;
}

.site-support-notice__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(100%, 1500px);
  min-height: 52px;
  margin: 0 auto;
  padding: 9px clamp(14px, 2vw, 26px);
}

.site-support-notice__copy {
  min-width: 0;
  line-height: 1.35;
}

.site-support-notice__copy strong {
  display: block;
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.site-support-notice__copy span {
  display: block;
  color: #d2d6da;
  font-size: 0.82rem;
}

.site-support-notice__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-support-notice__reload,
.site-support-notice__dismiss {
  min-height: 34px;
  border: 1px solid #695329;
  border-radius: var(--radius);
  font-weight: 800;
}

.site-support-notice__reload {
  padding: 6px 14px;
  background: var(--accent);
  color: #090909;
}

.site-support-notice__reload:hover {
  background: var(--accent-strong);
}

.site-support-notice__dismiss {
  display: grid;
  width: 34px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: #d2d6da;
  font-size: 1.35rem;
  line-height: 1;
}

.site-support-notice__dismiss:hover {
  border-color: #8a7040;
  background: #30271a;
  color: #fff;
}

.mobile-menu-toggle,
.mobile-search-toggle {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(224, 183, 100, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2a2418, #171410);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.08;
}

.brand__text strong {
  font-size: 1.16rem;
  letter-spacing: 0;
}

.brand__text small {
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-search {
  position: relative;
  display: flex;
  justify-self: center;
  width: min(100%, 560px);
  min-width: 0;
}

.site-search::before {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 2px solid #a8b0b8;
  border-radius: 50%;
  content: "";
  transform: translateY(-56%);
  pointer-events: none;
}

.site-search::after {
  position: absolute;
  top: 50%;
  left: 27px;
  z-index: 1;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #a8b0b8;
  content: "";
  transform: translateY(5px) rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.site-search input {
  flex: 1 1 auto;
  height: 42px;
  min-height: 42px;
  min-width: 0;
  padding-left: 42px;
  border-color: #30363d;
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: #202020;
  color: #eef1f4;
  font-size: 0.93rem;
}

.site-search button {
  flex: 0 0 86px;
  width: 86px;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
  color: #090909;
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.site-nav .partner-link {
  color: var(--accent-strong);
}

.page-shell {
  min-height: calc(100vh - 64px);
  max-width: 100vw;
  overflow-x: hidden;
}

.browse-layout {
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  max-width: 100vw;
  overflow-x: hidden;
}

.browse-layout.browse-layout--full {
  display: block;
}

.browse-layout--full .browse-main {
  width: min(1680px, 100%);
  margin: 0 auto;
}

.browse-rail {
  top: 64px;
  height: calc(100vh - 64px);
  gap: 18px;
  padding: 18px 14px 24px;
  border-right: 1px solid #2b323a;
  background: #090a0b;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.025);
  scrollbar-width: thin;
  scrollbar-color: #343b43 transparent;
}

.sidebar-brand {
  display: none;
}

.primary-rail a,
.filter-pill,
.tag {
  min-height: 31px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #9ca6b0;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.primary-rail a:hover,
.filter-pill:hover,
.tag:hover,
.primary-rail a.is-active,
.filter-pill.is-active,
.tag.is-active {
  border-color: #26303a;
  background: #15191e;
  color: #ffffff;
}

.primary-rail a.is-active,
.filter-pill.is-active,
.tag.is-active {
  border-color: rgba(224, 183, 100, 0.36);
  background: linear-gradient(90deg, rgba(201, 154, 69, 0.18), #15191e 68%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.browse-rail h2 {
  margin: 0 0 8px;
  padding: 14px 2px 0;
  border-top: 1px solid #1b2025;
  color: #7f8a95;
  font-size: 0.69rem;
}

.browse-rail > div:first-of-type h2 {
  padding-top: 0;
  border-top: 0;
}

.filter-strip,
.tag-cloud {
  gap: 5px;
}

.browse-main {
  padding: 24px clamp(16px, 3vw, 38px) 46px;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
}

.page-title {
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.quick-category-strip {
  display: flex;
  gap: 8px;
  margin: -2px 0 18px;
  padding-bottom: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}

.quick-category-strip::-webkit-scrollbar {
  display: none;
}

.quick-category-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #232a31;
  border-radius: 999px;
  background: #121518;
  color: #b4bec8;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.quick-category-strip a:hover,
.quick-category-strip a.is-active {
  border-color: rgba(224, 183, 100, 0.44);
  background: #1b2025;
  color: #fff;
}

h1 {
  margin-bottom: 7px;
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
  line-height: 1.05;
}

.page-title p {
  max-width: 760px;
  color: #99a3ad;
  font-size: 0.95rem;
}

.search-panel {
  display: none;
}

.section-heading {
  min-height: 42px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.section-heading > span {
  color: var(--soft);
  font-size: 0.84rem;
}

.sort-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.sort-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border-bottom: 2px solid transparent;
  color: #98a2ad;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.sort-tabs a:hover,
.sort-tabs a.is-active {
  color: #ffffff;
}

.sort-tabs a.is-active {
  border-bottom-color: var(--accent);
}

.mobile-sort-menu {
  display: none;
}

.video-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
}

.video-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.browse-outstream[hidden] {
  display: none;
}

.browse-outstream {
  grid-column: span 2;
  min-width: 0;
  align-self: start;
  overflow: hidden;
  border: 1px solid #343a40;
  border-radius: var(--radius);
  background: #101214;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.browse-outstream__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 11px;
  border-bottom: 1px solid #2a3036;
}

.browse-outstream__header strong {
  color: #eef1f4;
  font-size: 0.84rem;
}

.browse-outstream__header span {
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.browse-outstream__frame {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.browse-outstream__frame > * {
  max-width: 100%;
}

.video-card__thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid #15191d;
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  max-width: 100%;
}

.video-card__thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.48));
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-card:hover .video-card__thumb::after {
  opacity: 1;
}

.duration {
  z-index: 2;
  right: 7px;
  bottom: 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.video-card__body {
  padding: 9px 0 0;
  min-width: 0;
}

.video-card h2 {
  min-height: 2.55em;
  margin-bottom: 7px;
  color: #eef1f4;
  font-size: 0.94rem;
  font-weight: 800;
}

.video-card h2 a {
  overflow-wrap: anywhere;
}

.video-card h2 a:hover {
  color: var(--accent-strong);
}

.video-card__meta,
.video-card__submeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #77818c;
  font-size: 0.78rem;
  line-height: 1.35;
}

.video-card__meta a,
.creator-link {
  color: #a6b0ba;
}

.creator-link {
  display: inline-flex;
  margin-top: 0;
}

.video-card__tags {
  gap: 5px;
  margin-top: 8px;
}

.video-card__tags a {
  color: #737d88;
  font-size: 0.75rem;
}

.recommendation-card {
  position: relative;
  min-width: 0;
  min-height: 300px;
  align-self: start;
  overflow: hidden;
  border: 1px solid #30363c;
  border-radius: var(--radius);
  background: #101214;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.recommendation-card__label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: rgba(8, 9, 10, 0.9);
  color: #e0b764;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.recommendation-card__slot {
  display: block;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
}

.recommendation-card__slot[data-processed="true"] {
  display: none;
  min-height: 0;
}

.recommendation-card__fallback[hidden] {
  display: none;
}

.recommendation-card__fallback {
  display: flex;
  width: 100%;
  min-height: 298px;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background: #101214;
}

.recommendation-card__fallback .site-footer__media-frame {
  --placement-width: 300px;
  --placement-ratio: 300 / 250;
}

.recommendation-card.is-fallback > div:not([data-recommendation-fallback]),
.recommendation-card.is-fallback > .recommendation-card__slot {
  display: none !important;
}

.recommendation-card > div,
.recommendation-card .exo-native-widget {
  width: 100% !important;
  max-width: 100% !important;
}

.recommendation-card .exo-native-widget-item-content {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 64px;
  max-height: none !important;
  padding: 9px 10px 11px !important;
}

/* ExoClick can return two native items for a 1x1 zone on mobile. */
.recommendation-card .exo-native-widget-item-container:nth-child(n + 2) {
  display: none !important;
}

.recommendation-card__meta {
  display: none;
  padding: 0 10px 11px;
  color: #7f8a95;
  font-size: 0.74rem;
  line-height: 1.35;
}

.recommendation-card.is-native .recommendation-card__meta {
  display: block;
}

.recommendation-card__meta > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recommendation-card__meta > div + div {
  margin-top: 3px;
}

.recommendation-card__meta span:first-child {
  min-width: 0;
  overflow: hidden;
  color: #a7b0b9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-card__meta span:last-child {
  flex: none;
  white-space: nowrap;
}

.recommendation-card .exo-native-widget-item-title {
  display: -webkit-box !important;
  min-height: 2.4em;
  overflow: hidden;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommendation-card__slot iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.video-grid--featured .recommendation-card {
  min-height: 0;
  background: #0b0d0f;
  scroll-snap-align: start;
}

.video-grid--featured .recommendation-card .exo-native-widget,
.video-grid--featured .recommendation-card .exo-native-widget-item-container,
.video-grid--featured .recommendation-card .exo-native-widget-item-content,
.video-grid--featured .recommendation-card__meta {
  background: #0b0d0f !important;
}

.video-grid--featured .recommendation-card__slot {
  min-height: 260px;
}

.watch-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "player copy"
    "related related";
  gap: 22px;
  padding: 24px clamp(16px, 3vw, 38px) 30px;
  max-width: 100vw;
  overflow-x: hidden;
}

.player-panel {
  grid-area: player;
}

.player-shell {
  grid-area: player;
  border-color: #161a1e;
  border-radius: var(--radius);
}

.watch-copy {
  grid-area: copy;
  align-self: start;
  border-color: var(--line);
  border-radius: var(--radius);
  background: #101214;
}

.watch-copy h1 {
  margin-top: 14px;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.08;
}

.watch-copy p {
  color: #9ca6b0;
  font-size: 0.94rem;
}

.category-link {
  background: #1b2025;
  color: #c1c8d0;
  font-size: 0.78rem;
  font-weight: 800;
}

.related-section {
  padding: 0 clamp(16px, 3vw, 38px) 54px;
}

.related-section .section-heading {
  margin-bottom: 16px;
  padding-top: 20px;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px clamp(16px, 3vw, 38px);
  border-top: 1px solid var(--line-soft);
  color: var(--soft);
  font-size: 0.78rem;
}

.site-footer__media {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-footer__media[hidden] {
  display: none;
}

.page-top-media {
  width: 100%;
  padding: 18px clamp(10px, 2vw, 28px);
  border-bottom: 1px solid var(--line-soft);
  background: #080a0c;
}

.page-top-media[hidden] {
  display: none;
}

.page-top-media[data-content-reserved] .site-footer__media-frame {
  --placement-width: 728px;
  --placement-ratio: 728 / 90;
}

.page-top-media.is-pending {
  visibility: hidden;
}

.site-footer__media-label {
  color: #747c84;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer__media-frame {
  width: min(var(--placement-width, 300px), 100%);
  height: auto;
  aspect-ratio: var(--placement-ratio, 728 / 90);
  overflow: hidden;
  background: #0b0d0f;
}

.site-footer__media-link,
.site-footer__media-embed,
.site-footer__media-asset {
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer__media-embed {
  border: 0;
}

.site-footer__media-asset {
  object-fit: contain;
}

.site-footer__media-link--native {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: #f6f7f8;
  background: #14181c;
  text-decoration: none;
}

.site-footer__media-frame.is-wide .site-footer__media-link--native {
  grid-template: 1fr / minmax(0, 42%) minmax(0, 1fr);
}

.site-footer__media-native-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.site-footer__media-native-copy {
  display: grid;
  gap: 2px;
  padding: 9px 11px 10px;
  line-height: 1.2;
}

.site-footer__media-native-copy strong,
.site-footer__media-native-copy span,
.site-footer__media-native-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer__media-native-copy strong {
  font-size: 0.9rem;
}

.site-footer__media-native-copy span,
.site-footer__media-native-copy small {
  color: #aab1b8;
  font-size: 0.72rem;
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
  color: var(--text);
}

.legal-page__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page a {
  color: var(--accent);
  font-weight: 700;
}

.directory-page {
  padding: 24px clamp(16px, 3vw, 38px) 54px;
  max-width: 100vw;
  overflow-x: hidden;
}

.profile-hero {
  position: relative;
  min-height: 270px;
  margin: -24px calc(0px - clamp(16px, 3vw, 38px)) 20px;
  overflow: hidden;
  border-bottom: 1px solid #2b3239;
  background: #111417;
}

.profile-hero__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.profile-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 8, 0.76);
}

.profile-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  min-height: 270px;
  padding: 42px clamp(18px, 3vw, 42px) 28px;
}

.profile-hero__avatar {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  object-fit: cover;
  background: #20252a;
}

.profile-hero__avatar--fallback {
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 3rem;
  font-weight: 900;
}

.profile-hero__copy {
  max-width: 860px;
  min-width: 0;
}

.profile-hero__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-hero h1 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.profile-hero p {
  max-width: 760px;
  margin: 0;
  color: #c1c8ce;
  font-size: 0.98rem;
  line-height: 1.55;
}

.profile-hero__stats {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  color: #9fa9b2;
  font-size: 0.82rem;
}

.profile-hero__stats strong {
  color: #fff;
}

.profile-hero--category .profile-hero__content {
  align-items: flex-end;
}

.profile-hero--plain,
.profile-hero--plain .profile-hero__content {
  min-height: 210px;
}

.profile-hero--plain .profile-hero__content {
  padding-top: 28px;
}

.directory-title {
  margin-bottom: 22px;
}

.directory-heading {
  margin-top: 8px;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.category-card {
  position: relative;
  display: block;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid #171c21;
  border-radius: var(--radius);
  background: #121416;
}

.category-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 180ms ease;
}

.category-card:hover img {
  transform: scale(1.035);
}

.category-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.category-card__copy {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.category-card__copy strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.08;
}

.category-card__copy small {
  color: #c3ccd6;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #232a31;
  border-radius: var(--radius);
  background: #101214;
}

.category-list-item:hover {
  border-color: rgba(224, 183, 100, 0.38);
  background: #171b20;
}

.category-list-item strong {
  color: #eef1f4;
  font-size: 0.92rem;
}

.category-list-item span {
  color: #77818c;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.creator-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.creator-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 116px;
  padding: 11px;
  border: 1px solid #252c33;
  border-radius: var(--radius);
  background: #111417;
}

.creator-card:hover,
.creator-list-item:hover {
  border-color: rgba(224, 183, 100, 0.42);
  background: #171b20;
}

.creator-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-card__copy {
  min-width: 0;
}

.creator-card__copy strong,
.creator-card__copy small {
  display: block;
}

.creator-card__copy strong {
  overflow: hidden;
  color: #f2f4f6;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-card__copy small {
  margin-top: 6px;
  color: #8f9aa4;
  font-size: 0.76rem;
  line-height: 1.35;
}

.creator-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.creator-list-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 9px;
  border: 1px solid #232a31;
  border-radius: var(--radius);
  background: #101214;
}

.creator-list-item img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.creator-list-item strong,
.creator-list-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-list-item strong {
  color: #eef1f4;
  font-size: 0.9rem;
}

.creator-list-item small {
  margin-top: 3px;
  color: #77818c;
  font-size: 0.75rem;
  font-weight: 800;
}

@media (max-width: 1440px) {
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto minmax(220px, 1fr);
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .browse-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  :root {
    --sidebar: 210px;
  }

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

  .watch-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "copy";
  }

  .category-card-grid,
  .category-list-grid,
  .creator-card-grid,
  .creator-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    min-height: 52px;
    padding: 6px 52px;
    max-width: 100vw;
    overflow: visible;
  }

  .site-support-notice__inner {
    gap: 10px;
    min-height: 56px;
    padding: 9px 12px;
  }

  .site-support-notice__copy strong {
    font-size: 0.84rem;
  }

  .site-support-notice__copy span {
    font-size: 0.75rem;
  }

  .mobile-menu-toggle,
  .mobile-search-toggle {
    position: relative;
    z-index: 3;
    display: inline-grid;
    width: 36px;
    height: 36px;
    min-height: 36px;
    place-items: center;
    align-self: center;
    border: 1px solid #3a4652;
    border-radius: 999px;
    background: #15191e;
    color: #eef1f4;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: 8px;
    left: 12px;
    padding: 0;
  }

  .mobile-search-toggle {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 0;
  }

  .mobile-icon {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
  }

  .mobile-icon--close {
    display: none;
  }

  .site-header.is-menu-open .mobile-menu-toggle .mobile-icon--menu,
  .site-header.is-search-open .mobile-search-toggle .mobile-icon--search {
    display: none;
  }

  .site-header.is-menu-open .mobile-menu-toggle .mobile-icon--close,
  .site-header.is-search-open .mobile-search-toggle .mobile-icon--close {
    display: block;
  }

  .site-header > .brand {
    align-items: center;
    max-width: 100%;
    text-align: center;
  }

  .site-header > .brand .brand__wordmark {
    font-size: clamp(1.16rem, 5.4vw, 1.48rem);
  }

  .site-header > .brand .brand__tagline {
    display: none;
  }

  .site-search {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 70;
    display: flex;
    width: 100%;
    max-width: none;
    padding: 10px 12px 12px;
    border-bottom: 1px solid #252b31;
    background: rgba(8, 9, 10, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 140ms ease, transform 140ms ease;
  }

  .site-header.is-search-open .site-search {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-search input {
    height: 42px;
    min-height: 42px;
  }

  .site-search button {
    min-height: 42px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 65;
    display: none;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100vh - 58px);
    padding: 12px;
    overflow-y: auto;
    border-bottom: 1px solid #252b31;
    background: #08090a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
  }

  .site-nav > a,
  .nav-menu__trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #20272e;
    background: #111418;
  }

  .site-nav .partner-link {
    color: var(--accent-strong);
  }

  .browse-layout,
  .watch-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .browse-rail {
    display: none;
  }

  .player-shell.has-started {
    aspect-ratio: auto;
  }

  .player-shell.has-started > video:not([hidden]) {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .playback-gate__content {
    gap: 6px;
    padding: 10px 14px;
  }

  .playback-gate__brand {
    font-size: 0.65rem;
  }

  .playback-gate h2 {
    font-size: 1.05rem;
  }

  .playback-gate p {
    max-width: 360px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .playback-gate button {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .native-player-controls {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 9px 10px;
    border-width: 1px 0 0;
    border-color: #252b31;
    border-radius: 0;
    background: #0c0e10;
    backdrop-filter: none;
  }

  .native-player-controls:not(.has-started) {
    display: none;
  }

  .native-player-controls label {
    min-width: 0;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.76rem;
  }

  .native-player-controls select {
    width: 88px;
    max-width: 58%;
    min-height: 36px;
    padding-right: 24px;
    padding-left: 8px;
    font-size: 0.82rem;
  }

  .browse-main {
    order: 1;
    max-width: 100vw;
    margin-right: auto;
    margin-left: auto;
  }

  .primary-rail,
  .filter-strip,
  .tag-cloud {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .browse-main,
  .watch-layout,
  .admin-grid {
    padding: 18px 14px 34px;
  }

  .profile-hero {
    margin: -18px -14px 18px;
  }

  .related-section {
    padding: 0 14px 38px;
  }

  .page-title {
    align-items: start;
    max-width: 100%;
    overflow: hidden;
  }

  .page-title p,
  .page-title h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .directory-page {
    padding: 18px 14px 38px;
  }

  .category-card-grid,
  .category-list-grid,
  .creator-card-grid,
  .creator-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .browse-main,
  .page-title,
  .section-heading,
  .video-grid,
  .video-card,
  .video-card__thumb {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .browse-outstream {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .browse-main {
    justify-self: center;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px 12px;
  }

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

  .section-heading {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: visible;
  }

  .sort-tabs {
    display: none;
  }

  .mobile-sort-menu {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }

  .section-heading > span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .mobile-sort-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid #242b33;
    border-radius: 999px;
    background: #111418;
    color: #aeb8c2;
    font-size: 0.86rem;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
  }

  .mobile-sort-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-sort-menu summary::after {
    width: 0;
    height: 0;
    margin-left: auto;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    content: "";
    opacity: 0.8;
  }

  .mobile-sort-menu[open] summary {
    border-color: rgba(224, 183, 100, 0.44);
    color: #fff;
  }

  .mobile-sort-menu[open] summary::after {
    transform: rotate(180deg);
  }

  .mobile-sort-menu div {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 25;
    display: grid;
    width: min(230px, calc(100vw - 28px));
    padding: 6px;
    border: 1px solid #27313a;
    border-radius: var(--radius);
    background: #0d1013;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  }

  .mobile-sort-menu a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border-radius: var(--radius);
    color: #aeb8c2;
    font-size: 0.88rem;
    font-weight: 800;
  }

  .mobile-sort-menu a:hover,
  .mobile-sort-menu a.is-active {
    background: #171c21;
    color: #fff;
  }

  .quick-category-strip {
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 12px;
  }

  .category-card-grid,
  .category-list-grid,
  .creator-card-grid,
  .creator-list-grid,
  .category-card,
  .category-list-item,
  .creator-card,
  .creator-list-item {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .category-card-grid,
  .category-list-grid,
  .creator-card-grid,
  .creator-list-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    min-height: 0;
  }

  .profile-hero__content {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 30px 16px 22px;
  }

  .profile-hero__avatar {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }

  .profile-hero h1 {
    font-size: 1.75rem;
  }

  .site-search input,
  .site-search button {
    min-height: 40px;
  }

  .site-search input {
    border-radius: 999px 0 0 999px;
  }

  .site-search button {
    flex-basis: 82px;
    width: 82px;
    border-radius: 0 999px 999px 0;
  }
}

@media (max-width: 460px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.site-nav {
  overflow: visible;
}

.nav-menu {
  position: relative;
  display: inline-flex;
}

.nav-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 14px;
  content: "";
}

.nav-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-menu__trigger::after {
  width: 0;
  height: 0;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
  opacity: 0.78;
}

.nav-menu:hover .nav-menu__trigger,
.nav-menu.is-open .nav-menu__trigger {
  background: var(--panel-soft);
  color: var(--text);
}

.nav-menu__panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  display: grid;
  gap: 6px;
  min-width: 240px;
  max-width: min(760px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 92px));
  padding: 12px;
  overflow-y: auto;
  border: 1px solid #2b323a;
  border-radius: var(--radius);
  background: #101214;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav-menu:first-of-type .nav-menu__panel {
  left: 0;
  right: auto;
}

.nav-menu.is-open .nav-menu__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu__panel--compact {
  grid-template-columns: 1fr;
  width: 280px;
}

.nav-menu__panel--wide {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  width: min(620px, calc(100vw - 28px));
}

.nav-menu__panel--wide .nav-menu__featured {
  grid-column: 1 / -1;
  min-height: 52px;
  border: 1px solid rgba(224, 183, 100, 0.26);
  background: #171512;
}

.nav-menu__panel a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #c4ccd4;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-menu__panel a:hover,
.nav-menu__panel a:focus {
  background: #1b2025;
  color: #fff;
}

.nav-menu__panel a span {
  margin-top: 3px;
  color: #77818c;
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 920px) {
  .site-nav {
    flex-wrap: nowrap;
    max-height: calc(100vh - 58px);
    max-height: calc(100dvh - 58px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .nav-menu__panel {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    display: none;
    width: auto;
    max-width: none;
    max-height: min(420px, 58vh);
    max-height: min(420px, 58dvh);
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-color: #20272e;
    background: #0f1215;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-menu.is-open .nav-menu__panel {
    display: grid;
  }

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

  .page-top-media {
    padding: 10px 12px 12px;
  }

  .page-top-media[data-content-reserved] .site-footer__media-frame {
    --placement-width: 300px;
    --placement-ratio: 300 / 100;
  }
}

@media (max-width: 520px) {
  .nav-menu__panel--wide,
  .nav-menu__panel--compact {
    grid-template-columns: 1fr;
  }
}

.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.brand__mark,
.brand__text {
  display: none;
}

.brand__wordmark {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand__wordmark-main {
  color: #f4f6f8;
  -webkit-text-fill-color: #f4f6f8;
}

.brand__wordmark-accent {
  display: inline-flex;
  align-items: center;
  min-height: 1.04em;
  margin-left: 2px;
  padding: 0 6px 1px;
  border: 1px solid var(--brand-accent, #d1a044);
  border-radius: 3px;
  background-color: var(--brand-accent, #d1a044) !important;
  background-image: none !important;
  color: #0b0d0f !important;
  font-weight: 900;
  line-height: 0.98;
  -webkit-text-fill-color: #0b0d0f;
  box-shadow: 0 1px 0 #76541e;
  forced-color-adjust: none;
}

.brand__tagline {
  display: block;
  margin-left: 2px;
  margin-top: -3px;
  color: #858f99;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .brand {
    gap: 3px;
  }

  .brand__wordmark {
    font-size: 1.32rem;
  }

  .brand__tagline {
    margin-left: 0;
    font-size: 0.62rem;
  }
}

.archive-empty { margin: 20px 0 50px; padding: clamp(30px, 6vw, 72px) 24px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, var(--panel), var(--bg)); }
.archive-empty__mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 28px; }
.archive-empty h2 { margin: 22px 0 12px; font-size: clamp(23px, 3vw, 32px); }
.archive-empty p { max-width: 480px; margin: 0 auto; color: var(--muted); line-height: 1.7; }
.archive-empty a { display: inline-block; margin-top: 18px; color: var(--accent); }
