/* Visual refresh: presentation only. Keep player, ASS and media controls intact. */
:root {
  --bg: #0b0e15;
  --surface: #141924;
  --surface-2: #1c2230;
  --surface-3: #272f40;
  --line: #30394b;
  --text: #edf0f7;
  --muted: #a6afbf;
  --faint: #8590a3;
  --red: #c8445b;
  --red-dark: #b2384d;
  --vr-accent: #f09aae;
  --vr-border: #2a3243;
  --vr-radius: 16px;
  --vr-control: 42px;
  --vr-shadow: 0 8px 24px #02040a24;
  --vr-focus: 0 0 0 3px #ee8da72e;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #994359; color: #fff; }
.muted, .page-loading { color: var(--muted); }
.age-line { color: #909bad; height: 28px; letter-spacing: .05em; }
.age-line span { background: #6d3144; border-radius: 4px; }

/* Navigation has its own surface; all controls remain available on touch. */
.topbar {
  height: 78px;
  gap: 28px;
  background: #10151ff5;
  border-bottom-color: var(--vr-border);
  box-shadow: 0 4px 18px #03050b26;
  backdrop-filter: none;
}
.brand { gap: 5px; }
.brand b { width: 30px; height: 30px; border-radius: 9px; }
.brand span { letter-spacing: .035em; }
.brand small { color: var(--vr-accent); }
.category-nav { gap: 5px; min-width: 0; padding: 4px; }
.category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--vr-control);
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b2bbcb;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.category-nav a.active {
  color: #ffe1e9;
  background: #c8445b1b;
  border-color: #754052;
}
.top-actions { gap: 12px; }
.icon-button {
  width: var(--vr-control);
  height: var(--vr-control);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b8c2d2;
}
.account { gap: 8px; font-size: 12px; }
.account-login, .account-exit, .account-join, .account-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--vr-control);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.4;
}
.account-login, .account-exit, .account-menu summary { background: #192130; }
.account-join { border-color: #d9667c; color: #fff; }
.account-menu summary { display: block; max-width: min(220px, 36vw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 24px; }
.account-menu summary::marker, .account-menu summary::-webkit-details-marker { display: none; }
.account-menu nav {
  top: calc(100% + 12px);
  min-width: 210px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  gap: 3px;
  border-radius: 14px;
  border-color: #3b465b;
  background: #19202d;
  box-shadow: 0 18px 50px #02040a99;
}
.account-menu nav a, .account-menu nav button {
  min-height: var(--vr-control);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.55;
}

/* Shared actions. No generic button selector: transport controls stay unchanged. */
.button, .row-actions > button, .view-options > a,
.pager > a, .pager > span[aria-disabled], .pager > button,
.filter-clear, .subscribe, .engagement-button, .watch-tools .engagement-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--vr-control);
  height: auto;
  padding: 9px 16px;
  border: 1px solid #3a455b;
  border-radius: 10px;
  background: #202838;
  color: #e3e8f2;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 1px #0002;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.button-primary, .pager > a.active {
  background: var(--red);
  color: #fff;
  border-color: #d96279;
  box-shadow: 0 4px 12px #a12d452b, inset 0 1px #ffffff10;
}
.button-quiet { background: #1b2232d9; border-color: #465268; }
.button-danger { background: #532834; border-color: #8a4054; color: #ffd4de; }
.watch-tools .engagement-button { font-size: 12px; padding: 9px 12px; }
.engagement-button span { font-size: 12px; }
.engagement-button.active, .creator-row .engagement-button { color: #ffd4df; border-color: #965168; background: #432738; }
.button:active, .row-actions > button:active, .view-options > a:active,
.pager > a:active, .filter-clear:active, .engagement-button:active { box-shadow: inset 0 2px 4px #0004; }
.button:disabled, .platform-page button:disabled, .row-actions > button:disabled,
.pager > span[aria-disabled], .pager > button:disabled {
  opacity: .52;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button:focus-visible, .row-actions > button:focus-visible,
.category-nav a:focus-visible, .account-menu summary:focus-visible,
.account-menu nav :is(a, button):focus-visible, .account-login:focus-visible,
.account-join:focus-visible, .account-exit:focus-visible, .icon-button:focus-visible,
.pager > a:focus-visible, .filter-clear:focus-visible, .tag-chip:focus-visible,
.view-options > a:focus-visible, .library-tabs a:focus-visible,
.poster-card:focus-visible, .poster-card > a:focus-visible, .video-card > a:focus-visible,
.list-card a:focus-visible, .panel-card:focus-visible, .engagement-button:focus-visible,
.collection-episode:focus-visible, .media-episode:focus-visible,
.platform-page summary:focus-visible, .dialog-close:focus-visible,
.modal-tabs button:focus-visible, .mobile-nav :is(a, button):focus-visible {
  outline: 2px solid var(--vr-accent);
  outline-offset: 3px;
}

/* Page rhythm and section hierarchy. */
.content-band, .feature-band { padding-top: 48px; padding-bottom: 48px; }
.dark-band { background: #10151e; border-block: 1px solid #202838; }
.platform-page, .search-page, .library-page, .submit-page, .watch-page { padding-top: 42px; }
.platform-heading, .search-heading, .library-heading, .submit-heading { margin-bottom: 28px; }
.platform-heading h1, .search-heading h1, .library-heading h1, .submit-heading h1 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.platform-heading p, .search-heading p, .library-heading p, .submit-heading p { color: var(--muted); line-height: 1.8; }
.section-title { align-items: center; gap: 16px; margin-bottom: 22px; }
.section-title h2 { font-size: 25px; line-height: 1.35; letter-spacing: -.025em; }
.kicker, .hero-label { color: var(--vr-accent); font-size: 10px; letter-spacing: .18em; }
.see-all { min-height: var(--vr-control); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #bfc9d9; }
.see-all b { color: var(--vr-accent); }
.feature-band { border-color: var(--vr-border); }
.feature-band h2 { line-height: 1.3; }
.feature-stats b { color: var(--vr-accent); }
.feature-stats span, footer { color: var(--faint); }

.hero { background: #10141e; min-height: 570px; }
.hero-image {
  background-image: linear-gradient(90deg, #0b0e15f2 0%, #0b0e15cf 35%, #0b0e1548 75%), linear-gradient(0deg, #0b0e15f5 0%, transparent 52%), var(--hero);
  filter: saturate(.9);
}
.hero-image:after { background: linear-gradient(120deg, transparent 50%, #9b3d5815); }
.hero-content { max-width: 680px; padding-top: 104px; padding-bottom: 84px; }
.hero h1 {
  display: block;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.16;
  margin: 18px 0 14px;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: anywhere;
}
.hero-sub { color: #c3ccdc; font-size: 14px; line-height: 1.7; white-space: normal; }
.hero-meta { flex-wrap: wrap; color: #b3bdd0; }
.hero-description { color: #b9c3d4; line-height: 1.85; }
.hero-actions { gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-tags { gap: 7px; }

/* Keep the original full-width feature image and text overlay. */
.hero.home-carousel { min-height: 0; touch-action: pan-y pinch-zoom; }
.home-carousel .hero-slide { position: relative; min-height: 570px; }
.home-carousel .hero-slide[hidden] { display: none; }
.home-carousel .hero-cover { position: absolute; inset: 0; background: #10141e; }
.home-carousel .hero-cover img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: saturate(.9); }
.home-carousel .hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0e15f2 0%, #0b0e15cf 35%, #0b0e1548 75%), linear-gradient(0deg, #0b0e15f5 0%, transparent 52%); pointer-events: none; }
.home-carousel .hero-content { position: relative; max-width: 680px; min-height: 0; padding: 104px 5vw 84px; }
.home-carousel .hero-meta > span { min-width: 0; overflow-wrap: anywhere; }
.home-carousel .hero-controls { position: absolute; z-index: 2; right: 5vw; bottom: 16px; display: flex; align-items: center; gap: 0; }
.home-carousel .hero-pagination { display: flex; gap: 0; }
.home-carousel .hero-controls button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #dce4f0; font: inherit; font-size: 22px; cursor: pointer; }
.home-carousel [data-hero-index]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ffffff66; }
.home-carousel [data-hero-index][aria-current="true"]::before { width: 22px; border-radius: 4px; background: #fff; }
.home-carousel [data-hero-pause] { font-size: 12px; }
.home-carousel .hero-controls button:hover { background: #ffffff0d; }
.home-carousel .hero-controls button:focus-visible { outline: 2px solid var(--vr-accent); outline-offset: 1px; }
.home-carousel .hero-controls button:disabled { cursor: default; opacity: .45; }
.home-carousel .hero-position, .home-carousel .hero-autoplay-hint, .home-carousel .hero-control-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero.hero-empty { padding: 52px 24px; }
.creator-row > .creator-identity { min-width: 0; overflow-wrap: anywhere; }
.creator-row .avatar, .creator-row .creator-subscribe { flex-shrink: 0; }

@media (max-width: 760px) {
  .home-carousel .hero-slide { min-height: max(560px, 150vw); display: flex; align-items: flex-end; }
  .home-carousel .hero-cover { position: absolute; inset: 0; }
  .home-carousel .hero-cover img { object-fit: contain; object-position: center top; }
  .home-carousel .hero-cover::after { background: linear-gradient(0deg, #0b0e15 0%, #0b0e15e0 23%, #0b0e1594 52%, #0b0e1515 100%); }
  .home-carousel .hero-content { width: 100%; max-width: none; padding: 210px 20px 66px; }
  .home-carousel .hero-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .home-carousel .hero-controls { right: 14px; bottom: 10px; }
}

/* Covers and readable copy occupy separate areas, with no title/tag clipping. */
.poster-grid, .search-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
/* The default homepage has eight portraits; search/configured grids are separate. */
.content-band > .poster-grid:not(.search-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.poster-card, .video-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--vr-border);
  border-radius: var(--vr-radius);
  box-shadow: var(--vr-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.poster-card { display: flex; flex-direction: column; }
.poster-card > a { display: block; min-width: 0; border-radius: var(--vr-radius); }
.poster-frame { display: flex; flex-direction: column; aspect-ratio: auto; border-radius: 15px 15px 0 0; background: transparent; }
.poster-frame img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; transition: filter 180ms ease; }
.poster-card:hover img { transform: none; filter: none; }
.poster-shade { display: none; }
.poster-year { top: 10px; right: 10px; border: 1px solid #ffffff26; border-radius: 7px; background: #111723e8; font-size: 10px; padding: 3px 7px; }
.poster-caption { position: static; padding: 15px 14px 8px; }
.poster-caption strong { display: block; font-size: 14px; line-height: 1.6; font-weight: 650; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; }
.poster-caption small { color: #aab5c7; font-size: 11px; line-height: 1.6; margin-top: 6px; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.poster-info, .search-grid .poster-info { display: flex; flex-direction: column; align-items: stretch; gap: 9px; padding: 4px 14px 16px; color: #a2adc0; font-size: 11px; }
.poster-info > span:last-child { flex: auto; }
.full-tags, .poster-info span:last-child { gap: 5px; }
.tag-chip, .hero-tags .tag-chip, .poster-info .tag-chip, .poster-info span:last-child span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #364359;
  border-radius: 7px;
  background: #202b3c;
  color: #bac9df;
  font-size: 10px;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.hero-tags .tag-chip { background: #17202cd9; border-color: #637086; color: #dce4f0; font-size: 11px; }
.video-row { gap: 22px; }
.video-thumb { border-radius: 15px 15px 0 0; }
.video-thumb img { display: block; transition: filter 180ms ease; }
.video-card:hover .video-thumb img { transform: none; }
.video-copy { padding: 16px 17px 19px; }
.video-copy strong { font-size: 15px; line-height: 1.6; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.video-copy span, .video-copy small { color: #aab5c7; font-size: 11px; white-space: normal; overflow: visible; overflow-wrap: anywhere; margin-top: 7px; }
.video-copy small { color: #8f9db2; }
.duration { right: 12px; bottom: 10px; border-radius: 6px; padding: 3px 7px; background: #101722e8; font-size: 11px; }
.play-mini { display: grid; place-items: center; left: 12px; bottom: 10px; width: 29px; height: 29px; border: 1px solid #ffffff45; border-radius: 50%; opacity: 1; background: #101722c9; font-size: 10px; }

/* Search filters form one calm panel, wrapping rather than overflowing. */
.page-search { width: min(480px, 100%); height: var(--vr-control); border-color: #414e65; border-radius: 11px; background: #192231; overflow: hidden; }
.page-search input { height: 40px; padding: 0 14px; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.platform-page .page-search input { height: 40px; border: 0; background: transparent; border-radius: 0; padding: 0 14px; }
.page-search button { min-width: var(--vr-control); width: var(--vr-control); height: 40px; padding: 0; background: #263044; color: #f4b5c4; border-left: 1px solid #414e65; }
.page-search:focus-within { border-color: #d08198; box-shadow: var(--vr-focus); }
.page-search input:focus-visible { outline: 0; box-shadow: none; }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 22px; margin: 26px 0 24px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius); background: #141b27; overflow: visible; }
.filter-bar label { min-width: 0; gap: 8px; color: #b7c2d3; font-size: 12px; }
.filter-bar select { width: 100%; max-width: none; min-width: 0; }
.filter-clear { grid-column: 1 / -1; justify-self: end; margin-left: 0; color: #d3dded; background: #212b3d; }
.results-head { align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0; color: #abb7ca; font-size: 13px; }
.results-head strong { font-weight: 500; }
.view-options { gap: 3px; padding: 3px; border: 1px solid var(--vr-border); border-radius: 12px; background: #111722; }
.view-options > a { min-height: var(--vr-control); padding: 9px 14px; background: transparent; border-color: transparent; box-shadow: none; font-size: 12px; border-radius: 8px; }
.view-options > a.active { background: #2c3549; border-color: #536077; color: #fff; }
.pager { gap: 8px; margin-top: 34px; }
.pager > a, .pager > span[aria-disabled], .pager > button { min-width: var(--vr-control); height: var(--vr-control); padding: 9px 12px; font-size: 12px; }
.pager .page-count { color: #a7b3c7; font-size: 12px; padding: 8px; }

/* Collection / playlist rows keep the complete episode label and metadata. */
.title-list { gap: 16px; }
.list-card { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 22px; padding: 20px; border-color: var(--vr-border); border-radius: var(--vr-radius); box-shadow: var(--vr-shadow); }
.list-cover { display: block; border-radius: 10px; overflow: hidden; }
.list-cover img, .unavailable-cover { width: 112px; border-radius: 10px; }
.list-copy h2 { margin: 7px 0 9px; font-size: 19px; line-height: 1.6; font-weight: 650; }
.list-copy p { font-size: 12px; line-height: 1.75; color: #b1bdd0; margin: 9px 0; }
.episode-label { display: inline-block; color: #f1abc0; font-size: 11px; font-weight: 600; line-height: 1.5; padding: 3px 8px; border: 1px solid #654153; background: #302232; border-radius: 6px; overflow-wrap: anywhere; }
.row-actions { gap: 8px; }
.row-actions > button { padding-inline: 12px; font-size: 12px; }
.list-card .row-actions { align-self: center; justify-content: flex-end; max-width: 250px; }
.list-copy .full-tags { margin-top: 12px; }
.playlist-grid { gap: 20px; }
.panel-card { border-color: var(--vr-border); border-radius: var(--vr-radius); padding: 24px; box-shadow: var(--vr-shadow); }
.panel-card h2 { line-height: 1.5; font-size: 19px; overflow-wrap: anywhere; }
.panel-card p { line-height: 1.8; }
.playlist-grid .panel-card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.playlist-grid .panel-card > .toolbar { margin-top: auto; padding-top: 14px; }
.empty-state { min-height: 230px; padding: 30px 20px; border-color: #414d63; border-radius: var(--vr-radius); background: #141b2666; text-align: center; }
.empty-state strong { font-size: 16px; }
.empty-state p { color: #a6b3c7; line-height: 1.8; }
.unavailable-item { border-style: dashed; }

/* Forms: consistent 42px input / button baselines, explicit grouped sections. */
.platform-page label, .platform-dialog label, .submission-grid label, dialog label { color: #b8c3d5; font-size: 12px; line-height: 1.5; gap: 8px; }
.platform-page input:not([type="checkbox"]):not([type="radio"]),
.platform-page select, .platform-dialog input:not([type="checkbox"]):not([type="radio"]),
.platform-dialog select, .submission-grid input:not([type="checkbox"]):not([type="radio"]),
.submission-grid select, dialog input:not([type="checkbox"]):not([type="radio"]) {
  min-height: var(--vr-control);
  height: var(--vr-control);
  padding: 9px 12px;
  border: 1px solid #414e65;
  border-radius: 9px;
  background: #111824;
  color: var(--text);
  line-height: 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.platform-page select, .platform-dialog select, .submission-grid select { padding-right: 30px; }
.platform-page .page-search input[name] { min-height: 40px; height: 40px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; }
.platform-page textarea, .platform-dialog textarea, .submission-grid textarea, .comment-section textarea {
  min-height: 120px;
  padding: 12px;
  border: 1px solid #414e65;
  border-radius: 10px;
  background: #111824;
  color: var(--text);
  line-height: 1.75;
  resize: vertical;
}
.platform-page :is(input, select, textarea):focus-visible,
.platform-dialog :is(input, select, textarea):focus-visible,
.submission-grid :is(input, select, textarea):focus-visible,
dialog input:focus-visible, .comment-section textarea:focus-visible {
  outline: 2px solid var(--vr-accent);
  outline-offset: 2px;
  border-color: #d08198;
  box-shadow: var(--vr-focus);
}
.platform-page :is(input, textarea)::placeholder, dialog input::placeholder, .comment-section textarea::placeholder { color: #8492a9; opacity: 1; }
.platform-page input:read-only:not([type="checkbox"]), .platform-dialog input:read-only:not([type="checkbox"]) { background: #1b2433; color: #bac4d5; }
.platform-page input:disabled, .platform-page select:disabled { opacity: .6; cursor: not-allowed; }
.platform-page input[type="checkbox"], .platform-dialog input[type="checkbox"], .checkbox-row input {
  width: 18px !important;
  min-width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex: 0 0 auto;
}
.checkbox-row { min-height: var(--vr-control); padding: 7px 0; }
.inline-form { gap: 14px; margin: 24px 0; }
.inline-form > input { min-width: min(240px, 100%); }
.inline-form > label { min-width: 0; }
.submission-form { padding: 28px; border-color: var(--vr-border); border-radius: var(--vr-radius); box-shadow: var(--vr-shadow); }
.submission-grid { gap: 22px 24px; }
.submission-form > .submission-grid { margin-bottom: 24px; }
.platform-page details:not(.account-menu), .platform-dialog details {
  border: 1px solid #354156;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
  background: #101722;
}
.platform-page details > summary, .platform-dialog details > summary { min-height: 26px; color: #d3ddec; line-height: 1.8; font-size: 13px; }
.platform-page details > summary::marker, .platform-dialog details > summary::marker { color: var(--vr-accent); }
.platform-page details[open] > summary { padding-bottom: 14px; border-bottom: 1px solid #2a3548; }
.platform-page details .submission-grid { margin-top: 20px; }
.upload-template { padding: 22px; border-color: #57627a; border-radius: 12px; background: #172030; gap: 16px; }
.upload-template input[type="file"] { min-height: var(--vr-control); height: auto; max-width: 100%; padding: 6px; }
.upload-template input::file-selector-button { min-height: 28px; padding: 3px 10px; margin-right: 10px; border: 1px solid #526078; border-radius: 6px; background: #2b364a; color: #e4eaf5; }
.preview-poster { border-radius: 10px; border: 1px solid #4a5263; }
.form-error { color: #ffafbf; font-size: 12px; line-height: 1.7; }
.submit-success { color: #94dabf; font-size: 12px; }
.notice { padding: 16px 18px; border-color: #74613b; border-radius: 11px; background: #282619; color: #e6d5a9; line-height: 1.8; }
.text-link { color: var(--vr-accent); text-underline-offset: 4px; }

/* Submission management keeps its select, with the action aligned to its bottom. */
.submission-toolbar { align-items: flex-end; gap: 18px; margin: 0 0 28px; padding: 20px; background: #141b27; border: 1px solid var(--vr-border); border-radius: var(--vr-radius); }
.submission-toolbar > .button { height: var(--vr-control); align-self: flex-end; }
.submission-status-filter { width: min(240px, 100%); min-width: 180px; }
.submission-status-filter select { height: var(--vr-control); }
.submission-row { display: block; margin: 0; padding: 22px 24px; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.submission-row-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; }
.submission-row-head h2 { min-width: 0; flex: 1 1 220px; margin: 0; font-size: 18px; font-weight: 600; line-height: 1.6; }
.submission-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; margin-top: 12px; color: #a5b2c7; font-size: 12px; }
.submission-row-meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 3px -6px; background: #69768b; border-radius: 50%; }
.submission-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; min-height: 29px; padding: 4px 9px; border-radius: 7px; line-height: 19px; font-size: 11px; font-weight: 600; background: #263044; border-color: #4a576f; color: #c3cee0; }
.submission-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.submission-status[data-status="draft"] { color: #bac7dd; background: #242f43; border-color: #4a5973; }
.submission-status[data-status="submitted"] { color: #b1d1fa; background: #203650; border-color: #416994; }
.submission-status[data-status="approved"] { color: #a2dfc5; background: #1d382f; border-color: #3b715d; }
.submission-status[data-status="rejected"], .submission-status[data-status="changes_requested"] { color: #f2c58f; background: #3d2e24; border-color: #866140; }
.submission-review-note { padding: 12px 14px; margin: 16px 0 0; border-left: 2px solid #97754b; border-radius: 0 8px 8px 0; background: #242330; color: #c8c3cc; font-size: 12px; }

/* Personal and administration navigation, tables and permissions. */
.library-tabs { gap: 5px; flex-wrap: wrap; margin-bottom: 24px; padding: 5px; border: 1px solid var(--vr-border); border-radius: 12px; background: #111722; width: fit-content; max-width: 100%; }
.library-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--vr-control); padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; color: #aebbd0; font-size: 13px; line-height: 22px; }
.library-tabs a.active { color: #fff; background: #2b354a; border-color: #4c5a72; }
.admin-tabs { margin-bottom: 28px; }
.row-heading { gap: 16px; }
.row-heading h2 { line-height: 1.6; }
.status-chip:not(.submission-status) { display: inline-block; border-color: #465269; border-radius: 7px; color: #b9c6da; background: #202a3b; line-height: 1.6; overflow-wrap: anywhere; }
.user-list { gap: 14px; }
.user-list .panel-card { margin: 0; }
.permission-grid { gap: 10px 20px; padding: 8px 0; }
.permission-grid label { min-width: 0; overflow-wrap: anywhere; }
.table-scroll { margin: 18px 0; border: 1px solid #39465c; border-radius: 10px; }
.table-scroll table { font-size: 12px; }
.table-scroll th { background: #222d40; color: #dce4f1; font-weight: 600; }
.table-scroll th, .table-scroll td { padding: 12px 14px; border-color: #303d52; line-height: 1.75; }
.table-scroll tr:nth-child(even) td { background: #1a2433; }

/* Watch-page surroundings only. Plyr buttons, video sizing and ASS are untouched. */
.watch-crumb { flex-wrap: wrap; color: #a3afc3; line-height: 1.7; }
.watch-layout { gap: 28px; }
.watch-title { gap: 18px; margin-top: 26px; }
.watch-title > div { min-width: 0; }
.watch-title h1 { font-size: clamp(22px, 2.4vw, 29px); line-height: 1.5; letter-spacing: -.02em; overflow-wrap: anywhere; }
.watch-title p { color: #a0aec4; font-size: 12px; line-height: 1.8; white-space: normal; overflow: visible; max-width: none; overflow-wrap: anywhere; }
.watch-tools { gap: 8px; }
.creator-row { padding: 20px 0; margin-top: 22px; border-color: #303b50; flex-wrap: wrap; }
.avatar { width: 38px; height: 38px; background: #64334a; }
.creator-row > .creator-identity { min-width: 0; flex: 1; }
.creator-row > .creator-identity strong { overflow-wrap: anywhere; }
.creator-row > .creator-identity span { color: #9facbf; font-size: 11px; }
.description { padding: 22px; margin-top: 22px; border-color: var(--vr-border); border-radius: 14px; }
.description p { color: #bdc8d9; line-height: 1.85; }
.metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; border-color: #334055; }
.metadata-item { grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-color: #2d394d; font-size: 12px; }
.metadata-item dt { color: #a2b0c5; }
.metadata-item dd { color: #d0daea; }
.metadata-item a { color: var(--vr-accent); }
.watch-aside { padding: 20px; border: 1px solid var(--vr-border); border-radius: 14px; background: #121a26; align-self: start; }
.aside-head { align-items: flex-start; gap: 10px; padding-bottom: 15px; border-color: #344056; }
.aside-head h2 { font-size: 16px; line-height: 1.6; }
.collection-name { display: block; color: #dce5f3; font-size: 14px; line-height: 1.7; margin-top: 12px; }
.episode-list { gap: 9px; padding: 16px 0 24px; }
.media-episode, .collection-episode { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 12px; padding: 10px; border: 1px solid #303d53; border-radius: 10px; background: #182233; }
.media-episode img, .collection-episode img { display: block; border-radius: 6px; }
.media-episode b, .collection-episode b { color: #edafc1; font-size: 11px; line-height: 1.6; }
.media-episode strong, .collection-episode strong { color: #cdd8e9; font-size: 12px; line-height: 1.65; }
.collection-episode.selected, #current-media-slot .media-episode { border-color: #ad6c82; background: #352636; }
.sequence-actions { gap: 10px; padding: 16px 0; }
.sequence-actions .checkbox-row { margin-left: auto; }
.related-head { margin-top: 12px; }
.related-list { gap: 15px; padding-top: 17px; }
.related-list a { gap: 12px; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.related-list img { border-radius: 7px; }
.comment-section { margin-top: 40px; }
.comment-section form { align-items: flex-start; gap: 12px; }
.comment-section textarea { min-height: 88px; }
.comment { padding: 18px 0; border-color: #2d394d; }
.comment strong { font-size: 13px; }
.comment time { color: #98a6bc; font-size: 11px; }
.comment p { color: #c0ccdf; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }

/* Dialogs share the same fields and clear keyboard treatment as the page. */
dialog { border-color: #48556c; border-radius: 20px; padding: 30px; background: #171f2d; box-shadow: 0 25px 85px #02040ac9; max-height: calc(100dvh - 36px); overflow: auto; }
dialog::backdrop { background: #02050cc9; backdrop-filter: none; }
dialog h3 { font-size: 26px; line-height: 1.4; }
.dialog-close { top: 10px; right: 10px; width: var(--vr-control); height: var(--vr-control); border: 1px solid #39465b; border-radius: 10px; background: #202b3c; color: #c8d3e5; line-height: 1; }
.modal-tabs { gap: 20px; margin: -2px 0 24px; padding: 0 42px 0 0; border-color: #39455a; }
.modal-tabs button { min-height: var(--vr-control); color: #b0bdd2; font-size: 13px; padding: 9px 0; }
.modal-tabs button.active { color: #ffd4df; border-color: #d9819a; }
.platform-dialog { width: min(720px, calc(100% - 32px)); padding: 30px; }
.platform-dialog h2 { margin: 0 0 20px; padding-right: 34px; font-size: 23px; line-height: 1.5; }
.platform-dialog form > .button { margin-top: 18px; }

@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled), .row-actions > button:hover:not(:disabled),
  .filter-clear:hover, .engagement-button:hover { background: #2c384e; border-color: #64738e; color: #fff; transform: none; }
  .button-primary:hover:not(:disabled), .pager > a.active:hover { background: #b53950; border-color: #ec90a4; }
  .button-danger:hover:not(:disabled) { background: #6b3041; border-color: #bb6a80; }
  .category-nav a:hover, .library-tabs a:hover, .account-menu nav a:hover,
  .account-menu nav button:hover, .icon-button:hover, .account-login:hover,
  .account-menu summary:hover { background: #273247; color: #fff; border-color: #4b5972; }
  .poster-card:hover, .video-card:hover { transform: translateY(-3px); border-color: #63728a; box-shadow: 0 12px 26px #02040a55; }
  .poster-card:hover img, .video-card:hover .video-thumb img { filter: brightness(1.06); }
  .submission-row:hover { border-color: #64718b; background: #1a2332; box-shadow: 0 8px 24px #0003; }
  .list-copy h2 a:hover, .text-link:hover, .see-all:hover { color: #ffc3d3; text-decoration: underline; text-underline-offset: 4px; }
  .tag-chip:hover { color: #ffe0e9; border-color: #b37288; background: #462b3f; }
  .pager > a:hover, .view-options > a:hover { background: #33415b; border-color: #64738e; }
  .media-episode:hover, .collection-episode:hover { background: #2b3044; border-color: #8b657b; }
  .dialog-close:hover { background: #343c50; color: #fff; }
}

@media (max-width: 1279px) {
  .topbar { gap: 18px; }
  .category-nav a { padding-inline: 10px; }
  .poster-grid, .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .list-card { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; }
  .list-cover img, .unavailable-cover { width: 104px; }
  .list-card .row-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
  .watch-aside { padding: 16px; }
}

@media (min-width: 761px) and (max-width: 940px) {
  .topbar { gap: 10px; padding-inline: 3vw; }
  .category-nav { gap: 2px; }
  .category-nav a { padding-inline: 8px; font-size: 12px; }
  .top-actions { gap: 6px; }
  .account-login, .account-join, .account-menu summary { padding-inline: 9px; }
  .poster-grid, .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metadata-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .content-band > .poster-grid:not(.search-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .age-line { height: 24px; padding-inline: 16px; }
  .topbar { height: 110px; min-height: 110px; padding: 0 16px; gap: 0; }
  .brand, .top-actions { height: 60px; }
  .brand b { width: 27px; height: 27px; border-radius: 8px; }
  .top-actions { gap: 4px; }
  .top-actions .icon-button { width: var(--vr-control); height: var(--vr-control); }
  .top-actions:has(.account:not(:empty)) > button.icon-button[data-action="login"] { display: none; }
  .account-menu summary { min-height: var(--vr-control); max-width: 30vw; padding: 8px 10px; font-size: 11px; }
  .account-menu nav { top: 89px; right: 16px; }
  .category-nav { flex-basis: calc(100% + 32px); width: calc(100% + 32px); height: 50px; margin: 0 -16px; padding: 4px 16px; gap: 4px; border-color: var(--vr-border); }
  .category-nav a { padding: 8px 12px; font-size: 12px; }
  .category-nav a:nth-child(n+6) { display: inline-flex; }
  .hero { min-height: 0; }
  .hero-image { background-position: center 22%; background-image: linear-gradient(0deg, #0b0e15 0%, #0b0e15ba 55%, #0b0e1525 100%), var(--hero); }
  .hero-content { position: relative; min-height: 530px; max-width: none; padding: 220px 20px 50px; }
  .hero h1 { font-size: clamp(29px, 7.5vw, 40px); line-height: 1.24; margin: 13px 0 11px; }
  .hero-sub { font-size: 12px; line-height: 1.7; overflow: visible; }
  .hero-meta { font-size: 11px; }
  .hero-description { display: block; font-size: 12px; line-height: 1.85; -webkit-line-clamp: unset; }
  .hero-tags .tag-chip { font-size: 10px; padding: 4px 7px; }
  .hero-actions { gap: 9px; margin-top: 22px; }
  .hero-dots { bottom: 22px; }
  .button { font-size: 12px; padding: 9px 14px; }
  .content-band, .feature-band { padding: 34px 16px; }
  .section-title { margin-bottom: 20px; gap: 12px; }
  .section-title h2 { font-size: 22px; }
  .see-all { font-size: 11px; }
  .platform-page, .search-page, .library-page, .submit-page { padding: 30px 16px 96px; }
  .watch-page { padding-top: 26px; }
  .platform-heading, .search-heading, .library-heading, .submit-heading { margin-bottom: 24px; }
  .platform-heading h1, .search-heading h1, .library-heading h1, .submit-heading h1 { font-size: 29px; }
  .platform-heading p, .search-heading p { font-size: 12px; }
  .poster-grid, .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .poster-card, .video-card { border-radius: 12px; }
  .poster-frame, .video-thumb { border-radius: 11px 11px 0 0; }
  .poster-caption { padding: 12px 10px 6px; }
  .poster-caption strong { font-size: 12px; line-height: 1.65; }
  .poster-caption small { font-size: 10px; margin-top: 5px; }
  .poster-info, .search-grid .poster-info { display: flex; gap: 8px; padding: 3px 10px 12px; font-size: 10px; }
  .poster-info .tag-chip, .poster-info span:last-child span { font-size: 9px; padding: 3px 6px; }
  .poster-year { top: 8px; right: 8px; font-size: 9px; }
  .video-row { gap: 14px; padding: 0 0 7px; scroll-padding-inline: 0; }
  .video-card { flex-basis: 85%; }
  .video-copy { padding: 14px; }
  .video-copy strong { font-size: 14px; }
  .video-copy span, .video-copy small { font-size: 10px; }
  .feature-stats { gap: 14px; }
  .feature-stats b { font-size: 25px; }
  .feature-stats span { font-size: 10px; }
  .page-search { margin-top: 18px; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0; padding: 16px; gap: 14px 12px; }
  .filter-bar label { flex: 1 1 calc(50% - 12px); min-width: 0; font-size: 11px; }
  .filter-bar select, .filter-bar input { font-size: 12px; }
  .filter-clear { width: 100%; margin-top: 3px; }
  .results-head, .platform-page .results-head { margin: 20px 0; font-size: 12px; gap: 12px; }
  .view-options > a { min-height: var(--vr-control); padding-block: 9px; }
  .pager { gap: 6px; margin-top: 28px; }
  .pager > a, .pager > span[aria-disabled], .pager > button { min-width: var(--vr-control); height: var(--vr-control); padding-inline: 9px; }
  .pager .page-count { flex-basis: 100%; text-align: center; padding: 6px; }
  .list-card { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 15px; border-radius: 13px; }
  .list-cover img, .unavailable-cover { width: 80px; border-radius: 7px; }
  .list-copy h2 { margin: 7px 0; font-size: 15px; line-height: 1.65; }
  .list-copy p { font-size: 11px; }
  .episode-label { font-size: 10px; }
  .list-card .row-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 12px; border-top: 1px solid #303b50; }
  .list-copy .tag-chip { font-size: 10px; }
  .panel-card { padding: 19px; border-radius: 13px; }
  .panel-card h2 { font-size: 17px; }
  .playlist-grid, .submission-grid, .permission-grid { grid-template-columns: 1fr; }
  .playlist-grid { gap: 16px; }
  .submission-grid { gap: 20px; }
  .submission-grid .wide { grid-column: auto; }
  .submission-form { padding: 19px 16px; border-radius: 13px; }
  .platform-page details:not(.account-menu), .platform-dialog details { padding: 15px; margin: 20px 0; }
  .inline-form { gap: 12px; }
  .inline-form > input, .inline-form > label { flex: 1 1 100%; width: 100%; }
  .upload-template { padding: 16px; }
  .submission-toolbar { gap: 14px; padding: 16px; }
  .submission-status-filter { flex: 1; min-width: 140px; }
  .submission-row { padding: 18px; }
  .submission-row-head { gap: 10px; }
  .submission-row-head h2 { flex-basis: 170px; font-size: 16px; }
  .submission-row-meta { gap: 7px 14px; font-size: 11px; }
  .submission-review-note { padding: 10px 12px; }
  .library-tabs { gap: 3px; width: 100%; margin-top: 18px; }
  .library-tabs a { padding-inline: 12px; font-size: 12px; }
  .description { padding: 17px; margin-top: 18px; font-size: 12px; }
  .metadata-grid { grid-template-columns: 1fr; }
  .metadata-item { grid-template-columns: 82px minmax(0, 1fr); font-size: 11px; }
  .watch-title { margin-top: 22px; gap: 16px; }
  .watch-title h1 { font-size: 22px; }
  .watch-title p { font-size: 11px; }
  .watch-tools { gap: 7px; }
  .watch-tools .engagement-button { min-height: var(--vr-control); font-size: 11px; padding: 9px 11px; }
  .creator-row { padding: 16px 0; }
  .creator-row > .creator-identity strong { font-size: 12px; }
  .creator-row > .creator-identity span { font-size: 10px; }
  .sequence-actions .checkbox-row { margin-left: 0; flex-basis: 100%; }
  .watch-aside { padding: 18px; margin-top: 30px; border: 1px solid var(--vr-border); border-radius: 13px; }
  .related-list a { grid-template-columns: 64px minmax(0, 1fr); font-size: 12px; }
  .related-list img { width: 64px; }
  .comment-section textarea { font-size: 12px; min-height: 88px; }
  .comment-section form .button { margin-top: 12px; }
  .platform-dialog, dialog { padding: 26px 20px; border-radius: 16px; }
  .platform-dialog h2 { font-size: 21px; }
  .table-scroll th, .table-scroll td { padding: 10px; }
  .mobile-nav { height: calc(64px + env(safe-area-inset-bottom)); background: #111925fa; border-color: #3c485d; box-shadow: 0 -4px 20px #0003; backdrop-filter: none; }
  .mobile-nav a, .mobile-nav button { min-height: 64px; color: #a2aec3; gap: 4px; font-size: 18px; }
  .mobile-nav span { font-size: 10px; }
  .mobile-nav .active { color: #ffbfd0; background: #c8445b12; }
}

@media (max-width: 370px) {
  .top-actions { gap: 2px; }
  .top-actions .icon-button { width: var(--vr-control); }
  .brand span { font-size: 14px; }
  .brand small { font-size: 10px; }
  .account-menu summary { padding-inline: 7px; max-width: 28vw; }
  .hero-content { padding-inline: 16px; }
  .poster-grid, .search-grid { gap: 12px 10px; }
  .poster-caption strong { font-size: 12px; }
  .submission-row-head h2 { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .row-actions > button, .view-options > a, .pager > a,
  .pager > span[aria-disabled], .pager > button,
  .filter-clear, .subscribe, .engagement-button, .category-nav a,
  .poster-card, .poster-frame img, .video-card, .video-thumb img,
  .tag-chip, .submission-row, .platform-page input, .platform-page select,
  .platform-page textarea, .platform-dialog input, .platform-dialog select,
  .platform-dialog textarea, dialog input, .submission-grid input,
  .submission-grid select, .submission-grid textarea {
    /* Scoped priority also beats the normal field's :not() specificity. */
    transition: none !important;
    animation: none !important;
  }
  .poster-card:hover, .video-card:hover, .button-primary:hover { transform: none; }
}
