@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #030705;
  --surface: #0b1210;
  --card: #111c18;
  --border: #133428;
  --text: #ecfdf5;
  --muted: #8ed4b6;
  --accent: #5ff2b6;
  --accent-strong: #34d399;
  --accent-blue: #2ec9ff;
  --danger: #f43f5e;
  --success: #34d399;
  --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);
  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%);
}

.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;
}

body[data-embed='true'][data-embed-ui='minimal'] .app-shell {
  max-width: none;
  padding: 0;
}

body[data-embed='true'][data-embed-ui='minimal'] #video-card {
  box-shadow: none;
  background: transparent;
  margin: 0;
}

body[data-embed='true'][data-embed-ui='minimal'] .player-card {
  padding: 0;
  background: transparent;
}

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;
}

body[data-embed='true'][data-embed-ui='minimal'] .player-stage {
  border-radius: 0;
}

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'] #detail-shell .video-meta {
  padding: 0.75rem 0;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #061638 0%, #030712 60%);
  padding: 2rem 1rem;
}

.auth-card {
  width: min(420px, 100%);
  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;
}

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;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.hero-tile {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-tile h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.hero-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
}

.hero-card .primary-btn {
  min-width: 180px;
}

.hero-card .ghost-btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(226, 232, 240, 0.9);
}

.spotlight-card {
  margin-bottom: 1.5rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.spotlight-tile {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.35);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.spotlight-tile p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
}

.spotlight-tile .text-link {
  color: var(--accent);
  font-weight: 600;
}

.lore-card {
  margin-top: 1.5rem;
}

.feature-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-columns h3 {
  margin: 0 0 0.4rem;
}

.feature-columns p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
}

.text-link {
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.about-hero {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.35), rgba(148, 163, 184, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.about-hero h1 {
  margin-top: 0;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
}

.about-section {
  margin-top: 1.5rem;
  line-height: 1.6;
}

.about-section h2 {
  margin-top: 0;
}

.about-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: rgba(226, 232, 240, 0.85);
}

.about-list li {
  margin-bottom: 0.6rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.chat-mode-banner {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-mode-banner span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.support-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.live-chat .support-panel {
  margin-top: 2rem;
}

.support-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* Player overlays and help */
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  z-index: 8;
  padding: 16px;
  text-align: center;
}

.player-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.4);
  border-top-color: #5ff2b6;
  border-radius: 50%;
  animation: player-spin 0.9s linear infinite;
}

@keyframes player-spin {
  to {
    transform: rotate(360deg);
  }
}

.age-gate-card,
.resume-card {
  background: #0b0f14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.age-gate-actions,
.resume-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.player-help-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(12, 18, 26, 0.9);
}

.player-help-panel .help-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.live-player {
  position: relative;
}

.live-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.25rem;
}

.live-mode-row .hint {
  margin: 0;
}

.live-mode-row .ghost-btn {
  margin-left: auto;
}

.support-alerts {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 280px;
  pointer-events: none;
  z-index: 30;
}

.support-alert {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: fadeSlide 0.25s ease-out;
}

.support-alert h4 {
  margin: 0;
  font-size: 0.95rem;
}

.support-alert p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.support-alert.support-aether {
  border-color: rgba(129, 140, 248, 0.6);
}

.support-alert.support-tip {
  border-color: rgba(16, 185, 129, 0.6);
}

.live-player-stage {
  min-height: 240px;
}

.live-autoplay-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  text-align: center;
  width: calc(100% - 3rem);
  max-width: 340px;
  z-index: 14;
  pointer-events: none;
}

.live-autoplay-title {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.live-autoplay-hint .hint {
  color: rgba(226, 232, 240, 0.9);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-toggle {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.support-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.support-content {
  margin-top: 1rem;
}

.support-content.collapsed {
  display: none;
}

.support-leaderboard {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
}

.support-leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.support-leaderboard h4 {
  margin: 0;
  font-size: 1rem;
}

.leaderboard-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.35rem 0.15rem;
}

.moderation-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.25);
}

.moderation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.moderation-content {
  margin-top: 1rem;
}

.moderation-content.collapsed {
  display: none;
}

.moderation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.toggle-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.blocked-words-field textarea {
  margin-top: 0.4rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: inherit;
  padding: 0.6rem;
}

.moderation-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.session-tools {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: 1rem;
}

.session-tools .owner-actions {
  justify-content: flex-start;
}

.ban-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.ban-form input {
  margin-top: 0.3rem;
}

.ban-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ban-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}
.ban-entry-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.ban-select-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.ban-meta,
.ban-reason {
  font-size: 0.8rem;
  color: var(--muted);
}
.ban-reason {
  font-style: italic;
}

.ban-list button {
  border: none;
  background: rgba(255, 0, 0, 0.2);
  color: inherit;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.join-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.join-row .hint {
  flex: 1;
}


.clip-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.clip-panel-header {
  margin-bottom: 0.75rem;
}

.clip-mark-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.clip-mark-row label {
  flex: 1;
}

.clip-panel input[readonly] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  width: 100%;
}

.clip-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.clip-actions .hint {
  margin: 0;
}

.clip-requests {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clip-request-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clip-request-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(17, 28, 24, 0.75);
  border: 1px solid rgba(95, 242, 182, 0.12);
}

.clip-request-row.viewer {
  flex-direction: column;
}

.clip-request-row.pending {
  opacity: 0.6;
  pointer-events: none;
}

.clip-request-main {
  flex: 1;
  min-width: 0;
}

.clip-request-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.clip-request-actions.viewer {
  justify-content: flex-start;
}

.video-card.clip-card .thumb-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.video-card.clip-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card.clip-card .duration-pill {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-card.clip-card .video-meta {
  margin-top: 0.75rem;
}

.report-block {
  margin-top: 1rem;
}

.report-form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.18);
}

.report-actions {
  display: flex;
  gap: 0.75rem;
}

.report-form textarea {
  resize: vertical;
}





.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

#join-button {
  min-width: 140px;
}

.tip-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tip-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}

.tip-form input {
  margin-top: 0.25rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.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;
}

.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;
}
.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;
}

.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.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 220px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  z-index: 70;
}

.quick-menu.hidden {
  display: none;
}

.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: 300px 1fr;
  gap: 1.5rem;
}

.layout.admin-layout {
  grid-template-columns: 1fr 320px;
}

.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: 1.5rem;
  margin-top: 1rem;
}

body.drawer-open {
  overflow: hidden;
}

.studio-nav {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 1.5rem;
  height: fit-content;
}

.studio-nav-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.studio-nav-btn.active {
  background: linear-gradient(135deg, rgba(95, 242, 182, 0.18), rgba(46, 201, 255, 0.15));
  color: var(--accent);
  border-color: rgba(95, 242, 182, 0.45);
  box-shadow: 0 12px 30px rgba(95, 242, 182, 0.12);
}

.studio-main {
  flex: 1;
}

.studio-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.studio-panel.active {
  display: flex;
}

.studio-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(95, 242, 182, 0.12);
  border: 1px solid rgba(95, 242, 182, 0.3);
  color: var(--text);
  max-width: max-content;
  margin-bottom: 0.25rem;
}

.studio-breadcrumb .crumb-root {
  color: var(--muted);
  font-weight: 600;
}

.studio-breadcrumb .crumb-leaf {
  color: var(--accent);
  font-weight: 700;
}

.studio-breadcrumb .crumb-sep {
  color: rgba(255, 255, 255, 0.6);
}

.studio-breadcrumb.active {
  box-shadow: 0 12px 32px rgba(95, 242, 182, 0.14);
}

.panel-grid {
  display: grid;
  gap: 1.25rem;
}

.panel-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.social-link-row,
.channel-section-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.channel-section-row {
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

.social-link-row label,
.channel-section-row label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.social-link-row .inline-fields,
.channel-section-row .inline-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.channel-section-row textarea {
  resize: vertical;
  min-height: 90px;
}

.row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.section-reorder {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reorder-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.reorder-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.reorder-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.recommended-channels-editor {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recommended-channels-header {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.channel-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.chip-remove-btn {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chip-remove-btn:hover {
  color: #fca5a5;
}

.channel-suggest-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.channel-suggest-row input {
  flex: 1;
}

.channel-suggestion-list {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  max-height: 240px;
  overflow-y: auto;
}

.channel-suggestion-list.hidden {
  display: none;
}

.channel-suggestion {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.channel-suggestion:last-child {
  border-bottom: none;
}

.channel-suggestion strong {
  display: block;
  font-size: 0.95rem;
}

.channel-suggestion:hover {
  background: rgba(255, 255, 255, 0.05);
}

.channel-feedback.hidden {
  display: none;
}

.channel-feedback.error {
  color: #fca5a5;
}

.channel-feedback.success {
  color: var(--accent, #5ff2b6);
}

.ghost-btn.primary {
  color: var(--accent);
  border-color: rgba(95, 242, 182, 0.6);
}

.ghost-btn.primary:hover {
  border-color: rgba(95, 242, 182, 0.9);
  color: var(--accent-strong);
}

.ghost-btn.danger {
  border-color: rgba(244, 63, 94, 0.6);
  color: #fecdd3;
}

.ghost-btn.danger:hover {
  background: rgba(244, 63, 94, 0.12);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.checkbox-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
}

.library-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.library-actions input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  color: var(--text);
}

.table-wrapper {
  overflow-x: auto;
}

.video-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.video-table th,
.video-table td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.video-table th {
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.video-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.earnings-table td.details-cell {
  max-width: 320px;
  white-space: normal;
  word-break: break-word;
}

.earnings-table .amount-cell,
.earnings-table .supporter-cell,
.earnings-table .date-cell {
  white-space: nowrap;
}

.earnings-table .status-pill {
  font-size: 0.75rem;
}

.earnings-row.loading td {
  border-bottom: none;
}

.video-title-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.video-title-cell .video-title {
  margin: 0;
  font-weight: 600;
}

.video-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.map-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.upload-progress {
  margin-top: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.upload-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.upload-step:last-child {
  border-bottom: none;
}

.upload-step .badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.upload-step.active .badge {
  background: var(--accent);
  color: #03150f;
}

.upload-step.success .badge {
  background: rgba(52, 211, 153, 0.4);
  color: #16a34a;
}

.upload-step.error .badge {
  background: rgba(244, 63, 94, 0.3);
  color: var(--danger);
}

.upload-step.skipped .badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.upload-step .step-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.upload-step .step-meta strong {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.upload-step .step-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.table-empty {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  display: none;
}

.table-empty.active {
  display: block;
}

.panel-drawer {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transition: opacity 0.25s ease;
  opacity: 0;
  z-index: 120;
}

.panel-drawer.hidden {
  display: none;
}

.panel-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.drawer-backdrop {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
}

.drawer-panel {
  width: min(540px, 100%);
  max-width: 100%;
  background: rgba(3, 7, 5, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 100vh;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.drawer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.drawer-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.secret-input input.masked {
  -webkit-text-security: disc;
  text-security: disc;
  font-family: 'text-security-disc', 'Courier New', monospace;
}

.channel-preview-card {
  min-height: 100%;
}

.theme-customizer {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.theme-customizer .theme-custom-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.theme-customizer input[type='color'] {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
}

.section-payload {
  margin-top: 0.75rem;
  border: 1px dashed var(--channel-border-color);
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.section-payload select {
  width: 100%;
  min-height: 120px;
}

.funnel-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funnel-stage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.funnel-bar {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--channel-accent), transparent);
}

.funnel-label {
  min-width: 180px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 960px) {
  .studio-body {
    flex-direction: column;
  }

  .studio-nav {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .studio-nav-btn {
    flex: 1;
    text-align: center;
  }

  .panel-drawer {
    align-items: flex-end;
  }

  .drawer-panel {
    width: 100%;
    border-radius: 24px 24px 0 0;
  }
}

.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-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.search-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(6, 12, 10, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.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.discord {
  border-color: rgba(140, 126, 255, 0.55);
  background: linear-gradient(120deg, rgba(21, 15, 40, 0.85), rgba(8, 12, 21, 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);
}

.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-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  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;
}

.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);
}

.player-card video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  max-height: 420px;
}

.quality-menu-item {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.quality-menu-item:hover,
.quality-menu-item:focus-visible {
  background: rgba(95, 242, 182, 0.12);
  outline: none;
}

.quality-menu-item.active {
  background: rgba(95, 242, 182, 0.16);
  color: var(--accent);
}

.player-shell {
  position: relative;
}

.player-stage {
  position: relative;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
}

.player-stage video {
  display: block;
  width: 100%;
  background: #000;
}

.double-tap-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.94);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 12;
}

.double-tap-indicator span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.double-tap-indicator.show {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.double-tap-left {
  left: 4%;
}

.double-tap-right {
  right: 4%;
}

.preroll-layer {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: opacity 0.2s ease;
}

.preroll-layer.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.preroll-layer video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.preroll-ui {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preroll-countdown {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.preroll-adsense {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.preroll-adsense.hidden {
  display: none;
}

.preroll-adsense ins {
  min-width: 300px;
  min-height: 250px;
}

.player-big-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 15, 13, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  pointer-events: auto;
}

.player-big-play svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.player-big-play:hover,
.player-big-play:focus-visible {
  transform: scale(1.05);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 6px rgba(95, 242, 182, 0.18);
  outline: none;
}

.player-controls {
  margin-top: 0.75rem;
  background: rgba(7, 15, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: inherit;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  will-change: opacity, transform;
}
.player-shell.ui-hidden {
  cursor: none;
}
.player-shell.ui-hidden .player-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
}
.player-shell.is-fullscreen.ui-hidden .player-controls {
  transform: translateY(110%);
}
.player-shell.ui-hidden .player-controls-row,
.player-shell.ui-hidden .player-controls button,
.player-shell.ui-hidden .player-controls input {
  pointer-events: none;
}
.player-shell.ui-hidden .player-stage,
.player-shell.ui-hidden .player-stage video {
  cursor: none;
}
.player-shell.ui-hidden .player-stage button {
  cursor: pointer;
}
.player-shell.is-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
  overflow: hidden;
}
.player-shell.is-fullscreen .player-stage {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.player-shell.is-fullscreen .player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: none;
  max-width: none;
}
.player-shell.is-fullscreen.fill-cover .player-stage video {
  object-fit: cover;
}
.player-shell.is-fullscreen .player-controls {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  margin-top: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 45%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: auto;
}
.player-shell.is-fullscreen > :not(.player-stage):not(.player-controls) {
  /* Hide metadata/auxiliary panels so the video can fill the full screen */
  display: none !important;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-controls-row--seek {
  padding-bottom: 0.25rem;
}

.player-seek-wrapper {
  position: relative;
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  --seek-thumb-size: 14px;
  --seek-thumb-radius: calc(var(--seek-thumb-size) / 2);
  padding: 0 var(--seek-thumb-radius);
}

.player-preview {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 0;
  transform: translateX(-50%);
  background: rgba(3, 7, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  min-width: 140px;
  z-index: 4;
}

.player-preview img {
  width: 160px;
  height: auto;
  border-radius: 4px;
  background: #000;
}

.player-preview span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
}

.player-preview.hidden {
  display: none;
}

.player-seek-track,
.player-seek-buffer,
.player-seek-progress {
  position: absolute;
  height: 5px;
  border-radius: 999px;
  left: var(--seek-thumb-radius);
  top: 50%;
  pointer-events: none;
}

.player-seek-track {
  width: calc(100% - var(--seek-thumb-size));
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
}

.player-seek-buffer {
  width: calc(100% - var(--seek-thumb-size));
  --seek-buffer-scale: 0;
  transform-origin: left center;
  transform: translateY(-50%) scaleX(var(--seek-buffer-scale));
  background: rgba(255, 255, 255, 0.3);
}

.player-seek-progress {
  width: calc(100% - var(--seek-thumb-size));
  --seek-progress-scale: 0;
  transform-origin: left center;
  transform: translateY(-50%) scaleX(var(--seek-progress-scale));
  background: var(--accent);
}

.player-seek {
  width: 100%;
  appearance: none;
  background: transparent;
  position: relative;
  z-index: 2;
  height: 18px;
  cursor: pointer;
}

.player-seek::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 0 3px rgba(7, 15, 13, 0.82);
}

.player-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 0 3px rgba(7, 15, 13, 0.82);
}

.player-seek::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
}

.player-seek::-moz-range-track {
  height: 5px;
  background: transparent;
}

.player-controls-row--main {
  flex-wrap: wrap;
}

.player-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 24, 21, 0.8);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.player-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.player-btn .player-icon {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
}

.player-btn:hover,
.player-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(95, 242, 182, 0.2);
  outline: none;
}

.player-btn[aria-pressed='true'],
.player-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.player-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.player-volume {
  width: 120px;
  max-width: 30vw;
  display: flex;
}

.player-volume-slider {
  width: 100%;
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 18px;
}

.player-volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 0 3px rgba(7, 15, 13, 0.82);
}

.player-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 0 3px rgba(7, 15, 13, 0.82);
}

.player-volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) var(--volume-level, 100%),
    rgba(255, 255, 255, 0.2) var(--volume-level, 100%)
  );
}

.player-volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) var(--volume-level, 100%),
    rgba(255, 255, 255, 0.2) var(--volume-level, 100%)
  );
}

.player-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.player-controls-spacer {
  flex: 1;
}

.player-menu-control {
  position: relative;
  display: flex;
  align-items: center;
}

.player-menu {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
  background: rgba(7, 15, 13, 0.96);
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 12;
}

.player-menu.hidden {
  display: none;
}

.player-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0.45rem;
  border: none;
  background: transparent;
  padding: 0.45rem 0.5rem;
  color: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.player-menu button:hover,
.player-menu button:focus-visible {
  background: rgba(95, 242, 182, 0.14);
  color: var(--accent);
  outline: none;
}

.player-menu button[aria-checked='true'] {
  background: rgba(95, 242, 182, 0.25);
  color: var(--accent);
  font-weight: 600;
}

.player-seek-wrapper.is-scrubbing .player-seek-progress {
  background: rgba(95, 242, 182, 0.85);
}

@media (max-width: 680px) {
  .player-controls {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }

  .player-volume {
    width: 90px;
  }

.player-controls-row {
  gap: 0.6rem;
}
}

.premiere-lobby {
  margin-top: 1.25rem;
  border: 1px solid var(--channel-border-color);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(7, 12, 11, 0.9);
  display: none;
}

.premiere-lobby:not(.hidden) {
  display: block;
}

.premiere-lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.premiere-lobby-pinned {
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--channel-accent, #5ff2b6);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-style: italic;
}

.premiere-lobby-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.premiere-lobby-chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.premiere-lobby-chat .chat-log {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
}

.premiere-lobby-form {
  display: flex;
  gap: 0.5rem;
}

.premiere-lobby-form input {
  flex: 1;
}

.video-meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #bffbe0;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .video-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.video-grid.dense {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.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.75rem;
  border: 1px solid rgba(94, 242, 182, 0.12);
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -20px rgba(47, 255, 171, 0.4);
}

.video-thumb {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  background: #0a0a0a;
}

.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;
}

.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;
}

.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;
}

.ad-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 10, 9, 0.95), rgba(3, 6, 5, 0.95));
  border: 1px solid rgba(46, 201, 255, 0.2);
}

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;
}

.map-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.map-options.hidden {
  display: none;
}

.map-options input[type='number'] {
  width: 140px;
}

.map-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.map-status-row .status-pill {
  margin: 0;
}

.map-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.map-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  font-size: 0.9rem;
}

.map-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.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;
  }

  .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;
}

.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-message strong {
  color: var(--accent);
  margin-right: 0.35rem;
}

.chat-report-btn {
  background: none;
  border: none;
  color: rgba(248, 113, 113, 0.8);
  font-size: 0.75rem;
  margin-left: 0.5rem;
  cursor: pointer;
  text-decoration: underline;
}

.chat-report-btn:hover {
  color: rgba(254, 226, 226, 0.95);
}

.emote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.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;
}

.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: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 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;
}

.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;
}

.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-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.video-thumb.placeholder {
  height: 180px;
  border-radius: 14px;
  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.2rem;
  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;
}

.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-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.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;
}

.status-line {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 500;
}

.status-line.error {
  color: #ff6b6b;
}

.status-line.success {
  color: #5ff2b6;
}

.hint.center {
  text-align: center;
}
.admin-suite-shell {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}

.admin-suite-nav {
  width: 260px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  position: sticky;
  top: 1rem;
  align-self: flex-start;
}

.suite-nav-toggle {
  width: 100%;
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.suite-nav-item {
  width: 100%;
  display: block;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}

.suite-nav-item + .suite-nav-item {
  margin-top: 0.4rem;
}

.suite-nav-item.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.admin-suite-main {
  flex: 1;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.filter-bar input[type='search'],
.filter-bar select {
  flex: 1 1 180px;
  min-width: 160px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 8, 7, 0.6);
  color: inherit;
  padding: 0.45rem 0.9rem;
}

.filter-bar button {
  flex: 0 0 auto;
  align-self: center;
}

.moderation-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.grid.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.admin-suite .primary-btn {
  background: #ff4f8b;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-suite .primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.code-block {
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  overflow-x: auto;
}

.toggle-control.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.table-wrapper {
  overflow-x: auto;
}

.table-wrapper table {
  min-width: 620px;
}

.scroll-panel {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.scroll-panel .table-wrapper {
  max-height: none;
}

.report-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.report-card.report-card--busy {
  opacity: 0.6;
}

.report-card .report-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.report-card .report-actions label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.report-card .report-actions select,
.report-card .report-actions textarea {
  width: 100%;
}

.report-card .report-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  gap: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  text-transform: capitalize;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-open {
  border-color: #facc15;
  color: #facc15;
}

.badge-in_review {
  border-color: #38bdf8;
  color: #38bdf8;
}

.badge-resolved {
  border-color: #34d399;
  color: #34d399;
}

.daily-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.daily-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  font-size: 0.9rem;
}

.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;
}

@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;
}

.load-more-shell {
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 960px) {
  .admin-suite-shell {
    flex-direction: column;
  }
  .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;
  }
}
.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-actions,
.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: #05090f;
  padding: 0;
}

#aethera-vtt-root {
  min-height: 70vh;
}

.fallback-message {
  text-align: center;
  padding: 4rem 1rem;
  color: #94a3b8;
}

/* 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 .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%;
}

.pinned-message {
  padding: 8px 12px;
  margin: 8px 0 12px;
  background: #fff5d8;
  border: 1px solid #f0d98f;
  border-radius: 8px;
  font-size: 0.95rem;
}
