@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%);
  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%);
}

.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'] section.card {
  display: none;
}

body[data-embed='true'][data-embed-ui='minimal'] #detail-shell .video-meta {
  padding: 0.75rem 0;
}

.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;
}

.live-player {
  position: relative;
}

.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);
}

@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;
}

.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: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.ban-list button {
  border: none;
  background: rgba(255, 0, 0, 0.2);
  color: inherit;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.membership-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 1rem;
}

.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;
}

.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;
}

.membership-callout p {
  margin: 0;
  flex: 1;
}

.membership-callout button {
  flex: none;
  white-space: nowrap;
}

.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;
}
.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 {
  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;
}

.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: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.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;
  }
}

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

.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: none;
  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;
}

.studio-nav-btn.active {
  background: rgba(95, 242, 182, 0.2);
  color: var(--accent);
}

.studio-main {
  flex: 1;
}

.studio-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

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

.panel-grid {
  display: grid;
  gap: 1.25rem;
}

.panel-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.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);
}

.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;
}

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

@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);
}

.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 {
  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; }

.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;
}

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

.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;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  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;
}

.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 {
  border: 1px dashed var(--channel-border-color);
  border-radius: 12px;
  padding: 1rem;
  max-width: 260px;
  color: var(--channel-accent);
  background: var(--channel-highlight-bg);
}

.channel-page {
  min-height: 100vh;
  background: var(--channel-page-bg);
  color: 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;
}

.primary-btn {
  background: var(--channel-accent, #5ff2b6);
  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;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(95, 242, 182, 0.25);
}

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

.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));
}

.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;
}

.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;
}
.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;
}
.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;
}

.video-meta {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.meta-inline {
  display: flex;
  gap: 0.75rem;
  color: #bffbe0;
  font-size: 0.9rem;
}

.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;
}

.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: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;
}

.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-extras {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

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

.gap-xs {
  gap: 0.35rem;
}

.gap-sm {
  gap: 0.5rem;
}

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.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;
}

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-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);
}

.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-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);
}

.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;
}

.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-group {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.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;
}

.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-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;
}

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

.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: 1rem;
}

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

.retention-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

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

.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;
}

.chat-log {
  height: 360px;
  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;
}

.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;
  }
}
.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;
}

.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;
}

.reaction-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

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

.reaction-btn span {
  margin-left: 0.35rem;
}

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

.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;
}

.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);
}

.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;
}

.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;
}

.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;
}

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

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