/* Inter font CSS is loaded via header.js (preload -> stylesheet) to avoid blocking initial layout. */

:root {
  --aethera-bg-canvas: #030705;
  --aethera-bg-surface: #0b1210;
  --aethera-bg-card: #111c18;
  --aethera-border-default: #133428;
  --aethera-text-primary: #ecfdf5;
  --aethera-text-muted: #8ed4b6;
  --aethera-accent-primary: #5ff2b6;
  --aethera-accent-strong: #34d399;
  --aethera-accent-secondary: #2ec9ff;
  --aethera-status-danger: #f43f5e;
  --aethera-status-success: #34d399;
  --bg: #030705;
  --surface: #0b1210;
  --card: #111c18;
  --border: #133428;
  --text: #ecfdf5;
  --muted: #8ed4b6;
  --accent: #5ff2b6;
  --accent-strong: #34d399;
  --accent-blue: #2ec9ff;
  --danger: #f43f5e;
  --success: #34d399;
  --bg: var(--aethera-bg-canvas);
  --surface: var(--aethera-bg-surface);
  --card: var(--aethera-bg-card);
  --border: var(--aethera-border-default);
  --text: var(--aethera-text-primary);
  --muted: var(--aethera-text-muted);
  --accent: var(--aethera-accent-primary);
  --accent-strong: var(--aethera-accent-strong);
  --accent-blue: var(--aethera-accent-secondary);
  --danger: var(--aethera-status-danger);
  --success: var(--aethera-status-success);
  --channel-accent: #5ff2b6;
  --channel-border-color: rgba(95, 242, 182, 0.25);
  --channel-surface-bg: linear-gradient(180deg, rgba(13, 21, 19, 0.95), rgba(6, 10, 9, 0.95));
  --channel-hero-bg: linear-gradient(135deg, rgba(47, 255, 171, 0.25), rgba(46, 201, 255, 0.15));
  --channel-highlight-bg: rgba(95, 242, 182, 0.12);
  --channel-page-bg:
    radial-gradient(circle at top, rgba(18, 57, 45, 0.45), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(36, 111, 86, 0.35), transparent 35%),
    linear-gradient(130deg, #020705 0%, #02100d 45%, #04131c 100%);
  --channel-preview-accent: var(--channel-accent);
  --channel-preview-surface: var(--channel-surface-bg);
  --channel-preview-background: var(--channel-page-bg);
  --channel-preview-text: var(--text);
  --detail-video-caption-font-scale: 100%;
  --detail-video-caption-color: #ffffff;
  --detail-video-caption-background: #000000;
  font-family:
    'Inter',
    'Segoe UI',
    Roboto,
    system-ui,
    -apple-system,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: inherit;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(18, 57, 45, 0.45), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(36, 111, 86, 0.35), transparent 35%),
    linear-gradient(130deg, #020705 0%, #02100d 45%, #04131c 100%);
}

body.sidebar-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: 'Roboto Mono', 'Courier New', monospace;
}

body[data-embed='true'] .site-header {
  display: none;
}

body[data-embed='true'] .app-shell {
  padding-top: 1rem;
}

body[data-embed='true'][data-embed-ui='minimal'] {
  background: #000;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
}

body[data-embed='true'][data-embed-ui='minimal'].cookie-banner-visible {
  padding-bottom: 0;
}

body[data-embed='true'][data-embed-ui='minimal'] .app-shell {
  max-width: none;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  display: block;
}

body[data-embed='true'][data-embed-ui='minimal'] #video-card {
  box-shadow: none;
  background: transparent;
  margin: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

body[data-embed='true'][data-embed-ui='minimal'] .player-card {
  padding: 0;
  background: transparent;
}

body[data-embed='true'][data-embed-ui='minimal'] #detail-shell {
  height: 100vh;
}

body[data-embed='true'][data-embed-ui='minimal'] .support-panel {
  display: none;
}

body[data-embed='true'][data-embed-ui='minimal'] #detail-video {
  border-radius: 0;
  max-height: none;
}

body[data-embed='true'][data-embed-ui='minimal'] .player-stage {
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
}

body[data-embed='true'][data-embed-ui='minimal'] .player-controls {
  display: none;
}

body[data-embed='true'][data-embed-ui='minimal'] .player-big-play {
  display: none;
}

body[data-embed='true'][data-embed-ui='minimal'] section.card {
  display: none;
}

body[data-embed='true'][data-embed-ui='minimal'] .site-footer,
body[data-embed='true'][data-embed-ui='minimal'] .cookie-banner,
body[data-embed='true'][data-embed-ui='minimal'] #detail-shell .video-meta {
  display: none;
}

.auth-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #061638 0%, #030712 60%);
}

.auth-page > .site-header {
  width: 100%;
}

.auth-page > .auth-card {
  width: min(420px, calc(100% - 2rem));
  margin: 0 auto 2rem;
}

.auth-card {
  margin: 0 auto;
}

.success-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.success-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.auth-page > .auth-card.get-started-card {
  width: min(1100px, calc(100% - 2rem));
}

.activation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.activation-choice {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  color: inherit;
  text-align: left;
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.activation-choice:hover,
.activation-choice:focus-visible {
  border-color: rgba(129, 140, 248, 0.55);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  transform: translateY(-2px);
  outline: none;
}

.activation-choice strong {
  font-size: 1.02rem;
}

.activation-choice span:last-child {
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.45;
}

.button-grid .is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

body.theater-mode .app-shell {
  max-width: none;
}

body.theater-mode .player-card {
  width: min(1200px, 96vw);
  margin-left: auto;
  margin-right: auto;
}

body.theater-mode .player-stage {
  max-width: 100%;
}

.hero-card {
  background: linear-gradient(135deg, rgba(41, 37, 72, 0.85), rgba(17, 24, 39, 0.92));
  border: 1px solid rgba(129, 140, 248, 0.25);
  margin-bottom: 1.5rem;
}

.hero-header h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.hero-header p {
  margin: 0 0 1rem;
  color: rgba(226, 232, 240, 0.85);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}

.badge-member {
  background: rgba(94, 234, 212, 0.15);
  color: var(--accent);
  border: 1px solid rgba(94, 234, 212, 0.4);
}

.badge-mod {
  background: rgba(96, 165, 250, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #d9e8ff;
}

.badge-follower {
  background: rgba(129, 140, 248, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
}

.badge-guest {
  background: rgba(248, 250, 252, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.badge-pending {
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fde68a;
}

.badge-pinned {
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #fbcfe8;
}

.comment-badges {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.comment-pending-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.membership-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.membership-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.membership-form input,
.membership-form textarea,
.membership-form select {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}
.membership-form textarea {
  min-height: 3.5rem;
  resize: vertical;
}
.membership-form .full-row {
  grid-column: 1 / -1;
}

.wallet-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.aether-purchase {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.aether-purchase select {
  flex: 1;
  min-width: 180px;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

a {
  color: var(--accent);
}
.app-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.app-shell-wide {
  max-width: 1560px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
}

.settings-page > .site-header {
  box-sizing: border-box;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 1.5rem 0;
  justify-content: flex-start;
}

.settings-page > .site-header > div:nth-child(2) {
  flex: 1 1 360px;
}

.settings-page .site-header .header-actions {
  flex: 1 1 100%;
  justify-content: flex-end;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  min-width: 112px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.site-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.tagline {
  margin-top: 0.35rem;
  color: var(--accent-blue);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo {
    height: 92px;
    min-width: 92px;
  }

  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .site-logo {
    height: 76px;
    min-width: 76px;
  }
}

@media (max-width: 430px) {
  .site-logo {
    height: 64px;
    min-width: 64px;
  }

  .header-actions {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.quick-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 240px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  z-index: 70;
}

.quick-menu.hidden {
  display: none;
}

.quick-menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quick-menu-section + .quick-menu-section {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-menu-label {
  margin: 0;
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-menu-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.quick-menu-btn:hover {
  border-color: var(--accent);
  background: rgba(95, 242, 182, 0.1);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.layout.admin-layout {
  grid-template-columns: 1fr 320px;
}

.settings-shell {
  max-width: 1480px;
  padding-top: 1rem;
}

.settings-section-nav {
  position: sticky;
  top: 0.75rem;
  z-index: 18;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  padding: 0.65rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(95, 242, 182, 0.18);
  border-radius: 12px;
  background: rgba(3, 12, 10, 0.92);
  box-shadow: 0 24px 70px -55px rgba(0, 245, 255, 0.65);
  scrollbar-width: thin;
}

.settings-section-nav-link {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(0, 212, 255, 0.42);
  border-radius: 999px;
  color: var(--accent-blue);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(0, 212, 255, 0.07);
}

.settings-section-nav-link:hover,
.settings-section-nav-link:focus-visible,
.settings-section-nav-link.active {
  color: #06110f;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  border-color: transparent;
  outline: none;
}

.settings-section-nav-link.danger {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.settings-section-nav-link.danger.active,
.settings-section-nav-link.danger:hover,
.settings-section-nav-link.danger:focus-visible {
  color: #fff;
  background: rgba(248, 113, 113, 0.26);
  border-color: rgba(248, 113, 113, 0.75);
}

.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-section {
  scroll-margin-top: 6rem;
}

.settings-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.settings-section-header h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

.settings-card-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.settings-balanced-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.settings-profile-grid .settings-card-prominent {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.settings-security-grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.settings-security-grid .settings-card-prominent {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card h3,
.settings-card h4 {
  margin: 0 0 0.5rem;
}

.settings-card > * + form,
.settings-card > * + .owner-actions,
.settings-card > * + .stack,
.settings-card > * + .table-wrapper,
.settings-card > * + .stat-list {
  margin-top: 0.85rem;
}

.settings-form-grid {
  gap: 0.85rem;
}

.settings-avatar-empty {
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(95, 242, 182, 0.18), rgba(0, 212, 255, 0.16));
}

.settings-break-word {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.settings-inline-card {
  border: 1px solid rgba(95, 242, 182, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.035);
}

.settings-export-list {
  padding-left: 1.15rem;
}

.settings-export-list li + li {
  margin-top: 0.35rem;
}

.settings-danger-zone {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.09), rgba(6, 12, 10, 0.88));
}

.app-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1.5rem;
  min-width: 280px;
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.studio-body {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  align-items: flex-start;
}

body.drawer-open {
  overflow: hidden;
}

.column.narrow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.column.wide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.template-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.template-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.template-card-body {
  border: 1px solid var(--channel-border-color);
  border-radius: 14px;
  padding: 0.85rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--channel-hero-bg);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s;
}

.template-card-body strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.template-card input:checked + .template-card-body {
  border-color: var(--channel-accent);
  box-shadow: 0 0 0 1px var(--channel-accent);
  transform: translateY(-2px);
}

.template-card input:focus-visible + .template-card-body {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.swatch-row {
  display: flex;
  gap: 0.4rem;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch-row[data-theme='aurora'] .swatch:nth-child(1) {
  background: #041b13;
}
.swatch-row[data-theme='aurora'] .swatch:nth-child(2) {
  background: #0e3a2b;
}
.swatch-row[data-theme='aurora'] .swatch:nth-child(3) {
  background: #5ff2b6;
}
.swatch-row[data-theme='aurora'] .swatch:nth-child(4) {
  background: #2ec9ff;
}
.swatch-row[data-theme='midnight'] .swatch:nth-child(1) {
  background: #040714;
}
.swatch-row[data-theme='midnight'] .swatch:nth-child(2) {
  background: #0d1635;
}
.swatch-row[data-theme='midnight'] .swatch:nth-child(3) {
  background: #4338ca;
}
.swatch-row[data-theme='midnight'] .swatch:nth-child(4) {
  background: #a78bfa;
}
.swatch-row[data-theme='ember'] .swatch:nth-child(1) {
  background: #120403;
}
.swatch-row[data-theme='ember'] .swatch:nth-child(2) {
  background: #2b1109;
}
.swatch-row[data-theme='ember'] .swatch:nth-child(3) {
  background: #f97316;
}
.swatch-row[data-theme='ember'] .swatch:nth-child(4) {
  background: #fed7aa;
}
.swatch-row[data-theme='synthwave'] .swatch:nth-child(1) {
  background: #180327;
}
.swatch-row[data-theme='synthwave'] .swatch:nth-child(2) {
  background: #360259;
}
.swatch-row[data-theme='synthwave'] .swatch:nth-child(3) {
  background: #f472b6;
}
.swatch-row[data-theme='synthwave'] .swatch:nth-child(4) {
  background: #22d3ee;
}
.swatch-row[data-theme='lilac'] .swatch:nth-child(1) {
  background: #120a1e;
}
.swatch-row[data-theme='lilac'] .swatch:nth-child(2) {
  background: #2e1c47;
}
.swatch-row[data-theme='lilac'] .swatch:nth-child(3) {
  background: #c084fc;
}
.swatch-row[data-theme='lilac'] .swatch:nth-child(4) {
  background: #7c3aed;
}
.swatch-row[data-theme='sunrise'] .swatch:nth-child(1) {
  background: #130a02;
}
.swatch-row[data-theme='sunrise'] .swatch:nth-child(2) {
  background: #301703;
}
.swatch-row[data-theme='sunrise'] .swatch:nth-child(3) {
  background: #f97316;
}
.swatch-row[data-theme='sunrise'] .swatch:nth-child(4) {
  background: #fbbf24;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.collapsible-panel.hidden {
  display: none;
}

.card {
  background: linear-gradient(180deg, rgba(13, 21, 19, 0.95), rgba(6, 10, 9, 0.95));
  border: 1px solid rgba(63, 160, 132, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 25px 55px -35px rgba(3, 8, 7, 0.9);
}

/* Skeleton loading */
.skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
.video-card.skeleton {
  height: 220px;
}
.skeleton.line {
  height: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.skeleton.block {
  height: 140px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.skeleton-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.skeleton.line.skeleton-mt-06 {
  margin-top: 0.6rem;
}
.skeleton.line.skeleton-mt-05 {
  margin-top: 0.5rem;
}
.skeleton.line.skeleton-mt-03 {
  margin-top: 0.3rem;
}
.skeleton.line.skeleton-w-40 {
  width: 40%;
}
.skeleton.line.skeleton-w-60 {
  width: 60%;
}
.skeleton.line.skeleton-w-65 {
  width: 65%;
}
.skeleton.line.skeleton-w-70 {
  width: 70%;
}
.skeleton.line.skeleton-w-80 {
  width: 80%;
}
.skeleton.block.skeleton-h-110 {
  height: 110px;
}
.skeleton.line.skeleton-w-60px {
  width: 60px;
}
.skeleton.line.skeleton-w-80px {
  width: 80px;
}
.skeleton.line.skeleton-w-90px {
  width: 90px;
}
.skeleton.line.skeleton-w-120px {
  width: 120px;
}
.skeleton.line.skeleton-w-240px {
  width: 240px;
}

.search-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-toolbar {
  display: grid;
  gap: 1rem;
  background: rgba(7, 12, 11, 0.75);
  border: 1px solid rgba(95, 242, 182, 0.15);
  border-radius: 12px;
  padding: 1rem;
}

.search-toolbar input[type='search'] {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.search-filters label.checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.search-filters label.checkbox input {
  width: auto;
  margin: 0;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.search-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(6, 12, 10, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  cursor: pointer;
  transition:
    border 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.search-card:not(.skeleton):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -20px rgba(47, 255, 171, 0.35);
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 242, 182, 0.35);
  background: rgba(6, 12, 10, 0.8);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.oauth-btn .oauth-icon {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(4, 12, 9, 0.65);
  font-size: 0.9rem;
}

.oauth-btn.google {
  border-color: rgba(244, 244, 244, 0.35);
  background: linear-gradient(120deg, rgba(14, 18, 22, 0.85), rgba(14, 30, 29, 0.85));
}

.oauth-btn.github {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(120deg, rgba(7, 10, 13, 0.9), rgba(4, 7, 9, 0.85));
}
.oauth-btn.twitter {
  border-color: rgba(46, 201, 255, 0.65);
  background: linear-gradient(120deg, rgba(5, 10, 18, 0.9), rgba(4, 4, 6, 0.85));
  color: #e0f7ff;
}

.oauth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.oauth-btn:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: var(--channel-accent, #5ff2b6);
}

.oauth-hint {
  margin-top: -0.35rem;
  margin-bottom: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toolbar input[type='search'] {
  min-width: 220px;
}

.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.pagination-controls .pager {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-controls button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.channel-preview {
  border: 1px solid var(--channel-border-color);
  border-radius: 18px;
  overflow: hidden;
  background: var(--channel-preview-background, var(--channel-surface-bg));
  color: var(--channel-preview-text, var(--text));
}

.slug-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.slug-row input {
  flex: 1;
}

.thumbnail-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.thumbnail-candidate {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thumbnail-candidate img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.thumbnail-candidate .owner-actions {
  padding: 0 0.5rem 0.75rem;
  gap: 0.5rem;
  display: flex;
  justify-content: space-between;
}

#clip-card select,
#clip-card input {
  width: 100%;
}

.bulk-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.bulk-actions .bulk-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bulk-actions:not(.active) .bulk-buttons button {
  opacity: 0.5;
  pointer-events: none;
}

.bulk-advanced {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.bulk-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  flex: 1;
}

.bulk-tags input,
.bulk-tags select {
  width: 100%;
}

.bulk-monetization {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.25rem 0.9rem;
  cursor: pointer;
  transition:
    border 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(95, 242, 182, 0.7);
}

.filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(95, 242, 182, 0.12);
}

.video-table th.select-col,
.video-table td.checkbox-cell {
  width: 36px;
  text-align: center;
}

.channel-hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background: var(--channel-hero-bg);
  border-bottom: 1px solid var(--channel-border-color);
  border-left: 4px solid var(--channel-accent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.preview-highlight,
.preview-trailer {
  border: 1px dashed var(--channel-border-color);
  border-radius: 12px;
  padding: 1rem;
  max-width: 260px;
  background: var(--channel-highlight-bg);
}

.preview-highlight {
  color: var(--channel-accent);
}

.preview-trailer {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.channel-page {
  --channel-theme-accent: var(--channel-accent);
  --channel-theme-text: var(--text);
  --channel-theme-surface: rgba(4, 8, 7, 0.75);
  --channel-theme-background: var(--channel-page-bg);
  min-height: 100vh;
  background: var(--channel-theme-background, var(--channel-page-bg));
  color: var(--channel-theme-text, var(--text));
  padding: clamp(1.5rem, 2.5vw, 3rem) 1.25rem 4rem;
}

.channel-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.channel-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--channel-hero-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 45px 90px -60px rgba(0, 0, 0, 0.95);
  margin: 0 auto clamp(1.25rem, 2vw, 2rem);
  max-width: 1200px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.05), transparent 40%);
  mix-blend-mode: screen;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2vw, 2.5rem);
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.35rem 0;
  color: var(--channel-accent);
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.hero-description {
  margin-top: 0.75rem;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(2, 8, 6, 0.45);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-link-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.membership-callout {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 8, 7, 0.55);
  max-width: 420px;
}

.membership-callout h3 {
  margin: 0 0 0.35rem;
  color: var(--channel-accent);
}

.membership-callout p {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.85);
}

.membership-callout .hint {
  color: rgba(255, 255, 255, 0.65);
}

.linked-voice-callout {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(46, 201, 255, 0.32);
  background: rgba(3, 13, 18, 0.68);
  max-width: 460px;
}

.linked-voice-callout h3 {
  margin: 0 0 0.35rem;
  color: #d9fbff;
}

.linked-voice-callout p {
  margin: 0 0 0.35rem;
  color: rgba(236, 253, 245, 0.86);
}

.linked-voice-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0.25rem 0 0.45rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  background: rgba(14, 165, 233, 0.12);
  color: #d9fbff;
  font-size: 0.82rem;
  font-weight: 700;
}

.linked-voice-status[data-state='ready'] {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.14);
  color: #d1fae5;
}

.linked-voice-status[data-state='blocked'] {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.15);
  color: #fef3c7;
}

.linked-voice-checks {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.linked-voice-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: rgba(236, 253, 245, 0.82);
  font-size: 0.86rem;
}

.linked-voice-checks li::before {
  content: '';
  flex: 0 0 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

.linked-voice-checks li[data-state='blocked']::before {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16);
}

.linked-voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.creator-voice-control {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(125, 211, 252, 0.18);
}

.creator-voice-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
}

.creator-voice-control-head h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
}

.creator-voice-health {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #d1fae5;
  background: rgba(52, 211, 153, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.creator-voice-health[data-state='needs_review'] {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.14);
}

.creator-voice-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.7rem 0 0;
}

.creator-voice-control-grid div {
  min-width: 0;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(148, 163, 184, 0.46);
}

.creator-voice-control-grid div[data-state='ready'] {
  border-left-color: #34d399;
}

.creator-voice-control-grid div[data-state='blocked'] {
  border-left-color: #fbbf24;
}

.creator-voice-control-grid dt {
  margin: 0 0 0.12rem;
  color: rgba(226, 232, 240, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-voice-control-grid dd {
  margin: 0;
  color: rgba(236, 253, 245, 0.9);
  font-size: 0.84rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.creator-voice-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .creator-voice-control-head {
    flex-direction: column;
  }

  .creator-voice-control-grid {
    grid-template-columns: 1fr;
  }
}

.primary-btn {
  background: linear-gradient(135deg, #00f5a0 0%, #00d7ff 100%);
  color: #02110b;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 215, 255, 0.25);
}

.primary-btn.full-width {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost-btn.full-width {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 215, 255, 0.35);
}

.ghost-btn.secondary {
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-avatar-card {
  background: rgba(2, 5, 5, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.avatar-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--channel-accent), rgba(255, 255, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-xxl {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(2, 9, 7, 0.9);
}

.hero-stats {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
}

.stat-pill {
  flex: 1 1 140px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-pill span {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--channel-accent);
}

.stat-pill p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.channel-page .channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  width: 100%;
}

.channel-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.channel-section-card {
  background: rgba(4, 8, 7, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 35px 65px -55px rgba(0, 0, 0, 0.9);
}

.channel-section-card h3 {
  margin: 0;
  color: var(--channel-accent);
  font-size: 1.3rem;
}

.channel-section-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.channel-section-card .section-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--channel-accent);
  color: var(--channel-accent);
  text-decoration: none;
  font-weight: 600;
}

.channel-section-card .section-cta:hover {
  background: rgba(95, 242, 182, 0.12);
}

.discovery-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.discovery-toolbar input,
.discovery-toolbar select {
  width: 100%;
}

.discovery-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 0;
  margin-top: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    border 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(95, 242, 182, 0.15);
}

.channel-discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.channel-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.spotlight-card {
  position: relative;
  border: 1px solid rgba(95, 242, 182, 0.3);
  border-radius: 16px;
  padding: 1.25rem;
  background: linear-gradient(140deg, rgba(5, 15, 12, 0.95), rgba(5, 9, 8, 0.85));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.spotlight-card h3 {
  margin-bottom: 0.35rem;
}
.spotlight-card .live-pill {
  align-self: flex-start;
}

.channel-discover-card {
  position: relative;
  border: 1px solid rgba(95, 242, 182, 0.25);
  border-color: var(--card-accent, rgba(95, 242, 182, 0.35));
  background: linear-gradient(145deg, rgba(5, 15, 12, 0.95), rgba(5, 10, 9, 0.85));
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}
.channel-discover-card.is-live {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 16px 30px -25px rgba(248, 113, 113, 0.85);
}
.channel-discover-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, var(--card-accent, rgba(95, 242, 182, 0.35)), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}
.channel-discover-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.channel-discover-head .live-pill {
  margin-left: auto;
}
.growth-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  background: rgba(95, 242, 182, 0.15);
  border: 1px solid rgba(95, 242, 182, 0.45);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.channel-discover-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(95, 242, 182, 0.35);
  padding: 3px;
  background: rgba(3, 7, 5, 0.85);
  flex-shrink: 0;
}
.channel-discover-avatar img,
.channel-discover-avatar .avatar {
  width: 100%;
  height: 100%;
}
.channel-discover-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.channel-discover-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.channel-discover-stats span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.channel-discover-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  position: relative;
}
.channel-page .channel-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  border-radius: 18px;
  background: rgba(4, 9, 8, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-theme[data-theme='aurora'] {
  --channel-border-color: rgba(95, 242, 182, 0.35);
  --channel-surface-bg: linear-gradient(180deg, rgba(7, 16, 13, 0.95), rgba(3, 7, 6, 0.95));
  --channel-hero-bg: linear-gradient(135deg, rgba(47, 255, 171, 0.3), rgba(46, 201, 255, 0.12));
  --channel-highlight-bg: rgba(95, 242, 182, 0.2);
  --channel-page-bg:
    radial-gradient(circle at top, rgba(18, 57, 45, 0.45), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(36, 111, 86, 0.35), transparent 35%),
    linear-gradient(130deg, #020705 0%, #02100d 45%, #04131c 100%);
}

.channel-theme[data-theme='midnight'] {
  --channel-border-color: rgba(167, 139, 250, 0.35);
  --channel-surface-bg: linear-gradient(180deg, rgba(6, 9, 24, 0.96), rgba(3, 5, 18, 0.96));
  --channel-hero-bg: linear-gradient(135deg, rgba(67, 56, 202, 0.35), rgba(103, 232, 249, 0.15));
  --channel-highlight-bg: rgba(103, 232, 249, 0.2);
  --channel-page-bg:
    radial-gradient(circle at 15% 15%, rgba(59, 7, 100, 0.35), transparent 40%),
    linear-gradient(140deg, #050617 0%, #080b25 60%, #02040d 100%);
}

.channel-theme[data-theme='ember'] {
  --channel-border-color: rgba(249, 115, 22, 0.45);
  --channel-surface-bg: linear-gradient(180deg, rgba(24, 8, 4, 0.95), rgba(9, 3, 1, 0.95));
  --channel-hero-bg: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(250, 204, 21, 0.12));
  --channel-highlight-bg: rgba(249, 115, 22, 0.22);
  --channel-page-bg:
    radial-gradient(circle at top, rgba(249, 115, 22, 0.25), transparent 45%),
    linear-gradient(140deg, #120403 0%, #1f0804 55%, #050201 100%);
}

.channel-theme[data-theme='synthwave'] {
  --channel-border-color: rgba(244, 114, 182, 0.45);
  --channel-surface-bg: linear-gradient(180deg, rgba(22, 2, 33, 0.95), rgba(8, 1, 18, 0.95));
  --channel-hero-bg: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(34, 211, 238, 0.15));
  --channel-highlight-bg: rgba(34, 211, 238, 0.22);
  --channel-page-bg:
    radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.35), transparent 40%),
    linear-gradient(130deg, #1a0225 0%, #2c0148 55%, #06000f 100%);
}

.channel-theme[data-theme='lilac'] {
  --channel-border-color: rgba(192, 132, 252, 0.45);
  --channel-surface-bg: linear-gradient(180deg, rgba(24, 10, 39, 0.95), rgba(9, 3, 16, 0.95));
  --channel-hero-bg: linear-gradient(135deg, rgba(192, 132, 252, 0.35), rgba(124, 58, 237, 0.15));
  --channel-highlight-bg: rgba(192, 132, 252, 0.2);
  --channel-page-bg:
    radial-gradient(circle at 15% 15%, rgba(192, 132, 252, 0.28), transparent 38%),
    linear-gradient(140deg, #12041c 0%, #220834 55%, #05010a 100%);
}

.channel-theme[data-theme='sunrise'] {
  --channel-border-color: rgba(251, 191, 36, 0.45);
  --channel-surface-bg: linear-gradient(180deg, rgba(24, 11, 3, 0.95), rgba(10, 5, 1, 0.95));
  --channel-hero-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(236, 72, 153, 0.15));
  --channel-highlight-bg: rgba(251, 191, 36, 0.22);
  --channel-page-bg:
    radial-gradient(circle at 18% 22%, rgba(236, 72, 153, 0.25), transparent 45%),
    linear-gradient(130deg, #1a0702 0%, #2f1304 60%, #080200 100%);
}

.channel-hero h1,
.channel-hero h2,
.channel-preview h2 {
  color: var(--channel-accent);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.video-grid.dense {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.vod-card-item {
  border: 1px solid rgba(95, 242, 182, 0.18);
  border-radius: 12px;
  background: rgba(7, 12, 11, 0.65);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vod-card-item h3 {
  margin: 0;
  font-size: 1rem;
  color: rgba(236, 253, 245, 0.95);
  line-height: 1.3;
}

.vod-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(236, 253, 245, 0.7);
}

.vod-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vod-card-note {
  font-size: 0.8rem;
  color: rgba(236, 253, 245, 0.6);
}

.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.continue-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(95, 242, 182, 0.15);
  background: rgba(7, 12, 11, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.continue-item.skeleton {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
}

.continue-item:hover {
  border-color: rgba(95, 242, 182, 0.55);
}

.continue-item h4 {
  font-size: 1rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-track .progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  border-radius: 999px;
  width: 0%;
  transition: width 0.2s ease;
}
.progress-fill.progress-5 {
  width: 5%;
}
.progress-fill.progress-10 {
  width: 10%;
}
.progress-fill.progress-15 {
  width: 15%;
}
.progress-fill.progress-20 {
  width: 20%;
}
.progress-fill.progress-25 {
  width: 25%;
}
.progress-fill.progress-30 {
  width: 30%;
}
.progress-fill.progress-35 {
  width: 35%;
}
.progress-fill.progress-40 {
  width: 40%;
}
.progress-fill.progress-45 {
  width: 45%;
}
.progress-fill.progress-50 {
  width: 50%;
}
.progress-fill.progress-55 {
  width: 55%;
}
.progress-fill.progress-60 {
  width: 60%;
}
.progress-fill.progress-65 {
  width: 65%;
}
.progress-fill.progress-70 {
  width: 70%;
}
.progress-fill.progress-75 {
  width: 75%;
}
.progress-fill.progress-80 {
  width: 80%;
}
.progress-fill.progress-85 {
  width: 85%;
}
.progress-fill.progress-90 {
  width: 90%;
}
.progress-fill.progress-95 {
  width: 95%;
}
.progress-fill.progress-100 {
  width: 100%;
}

.video-card {
  background: linear-gradient(180deg, rgba(7, 12, 11, 0.9), rgba(3, 8, 7, 0.95));
  border-radius: 12px;
  padding: 0.7rem;
  border: 1px solid rgba(94, 242, 182, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition:
    border 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.video-card:not(.skeleton):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -20px rgba(47, 255, 171, 0.4);
}

.video-thumb-shell {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #0a0a0a;
  min-width: 0;
}

.video-thumb-shell picture {
  display: block;
}

.video-card .video-thumb,
.search-card .video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: inherit;
  object-fit: cover;
  background: #0a0a0a;
  display: block;
}

.video-thumb-shell.is-gated .video-thumb {
  filter: blur(1.5px) brightness(0.55);
  transform: scale(1.02);
}

.video-thumb-meta {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  pointer-events: none;
  z-index: 1;
}

.video-thumb-meta-top {
  top: 0.5rem;
  justify-content: flex-start;
}

.video-thumb-meta-bottom {
  bottom: 0.5rem;
  justify-content: flex-end;
}

.video-thumb-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 8, 0.78);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.video-thumb-pill-rating {
  background: rgba(44, 10, 10, 0.78);
  border-color: rgba(255, 181, 181, 0.24);
}

.video-thumb-pill-duration {
  font-variant-numeric: tabular-nums;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(5, 8, 8, 0.28), rgba(5, 8, 8, 0.78));
  text-align: center;
  z-index: 2;
}

.video-thumb-overlay p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}

.video-thumb-overlay .ghost-btn {
  pointer-events: auto;
}

.video-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.video-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.video-card-head h3,
.search-card h3 {
  margin: 0;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.video-card-meta {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
}

.video-card-meta-subtle {
  color: var(--muted);
}

.video-card-meta-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-decoration: none;
}

.video-card-meta-link:hover,
.video-card-meta-link:focus {
  color: var(--accent);
  text-decoration: underline;
}

.video-card-status {
  margin: 0;
  color: #ffb68a;
  font-size: 0.8rem;
}

.video-card-menu-shell {
  position: relative;
  flex: 0 0 auto;
}

.card-menu-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(236, 253, 245, 0.82);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.card-menu-btn span {
  font-size: 1rem;
}

.card-menu-btn:hover,
.card-menu-btn:focus-visible,
.video-card-menu-shell.open .card-menu-btn {
  border-color: rgba(95, 242, 182, 0.55);
  color: var(--accent);
  background: rgba(95, 242, 182, 0.12);
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.video-card-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.45rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 8, 0.97);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  z-index: 16;
}

.video-card-menu-panel.hidden {
  display: none;
}

.video-card-menu-item {
  width: 100%;
  border: none;
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: transparent;
  color: rgba(236, 253, 245, 0.9);
  text-align: left;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: none;
}

.video-card-menu-item:hover,
.video-card-menu-item:focus-visible {
  background: rgba(95, 242, 182, 0.13);
  color: var(--accent);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.video-card-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 242, 182, 0.4);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(94, 242, 182, 0.12);
  color: var(--accent);
}
.status-pill.deleted {
  border-color: rgba(250, 137, 92, 0.6);
  color: #ffb68a;
  background: rgba(250, 137, 92, 0.12);
}
.status-pill.flagged {
  border-color: rgba(244, 63, 94, 0.7);
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.16);
}
.status-pill.scheduled {
  border-color: rgba(250, 204, 21, 0.7);
  color: #fef3c7;
  background: rgba(250, 204, 21, 0.15);
}

.status-pill.membership {
  border-color: rgba(95, 242, 182, 0.45);
  background: rgba(95, 242, 182, 0.18);
  color: #5ff2b6;
}

.status-pill.tip {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(253, 186, 116, 0.18);
  color: #fbbf24;
}

.status-pill.aether {
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
}
.map-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #8ec5ff;
}

.status-extras {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.stack {
  display: flex;
  flex-direction: column;
}

.mt-xs {
  margin-top: 0.35rem;
}

.mt-sm {
  margin-top: 0.5rem;
}

.mt-md {
  margin-top: 0.75rem;
}

.mt-lg {
  margin-top: 1rem;
}

.mb-lg {
  margin-bottom: 1rem;
}

.ml-xs {
  margin-left: 0.35rem;
}

.flex-1 {
  flex: 1 1 auto;
}

.min-w-220 {
  min-width: 220px;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.text-center {
  text-align: center;
}

.grid-span-full {
  grid-column: 1 / -1;
}

.pos-static {
  position: static !important;
}

.gap-xs {
  gap: 0.35rem;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 0.85rem;
}

.section-spaced {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

input,
textarea {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  background: rgba(10, 17, 15, 0.85);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(95, 242, 182, 0.07);
}

select {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  background: rgba(7, 12, 10, 0.9);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(46, 201, 255, 0.08);
}

textarea {
  resize: vertical;
}

button {
  border: none;
  background: linear-gradient(120deg, var(--accent-strong), var(--accent-blue));
  color: #041b14;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  box-shadow: 0 8px 22px -12px rgba(47, 255, 171, 0.8);
}

button:hover {
  opacity: 0.9;
}

button.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.danger {
  background: var(--danger);
  color: #fff;
}

.ghost-btn {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid rgba(46, 201, 255, 0.4);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

.ghost-btn.danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.55);
}

.ghost-btn.danger:hover {
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.ghost-btn.small {
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}

.ghost-btn.tiny {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
}

.follow-btn {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.follow-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #02120a;
}

.ghost-btn.block {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.secret-field {
  width: 100%;
}

.secret-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.secret-input input {
  flex: 1;
}

.secret-toggle {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.secret-toggle svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.secret-toggle.visible {
  color: var(--accent);
  border-color: var(--accent);
}

#quality-select {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 0.2rem 0.6rem;
}

.user-pill {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.hint {
  font-size: 0.85rem;
}

.hint.error {
  color: #fda4af;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.hidden {
  display: none !important;
}

.avatar[hidden],
.qr-preview[hidden] {
  display: none !important;
}

.comments {
  margin-top: 1.25rem;
}

.comment-chip {
  border: 1px solid rgba(94, 242, 182, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(6, 12, 10, 0.85);
}

.comment-chip h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.comment-delete-btn {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
}

.comment-action-note {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.comment-action-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.comment-action-btn.active {
  border-color: var(--channel-accent, #5ff2b6);
  color: var(--channel-accent, #5ff2b6);
}

.comment-action-link {
  border: none;
  background: none;
  color: var(--channel-accent, #5ff2b6);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.comment-action-link.danger {
  color: var(--danger);
}

.comment-inline-form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-inline-form textarea {
  width: 100%;
  resize: vertical;
}

#detail-comment-form {
  position: relative;
}

#comment-mention-suggestions {
  position: static;
  margin-top: -0.25rem;
}

#detail-comment-counter.is-near-limit {
  color: #facc15;
}

#detail-comment-counter.is-limit {
  color: var(--danger);
}

.comment-mention {
  color: var(--channel-accent, #5ff2b6);
  font-weight: 600;
  text-decoration: none;
}

.comment-mention:hover,
.comment-mention:focus-visible {
  text-decoration: underline;
}

.comment-inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-children {
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deleted-note {
  font-style: italic;
  color: var(--muted);
  margin: 0.35rem 0;
}

.comment-meta {
  display: inline-block;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  color: var(--muted);
}

.player-card .empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  background: rgba(3, 8, 7, 0.6);
  border-radius: 12px;
}

ins.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 90px;
}

.owner-tools {
  margin-top: 1.25rem;
  background: rgba(14, 58, 39, 0.5);
  border: 1px dashed rgba(95, 242, 182, 0.5);
  border-radius: 12px;
  padding: 1rem;
}

.owner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.alert {
  background: rgba(244, 63, 94, 0.15);
  color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(7, 15, 13, 0.95);
  border: 1px solid rgba(94, 242, 182, 0.3);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.65);
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--danger);
}

.playlist-buckets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.playlist-buckets .ghost-btn {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border-color: rgba(95, 242, 182, 0.35);
  background: rgba(5, 10, 9, 0.6);
}

.playlist-skeleton-row {
  padding: 0.45rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.playlist-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-card.compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(63, 160, 132, 0.25);
  border-radius: 12px;
  background: rgba(7, 12, 10, 0.85);
}

.playlist-row {
  transition:
    border 0.15s ease,
    background 0.15s ease;
}

.playlist-row.reorder-enabled {
  cursor: grab;
}

.playlist-row.dragging {
  opacity: 0.65;
}

.playlist-row.drag-over {
  border-color: rgba(95, 242, 182, 0.65);
  background: rgba(7, 22, 16, 0.95);
}

.playlist-row-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.playlist-row-text strong {
  display: block;
  margin-bottom: 0.1rem;
}

.drag-handle {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.2rem;
  pointer-events: none;
}

.drag-handle::before {
  content: '⋮⋮';
}

.playlist-row.reorder-disabled .drag-handle {
  opacity: 0.3;
}

.collaborator-row,
.invite-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(63, 160, 132, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: rgba(4, 8, 7, 0.8);
}

.playlist-shell form input,
.playlist-shell form select,
.playlist-shell form button {
  flex: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: min(420px, 90vw);
}

.file-label input[type='file'] {
  padding: 0.35rem 0;
  border: none;
  background: transparent;
}

.form-checkbox,
.checkbox-inline,
.checkbox-row,
label.checkbox,
.toggle-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.form-checkbox input[type='checkbox'],
.checkbox-inline input[type='checkbox'],
.checkbox-row input[type='checkbox'],
label.checkbox input[type='checkbox'],
.toggle-control input[type='checkbox'] {
  width: auto;
  margin: 0;
}

.table-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-list th,
.table-list td {
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table-list button {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .layout,
  .layout.admin-layout {
    grid-template-columns: 1fr;
  }

  .settings-section-nav {
    position: static;
    top: 0.5rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .settings-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-card-grid,
  .settings-profile-grid,
  .settings-security-grid,
  .settings-balanced-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-profile-grid .settings-card-prominent,
  .settings-security-grid .settings-card-prominent,
  .settings-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    align-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    padding: 1.5rem;
    background: var(--surface);
    border-right: 1px solid var(--border);
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    z-index: 20;
  }

  .sidebar.open {
    transform: translateX(0);
  }
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(95, 242, 182, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin: 0.15rem;
  font-size: 0.75rem;
  color: var(--channel-accent, var(--accent));
  background: rgba(95, 242, 182, 0.1);
}
.tag-chip.small {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  margin: 0.1rem;
}
.tag-chip.tag-chip-map {
  background: linear-gradient(135deg, rgba(94, 242, 182, 0.18), rgba(59, 130, 246, 0.18));
  border-color: rgba(59, 130, 246, 0.45);
  color: #8ec5ff;
  font-weight: 600;
  text-transform: uppercase;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.suggestion-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: rgba(6, 12, 10, 0.95);
  border: 1px solid rgba(95, 242, 182, 0.2);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  z-index: 15;
  max-height: min(55vh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.suggestion-panel.hidden {
  display: none;
}

.suggestion-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  min-height: 48px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  line-height: 1.3;
  width: 100%;
  min-width: 0;
}

.suggestion-item:hover,
.suggestion-item:focus,
.suggestion-item.active {
  background: rgba(95, 242, 182, 0.12);
}

.suggestion-item strong {
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.suggestion-item small {
  opacity: 0.7;
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tag-tile {
  border: 1px solid rgba(95, 242, 182, 0.25);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(4, 12, 10, 0.7);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.tag-tile:hover,
.tag-tile:focus {
  border-color: rgba(95, 242, 182, 0.6);
  background: rgba(8, 20, 16, 0.9);
}

.tag-tile span:first-child {
  font-weight: 600;
  font-size: 0.95rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.chip-row .chip {
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(95, 242, 182, 0.12);
  border: 1px solid rgba(95, 242, 182, 0.2);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chip-row .chip:hover {
  background: rgba(95, 242, 182, 0.25);
}

.playlist-shelf {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.playlist-card {
  border: 1px solid rgba(95, 242, 182, 0.18);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(6, 12, 10, 0.75);
}

.playlist-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.playlist-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.playlist-card p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

.playlist-card .playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.playlist-card .playlist-grid button {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.playlist-card .playlist-grid figure {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.playlist-card .playlist-grid img,
.playlist-card .playlist-grid picture {
  width: 100%;
  border-radius: 12px;
}

.rising-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.rising-card {
  border: 1px solid rgba(95, 242, 182, 0.2);
  background: rgba(4, 10, 8, 0.8);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rising-card header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rising-card header img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.rising-card h3 {
  font-size: 0.95rem;
  margin: 0;
}

.rising-card p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.rising-card footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  opacity: 0.85;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.performance-card .card-header {
  align-items: flex-start;
  gap: 1rem;
}

.insight-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin: 0.75rem 0 1rem;
}

.insight-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.insight-stats div {
  min-width: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.insight-stats span {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.insight-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.analytics-grid.earnings-grid {
  margin-top: 1rem;
}

.insight-columns.earnings-columns {
  margin-top: 1.25rem;
}

.insight-column {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(3, 8, 7, 0.4);
}

.insight-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.insight-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.insight-row strong {
  display: block;
  margin-bottom: 0.15rem;
}

.insight-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

.insight-row button {
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .insight-top {
    flex-direction: column;
    gap: 1rem;
  }

  .insight-stats {
    width: 100%;
  }
}

.asset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.asset-section {
  flex: 1 1 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.thumbnail-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}

.subtitle-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.subtitle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.subtitle-row .subtitle-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.subtitle-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chapter-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chapter-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.chapter-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chapter-meta time {
  font-size: 0.85rem;
  color: var(--muted);
}

.chapter-actions {
  justify-content: flex-end;
  gap: 0.35rem;
}

.chapter-panel {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-panel h3 {
  margin-bottom: 0.35rem;
}
.chapter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chapter-list-view {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.chapter-list-view li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.chapter-list-view li:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(95, 242, 182, 0.2);
}

.chapter-list-view li.is-current {
  border-color: var(--accent);
  background: rgba(95, 242, 182, 0.08);
}

.chapter-list-view time {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  color: var(--muted);
}

.chapter-editor {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.chapter-editor-actions .hint {
  flex: 1;
}

.chapter-suggestions {
  padding: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.chapter-suggestions-head {
  margin-bottom: 0.5rem;
}

.chapter-suggestions .chapter-list {
  max-height: 240px;
  overflow-y: auto;
}

.transcript-panel {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.transcript-panel input[type='search'] {
  width: 100%;
}

.transcript-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 280px;
  overflow: auto;
}

.transcript-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.transcript-list li:hover {
  border-color: rgba(95, 242, 182, 0.35);
}

.transcript-list li.is-active {
  border-color: var(--accent);
  background: rgba(95, 242, 182, 0.08);
}

.transcript-list time {
  min-width: 3.4rem;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  color: var(--muted);
  font-size: 0.82rem;
}

.retention-chart {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.retention-chart.empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.retention-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.retention-bucket {
  min-width: 64px;
  text-align: right;
}

.retention-bar-track {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.retention-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  border-radius: 999px;
}
.retention-bar-fill.retention-fill-0 {
  width: 0%;
}
.retention-bar-fill.retention-fill-1 {
  width: 1%;
}
.retention-bar-fill.retention-fill-2 {
  width: 2%;
}
.retention-bar-fill.retention-fill-3 {
  width: 3%;
}
.retention-bar-fill.retention-fill-4 {
  width: 4%;
}
.retention-bar-fill.retention-fill-5 {
  width: 5%;
}
.retention-bar-fill.retention-fill-6 {
  width: 6%;
}
.retention-bar-fill.retention-fill-7 {
  width: 7%;
}
.retention-bar-fill.retention-fill-8 {
  width: 8%;
}
.retention-bar-fill.retention-fill-9 {
  width: 9%;
}
.retention-bar-fill.retention-fill-10 {
  width: 10%;
}
.retention-bar-fill.retention-fill-11 {
  width: 11%;
}
.retention-bar-fill.retention-fill-12 {
  width: 12%;
}
.retention-bar-fill.retention-fill-13 {
  width: 13%;
}
.retention-bar-fill.retention-fill-14 {
  width: 14%;
}
.retention-bar-fill.retention-fill-15 {
  width: 15%;
}
.retention-bar-fill.retention-fill-16 {
  width: 16%;
}
.retention-bar-fill.retention-fill-17 {
  width: 17%;
}
.retention-bar-fill.retention-fill-18 {
  width: 18%;
}
.retention-bar-fill.retention-fill-19 {
  width: 19%;
}
.retention-bar-fill.retention-fill-20 {
  width: 20%;
}
.retention-bar-fill.retention-fill-21 {
  width: 21%;
}
.retention-bar-fill.retention-fill-22 {
  width: 22%;
}
.retention-bar-fill.retention-fill-23 {
  width: 23%;
}
.retention-bar-fill.retention-fill-24 {
  width: 24%;
}
.retention-bar-fill.retention-fill-25 {
  width: 25%;
}
.retention-bar-fill.retention-fill-26 {
  width: 26%;
}
.retention-bar-fill.retention-fill-27 {
  width: 27%;
}
.retention-bar-fill.retention-fill-28 {
  width: 28%;
}
.retention-bar-fill.retention-fill-29 {
  width: 29%;
}
.retention-bar-fill.retention-fill-30 {
  width: 30%;
}
.retention-bar-fill.retention-fill-31 {
  width: 31%;
}
.retention-bar-fill.retention-fill-32 {
  width: 32%;
}
.retention-bar-fill.retention-fill-33 {
  width: 33%;
}
.retention-bar-fill.retention-fill-34 {
  width: 34%;
}
.retention-bar-fill.retention-fill-35 {
  width: 35%;
}
.retention-bar-fill.retention-fill-36 {
  width: 36%;
}
.retention-bar-fill.retention-fill-37 {
  width: 37%;
}
.retention-bar-fill.retention-fill-38 {
  width: 38%;
}
.retention-bar-fill.retention-fill-39 {
  width: 39%;
}
.retention-bar-fill.retention-fill-40 {
  width: 40%;
}
.retention-bar-fill.retention-fill-41 {
  width: 41%;
}
.retention-bar-fill.retention-fill-42 {
  width: 42%;
}
.retention-bar-fill.retention-fill-43 {
  width: 43%;
}
.retention-bar-fill.retention-fill-44 {
  width: 44%;
}
.retention-bar-fill.retention-fill-45 {
  width: 45%;
}
.retention-bar-fill.retention-fill-46 {
  width: 46%;
}
.retention-bar-fill.retention-fill-47 {
  width: 47%;
}
.retention-bar-fill.retention-fill-48 {
  width: 48%;
}
.retention-bar-fill.retention-fill-49 {
  width: 49%;
}
.retention-bar-fill.retention-fill-50 {
  width: 50%;
}
.retention-bar-fill.retention-fill-51 {
  width: 51%;
}
.retention-bar-fill.retention-fill-52 {
  width: 52%;
}
.retention-bar-fill.retention-fill-53 {
  width: 53%;
}
.retention-bar-fill.retention-fill-54 {
  width: 54%;
}
.retention-bar-fill.retention-fill-55 {
  width: 55%;
}
.retention-bar-fill.retention-fill-56 {
  width: 56%;
}
.retention-bar-fill.retention-fill-57 {
  width: 57%;
}
.retention-bar-fill.retention-fill-58 {
  width: 58%;
}
.retention-bar-fill.retention-fill-59 {
  width: 59%;
}
.retention-bar-fill.retention-fill-60 {
  width: 60%;
}
.retention-bar-fill.retention-fill-61 {
  width: 61%;
}
.retention-bar-fill.retention-fill-62 {
  width: 62%;
}
.retention-bar-fill.retention-fill-63 {
  width: 63%;
}
.retention-bar-fill.retention-fill-64 {
  width: 64%;
}
.retention-bar-fill.retention-fill-65 {
  width: 65%;
}
.retention-bar-fill.retention-fill-66 {
  width: 66%;
}
.retention-bar-fill.retention-fill-67 {
  width: 67%;
}
.retention-bar-fill.retention-fill-68 {
  width: 68%;
}
.retention-bar-fill.retention-fill-69 {
  width: 69%;
}
.retention-bar-fill.retention-fill-70 {
  width: 70%;
}
.retention-bar-fill.retention-fill-71 {
  width: 71%;
}
.retention-bar-fill.retention-fill-72 {
  width: 72%;
}
.retention-bar-fill.retention-fill-73 {
  width: 73%;
}
.retention-bar-fill.retention-fill-74 {
  width: 74%;
}
.retention-bar-fill.retention-fill-75 {
  width: 75%;
}
.retention-bar-fill.retention-fill-76 {
  width: 76%;
}
.retention-bar-fill.retention-fill-77 {
  width: 77%;
}
.retention-bar-fill.retention-fill-78 {
  width: 78%;
}
.retention-bar-fill.retention-fill-79 {
  width: 79%;
}
.retention-bar-fill.retention-fill-80 {
  width: 80%;
}
.retention-bar-fill.retention-fill-81 {
  width: 81%;
}
.retention-bar-fill.retention-fill-82 {
  width: 82%;
}
.retention-bar-fill.retention-fill-83 {
  width: 83%;
}
.retention-bar-fill.retention-fill-84 {
  width: 84%;
}
.retention-bar-fill.retention-fill-85 {
  width: 85%;
}
.retention-bar-fill.retention-fill-86 {
  width: 86%;
}
.retention-bar-fill.retention-fill-87 {
  width: 87%;
}
.retention-bar-fill.retention-fill-88 {
  width: 88%;
}
.retention-bar-fill.retention-fill-89 {
  width: 89%;
}
.retention-bar-fill.retention-fill-90 {
  width: 90%;
}
.retention-bar-fill.retention-fill-91 {
  width: 91%;
}
.retention-bar-fill.retention-fill-92 {
  width: 92%;
}
.retention-bar-fill.retention-fill-93 {
  width: 93%;
}
.retention-bar-fill.retention-fill-94 {
  width: 94%;
}
.retention-bar-fill.retention-fill-95 {
  width: 95%;
}
.retention-bar-fill.retention-fill-96 {
  width: 96%;
}
.retention-bar-fill.retention-fill-97 {
  width: 97%;
}
.retention-bar-fill.retention-fill-98 {
  width: 98%;
}
.retention-bar-fill.retention-fill-99 {
  width: 99%;
}
.retention-bar-fill.retention-fill-100 {
  width: 100%;
}

.retention-bar-value {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 60px;
  text-align: right;
}

.retention-bar-meta {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  min-width: 120px;
  justify-content: flex-end;
}

.retention-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.retention-bar-meta {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
  min-width: 120px;
  justify-content: flex-end;
}

.retention-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.retention-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.retention-metrics strong {
  font-size: 1.4rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.stat-list li:last-child {
  border-bottom: none;
}

.stat-list .stat-empty {
  justify-content: center;
  color: var(--muted);
}

.grid.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.hint.muted {
  color: var(--muted);
}

.analytics-card {
  border: 1px solid rgba(46, 201, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(3, 8, 7, 0.8);
}

.analytics-card h3 {
  margin-bottom: 0.35rem;
  color: var(--accent-blue);
}

.analytics-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}

.live-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.live-chat {
  border-left: 1px solid rgba(95, 242, 182, 0.1);
  padding-left: 1rem;
}

.live-chat .card-header,
.live-chat .support-header,
.live-chat .moderation-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(6, 12, 10, 0.92);
  backdrop-filter: blur(6px);
  margin-top: 0;
  padding-top: 0.35rem;
}

.chat-log {
  height: clamp(260px, 48vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(95, 242, 182, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(6, 12, 10, 0.6);
  margin-bottom: 0.5rem;
}

.chat-message {
  margin-bottom: 0.75rem;
}

.chat-reply-context {
  font-size: 0.74rem;
  color: rgba(216, 249, 231, 0.85);
  background: rgba(95, 242, 182, 0.08);
  border-left: 2px solid rgba(95, 242, 182, 0.4);
  padding: 0.25rem 0.45rem;
  margin-bottom: 0.35rem;
  border-radius: 6px;
}

.chat-message strong {
  color: var(--accent);
  margin-right: 0.35rem;
}

.chat-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.chat-inline-btn {
  background: rgba(95, 242, 182, 0.12);
  border: 1px solid rgba(95, 242, 182, 0.28);
  color: rgba(236, 253, 245, 0.95);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.chat-inline-btn:hover {
  background: rgba(95, 242, 182, 0.2);
}

.chat-report-btn {
  color: rgba(248, 113, 113, 0.9);
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.chat-report-btn:hover {
  color: rgba(254, 226, 226, 0.95);
  background: rgba(248, 113, 113, 0.2);
}

.chat-reply-preview {
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(95, 242, 182, 0.28);
  background: rgba(6, 12, 10, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
}

.chat-shadow-hidden {
  border-left: 3px solid rgba(253, 224, 71, 0.5);
  padding-left: 0.45rem;
}

.presence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}

.presence-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 242, 182, 0.25);
  background: rgba(95, 242, 182, 0.08);
  font-size: 0.74rem;
  line-height: 1.3;
}

.emote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

#chat-jump-latest {
  margin: -0.1rem 0 0.55rem;
}

#comment-emote-search {
  max-width: 260px;
}

#comment-emote-search.hidden {
  display: none;
}

.inline-emote {
  display: inline-block;
  height: 1.25em;
  width: auto;
  vertical-align: middle;
  margin: -0.15em 0.1em 0;
}

.emote-button {
  border: 1px solid rgba(95, 242, 182, 0.3);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  background: rgba(6, 12, 10, 0.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.emote-button button {
  padding: 0 0.4rem;
}

.notification-panel {
  position: absolute;
  top: 60px;
  right: 1rem;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(6, 12, 10, 0.95);
  border: 1px solid rgba(95, 242, 182, 0.2);
  border-radius: 16px;
  z-index: 20;
}

.notification-panel.hidden {
  display: none;
}

.notification-item {
  border-bottom: 1px solid rgba(95, 242, 182, 0.1);
  padding: 0.35rem 0;
}

@media (max-width: 900px) {
  .live-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 720px) {
  .chat-log {
    height: clamp(220px, 52vh, 340px);
  }
}
.avatar {
  border-radius: 999px;
  object-fit: cover;
  background: rgba(95, 242, 182, 0.15);
  border: 1px solid rgba(95, 242, 182, 0.25);
  display: block;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

.avatar-sm {
  width: 36px;
  height: 36px;
}

.avatar-md {
  width: 64px;
  height: 64px;
}

.avatar-xl {
  width: 140px;
  height: 140px;
}

.qr-preview {
  width: min(240px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem;
  border: 1px solid rgba(95, 242, 182, 0.25);
}

.owner-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.owner-inline .owner-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.owner-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.owner-link:hover {
  text-decoration: underline;
}

.owner-avatar-link {
  display: inline-flex;
  border-radius: 999px;
}

.video-share-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.reaction-micro {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.video-share-row > .ghost-btn {
  flex: 1;
  text-align: center;
}

.video-share-row .share-menu {
  position: relative;
  flex: 0 0 auto;
}

.video-share-row .share-menu .ghost-btn {
  flex: 0 0 auto;
  text-align: center;
  min-width: 8rem;
}

.share-menu-panel {
  position: absolute;
  right: 0;
  z-index: 20;
  top: calc(100% + 0.4rem);
  min-width: 12rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.35);
  padding: 0.25rem;
}

.share-menu-panel.hidden {
  display: none;
}

.share-menu-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 0;
  border-radius: 0.4rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.share-menu-item:hover,
.share-menu-item:focus-visible {
  background: var(--surface-muted);
  color: var(--text-strong);
  outline: none;
}

.up-next-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.up-next-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .up-next-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.up-next-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.up-next-thumb {
  position: relative;
  display: block;
  flex: 0 0 160px;
  aspect-ratio: 16 / 9;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--surface-muted);
}

.up-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.up-next-thumb .duration-pill {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.up-next-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.up-next-meta h3 {
  font-size: 1rem;
  margin: 0;
}

.up-next-meta .hint {
  margin: 0;
}

.up-next-meta .up-next-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.up-next-item:first-child .up-next-meta h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.player-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reaction-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
}

.reaction-btn {
  flex: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 15, 13, 0.6);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.reaction-btn span {
  margin-left: 0.3rem;
  font-weight: 600;
}

.reaction-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(95, 242, 182, 0.15);
}

#watch-later-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.profile-menu {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 180px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 20;
}

.profile-dropdown a,
.profile-dropdown button {
  width: 100%;
  text-align: left;
}

.profile-logout {
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 0.35rem;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 15;
}

.sidebar-overlay.hidden {
  display: none;
}

.comment-chip {
  display: flex;
  gap: 0.75rem;
}

.comment-chip .comment-avatar {
  flex-shrink: 0;
}

.comment-chip .comment-body {
  flex: 1;
}

.channel-hero {
  align-items: center;
}

.channel-hero-left {
  flex: 1;
}

.channel-trailer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  background: var(--channel-surface-bg);
  border: 1px solid var(--channel-border-color);
  border-radius: 22px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  align-items: stretch;
}

.trailer-player {
  position: relative;
}

.trailer-video-shell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  background: #010305;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.trailer-video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trailer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
}

.trailer-overlay.hidden {
  display: none;
}

.trailer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trailer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.trailer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  background: var(--channel-surface-bg);
  border: 1px solid var(--channel-border-color);
  border-radius: 22px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.pinned-videos,
.featured-playlists {
  background: var(--channel-surface-bg);
  border: 1px solid var(--channel-border-color);
  border-radius: 22px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.pinned-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pinned-card .pinned-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

@media (max-width: 760px) {
  .search-grid,
  .video-grid.dense,
  .channel-page .channel-grid,
  .pinned-grid {
    grid-template-columns: 1fr;
  }
}

.featured-playlists-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.channel-community {
  margin-top: 2rem;
}

.community-table-shell {
  overflow-x: auto;
}

.community-table {
  width: 100%;
  border-collapse: collapse;
}

.community-table th,
.community-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.community-type {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.community-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(95, 242, 182, 0.15);
  color: var(--channel-accent, #5ff2b6);
  width: fit-content;
}

.community-entry h4 {
  margin: 0 0 0.25rem;
}

.community-entry p {
  margin: 0.1rem 0;
}

.community-poll {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-poll-option {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.community-poll-option.is-selected {
  border-color: var(--channel-accent, #5ff2b6);
}

.community-poll-option[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.community-poll-bar {
  position: relative;
  display: block;
  padding: 0.15rem 0.35rem;
  font-size: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
}

.community-poll-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  width: calc(var(--percent, 0) * 1%);
  background: rgba(95, 242, 182, 0.25);
  border-radius: 999px;
  z-index: 0;
}

.community-poll-bar {
  z-index: 1;
}

.community-countdown {
  font-weight: 600;
}

.community-actions {
  margin-top: 0.5rem;
}

.community-pinned {
  margin-top: 0.5rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

.featured-playlist-card {
  border: 1px solid var(--channel-border-color);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(7, 12, 11, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.featured-playlist-card h4 {
  margin: 0;
}

.featured-playlist-card p {
  margin: 0;
}

.featured-playlist-card .ghost-btn {
  align-self: flex-start;
}

.playlist-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-thumb.placeholder span {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.65);
}

.playlist-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.featured-video video {
  width: 100%;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.featured-meta h2 {
  margin-bottom: 0.5rem;
}

.featured-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.35rem 0 0.85rem;
}

.featured-stats span {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.channel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.channel-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.channel-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.filter-chip input {
  accent-color: var(--accent);
}

.sort-select {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.sort-select select {
  min-width: 190px;
  border-radius: 999px;
  background: rgba(4, 9, 8, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 0.45rem 0.9rem;
}

.video-card-link {
  cursor: pointer;
}

.video-card-link:focus,
.video-card-link:focus-within {
  outline: 2px solid var(--channel-accent, #5ff2b6);
  outline-offset: 4px;
}

.channel-grid-more {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 8, 7, 0.65);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.video-thumb.placeholder {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: inherit;
  background: rgba(6, 12, 10, 0.85);
  border: 1px dashed rgba(94, 242, 182, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.45);
}

.video-thumb.placeholder span {
  font-weight: 700;
}

.featured-link {
  color: var(--channel-accent, #5ff2b6);
  text-decoration: none;
  font-weight: 600;
}

.featured-link:hover,
.featured-link:focus {
  text-decoration: underline;
}

.video-detail-stats {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-metrics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.video-metrics span {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.chat-guidelines {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(95, 242, 182, 0.22);
  background: rgba(11, 18, 16, 0.85);
  box-shadow: 0 18px 40px rgba(3, 7, 5, 0.45);
}

.chat-guidelines h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.chat-guidelines .guidelines-content p {
  margin: 0 0 0.6rem;
  line-height: 1.5;
  color: rgba(236, 253, 245, 0.85);
}

.chat-guidelines .guidelines-content p:last-child {
  margin-bottom: 0;
}

.ghost-btn.small {
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

body.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.modal-shell.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 5, 0.78);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  max-width: 480px;
  width: calc(100% - 2.5rem);
  background: rgba(11, 18, 16, 0.96);
  border: 1px solid rgba(95, 242, 182, 0.15);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 28px 60px rgba(2, 7, 5, 0.55);
}

.modal-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(236, 253, 245, 0.85);
}

.modal-subtext {
  font-size: 0.9rem;
  color: rgba(236, 253, 245, 0.65);
  margin: 0;
  word-break: break-word;
}

.membership-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.35rem 0 0.75rem;
}

.membership-price .price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
}

.membership-price .hint {
  font-size: 0.95rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-card textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 8, 7, 0.9);
  color: inherit;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.dmca-card {
  border: 1px solid rgba(95, 242, 182, 0.18);
  border-radius: 14px;
  background: rgba(11, 18, 16, 0.92);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 14px 30px rgba(3, 7, 5, 0.45);
}

.dmca-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dmca-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.dmca-card-header select {
  background: rgba(4, 8, 7, 0.9);
  border: 1px solid rgba(95, 242, 182, 0.25);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  color: inherit;
}

.dmca-card-body textarea {
  width: 100%;
  min-height: 90px;
  background: rgba(4, 8, 7, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: inherit;
  padding: 0.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.dmca-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.dmca-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(95, 242, 182, 0.15);
  display: grid;
  gap: 1rem;
}

.dmca-details h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.dmca-url-list {
  margin: 0;
  padding-left: 1.1rem;
  word-break: break-all;
}

.dmca-form {
  display: grid;
  gap: 1rem;
}

.dmca-form .field-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dmca-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dmca-form input,
.dmca-form textarea {
  width: 100%;
  background: rgba(4, 8, 7, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: inherit;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.dmca-form textarea {
  min-height: 140px;
  resize: vertical;
}

.dmca-form button[type='submit'] {
  align-self: flex-end;
}

.dmca-confirmations {
  border: 1px solid rgba(95, 242, 182, 0.2);
  background: rgba(11, 18, 16, 0.9);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.dmca-confirmations legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dmca-confirmations .toggle-control {
  align-items: flex-start;
  gap: 0.75rem;
}

.status-line {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 500;
}

.status-line.success {
  color: var(--success);
}

.status-line.error {
  color: var(--danger);
}

.status-line.info {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-stats {
    width: 100%;
  }

  .channel-trailer {
    grid-template-columns: 1fr;
  }

  .trailer-video-shell {
    min-height: 220px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }
}

.stream-tools .input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.stream-tools .input-row input {
  flex: 1;
}

.chat-embed {
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(95, 242, 182, 0.2);
  border-radius: 16px;
  background: rgba(6, 12, 10, 0.8);
}

.hint-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.stream-tools .owner-actions {
  display: flex;
  gap: 0.5rem;
}

.control-health-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stream-health-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.stream-health-meta .hint[data-state='error'] {
  color: var(--danger);
}

.stream-health-meta .hint[data-state='success'] {
  color: var(--success);
}

.stream-health-meta .hint[data-state='info'] {
  color: var(--muted);
}

#control-handoff-card {
  scroll-margin-top: 90px;
}

#control-handoff-card.is-emphasized {
  box-shadow:
    0 0 0 1px rgba(95, 242, 182, 0.45),
    0 18px 40px rgba(8, 12, 18, 0.45);
}

.inset-card {
  background: rgba(7, 11, 17, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.control-marker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.control-marker-copy {
  display: grid;
  gap: 0.2rem;
}

.control-replay-thumbnail {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 8, 14, 0.78);
}

.wizard-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.wizard-presets article {
  border: 1px solid rgba(95, 242, 182, 0.2);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(6, 12, 10, 0.55);
}

.wizard-presets h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-chip.status-online {
  background: rgba(95, 242, 182, 0.18);
  border: 1px solid rgba(95, 242, 182, 0.4);
  color: #5ff2b6;
}

.status-chip.status-offline {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.status-chip.success {
  background: rgba(95, 242, 182, 0.18);
  border: 1px solid rgba(95, 242, 182, 0.35);
  color: #5ff2b6;
}

.status-chip.danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.status-chip.pending {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #facc15;
}
body.chat-only .live-layout {
  grid-template-columns: 1fr;
}

body.chat-only .live-chat {
  max-width: 720px;
  margin: 0 auto;
}

body.chat-only .live-player .player-card,
body.chat-only .support-alerts {
  display: none;
}

.signup-card {
  max-width: 720px;
  margin: 2rem auto;
}

.signup-step-meta h2 {
  margin-bottom: 0.35rem;
}

.signup-step-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signup-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(236, 253, 245, 0.78);
  font-size: 0.85rem;
  font-weight: 600;
}

.signup-step-pill.is-active {
  border-color: rgba(95, 242, 182, 0.45);
  background: rgba(95, 242, 182, 0.12);
  color: #ecfdf5;
}

.signup-step-panel {
  margin: 0;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.signup-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.signup-step-actions .ghost-btn {
  flex: 0 0 auto;
}

.signup-step-actions .primary-btn {
  flex: 1 1 220px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.hint.center {
  text-align: center;
}
.policy-shell {
  max-width: 1140px;
  padding: 2rem 1rem 4rem;
}

.policy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-toc {
  position: relative;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.policy-toc .toc-toggle {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(95, 242, 182, 0.35);
  background: rgba(7, 12, 11, 0.65);
  color: #fff;
  cursor: pointer;
}

.policy-toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
  display: none;
  gap: 0.35rem;
}

.policy-toc-list li {
  margin: 0;
}

.policy-toc-list a {
  display: block;
  padding: 0.35rem 0.25rem;
  color: rgba(236, 253, 245, 0.85);
  text-decoration: none;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.policy-toc-list a:hover,
.policy-toc-list a:focus-visible {
  background: rgba(95, 242, 182, 0.12);
  color: #fff;
  outline: none;
}

.policy-toc.is-open .policy-toc-list {
  display: grid;
}

.policy-hero {
  margin-bottom: 1.5rem;
}

.policy-hero p {
  color: rgba(255, 255, 255, 0.85);
}

.policy-section + .policy-section {
  margin-top: 1rem;
}

.policy-section ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.policy-section li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.voice-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.voice-status-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 0.85rem;
  background: rgba(5, 12, 14, 0.72);
}

.voice-status-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}

.voice-status-card p {
  margin: 0;
  color: #f8fafc;
  font-weight: 700;
}

.voice-status-card::before {
  content: '';
  display: block;
  width: 0.62rem;
  height: 0.62rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.86);
}

.voice-status-card[data-voice-status='healthy']::before {
  background: var(--success);
}

.voice-status-card[data-voice-status='degraded']::before {
  background: #facc15;
}

.voice-status-card[data-voice-status='offline']::before {
  background: var(--danger);
}

.voice-status-card dl {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
}

.voice-status-card dl div {
  min-width: 0;
}

.voice-status-card dt {
  margin: 0 0 0.08rem;
  color: rgba(226, 232, 240, 0.66);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.voice-status-card dd {
  margin: 0;
  color: rgba(236, 253, 245, 0.9);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.vtt-pricing-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(95, 242, 182, 0.28);
  background:
    radial-gradient(circle at 86% 18%, rgba(46, 201, 255, 0.16), transparent 48%),
    radial-gradient(circle at 12% 80%, rgba(95, 242, 182, 0.16), transparent 50%),
    linear-gradient(140deg, rgba(7, 14, 13, 0.98), rgba(5, 10, 10, 0.96));
}

.vtt-pricing-hero p {
  max-width: 74ch;
}

.premium-hero {
  border: 1px solid rgba(95, 242, 182, 0.42);
}

.premium-price-row {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.premium-price-chip {
  border-radius: 12px;
  border: 1px solid rgba(95, 242, 182, 0.22);
  background: rgba(5, 10, 9, 0.74);
  padding: 0.85rem 0.95rem;
}

.premium-price-chip h2 {
  margin: 0;
  font-size: 1.45rem;
}

.premium-price-chip p {
  margin: 0.3rem 0 0;
  color: rgba(213, 248, 233, 0.86);
}

.premium-benefit-grid .vtt-plan-card {
  border-color: rgba(95, 242, 182, 0.24);
}

.vtt-pricing-hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vtt-pricing-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.vtt-plan-card {
  border-radius: 14px;
  border: 1px solid rgba(95, 242, 182, 0.2);
  background: rgba(6, 12, 11, 0.8);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
}

.vtt-plan-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.vtt-plan-subtitle {
  margin: 0;
  color: rgba(213, 248, 233, 0.86);
  font-size: 0.95rem;
  line-height: 1.4;
}

.vtt-plan-price {
  margin: 0.2rem 0 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.vtt-plan-price span {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(213, 248, 233, 0.9);
}

.vtt-plan-annual {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(213, 248, 233, 0.9);
}

.vtt-plan-list {
  margin: 0.2rem 0 0.6rem;
  padding-left: 1.1rem;
  color: rgba(228, 252, 240, 0.94);
  display: grid;
  gap: 0.45rem;
}

.vtt-plan-list li {
  margin: 0;
}

.vtt-plan-card .block,
.vtt-plan-card .full-width {
  margin-top: auto;
}

.vtt-plan-card.featured {
  border-color: rgba(95, 242, 182, 0.62);
  box-shadow: 0 18px 44px -32px rgba(95, 242, 182, 0.52);
  background: radial-gradient(circle at 92% 8%, rgba(46, 201, 255, 0.16), transparent 45%), rgba(7, 14, 13, 0.92);
}

.vtt-plan-badge {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #03100b;
  background: linear-gradient(135deg, #5ff2b6, #2ec9ff);
}

@media (max-width: 640px) {
  .vtt-pricing-hero-actions .primary-btn,
  .vtt-pricing-hero-actions .ghost-btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .policy-layout {
    grid-template-columns: 260px 1fr;
    align-items: flex-start;
  }
  .policy-toc {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
  .policy-toc .toc-toggle {
    display: none;
  }
  .policy-toc-list {
    display: grid;
  }
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 5000;
  background: rgba(6, 11, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 40px 95px -60px rgba(0, 0, 0, 0.9);
}

.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-message {
  flex: 1 1 320px;
}

.cookie-message strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #fff;
}

.cookie-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.cookie-actions .ghost-btn,
.cookie-actions .primary-btn {
  white-space: nowrap;
}

.verification-banner {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(249, 115, 22, 0.16);
  border-bottom: 1px solid rgba(249, 115, 22, 0.35);
}

.verification-banner-copy p {
  margin: 0.25rem 0 0;
  color: rgba(255, 245, 230, 0.9);
  font-size: 0.9rem;
}

.verification-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.load-more-shell {
  margin-top: 1rem;
  text-align: center;
}

#video-scroll-sentinel {
  height: 1px;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(4, 9, 8, 0.9);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.back-to-top.hidden {
  display: none;
}

@media (max-width: 960px) {
  .admin-suite-shell {
    grid-template-columns: 1fr;
  }
  .admin-suite-nav {
    width: 100%;
    position: static;
  }
  .suite-nav-toggle {
    display: inline-flex;
  }
  .admin-suite-nav nav {
    display: none;
  }
  .admin-suite-nav.open nav {
    display: block;
  }
  .admin-layout-overview,
  .admin-layout-moderation,
  .admin-card-grid-2,
  .admin-card-grid-3 {
    grid-template-columns: 1fr;
  }
  .admin-card-compact {
    max-width: none;
  }
}
.progress-fill.progress-0 {
  width: 0%;
}

/* VTT Studio */
.vtt-stage {
  position: relative;
  min-height: calc(100vh - 72px);
  background: radial-gradient(circle at 20% 20%, rgba(95, 242, 182, 0.08), transparent 45%), #040908;
  color: #f6fbf8;
}

.vtt-stage.foundry-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.foundry-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(6, 12, 11, 0.95), rgba(4, 8, 7, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.scene-rail {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.scene-rail::-webkit-scrollbar {
  height: 6px;
}

.scene-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.scene-rail-placeholder {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.65;
  white-space: nowrap;
}

.scene-pill {
  min-width: 150px;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.85rem;
  background: rgba(6, 9, 8, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  font-size: 0.85rem;
  text-align: left;
}

.scene-pill.active {
  border-color: rgba(95, 242, 182, 0.9);
  background: rgba(95, 242, 182, 0.15);
  box-shadow: 0 0 12px rgba(95, 242, 182, 0.2);
}

.scene-pill small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.foundry-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.foundry-top-actions .icon-btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.foundry-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.toolbelt {
  width: 260px;
  flex-shrink: 0;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(6, 13, 12, 0.95), rgba(3, 6, 5, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toolbelt-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 4, 4, 0.55);
  color: inherit;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border 0.15s ease,
    background 0.15s ease;
}

.tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tool-btn.active {
  border-color: rgba(95, 242, 182, 0.9);
  background: rgba(95, 242, 182, 0.12);
  box-shadow: inset 0 0 15px rgba(95, 242, 182, 0.15);
}

.tool-key {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
}

.tool-panel {
  background: rgba(4, 7, 6, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-panel.disabled {
  opacity: 0.45;
}

.tool-panel h3 {
  margin: 0;
  font-size: 0.95rem;
}

.tool-panel label {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tool-panel .token-config {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-panel .token-config label {
  flex: 1;
}

.tool-panel .token-config input[type='text'],
.tool-panel .token-config input[type='color'] {
  width: 100%;
}

.board-region {
  flex: 1;
  position: relative;
  background: rgba(3, 6, 6, 0.85);
}

.board-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(7, 15, 13, 0.95);
  border-radius: 1rem 1rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

#vtt-board {
  width: 100%;
  height: 100%;
  display: block;
}

.board-status-pill {
  position: static;
  background: rgba(6, 9, 8, 0.9);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vtt-sidebar {
  width: min(420px, 32vw);
  background: rgba(4, 9, 8, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.vtt-sidebar.collapsed {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.sidebar-header {
  padding: 1.25rem 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.overlay-heading h2 {
  margin: 0;
}

.overlay-heading .hint {
  margin: 0;
}

.overlay-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.overlay-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.overlay-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: inherit;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overlay-tab.active {
  background: rgba(95, 242, 182, 0.2);
  border-color: rgba(95, 242, 182, 0.5);
  color: #5ff2b6;
}

.overlay-panels {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow-y: auto;
}

.overlay-panel {
  display: none;
}

.overlay-panel.active {
  display: block;
}

@media (max-width: 960px) {
  .foundry-body {
    flex-direction: column;
  }
  .toolbelt {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
  }
  .vtt-sidebar {
    width: 100%;
  }
}

.storage-panel {
  margin-top: 0.5rem;
}

.storage-meter {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.storage-progress {
  --storage-progress: 0%;
  position: relative;
  width: 100%;
  height: 100%;
}

.storage-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--storage-progress, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(95, 242, 182, 0.7), rgba(39, 201, 255, 0.8));
}

.campaign-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.campaign-meta div {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.campaign-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.campaign-meta dd {
  margin: 0;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border: 1px dashed rgba(95, 242, 182, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.feed-grid .empty-state-card {
  grid-column: 1 / -1;
}

.empty-state-card h3 {
  margin: 0 0 0.4rem;
}

.empty-state-card .hint {
  margin: 0;
  color: var(--muted);
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.empty-state-actions .ghost-btn {
  border-color: rgba(95, 242, 182, 0.4);
  background: rgba(95, 242, 182, 0.08);
}

.member-row,
.invite-row,
.library-row,
.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.member-row:last-child,
.invite-row:last-child,
.library-row:last-child,
.asset-row:last-child {
  border-bottom: 0;
}

.member-actions,
.invite-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.asset-row {
  align-items: stretch;
}

.asset-preview {
  width: 96px;
  min-height: 64px;
  border-radius: 0.6rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-thumb {
  font-size: 0.85rem;
  opacity: 0.7;
}

.asset-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.library-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.foundry-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 7, 0.95);
  padding: 0.75rem 1.5rem;
}

.macro-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.macro-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.player-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(5, 10, 9, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.player-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(95, 242, 182, 0.4);
}

.player-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.scene-row,
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scene-row:last-child,
.player-row:last-child {
  border-bottom: 0;
}

.scene-row.active {
  background: rgba(95, 242, 182, 0.08);
  border-radius: 0.6rem;
  padding: 0.75rem;
}

.scene-row .scene-actions,
.player-row .player-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.chip-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.aethera-vtt-host {
  min-height: calc(100vh - 200px);
  background:
    radial-gradient(circle at top, rgba(95, 242, 182, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.16), transparent 30%), #05090f;
  padding: 0;
}

#aethera-vtt-root {
  min-height: 70vh;
}

.vtt-launch-shell {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(1rem, 3.5vw, 2rem) auto;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(145deg, rgba(8, 14, 24, 0.96), rgba(4, 9, 15, 0.98)),
    radial-gradient(circle at top, rgba(95, 242, 182, 0.08), transparent 48%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.vtt-launch-shell__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vtt-launch-shell__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.55;
}

.vtt-launch-shell__orb--mint {
  top: -110px;
  right: -70px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(95, 242, 182, 0.24), transparent 68%);
}

.vtt-launch-shell__orb--ice {
  bottom: -130px;
  left: -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 70%);
}

.vtt-launch-shell__header,
.vtt-launch-shell__grid,
.vtt-launch-shell__support,
.vtt-launch-shell noscript {
  position: relative;
  z-index: 1;
}

.vtt-launch-shell__header {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.vtt-launch-shell__header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.vtt-launch-shell__lede {
  margin: 0;
  max-width: 42rem;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1.02rem;
}

.vtt-launch-shell__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 242, 182, 0.26);
  background: rgba(95, 242, 182, 0.08);
}

.vtt-launch-shell__status::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #5ff2b6;
  box-shadow: 0 0 0 0 rgba(95, 242, 182, 0.45);
  animation: vtt-shell-ping 1.8s ease-out infinite;
}

.vtt-launch-shell__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
}

.vtt-launch-shell__panel {
  padding: 1rem 1rem 1.15rem;
  background: rgba(20, 26, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.vtt-launch-shell__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.vtt-launch-shell__panel-header h2 {
  margin: 0;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vtt-launch-shell__pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 242, 182, 0.24);
  background: rgba(95, 242, 182, 0.12);
  color: rgba(245, 251, 255, 0.92);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vtt-launch-shell__pill.is-muted {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.12);
}

.vtt-launch-shell__stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vtt-launch-shell__card {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 17, 27, 0.7);
}

.vtt-launch-shell__line,
.vtt-launch-shell__input,
.vtt-launch-shell__button,
.vtt-launch-shell__qr-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.14);
}

.vtt-launch-shell__line::after,
.vtt-launch-shell__input::after,
.vtt-launch-shell__button::after,
.vtt-launch-shell__qr-box::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: vtt-shell-shimmer 1.8s ease-in-out infinite;
}

.vtt-launch-shell__line.is-title {
  width: 62%;
  height: 1rem;
  margin-bottom: 0.65rem;
}

.vtt-launch-shell__line.is-meta {
  width: 86%;
  height: 0.72rem;
}

.vtt-launch-shell__line.is-meta.is-short {
  width: 58%;
}

.vtt-launch-shell__line.is-detail {
  width: 82%;
  height: 0.75rem;
  margin: 0.9rem 0 1rem;
}

.vtt-launch-shell__line.is-copy {
  width: 100%;
  height: 0.78rem;
  margin-bottom: 0.55rem;
}

.vtt-launch-shell__line.is-copy-short {
  width: 68%;
  height: 0.72rem;
}

.vtt-launch-shell__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 0.65rem;
  align-items: center;
}

.vtt-launch-shell__input {
  min-height: 2.8rem;
}

.vtt-launch-shell__button {
  min-height: 2.8rem;
}

.vtt-launch-shell__qr {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.vtt-launch-shell__qr-box {
  width: 148px;
  height: 148px;
}

.vtt-launch-shell__qr-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vtt-launch-shell__support {
  margin: 1rem 0 0;
}

@keyframes vtt-shell-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes vtt-shell-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 242, 182, 0.45);
  }

  70% {
    box-shadow: 0 0 0 0.55rem rgba(95, 242, 182, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(95, 242, 182, 0);
  }
}

/* Aethera VTT layout (vtt.html) */
body.vtt-page {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #05090f;
}

body.vtt-page.vtt-runtime-active > .site-header {
  display: none;
}

body.vtt-page .aethera-vtt-host {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  display: flex;
}

body.vtt-page #aethera-vtt-root {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

body.vtt-page #aethera-vtt-root > .aethera-vtt {
  min-height: 100%;
  height: 100%;
}

@media (max-width: 960px) {
  .vtt-launch-shell__grid {
    grid-template-columns: 1fr;
  }

  .vtt-launch-shell__qr {
    grid-template-columns: 1fr;
  }

  .vtt-launch-shell__qr-box {
    width: min(180px, 100%);
    aspect-ratio: 1;
    height: auto;
  }
}

@media (max-width: 720px) {
  .vtt-launch-shell {
    width: min(100%, calc(100% - 1rem));
    margin: 0.5rem auto;
    padding: 1rem;
    border-radius: 18px;
  }

  .vtt-launch-shell__input-row {
    grid-template-columns: 1fr;
  }
}

/* Watch page polish */
body.cookie-banner-visible {
  padding-bottom: clamp(5rem, 14vh, 8.25rem);
}

body.settings-page.cookie-banner-visible {
  padding-bottom: clamp(8rem, 22vh, 12rem);
}

body.cookie-banner-visible .back-to-top {
  bottom: clamp(5.5rem, 15vh, 8.75rem);
}

.cookie-banner {
  left: auto;
  right: 1rem;
  transform: none;
  width: min(640px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  gap: 0.75rem;
  align-items: flex-end;
}

.cookie-message {
  flex: 1 1 420px;
  line-height: 1.4;
}

.cookie-message strong {
  display: inline;
  margin: 0 0.35rem 0 0;
}

.cookie-message p {
  display: inline;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-header {
  align-items: center;
  gap: 1rem;
}

.site-header > :nth-child(2):empty {
  display: none;
}

.site-header .header-actions {
  margin-left: auto;
  max-width: 100%;
  column-gap: 0.5rem;
  row-gap: 0.5rem;
  align-items: center;
}

.site-header .header-nav {
  gap: 0.45rem;
}

.site-header .header-actions .ghost-btn,
.site-header .header-actions .primary-btn,
.site-header .header-actions .user-pill {
  font-size: 0.84rem;
  line-height: 1.1;
}

.site-header .header-actions .ghost-btn,
.site-header .header-actions .primary-btn {
  padding: 0.38rem 0.85rem;
}

#video-card .video-meta {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

#video-card .video-meta > :first-child {
  grid-column: 1 / -1;
}

#video-card #detail-title {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

#video-card #detail-description {
  margin-top: 0.55rem;
  color: rgba(236, 253, 245, 0.9);
  line-height: 1.55;
  font-size: 0.98rem;
  max-width: 78ch;
}

#video-card .meta-inline {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  font-size: 0.96rem;
  color: rgba(228, 252, 240, 0.95);
}

#video-card .owner-inline {
  gap: 0.7rem;
  flex-wrap: nowrap;
}

#video-card .owner-inline .owner-text > span {
  color: rgba(207, 248, 228, 0.88);
  font-size: 0.92rem;
}

#video-card .video-detail-stats {
  margin-top: 0;
}

#video-card .stat-chip {
  font-size: 0.95rem;
  color: rgba(240, 255, 248, 0.96);
  border-color: rgba(95, 242, 182, 0.3);
  background: rgba(7, 14, 12, 0.72);
}

#video-card .player-actions {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid rgba(95, 242, 182, 0.18);
  border-radius: 14px;
  background: rgba(3, 9, 8, 0.45);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem 0.75rem;
  align-items: center;
}

#video-card .reaction-row {
  gap: 0.55rem;
}

#video-card .reaction-btn {
  padding: 0.42rem 0.72rem;
  font-size: 0.9rem;
}

#video-card .player-actions-right {
  justify-content: flex-end;
  gap: 0.55rem;
}

#video-card .player-actions-right .ghost-btn {
  font-size: 0.86rem;
  padding: 0.36rem 0.85rem;
}

#video-card .video-share-row {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(95, 242, 182, 0.12);
}

#video-card .video-share-row .ghost-btn {
  font-size: 0.9rem;
}

#detail-video::cue {
  font-size: var(--detail-video-caption-font-scale, 100%);
  color: var(--detail-video-caption-color, #ffffff);
  background-color: var(--detail-video-caption-background, #000000);
}

#video-card .report-block {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

#video-card .report-block .report-form {
  width: 100%;
}

#video-card .hint,
#up-next-card .hint,
#detail-comment-form .hint,
#detail-comments .hint {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(208, 246, 228, 0.88);
}

#up-next-card .up-next-meta h3 {
  font-size: 1.04rem;
  line-height: 1.28;
}

#up-next-card .up-next-meta .hint {
  color: rgba(196, 238, 219, 0.88);
}

#detail-comments .comment-chip p {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(230, 252, 242, 0.94);
}

#detail-comments .comment-header-row .hint,
#detail-comments .comment-meta {
  font-size: 0.82rem;
  color: rgba(184, 230, 210, 0.84);
}

@media (min-width: 980px) {
  #video-card .video-meta {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 0.85rem 1.25rem;
  }

  #video-card .video-meta > :first-child {
    grid-column: 1 / 2;
    grid-row: 1 / span 2;
  }

  #video-card .meta-inline {
    grid-column: 2;
    grid-row: 1;
  }

  #video-card .video-detail-stats {
    grid-column: 2;
    grid-row: 2;
  }

  #video-card .player-actions,
  #video-card .map-status-row,
  #video-card .video-share-row,
  #video-card #member-only-alert,
  #video-card #support-panel,
  #video-card #clip-toggle,
  #video-card .clip-panel,
  #video-card .clip-requests,
  #video-card .report-block,
  #video-card .chapter-panel,
  #video-card .transcript-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .site-header {
    gap: 0.75rem;
  }

  .site-header .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .site-header .header-actions .header-nav {
    margin-right: auto;
  }
}

@media (max-width: 980px) {
  #video-card .player-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  #video-card .player-actions-right {
    width: 100%;
    justify-content: flex-start;
  }

  #video-card .owner-inline {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .site-header .header-actions {
    justify-content: flex-start;
  }

  .site-header .header-actions .header-nav {
    width: 100%;
    margin-right: 0;
    order: -1;
  }
}

@media (max-width: 760px) {
  body.cookie-banner-visible {
    padding-bottom: clamp(8.5rem, 25vh, 11.5rem);
  }

  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 1rem), 100%);
    padding: 0.75rem 0.85rem;
    gap: 0.6rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .site-header .header-actions .ghost-btn,
  .site-header .header-actions .primary-btn {
    padding: 0.32rem 0.68rem;
    font-size: 0.8rem;
  }
}

.pinned-message {
  padding: 8px 12px;
  margin: 8px 0 12px;
  background: #fff5d8;
  border: 1px solid #f0d98f;
  border-radius: 8px;
  font-size: 0.95rem;
}

#continue-card,
#recommend-card,
#discover-card,
#seasonal-card,
#rising-card {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

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