/* ==========================================================================
   DISMORFICI — Prime Video Inspired Dark Theme
   Professional streaming polish + irreverent podcast personality
   ========================================================================== */

:root {
  --bg-deep: #00050d;
  --bg-base: #0a1019;
  --bg-surface: #131c27;
  --bg-surface-hover: #1b2736;
  --bg-elevated: #1e2b3b;
  --border-subtle: rgba(130, 175, 220, 0.08);
  --border-strong: rgba(130, 175, 220, 0.15);

  --prime-blue: #00a8e1;
  --prime-blue-bright: #1db9ff;
  --prime-blue-soft: rgba(0, 168, 225, 0.16);
  --prime-glow: 0 0 24px rgba(0, 168, 225, 0.32);

  --gold: #f5b942;
  --gold-soft: rgba(245, 185, 66, 0.16);
  --danger: #ff4d6d;
  --danger-soft: rgba(255, 77, 109, 0.14);
  --success: #2ee59d;

  --text-primary: #ffffff;
  --text-secondary: #b4c2d1;
  --text-muted: #7a8ca0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --nav-height: 70px;
  --max-width: 1380px;
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(0, 168, 225, 0.14), transparent 70%);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.hidden { display: none !important; }

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

.text-prime {
  color: var(--prime-blue-bright);
}

/* ================= SCROLLBARS ================= */
* { scrollbar-color: #263648 #00050d; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #263648; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #38506b; }

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 320;
  height: var(--nav-height);
  background: rgba(2, 7, 15, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  transform: translateZ(0);
}

.navbar-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 36px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 168, 225, 0.14);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -15px;
  height: 3px;
  background: var(--prime-blue-bright);
  border-radius: 3px 3px 0 0;
}

.nav-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}

.search-box {
  position: relative;
  width: clamp(160px, 17vw, 220px);
  flex-shrink: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box input:focus {
  border-color: var(--prime-blue);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.18);
}

/* Live Global Search Suggestions Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 390px;
  max-height: 440px;
  overflow-y: auto;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #0d1522;
  border: 1px solid rgba(130, 175, 220, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.86);
  z-index: 420;
}

.search-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 10px 4px;
}

.search-result-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease;
}

.search-result-item:hover {
  background: rgba(0, 168, 225, 0.14);
}

.search-result-thumb {
  width: 64px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #09111c;
}

.search-result-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0, 168, 225, 0.14);
  color: var(--prime-blue-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.search-result-info {
  min-width: 0;
  flex: 1;
}

.search-result-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.search-hl {
  background: rgba(0, 168, 225, 0.28);
  color: #8ee5ff;
  border-radius: 3px;
  padding: 0 2px;
}

.search-empty-state {
  padding: 24px 16px;
  text-align: center;
}

.search-empty-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.search-empty-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.search-empty-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 13px 24px; font-size: 0.98rem; }
.btn-block { width: 100%; padding: 12px 18px; }

.btn-prime {
  background: var(--prime-blue);
  color: #001018;
  font-weight: 700;
}
.btn-prime:hover {
  background: var(--prime-blue-bright);
  transform: translateY(-1px);
}

.btn-prime-glow {
  background: linear-gradient(135deg, #00a8e1 0%, #24c6ff 100%);
  color: #001018;
  font-weight: 700;
  box-shadow: var(--prime-glow);
}
.btn-prime-glow:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-play-hero {
  background: #ffffff;
  color: #00050d;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.btn-play-hero:hover {
  background: #e6f6ff;
  transform: scale(1.02);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text-primary);
  border-color: transparent;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: rgba(130, 175, 220, 0.2);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(130, 175, 220, 0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border-color: rgba(255, 77, 109, 0.4);
}
.btn-danger-outline:hover {
  background: var(--danger-soft);
}

.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.icon-circle-btn:hover {
  background: var(--prime-blue);
  border-color: var(--prime-blue);
  color: #00050d;
}

/* ================= USER ACCOUNT PILL & DROPDOWN ================= */
.user-menu {
  position: relative;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.user-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a8e1, #006699);
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar.is-admin {
  background: linear-gradient(135deg, #f5b942, #ff7b00);
  color: #00050d;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.author-avatar-sm,
.mbn-mini-avatar {
  overflow: hidden;
}

.avatar-modal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.avatar-modal-preview {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 3px solid rgba(0, 168, 225, 0.55);
  background: linear-gradient(135deg, #00a8e1, #005885);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 168, 225, 0.2);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.avatar-modal-preview:hover {
  transform: scale(1.03);
  border-color: var(--prime-blue-bright);
}

.avatar-preview-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
}

.avatar-modal-preview.is-admin {
  background: linear-gradient(135deg, #f5b942, #ff7b00);
  border-color: rgba(245, 185, 66, 0.65);
}

.avatar-modal-preview.is-admin .avatar-preview-inner {
  color: #00050d;
}

.avatar-preview-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0d1624;
  border: 2px solid var(--prime-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

.avatar-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-file-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.user-pill-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.user-name {
  font-size: 0.84rem;
  font-weight: 700;
  max-width: 115px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--prime-blue-bright);
}
.user-role-tag.is-admin {
  color: var(--gold);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 270px;
  background: #141e2b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  padding: 8px;
  z-index: 200;
}

.dropdown-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.dropdown-email {
  font-size: 0.84rem;
  font-weight: 700;
  word-break: break-all;
}

.dropdown-perm {
  font-size: 0.76rem;
  color: var(--prime-blue-bright);
  margin-top: 3px;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.88rem;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.08); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-soft); }

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

/* ================= PAGE VIEWS ================= */
.page-view { display: none; animation: fadeIn 0.28s ease; }
.page-view.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= PRIME HERO BILLBOARD ================= */
.hero-billboard {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  transform: scale(1.03);
  transition: background-image 0.5s ease;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #00050d 0%, rgba(0, 5, 13, 0.9) 38%, rgba(0, 5, 13, 0.42) 70%, rgba(0, 5, 13, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 5, 13, 0.2) 0%, rgba(0, 5, 13, 0.35) 55%, #00050d 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 28px 54px;
}

.prime-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.original-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--prime-blue-bright);
  background: var(--prime-blue-soft);
  border: 1px solid rgba(0, 168, 225, 0.35);
  padding: 4px 10px;
  border-radius: 5px;
}

.prime-included {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #79dcff;
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 760px;
  margin-bottom: 12px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
}

.hero-meta-line {
  font-size: 1rem;
  font-weight: 600;
  color: #dbe8f5;
  margin-bottom: 14px;
}

.hero-synopsis {
  max-width: 620px;
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.62;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(148, 184, 224, 0.11);
  border: 1px solid transparent;
  color: #dce9f7;
}

.meta-badge.badge-warn {
  background: var(--gold-soft);
  border-color: rgba(245, 185, 66, 0.35);
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ================= CONTENT SECTIONS ================= */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px 16px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

/* ================= PRIME HORIZONTAL CAROUSEL ================= */
.prime-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 16px 10px 26px;
  margin: -10px -10px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.carousel-card {
  flex: 0 0 310px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.carousel-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--prime-blue);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 168, 225, 0.35);
}

.card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1622;
  overflow: hidden;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.carousel-card:hover .card-thumb-wrap img {
  transform: scale(1.06);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 5, 13, 0.82) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.carousel-card:hover .thumb-overlay,
.episode-row:hover .thumb-overlay {
  opacity: 1;
}

.play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #00050d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding-left: 3px;
}

.thumb-tag-top {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(0, 5, 13, 0.78);
  border: none;
  color: #fff;
  backdrop-filter: blur(6px);
}

.thumb-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(0, 5, 13, 0.84);
  color: #fff;
}

.carousel-card-body {
  padding: 14px 16px 16px;
}

.prime-mini-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--prime-blue-bright);
  margin-bottom: 6px;
}

.carousel-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= SEASONS & EPISODES BROWSER ================= */
.seasons-section {
  padding-bottom: 64px;
}

.seasons-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.seasons-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.prime-select {
  appearance: none;
  background: var(--bg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 42px 10px 16px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.prime-select:focus { border-color: var(--prime-blue); }

.prime-select-sm {
  padding: 8px 36px 8px 12px;
  font-size: 0.86rem;
}

.season-picker {
  position: relative;
  display: inline-block;
}

.season-picker-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 190px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.season-picker-trigger:hover:not(:disabled) {
  background: var(--bg-surface-hover);
  border-color: rgba(0, 168, 225, 0.55);
}

.season-picker-trigger:disabled {
  opacity: 0.55;
  cursor: default;
}

.season-picker.is-open .season-picker-trigger {
  border-color: var(--prime-blue);
  box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.18);
}

.season-picker-chevron {
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.season-picker.is-open .season-picker-chevron {
  transform: rotate(180deg);
  color: var(--prime-blue-bright);
}

/* Desktop Custom In-Browser Prime Dropdown */
.season-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(15, 24, 36, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(130, 175, 220, 0.14);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.72);
  z-index: 160;
  animation: dropdownPop 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dropdownPop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.season-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.season-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.season-option.active {
  background: rgba(0, 168, 225, 0.14);
  color: #ffffff;
}

.season-option-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.season-option-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.season-option-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.season-option.active .season-option-meta {
  color: #79dcff;
}

.season-option-check {
  color: var(--prime-blue-bright);
  flex-shrink: 0;
  opacity: 0;
}

.season-option.active .season-option-check {
  opacity: 1;
}

/* Mobile Full-Screen Blurred Season Picker Overlay */
.season-blur-overlay {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 5, 13, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: fadeIn 0.2s ease;
}

.season-blur-sheet {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.season-blur-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--prime-blue-bright);
}

.season-blur-list {
  width: 100%;
  max-height: 55dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
}

.season-blur-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, color 0.16s ease;
}

.season-blur-item:active {
  transform: scale(0.97);
}

.season-blur-item.active {
  background: rgba(0, 168, 225, 0.18);
  border-color: rgba(0, 168, 225, 0.45);
  color: #ffffff;
  font-weight: 800;
}

.season-blur-item-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.season-blur-item.active .season-blur-item-meta {
  color: #79dcff;
}

.season-blur-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 6px;
}

.season-blur-close:active {
  transform: scale(0.92);
}

.seasons-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.episode-counter {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-inline-actions {
  display: flex;
  gap: 8px;
}

.season-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.12), rgba(19, 28, 39, 0.92));
  border: 1px solid rgba(0, 168, 225, 0.24);
  margin-bottom: 22px;
}

.season-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.season-banner-text {
  min-width: 0;
}

.season-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.season-cover-mini {
  width: 124px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.season-banner h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.season-banner p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Prime Episode Rows */
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.episode-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.episode-row:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(0, 168, 225, 0.45);
}

.episode-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #0c141f;
}

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

.episode-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.episode-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.episode-code {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--prime-blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.episode-title {
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
}
.episode-title:hover { color: var(--prime-blue-bright); }

.episode-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.episode-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.episode-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.ep-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ================= FORUM PAGE ================= */
.forum-hero {
  background:
    radial-gradient(ellipse 70% 100% at 85% 20%, rgba(0, 168, 225, 0.2), transparent 65%),
    linear-gradient(180deg, #0b1523 0%, #00050d 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 46px 28px;
}

.forum-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.forum-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.forum-subtitle {
  max-width: 640px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.forum-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cta-subhint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.forum-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 28px 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.forum-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.cat-pill:hover { color: #fff; border-color: var(--border-strong); }
.cat-pill.active {
  background: var(--prime-blue);
  border-color: var(--prime-blue);
  color: #00050d;
  font-weight: 800;
}

.articles-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: var(--transition);
}

.article-card:hover {
  border-color: rgba(0, 168, 225, 0.4);
  background: #16212f;
}

.article-card.is-pinned {
  border-color: rgba(245, 185, 66, 0.42);
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.06), var(--bg-surface) 45%);
}

.article-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.article-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cat-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--prime-blue-soft);
  color: var(--prime-blue-bright);
  border: 1px solid rgba(0, 168, 225, 0.25);
}

.pin-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(245, 185, 66, 0.32);
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.author-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #233447;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar-sm.is-admin {
  background: linear-gradient(135deg, #f5b942, #ff8c00);
  color: #00050d;
}

.author-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
}

.author-name { font-weight: 700; }

.role-chip {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.role-chip.is-admin {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(245, 185, 66, 0.35);
}

.article-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.article-title {
  font-size: 1.24rem;
  font-weight: 800;
  margin-bottom: 8px;
  cursor: pointer;
}
.article-title:hover { color: var(--prime-blue-bright); }

.article-excerpt {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.62;
  white-space: pre-line;
  margin-bottom: 14px;
}

.article-image-preview {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  cursor: pointer;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.article-reactions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.reaction-btn.liked {
  background: var(--prime-blue-soft);
  border-color: var(--prime-blue);
  color: var(--prime-blue-bright);
}

/* ================= FORUM SIDEBAR ================= */
.forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.status-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--prime-blue-bright);
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.rules-list code {
  background: var(--gold-soft);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* ================= MODALS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 5, 13, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #111a26;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-sm { max-width: 450px; }
.modal-md { max-width: 640px; }
.modal-lg { max-width: 780px; }
.modal-xl { max-width: 960px; padding: 0; overflow: hidden; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(0, 5, 13, 0.72);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--prime-blue); color: #00050d; }

.modal-logo {
  height: 36px;
  margin-bottom: 12px;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.auth-tabs, .studio-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: var(--radius-sm);
  margin: 18px 0 20px;
}

.auth-tab, .studio-tab {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.auth-tab.active, .studio-tab.active {
  background: var(--prime-blue);
  color: #00050d;
}

.studio-panel:not(.active) { display: none !important; }
.studio-panel.active { display: flex; flex-direction: column; }

/* ================= FORMS ================= */
.prime-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #d6e2ef;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #0a111a;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-group input[type="file"] {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--prime-blue);
  box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.18);
}

.form-box-group {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-box-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--prime-blue-bright);
}

.field-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--prime-blue); }

.role-preview {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 6px;
}
.role-preview.admin {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(245, 185, 66, 0.35);
}
.role-preview.user {
  background: var(--prime-blue-soft);
  color: var(--prime-blue-bright);
  border: 1px solid rgba(0, 168, 225, 0.3);
}

.form-error {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #ff99ac;
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-actions-end {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.storage-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(0, 168, 225, 0.14);
  border: 1px solid rgba(0, 168, 225, 0.32);
  color: #79dcff;
}

.storage-mode-pill.is-cloud {
  background: rgba(46, 229, 157, 0.14);
  border-color: rgba(46, 229, 157, 0.35);
  color: var(--success);
}

.upload-progress-wrap {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 168, 225, 0.08);
  border: 1px solid rgba(0, 168, 225, 0.28);
}

.upload-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #dbe8f5;
  margin-bottom: 8px;
}

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

.upload-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00a8e1, #2ee59d);
  border-radius: 999px;
  transition: width 0.18s ease;
}

.data-panel-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 10px 0 20px;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-btn-label { cursor: pointer; }

/* ================= SPOTIFY-STYLE VIDEO / PODCAST PLAYER ================= */
.player-backdrop {
  transition: opacity 0.24s ease;
}

.player-backdrop.player-closed {
  display: none !important;
}

/* Keep persistent <video> alive in render tree so audio plays uninterrupted when minimized */
.player-backdrop.player-minimized {
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.player-backdrop.player-minimized .spotify-player {
  transform: translateY(36px) scale(0.96);
}

.modal-card.spotify-player {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #0b121c;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.player-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(6, 11, 18, 0.97);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.player-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.player-top-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.player-top-close {
  width: 36px;
  padding: 0;
  justify-content: center;
}

.player-topbar-center {
  text-align: center;
  min-width: 0;
}

.player-topbar-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--prime-blue-bright);
}

.player-topbar-ep {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 52vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-audio-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.player-audio-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 13, 0.78);
  backdrop-filter: blur(12px);
}

.player-audio-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.player-fallback-note {
  color: #b4c2d1;
  font-size: 0.86rem;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}

.equalizer.is-paused .eq-bar {
  animation-play-state: paused;
  height: 10px !important;
  opacity: 0.45;
}

.eq-bar {
  width: 5px;
  background: var(--prime-blue-bright);
  border-radius: 4px;
  animation: eqBounce 1s ease-in-out infinite alternate;
}
.eq-bar:nth-child(2) { animation-delay: 0.15s; }
.eq-bar:nth-child(3) { animation-delay: 0.35s; }
.eq-bar:nth-child(4) { animation-delay: 0.2s; }
.eq-bar:nth-child(5) { animation-delay: 0.45s; }
.eq-bar:nth-child(6) { animation-delay: 0.1s; }

@keyframes eqBounce {
  0% { height: 8px; opacity: 0.55; }
  100% { height: 38px; opacity: 1; }
}

/* Spotify Controls Deck — High-Character Dismorfici Console */
.spotify-controls {
  padding: 16px 24px 18px;
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(0, 168, 225, 0.16), transparent 72%),
    linear-gradient(180deg, #0f1b2b 0%, #08101a 100%);
  border-top: 1px solid rgba(0, 168, 225, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.seek-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.time-label {
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #b7cae0;
  min-width: 40px;
}

.time-label:last-child {
  text-align: right;
}

.spotify-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #00a8e1 0%,
    #36e5c5 var(--progress, 0%),
    rgba(255, 255, 255, 0.26) var(--progress, 0%),
    rgba(255, 255, 255, 0.26) var(--buffered, 0%),
    rgba(255, 255, 255, 0.12) var(--buffered, 0%)
  );
  outline: none;
  cursor: pointer;
  touch-action: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.spotify-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #00a8e1;
  box-shadow: 0 0 12px rgba(0, 168, 225, 0.75), 0 2px 6px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.spotify-seek::-webkit-slider-thumb:hover,
.spotify-seek:active::-webkit-slider-thumb {
  transform: scale(1.24);
  box-shadow: 0 0 18px rgba(54, 229, 197, 0.9), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.spotify-seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #00a8e1;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.spotify-seek-sm {
  height: 5px;
}

.spotify-seek-sm::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}

.transport-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.transport-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.transport-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ctrl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe8f5;
  cursor: pointer;
  transition: var(--transition);
}
.ctrl-btn:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(0, 168, 225, 0.16);
  border-color: rgba(0, 168, 225, 0.35);
}
.ctrl-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.ctrl-speed {
  justify-self: start;
  width: auto;
  min-width: 46px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 168, 225, 0.35);
  background: rgba(0, 168, 225, 0.12);
  color: #8ee5ff;
  font-size: 0.8rem;
  font-weight: 800;
}

.ctrl-skip .skip-num {
  position: absolute;
  font-size: 0.56rem;
  font-weight: 900;
  margin-top: 2px;
  pointer-events: none;
}

.ctrl-play-main {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #d8f4ff 100%);
  color: #00050d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(0, 168, 225, 0.45), 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ctrl-play-main:hover {
  transform: scale(1.07);
  box-shadow: 0 0 34px rgba(54, 229, 197, 0.65), 0 10px 28px rgba(0, 0, 0, 0.55);
}

.play-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(0, 5, 13, 0.22);
  border-top-color: #00050d;
  animation: spin 0.7s linear infinite;
}

.play-spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2.4px;
}

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

.player-scroll-body {
  flex: 0 0 auto;
  overflow: visible;
  background: #09101a;
}

.player-info {
  padding: 18px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.player-info-main {
  flex: 1;
  min-width: 240px;
}

.player-info-main h2 {
  font-size: 1.32rem;
  margin-bottom: 6px;
}

.btn-like-ep {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.34);
  color: #ff9cb0;
}
.btn-like-ep:hover {
  background: rgba(255, 77, 109, 0.22);
  color: #fff;
}
.btn-like-ep.liked {
  background: linear-gradient(135deg, #ff4d6d, #ff758f);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 77, 109, 0.4);
}

/* Episode CircleRanks-Style Rating Slider & Dynamic Color Badges */
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(245, 185, 66, 0.14);
  color: #ffd166;
  white-space: nowrap;
}

.rating-pill.tier-low {
  background: rgba(255, 68, 92, 0.16);
  color: #ff6b7f;
}

.rating-pill.tier-mid {
  background: rgba(255, 196, 61, 0.16);
  color: #ffd166;
}

.rating-pill.tier-high {
  background: rgba(46, 229, 157, 0.16);
  color: #36e5a8;
}

.rating-pill.is-empty {
  background: rgba(148, 184, 224, 0.09);
  color: var(--text-muted);
  font-weight: 600;
}

.season-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.episode-rating-panel {
  padding: 18px 24px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 65% 120% at 12% 30%, color-mix(in srgb, var(--rate-color, #2ee59d) 14%, transparent), transparent 70%),
    rgba(11, 18, 29, 0.75);
  transition: background 0.25s ease;
}

.ep-rating-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ep-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rating-ring-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 5, 13, 0.72);
  border: 2.5px solid var(--ring-color, rgba(148, 184, 224, 0.28));
  box-shadow: 0 0 18px color-mix(in srgb, var(--ring-color, transparent) 38%, transparent);
  flex-shrink: 0;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.ep-rating-avg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.ep-rating-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ep-rating-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

.ep-rating-denom {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ep-rating-votes {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ep-rating-user-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--rate-color, #2ee59d) 18%, transparent);
  color: var(--rate-color, #2ee59d);
}

.rating-slider-card {
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: rgba(0, 5, 13, 0.5);
  border: 1px solid rgba(130, 175, 220, 0.1);
}

.rating-slider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ep-rating-prompt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

.rating-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--rate-color, #2ee59d) 18%, rgba(0, 5, 13, 0.7));
  color: var(--rate-color, #2ee59d);
  box-shadow: 0 0 16px color-mix(in srgb, var(--rate-color, #2ee59d) 24%, transparent);
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rating-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
}

.circleranks-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  touch-action: none;
  background:
    linear-gradient(
      to right,
      transparent 0%,
      transparent var(--rate-pct, 72%),
      rgba(14, 22, 34, 0.88) var(--rate-pct, 72%),
      rgba(14, 22, 34, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      #ff3b5c 0%,
      #ff7a2f 28%,
      #ffd166 55%,
      #7ae582 78%,
      #00f5a0 100%
    );
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 14px color-mix(in srgb, var(--rate-color, #2ee59d) 28%, transparent);
}

.circleranks-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid var(--rate-color, #2ee59d);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--rate-color, #2ee59d) 85%, transparent),
    0 3px 10px rgba(0, 0, 0, 0.65);
  cursor: grab;
  transition: transform 0.12s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.circleranks-slider:hover::-webkit-slider-thumb,
.circleranks-slider:active::-webkit-slider-thumb {
  transform: scale(1.16);
  cursor: grabbing;
}

.circleranks-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid var(--rate-color, #2ee59d);
  box-shadow: 0 0 18px color-mix(in srgb, var(--rate-color, #2ee59d) 85%, transparent);
  cursor: grab;
}

.rating-ticks {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* Episode Comments Panel inside Player */
.episode-comments-panel {
  padding: 18px 24px 28px;
}

.ep-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ep-comments-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-comments-count {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--prime-blue-soft);
  color: var(--prime-blue-bright);
}

.ep-comment-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-end;
}

.ep-comment-form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #0d1623;
  color: #fff;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
}
.ep-comment-form textarea:focus {
  border-color: var(--prime-blue);
  box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.16);
}

.ep-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep-comment-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.ep-comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ep-comment-body {
  font-size: 0.9rem;
  color: #d6e3f0;
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: 8px;
}

.ep-comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(130, 175, 220, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.comment-like-btn:hover {
  border-color: rgba(255, 77, 109, 0.45);
  color: #fff;
}
.comment-like-btn.liked {
  background: rgba(255, 77, 109, 0.18);
  border-color: rgba(255, 77, 109, 0.55);
  color: #ff8fa3;
}

.comment-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
}
.comment-del-btn:hover { color: var(--danger); }

/* ================= PERSISTENT SPOTIFY MINI-PLAYER BAR (DESKTOP) ================= */
body.has-mini-player .site-footer {
  padding-bottom: 108px;
}

body.has-mini-player .toast-container {
  bottom: 96px;
}

.mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 340;
  background:
    radial-gradient(ellipse 50% 160% at 15% 50%, rgba(0, 168, 225, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(13, 23, 37, 0.98) 0%, rgba(7, 13, 22, 0.99) 100%);
  border-top: 1px solid rgba(0, 168, 225, 0.35);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.72);
  transform: translateZ(0);
  animation: miniSlideUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes miniSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.mini-progress-track {
  position: relative;
  width: 100%;
  height: 16px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: -4px;
}

.mini-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-progress-fill {
  display: none;
}

.mini-player-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.mini-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-sm);
  transition: background 0.16s ease;
}
.mini-left:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mini-thumb-wrap {
  position: relative;
  width: 56px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 168, 225, 0.4);
  background: #0d1622;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

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

.mini-expand-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 13, 0.65);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.mini-left:hover .mini-expand-hint {
  opacity: 1;
}

.mini-meta {
  min-width: 0;
}

.mini-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.mini-live-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}

.mini-live-eq i {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: #36e5c5;
  animation: miniEq 0.8s ease-in-out infinite alternate;
}
.mini-live-eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.mini-live-eq i:nth-child(2) { height: 12px; animation-delay: 0.22s; }
.mini-live-eq i:nth-child(3) { height: 8px; animation-delay: 0.4s; }

.mini-live-eq.is-paused i {
  animation-play-state: paused;
  height: 3px !important;
  opacity: 0.4;
}

@keyframes miniEq {
  0% { height: 3px; }
  100% { height: 12px; }
}

.mini-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-subtitle {
  font-size: 0.74rem;
  color: var(--prime-blue-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mini-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mini-seek-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-time {
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  min-width: 32px;
}

.mini-time:last-child {
  text-align: right;
}

.mini-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #d6e3f0;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.mini-btn:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.mini-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.mini-skip-num {
  position: absolute;
  font-size: 0.5rem;
  font-weight: 900;
  margin-top: 2px;
  pointer-events: none;
}

.mini-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #00050d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.mini-play-btn:hover {
  transform: scale(1.07);
}

.mini-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mini-stop-btn:hover {
  color: var(--danger) !important;
  background: var(--danger-soft) !important;
}

.player-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.player-info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

/* ================= ARTICLE DETAIL & COMMENTS ================= */
.detail-article-header {
  padding-right: 36px;
  margin-bottom: 18px;
}

.detail-article-title {
  font-size: 1.6rem;
  margin: 10px 0 12px;
}

.detail-article-content {
  font-size: 0.98rem;
  color: #dde7f2;
  line-height: 1.72;
  white-space: pre-line;
  margin-bottom: 20px;
}

.detail-comments-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: 18px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 18px;
}

.comment-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: pre-line;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.empty-state h3 { margin-bottom: 8px; color: #fff; }

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #050a12;
  padding: 36px 28px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo { height: 32px; margin-bottom: 8px; }

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--prime-blue-bright);
}
.footer-links a:hover { text-decoration: underline; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= MANDATORY COOKIES & TERMS CONSENT GATE ================= */
.consent-gate {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 5, 13, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}

.consent-card {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 168, 225, 0.16), transparent 70%),
    #0e1724;
  border: 1px solid rgba(0, 168, 225, 0.34);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 36px rgba(0, 168, 225, 0.14);
  animation: modalIn 0.24s ease;
}

.consent-header {
  text-align: center;
  margin-bottom: 18px;
}

.consent-logo {
  height: 36px;
  margin: 0 auto 12px;
  display: block;
}

.consent-header h2 {
  font-size: 1.48rem;
  margin-top: 10px;
}

.consent-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.consent-terms-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: rgba(0, 5, 13, 0.55);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.consent-term-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent-term-icon {
  font-size: 1.2rem;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

.consent-term-item strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.consent-term-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 168, 225, 0.08);
  border: 1px solid rgba(0, 168, 225, 0.3);
  font-size: 0.85rem;
  line-height: 1.45;
  color: #e4effa;
  cursor: pointer;
  margin-bottom: 16px;
}

.consent-checkbox input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--prime-blue);
  cursor: pointer;
}

.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consent-actions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.4);
  transform: none;
  box-shadow: none;
}

.consent-declined {
  text-align: center;
  padding: 18px 8px 6px;
}

.declined-emoji {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.consent-declined h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.consent-declined p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* ================= TOASTS ================= */
.toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: #142233;
  border: 1px solid var(--prime-blue);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.25s ease;
}

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

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= MOBILE-ONLY CONTROLS (HIDDEN ON DESKTOP) ================= */
.mobile-icon-btn,
.mobile-search-close,
.mobile-bottom-nav {
  display: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .navbar { height: auto; padding: 10px 0; }
  .navbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .navbar-left { width: 100%; justify-content: space-between; }
  .navbar-right { width: 100%; justify-content: space-between; }
  .search-box { flex: 1; width: auto; }
  .search-dropdown { left: 0; right: auto; width: min(440px, 100%); }
  .nav-link.active::after { display: none; }
}

@media (max-width: 980px) {
  .forum-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .forum-main,
  .forum-controls,
  .articles-feed {
    min-width: 0;
    max-width: 100%;
  }
  .forum-sidebar {
    position: static;
  }
  .episode-row {
    grid-template-columns: 1fr;
  }
}

/* ================= AMAZON PRIME VIDEO MOBILE APP UI (<= 720px) ================= */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overscroll-behavior: none;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  /* Prevent iOS Safari auto-zoom on input focus & disable double-tap zoom */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  button,
  a,
  .navbar,
  .mobile-bottom-nav,
  .carousel-card,
  .season-pill,
  .cat-pill,
  .meta-badge {
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }

  .btn:active,
  .mobile-icon-btn:active,
  .mbn-item:active {
    transform: scale(0.94);
  }

  /* 1. Fixed Native Prime Video App Header (minimal icons only) */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 320;
    height: calc(54px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 0 0;
    background: linear-gradient(180deg, rgba(2, 7, 15, 0.96) 0%, rgba(2, 7, 15, 0.9) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transform: translateZ(0);
  }

  .navbar-inner {
    flex-wrap: nowrap;
    height: 54px;
    padding: 0 14px;
    gap: 8px;
    position: relative;
  }

  .navbar-left {
    width: auto;
    flex: 1;
    gap: 0;
  }

  .brand-logo img {
    height: 26px;
    max-width: 132px;
  }

  /* Hide desktop tabs & desktop upload btn (moved to Prime bottom tab bar) */
  .main-nav,
  #nav-admin-btn {
    display: none !important;
  }

  .navbar-right {
    width: auto;
    flex: 0 0 auto;
    gap: 6px;
  }

  .mobile-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: transform 0.14s ease, background 0.18s ease;
  }

  /* Expandable Prime mobile search bar overlay */
  .search-box {
    display: none;
  }

  .navbar.search-open .search-box {
    display: flex;
    align-items: center;
    position: absolute;
    inset: 6px 12px;
    width: auto;
    z-index: 20;
    background: #0d1624;
    border-radius: var(--radius-pill);
  }

  .navbar.search-open .search-box input {
    height: 40px;
    padding-right: 40px;
    background: #0d1624;
    border-color: var(--prime-blue);
  }

  .search-box input::-webkit-search-cancel-button,
  .search-box input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
  }

  .navbar.search-open .mobile-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
  }

  .search-dropdown {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 62dvh;
    z-index: 330;
  }

  /* Icon-only circular Login / Profile button in top header (no bulky text box) */
  #btn-open-login {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  #btn-open-login span {
    display: none;
  }

  .user-pill {
    padding: 2px;
    border-radius: 50%;
    border: 1px solid rgba(130, 175, 220, 0.2);
    background: transparent;
  }

  .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .user-pill-text,
  .user-pill .chevron {
    display: none;
  }

  .user-dropdown {
    width: min(280px, calc(100vw - 24px));
    right: -2px;
  }

  /* Keep Forum content below fixed header; Hero bleeds behind translucent header */
  #view-forum {
    padding-top: calc(54px + env(safe-area-inset-top));
  }

  /* 2. Prime Video Mobile Hero Poster */
  .hero-billboard {
    min-height: 420px;
    align-items: flex-end;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(0, 5, 13, 0.42) 0%, rgba(0, 5, 13, 0.5) 42%, rgba(0, 5, 13, 0.94) 76%, #00050d 100%);
  }

  .hero-content {
    padding: calc(96px + env(safe-area-inset-top)) 16px 24px;
  }

  .prime-eyebrow {
    gap: 8px;
    margin-bottom: 10px;
  }

  .original-tag {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  .prime-included {
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: 1.78rem;
    line-height: 1.14;
    margin-bottom: 8px;
  }

  .hero-meta-line {
    font-size: 0.86rem;
    margin-bottom: 10px;
  }

  .hero-synopsis {
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
  }

  .hero-badges {
    gap: 6px;
    margin-bottom: 18px;
  }

  .meta-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Signature Prime Video mobile full-width white Play button + 2-col secondary actions */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .btn-play-hero {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    font-size: 0.98rem;
    border-radius: 10px;
  }

  .hero-actions .btn-glass {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .hero-footnote {
    font-size: 0.72rem;
  }

  /* 3. Edge-to-edge swipeable Prime Carousels */
  .content-section {
    padding: 24px 16px 8px;
  }

  .section-header {
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 1.24rem;
  }

  .carousel-controls {
    display: none;
  }

  .prime-carousel {
    margin: 0 -16px;
    padding: 4px 16px 14px;
    gap: 12px;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .prime-carousel::-webkit-scrollbar { display: none; }

  .carousel-card {
    flex: 0 0 76vw;
    max-width: 286px;
  }

  .carousel-card:hover {
    transform: none;
  }

  .carousel-card-body {
    padding: 11px 12px 13px;
  }

  /* 4. Prime Mobile Seasons & Compact Native Episode Rows */
  .seasons-section {
    padding-bottom: 24px;
  }

  .seasons-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .seasons-left {
    width: auto;
    flex: 1 1 auto;
  }

  .season-picker-trigger {
    min-width: 0;
    padding: 8px 13px;
    font-size: 0.9rem;
    border-radius: 10px;
    gap: 10px;
  }

  .seasons-right {
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .admin-inline-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-inline-actions .btn {
    width: 100%;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .season-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 13px 14px;
    gap: 11px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 168, 225, 0.14), rgba(16, 24, 36, 0.96));
  }

  .season-banner-left {
    align-items: flex-start;
    gap: 12px;
  }

  .season-cover-mini {
    width: 78px;
    height: 46px;
    border-radius: 7px;
  }

  .season-banner h3 {
    font-size: 1rem;
    margin-bottom: 3px;
  }

  .season-banner p {
    font-size: 0.82rem;
    line-height: 1.42;
    color: var(--text-secondary);
  }

  .season-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .season-banner-actions .btn {
    width: 100%;
    min-height: 36px;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  /* Native Amazon Prime Video Mobile Episode Card Layout */
  .episodes-list {
    gap: 10px;
  }

  .episode-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 9px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(19, 28, 39, 0.92);
    border: 1px solid rgba(130, 175, 220, 0.09);
    align-items: start;
  }

  .episode-info {
    display: contents;
  }

  .episode-thumb-box {
    grid-column: 1;
    grid-row: 1;
    width: 132px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }

  .episode-thumb-box .thumb-tag-top {
    display: none;
  }

  .episode-thumb-box .thumb-duration {
    bottom: 5px;
    right: 5px;
    padding: 2px 6px;
    font-size: 0.66rem;
    border-radius: 4px;
  }

  .episode-thumb-box .thumb-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 5, 13, 0.65) 100%);
  }

  .episode-thumb-box .play-circle {
    width: 34px;
    height: 34px;
    padding-left: 2px;
  }

  .episode-thumb-box .play-circle svg {
    width: 15px;
    height: 15px;
  }

  .episode-head-block {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .episode-code {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  .episode-title {
    font-size: 0.95rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .episode-top-row .pin-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
    flex-shrink: 0;
  }

  .episode-meta-chips {
    font-size: 0.72rem;
    gap: 6px;
    margin-top: 4px;
  }

  .episode-meta-chips span:last-child {
    display: none;
  }

  .episode-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.84rem;
    line-height: 1.48;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .episode-bottom-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ep-action-group {
    width: 100%;
    gap: 7px;
  }

  .ep-action-group .btn {
    flex: 1;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  /* 5. Prime Mobile Forum */
  .forum-hero {
    padding: 24px 16px;
  }

  .forum-title {
    font-size: 1.65rem;
  }

  .forum-subtitle {
    font-size: 0.9rem;
  }

  .forum-hero-cta {
    width: 100%;
    align-items: stretch;
  }

  .forum-hero-cta .btn {
    width: 100%;
    min-height: 46px;
  }

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

  .forum-layout {
    padding: 18px 16px 28px;
    gap: 18px;
  }

  .forum-controls {
    gap: 10px;
    margin-bottom: 14px;
  }

  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2px 0 6px;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar { display: none; }

  .cat-pill {
    flex-shrink: 0;
  }

  .forum-sort,
  .forum-sort select {
    width: 100%;
  }

  .article-card {
    padding: 16px;
  }

  .article-title {
    font-size: 1.1rem;
  }

  /* 6. Native Mobile Bottom-Sheet Modals */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: 100% !important;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    animation: sheetUp 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .modal-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.24);
    margin: -8px auto 10px;
  }

  .modal-card:not(.player-modal) .modal-close {
    position: sticky;
    top: 0;
    right: auto;
    margin-left: auto;
    margin-bottom: -36px;
    z-index: 30;
    background: rgba(17, 26, 38, 0.94);
  }

  .modal-header-bar {
    padding-right: 44px;
  }

  .modal-card.player-modal {
    padding: 0 0 env(safe-area-inset-bottom);
  }

  .modal-card.player-modal::before {
    display: none;
  }

  .player-info {
    padding: 16px;
  }

  .player-info-actions {
    width: 100%;
  }

  .player-info-actions .btn {
    flex: 1;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .form-actions-end {
    flex-direction: column-reverse;
  }

  .form-actions-end .btn {
    width: 100%;
    min-height: 44px;
  }

  @keyframes sheetUp {
    from { opacity: 0.4; transform: translateY(48px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* 7. Prime Video Mobile Bottom Tab Bar */
  .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    min-height: 60px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(6, 12, 22, 0.97);
    border-top: 1px solid rgba(130, 175, 220, 0.1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55);
    transform: translateZ(0);
  }

  .mbn-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease;
  }

  .mbn-item.active {
    color: #ffffff;
  }

  .mbn-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--prime-blue-bright);
    box-shadow: 0 0 10px var(--prime-blue-bright);
  }

  .mbn-item.mbn-admin {
    color: var(--prime-blue-bright);
  }

  .mbn-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .mbn-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--prime-blue);
    color: #00050d;
    font-size: 0.62rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mbn-avatar-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mbn-mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a8e1, #006699);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mbn-mini-avatar.is-admin {
    background: linear-gradient(135deg, #f5b942, #ff7b00);
    color: #00050d;
  }

  /* 8. Spotify-Style Full-Screen Now Playing & Floating Mini-Bar on Mobile */
  #modal-player.player-backdrop {
    background: #00050d;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 0.14s ease;
  }

  .modal-card.spotify-player {
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border: none;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom));
    background-color: #070d16;
    background-image: linear-gradient(180deg, #0d1a2b 0%, #070d16 42%, #00050d 100%);
    animation: none;
    opacity: 1;
  }

  .player-topbar {
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: rgba(7, 13, 22, 0.94);
    border-bottom: 1px solid rgba(130, 175, 220, 0.08);
  }

  .player-top-label {
    display: none;
  }

  .player-top-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.08);
  }

  .player-stage {
    max-height: 40dvh;
  }

  .spotify-controls {
    padding: 18px 18px 16px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .transport-row {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
  }

  .transport-center {
    gap: 6px;
  }

  .ctrl-btn {
    width: 38px;
    height: 38px;
  }

  .ctrl-play-main {
    width: 60px;
    height: 60px;
  }

  .ctrl-speed {
    min-width: 38px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  #player-mute-btn {
    display: none;
  }

  .player-info {
    padding: 16px 18px 24px;
    background: transparent;
  }

  /* Floating Spotify Mobile Mini-Player Pill docked right above Bottom Tab Bar */
  .episode-rating-panel {
    padding: 14px 16px 16px;
  }

  .rating-slider-card {
    padding: 12px 13px 10px;
  }

  .circleranks-slider {
    height: 11px;
  }

  .circleranks-slider::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }

  .episode-comments-panel {
    padding: 16px 16px 28px;
  }

  .ep-comment-form {
    flex-direction: column;
    align-items: stretch;
  }

  .ep-comment-form .btn {
    width: 100%;
  }

  .mini-player {
    left: 8px;
    right: 8px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    border-radius: 14px;
    border: 1px solid rgba(0, 168, 225, 0.42);
    background:
      radial-gradient(ellipse 80% 140% at 10% 50%, rgba(0, 168, 225, 0.22), transparent 72%),
      rgba(12, 22, 36, 0.97);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78), 0 0 20px rgba(0, 168, 225, 0.16);
    overflow: hidden;
  }

  .mini-progress-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 11px;
    margin-bottom: 0;
    background: transparent;
    pointer-events: auto;
  }

  .mini-player-inner {
    padding: 7px 8px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mini-desktop-only {
    display: none !important;
  }

  .mini-left {
    flex: 1;
    padding: 0;
    gap: 10px;
  }

  .mini-thumb-wrap {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }

  .mini-title {
    font-size: 0.84rem;
  }

  .mini-subtitle {
    font-size: 0.7rem;
  }

  .mini-center {
    flex-direction: row;
    gap: 0;
  }

  .mini-transport {
    gap: 2px;
  }

  .mini-btn {
    width: 32px;
    height: 32px;
  }

  .mini-play-btn {
    width: 36px;
    height: 36px;
  }

  .mini-right {
    gap: 0;
  }

  /* Minimal app-style footer clear of the fixed bottom tab bar (and floating mini-player) */
  .site-footer {
    padding: 18px 16px calc(78px + env(safe-area-inset-bottom));
    margin-top: 16px;
    text-align: center;
  }

  body.has-mini-player .site-footer {
    padding-bottom: calc(146px + env(safe-area-inset-bottom));
  }

  .footer-brand,
  .footer-links {
    display: none;
  }

  .toast-container {
    left: 14px;
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    max-width: none;
  }

  body.has-mini-player .toast-container {
    bottom: calc(134px + env(safe-area-inset-bottom));
  }
}
