:root {
  --ink: #05060b;
  --cream: #f4f2ee;
  --pink: #ff2ea6;
  --violet: #7a5bff;
  --cyan: #22e3ff;
  --muted: rgba(244, 242, 238, 0.72);
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 6;
}

.skip:focus { top: 1rem; }

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 4vw;
  background: rgba(5, 6, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(to right, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover { color: var(--cyan); }

.bar > .pill { margin-left: 0.4rem; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
}

.pill.solid {
  background: var(--pink);
  color: var(--ink);
  font-weight: 600;
}

.pill.solid.pulse-listen-prompt {
  animation: pulseRadioGlow 1.2s infinite alternate;
  outline: 2px solid #fff;
}

@keyframes pulseRadioGlow {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(225, 29, 72, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 28px rgba(225, 29, 72, 0.95); }
}

.pill.ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--cream);
}

.bar .pill.ghost {
  min-height: 2.15rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  border-color: rgba(34, 227, 255, 0.6);
  color: var(--cyan);
}

.block .pill.ghost,
#radio .pill.ghost {
  border: 1px solid rgba(22, 19, 17, 0.35);
  background: rgba(22, 19, 17, 0.05);
  color: var(--ink);
}

.block .pill.ghost:hover,
#radio .pill.ghost:hover {
  background: rgba(22, 19, 17, 0.12);
  border-color: rgba(22, 19, 17, 0.7);
  color: var(--ink);
}

.pill:hover { filter: brightness(1.08); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  margin-top: -5.2rem;
  padding: 8rem 4vw 5.5rem;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 18%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 11, 0.78) 0%, rgba(5, 6, 11, 0.28) 48%, rgba(5, 6, 11, 0.2) 100%),
    linear-gradient(to top, var(--ink) 0%, rgba(5, 6, 11, 0.15) 32%, transparent 58%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.hero-copy .track.pill,
.track.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  text-align: center;
  min-height: 2.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
}

.kicker {
  margin: 0 0 0.85rem;
  color: rgba(34, 227, 255, 0.9);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

h1 {
  font-size: clamp(3.4rem, 7.2vw, 8rem);
}

h1 span, h2 { display: block; }

.grad {
  background: linear-gradient(to right, var(--pink), var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub, .block p {
  color: var(--muted);
  font-size: 1.05rem;
}

.sub { margin: 1.2rem 0 0; max-width: 28rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.block {
  padding: 4.5rem 4vw;
  border-top: 1px solid var(--line);
}

.block h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.areas {
  display: flex;
  gap: 0.7rem;
  margin: 0.4rem 0 0;
}

.areas a {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.areas a:hover { border-color: var(--cyan); color: var(--cyan); }

.area { margin-top: 3.2rem; scroll-margin-top: 6rem; }

.area h2 { font-size: clamp(3.4rem, 7vw, 6rem); }

.block p { max-width: 36rem; margin: 0 0 1.4rem; }

.times {
  width: min(40rem, 100%);
  margin: 2rem 0 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.times th,
.times td {
  text-align: left;
  padding: 0.55rem 0.8rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.times th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute, #8a8a8a);
  font-weight: 600;
}

.schedule-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(225, 29, 72, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.schedule-promo-link:hover {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.covers {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

.track {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.track.pill,
button.track.pill,
.hero-copy .track.pill,
.block .track.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  text-align: center;
  min-height: 2.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
}

.covers img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.track-name {
  display: block;
  margin-top: 0.7rem;
  font-weight: 600;
}

.play-label {
  display: block;
  margin-top: 0.2rem;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track.is-playing img,
.track.is-playing.text-track {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.also {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.also li { margin: 0; }

.text-track,
.quiet {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
}

.text-track { width: auto; }

.text-track .track-name,
.text-track .play-label {
  display: inline;
  margin: 0;
}

.text-track .play-label { margin-left: 0.55rem; }

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

body.has-player { padding-bottom: 5.5rem; }

.now[hidden] { display: none !important; }

.now {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 4vw;
  background: rgba(5, 6, 11, 0.94);
  border-top: 1px solid var(--line);
}

.now button {
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.now-copy {
  min-width: 0;
  flex: 1;
}

#now-desk {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--mute, #8a8a8a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#now-title {
  margin: 0;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#seek { flex: 1; min-width: 0; accent-color: var(--pink); }

#time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  white-space: nowrap;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 4vw 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Comics Visual Diary & Modal
   ========================================================================== */
.comics-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}

.comic-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.comic-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: 0 12px 30px rgba(255, 46, 166, 0.15);
}

.comic-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #0d0f17;
  border-bottom: 1px solid var(--line);
}

.comic-info {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comic-ep {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.comic-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0;
}

.comic-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* Lightbox Modal */
.comic-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.comic-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.comic-modal-content {
  position: relative;
  max-width: min(92vw, 850px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comic-modal-img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comic-modal-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  transition: color 0.2s ease;
}

.comic-modal-close:hover {
  color: var(--pink);
}

@media (min-width: 900px) {
  h1 span:not(.grad) { white-space: nowrap; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 8rem; }
  .bar { flex-wrap: wrap; gap: 0.8rem 1rem; }
  nav { order: 3; width: 100%; margin-left: 0; gap: 1rem; }
  .bar > .pill { margin-left: auto; }
  .hero { min-height: 92vh; padding-top: 7rem; }
  .hero img { object-position: 74% 12%; }
  h1 { font-size: clamp(3.3rem, 16vw, 4.6rem); }
  .now {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem 0.7rem;
  }
  #now-title {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #seek { grid-column: 1 / -1; }
  #time { white-space: nowrap; }
}


/* --- Community Hub: The Green Room & Forum --- */
.community-block {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.community-header {
  margin-bottom: 2rem;
}

.community-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}

#edit-profile-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--cream) !important;
  border: 1px solid var(--line) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

#edit-profile-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: var(--pink) !important;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.avatar-badge {
  font-size: 1.3rem;
  line-height: 1;
}

.user-name {
  font-weight: 600;
  color: var(--cream);
}

.presence-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.community-tabs {
  display: flex;
  gap: 0.8rem;
  margin: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--cream);
  background: rgba(255, 46, 166, 0.15);
  border: 1px solid var(--pink);
}

/* Chat Pane */
.chat-container {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 640px;
  position: relative;
}

.status-meta-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.chat-radio-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(90deg, rgba(122, 91, 255, 0.15), rgba(255, 46, 166, 0.1));
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  z-index: 2;
}

.chat-radio-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
}

.chat-radio-track .live-dot {
  width: 7px;
  height: 7px;
  background: var(--pink);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--pink);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.chat-radio-track .show-tag {
  color: var(--muted);
  font-size: 0.82rem;
}

.radio-reactions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.react-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s;
}

.react-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.18);
}

.chat-messages {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.chat-msg {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  animation: fadeIn 0.22s ease;
  position: relative;
}

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

.msg-avatar {
  font-size: 1.4rem;
  line-height: 1;
  padding-top: 0.2rem;
  user-select: none;
}

.msg-body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  max-width: 82%;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.chat-msg:hover .msg-body {
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-msg.self .msg-body {
  background: rgba(122, 91, 255, 0.12);
  border-color: rgba(122, 91, 255, 0.35);
  margin-left: auto;
}

.chat-msg.self {
  flex-direction: row-reverse;
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.msg-author {
  font-weight: 700;
  color: var(--cream);
}

.msg-time {
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: auto;
}

.msg-text {
  font-size: 0.92rem;
  color: #f1f0ec;
  word-break: break-word;
  line-height: 1.45;
}

.msg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.msg-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--cream);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.msg-reaction-pill:hover {
  background: rgba(255, 46, 166, 0.18);
  border-color: var(--pink);
  transform: scale(1.08);
}

.msg-reaction-pill.user-reacted {
  background: rgba(122, 91, 255, 0.22);
  border-color: var(--violet);
}

.msg-quick-react-bar {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0.5rem;
  top: -0.65rem;
  background: rgba(18, 20, 29, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
  display: flex;
  gap: 0.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.chat-msg:hover .msg-quick-react-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-2px);
}

.quick-react-btn {
  background: none;
  border: none;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  transition: transform 0.15s;
}

.quick-react-btn:hover {
  transform: scale(1.3);
}

.badge {
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge.mod {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 46, 166, 0.35);
}
.badge.presenter {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}
.badge.artist {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #0d0e15;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.badge.label {
  background: var(--violet);
  color: #fff;
}
.badge.vip {
  background: #f59e0b;
  color: #000;
}
.badge.host {
  background: linear-gradient(135deg, #00f0ff, #7a5bff);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.chat-scroll-bottom-btn {
  position: absolute;
  bottom: 4.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(122, 91, 255, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  z-index: 15;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}

.chat-scroll-bottom-btn:hover {
  background: var(--pink);
  transform: translateX(-50%) scale(1.06);
}

.chat-typing-indicator {
  padding: 0.35rem 1.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 12, 18, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.2s ease;
}

.typing-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink);
  margin-right: 2px;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

.floating-reaction-container {
  position: absolute;
  right: 1.5rem;
  bottom: 5.5rem;
  width: 80px;
  height: 260px;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.floating-particle {
  position: absolute;
  bottom: 0;
  font-size: 1.6rem;
  animation: floatUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0.95;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 1; }
  50% { opacity: 0.9; }
  100% { transform: translateY(-220px) scale(1.2) rotate(20deg); opacity: 0; }
}

.chat-composer {
  border-top: 1px solid var(--line);
  padding: 0.8rem 1.2rem;
  background: rgba(5, 6, 11, 0.95);
  z-index: 2;
}

.composer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-mention-chip {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.quick-mention-chip:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--cyan);
  transform: scale(1.05);
}

.quick-emojis {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.quick-emoji {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  transition: transform 0.15s, background 0.15s;
}

.quick-emoji:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.2);
}

.composer-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  position: relative;
}

/* Reply Banner & Photo Upload Preview in Chat Composer */
.chat-reply-banner,
.chat-photo-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.42rem 0.7rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  animation: fadeIn 0.16s ease;
}

.chat-reply-banner[hidden],
.chat-photo-preview[hidden] {
  display: none !important;
}

.chat-reply-banner {
  background: rgba(0, 240, 255, 0.09);
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-left: 3px solid var(--cyan);
  color: var(--cream);
}

.chat-reply-banner-content {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.chat-reply-icon {
  color: var(--cyan);
  font-weight: 800;
  flex-shrink: 0;
}

.chat-reply-label {
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-reply-label strong {
  color: var(--cyan);
}

.chat-reply-snippet {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-photo-preview {
  background: rgba(255, 46, 166, 0.09);
  border: 1px solid rgba(255, 46, 166, 0.35);
}

.chat-photo-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.chat-photo-preview-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.chat-photo-name {
  font-weight: 700;
  color: var(--cream);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-photo-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.chat-preview-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--cream);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.chat-preview-close:hover {
  background: rgba(255, 46, 166, 0.3);
  border-color: var(--pink);
  transform: scale(1.08);
}

.chat-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cream);
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.chat-photo-btn:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .chat-photo-btn-label {
    display: none;
  }
}

/* Quoted Reply Block & Photo Attachment Inside Message Bubble */
.msg-reply-quote {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.58rem;
  margin-bottom: 0.42rem;
  background: rgba(0, 240, 255, 0.08);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s;
  max-width: 100%;
  overflow: hidden;
}

.msg-reply-quote:hover {
  background: rgba(0, 240, 255, 0.16);
}

.msg-reply-quote-author {
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.msg-reply-quote-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dcdbe2;
}

.msg-reply-inline-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.08rem 0.48rem;
  font-size: 0.71rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.35rem;
  transition: all 0.15s ease;
}

.msg-reply-inline-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
}

.msg-photo-wrap {
  margin-top: 0.38rem;
  margin-bottom: 0.25rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  max-width: 320px;
}

.msg-photo-img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.msg-photo-img:hover {
  transform: scale(1.02);
}

.chat-msg.msg-highlight-pulse .msg-body {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}

.chat-container.drag-over {
  outline: 2px dashed var(--cyan);
  outline-offset: -4px;
}

/* Lightbox Overlay for Green Room Photos */
.chat-photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  animation: fadeIn 0.18s ease;
}

.chat-photo-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.chat-photo-lightbox-caption {
  margin-top: 0.75rem;
  color: var(--cream);
  font-size: 0.9rem;
  text-align: center;
}

.chat-photo-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* @ Mention Autocomplete Dropdown Popup */
.mention-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: min(340px, 90vw);
  background: rgba(14, 18, 28, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  animation: mentionPopupIn 0.15s ease-out;
}

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

.mention-popup-header {
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mention-popup-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 220px;
  overflow-y: auto;
}

.mention-popup-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.mention-popup-item:hover,
.mention-popup-item.active {
  background: rgba(0, 240, 255, 0.18);
}

.mention-popup-avatar {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  flex-shrink: 0;
}

.mention-popup-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mention-popup-tag {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mention-popup-tag .badge-on-air {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.5);
  text-transform: uppercase;
  font-weight: 800;
}

.mention-popup-role {
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--pink);
}

.chat-send-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s;
}

.chat-send-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forum Pane */
.forum-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.forum-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0.85rem 0 1.25rem;
}

.forum-search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1.1rem;
  background: rgba(14, 18, 28, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.forum-search-input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(122, 91, 255, 0.25);
  background: rgba(18, 22, 34, 0.95);
}

.forum-search-clear {
  position: absolute;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.15s ease;
}

.forum-search-clear:hover {
  color: var(--pink);
}

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 46, 166, 0.2), rgba(122, 91, 255, 0.25));
  border: 1px solid rgba(255, 46, 166, 0.45);
  color: #ffb3e6;
  margin-right: 0.5rem;
}

.topic-card.is-pinned {
  border-color: rgba(255, 46, 166, 0.35);
  background: linear-gradient(180deg, rgba(255, 46, 166, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cat-pill:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
}

.cat-pill.active {
  background: rgba(122, 91, 255, 0.2);
  border-color: var(--violet);
  color: var(--cream);
  font-weight: 600;
}

.forum-topics-list {
  display: grid;
  gap: 1rem;
}

.topic-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-card:hover {
  border-color: rgba(255, 46, 166, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.topic-cat-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.topic-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
}

.topic-title a {
  text-decoration: none;
}

.topic-snippet {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
  line-height: 1.4;
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.topic-stats {
  margin-left: auto;
  font-weight: 600;
}

/* Topic Detail View */
.back-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  font-family: inherit;
  padding: 0;
}

.back-btn:hover {
  color: var(--cream);
}

.topic-main-post {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.8rem;
}

.topic-main-post h2 {
  font-size: 1.5rem;
  margin: 0.4rem 0 0.8rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.like-topic-btn {
  margin-left: auto;
  background: rgba(255, 46, 166, 0.15);
  border: 1px solid var(--pink);
  color: var(--cream);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: transform 0.15s;
}

.like-topic-btn:hover {
  transform: scale(1.05);
}

.post-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #f1f0ec;
  white-space: pre-wrap;
}

.replies-section h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.replies-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.reply-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.reply-author {
  font-weight: 700;
  color: var(--cream);
}

.reply-time {
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: auto;
}

.reply-text {
  font-size: 0.92rem;
  color: #e5e3de;
  line-height: 1.45;
}

.reply-composer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.reply-textarea {
  width: 100%;
  background: rgba(5, 6, 11, 0.8);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  margin-bottom: 0.8rem;
}

.reply-textarea:focus {
  border-color: var(--violet);
}

/* Modal Styles */
.km-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.km-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.km-modal-card {
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.8rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.km-modal-card h2 {
  margin: 0 0 1.2rem;
  font-size: 1.4rem;
}

.close-modal-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: var(--cream);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.modal-input, .modal-select, .modal-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.modal-input:focus, .modal-select:focus, .modal-textarea:focus {
  border-color: var(--pink);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.avatar-opt {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
}

.avatar-opt:hover {
  background: rgba(255, 255, 255, 0.1);
}

.avatar-opt.active {
  border-color: var(--pink);
  background: rgba(255, 46, 166, 0.2);
  transform: scale(1.1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hidden { display: none !important; }


/* --- Official Photo Gallery & Lightbox --- */
.gallery-block {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0 2rem;
}

.gallery-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.gallery-filter-btn:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.gallery-filter-btn.active {
  background: rgba(255, 46, 166, 0.18);
  border-color: var(--pink);
  color: var(--cream);
}

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

.gallery-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 46, 166, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.gallery-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #11141e;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.06);
}

.gallery-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.gallery-badge.tag-kayleigh {
  background: rgba(255, 46, 166, 0.85);
  color: #fff;
}

.gallery-badge.tag-leah {
  background: rgba(122, 91, 255, 0.85);
  color: #fff;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 11, 0.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.view-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.gallery-card:hover .view-btn {
  transform: translateY(0);
}

.gallery-info {
  padding: 0.9rem 1rem 1rem;
}

.gallery-photo-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
}

.gallery-artist {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--pink);
  font-weight: 600;
}

.gallery-location {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Lightbox Modal */
.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 7, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-box {
  background: #0d0f18;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.lightbox-media {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-height: 65vh;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 12, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 46, 166, 0.8);
  border-color: var(--pink);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cream);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.2s;
}

.lightbox-close-btn:hover {
  background: var(--pink);
  transform: scale(1.1);
}

.lightbox-details {
  padding: 1.2rem 1.6rem 1.4rem;
  background: #0d0f18;
}

.lightbox-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.lightbox-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cream);
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.lightbox-artist {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lightbox-artist.kayleigh-text { color: var(--pink); }
.lightbox-artist.leah-text { color: var(--violet); }

.lightbox-caption {
  font-size: 0.95rem;
  color: #dfddd8;
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.lightbox-location {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}


/* --- KM Records TV Channel (KM TV) --- */
.tv-block {
  padding: 4rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.tv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 2rem;
  margin-top: 1.8rem;
  align-items: start;
}

.tv-player-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tv-screen-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

#tv-video,
.tv-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.tv-live-beacon {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.tv-beacon-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: tvPulse 1.2s infinite;
}

@keyframes tvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.tv-unmute-banner {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid var(--pink);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s, background 0.2s;
  backdrop-filter: blur(8px);
}

.tv-unmute-banner:hover {
  background: var(--pink);
  color: #fff;
  transform: scale(1.05);
}

/* Lower Third Chyron */
.tv-chyron {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(2, 3, 7, 0.92) 0%, rgba(2, 3, 7, 0.5) 70%, transparent 100%);
  padding: 1.8rem 1.4rem 0.9rem;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tv-screen-box:hover .tv-chyron,
.tv-screen-box:focus-within .tv-chyron,
.tv-chyron.active {
  opacity: 1;
}

.tv-chyron-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.tv-chyron-artist {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.15rem;
}

.tv-chyron-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.chyron-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.chyron-tag.tag-kayleigh { background: rgba(255, 46, 166, 0.85); color: #fff; }
.chyron-tag.tag-leah { background: rgba(122, 91, 255, 0.85); color: #fff; }
.chyron-tag.tag-radio { background: rgba(225, 29, 72, 0.9); color: #fff; border: 1px solid rgba(255, 180, 200, 0.4); }

.tv-timeline-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.tv-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.tv-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--pink);
  transition: width 0.3s linear;
}

/* TV Controls Under Video */
.tv-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tv-controls-left, .tv-controls-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tv-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s;
}

.tv-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--pink);
}

.tv-upnext-box {
  padding: 0.5rem 1rem;
  background: rgba(122, 91, 255, 0.1);
  border: 1px solid rgba(122, 91, 255, 0.3);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* TV Guide / Channel Lineup */
.tv-guide-wrap {
  background: rgba(10, 12, 18, 0.8);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 580px;
}

.tv-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tv-guide-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.tv-filter-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tv-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.tv-filter-btn:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
}

.tv-filter-btn.active {
  background: rgba(255, 46, 166, 0.2);
  border-color: var(--pink);
  color: var(--cream);
}

.tv-guide-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.tv-guide-list::-webkit-scrollbar {
  width: 5px;
}
.tv-guide-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.tv-guide-card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tv-guide-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 46, 166, 0.4);
  transform: translateX(4px);
}

.tv-guide-card.playing {
  border-color: var(--pink);
  background: rgba(255, 46, 166, 0.12);
}

.guide-thumb-wrap {
  position: relative;
  width: 80px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

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

.guide-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.guide-badge.tag-kayleigh { background: var(--pink); color: #fff; }
.guide-badge.tag-leah { background: var(--violet); color: #fff; }
.guide-badge.tag-radio { background: #e11d48; color: #fff; }

.guide-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.guide-meta {
  min-width: 0;
  flex: 1;
}

.guide-title {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-artist {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--pink);
  font-weight: 600;
}

.guide-desc {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

@media (max-width: 950px) {
  .tv-layout {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   KM RECORDS BOOKS & STORIES SHELF
   ========================================================================== */
.books-block {
  padding-top: 4.5rem;
}

.books-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.book-filter-pills {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-filter-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-filter-btn:hover {
  color: var(--cream);
}

.book-filter-btn.active {
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 110, 199, 0.35);
}

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

.book-shelf-card {
  display: flex;
  flex-direction: column;
  background: rgba(18, 17, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(14px);
}

.book-shelf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 110, 199, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 110, 199, 0.15);
}

.book-cover-3d-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 1.4rem;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-3d {
  position: relative;
  width: 82%;
  height: 96%;
  border-radius: 4px 10px 10px 4px;
  box-shadow: -8px 0 16px rgba(0, 0, 0, 0.5), 14px 18px 36px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: rotateY(-6deg) rotateX(2deg);
}

.book-shelf-card:hover .book-cover-3d {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 28px rgba(255, 110, 199, 0.2);
}

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

.book-spine-effect {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(255,255,255,0.18) 40%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.book-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.book-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.book-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.book-pages {
  color: var(--muted);
  font-weight: 500;
}

.book-title {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.25;
}

.book-author {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--pink);
  font-weight: 600;
}

.book-synopsis {
  margin: 0 0 1.4rem;
  font-size: 0.84rem;
  color: #bbb;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: auto;
}

.book-read-btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
}

.book-pdf-btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   INTERACTIVE IN-BROWSER READER MODAL
   ========================================================================== */
.reader-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.88);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.reader-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.reader-pane {
  background: #1c1815;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 110, 199, 0.15);
}

.reader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  gap: 1rem;
  flex-wrap: wrap;
}

.reader-title-box h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 800;
}

.reader-title-box p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pink);
}

.reader-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reader-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cream);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reader-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--pink);
}

.reader-theme-group {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 8px;
}

.reader-theme-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
}

.reader-theme-btn.theme-parchment { background: #f4eee2; }
.reader-theme-btn.theme-midnight { background: #121016; }
.reader-theme-btn.theme-ivory { background: #ffffff; }

.reader-theme-btn.active {
  outline: 2px solid var(--pink);
  outline-offset: 1px;
}

.reader-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.reader-close-btn:hover {
  color: #fff;
}

/* Reader Body & Themes */
.reader-body {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 3.5rem;
  line-height: 1.75;
  transition: background 0.25s ease, color 0.25s ease;
}

.reader-body.font-serif {
  font-family: 'Georgia', 'Times New Roman', serif;
}

.reader-body.font-sans {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Theme: Parchment */
.reader-body.theme-parchment {
  background: #f7f3e9;
  color: #2b221a;
}
.reader-body.theme-parchment h2 { color: #5a2020; border-bottom: 1px solid #d4af37; }
.reader-body.theme-parchment .reader-chap-subtitle { color: #7a6252; }
.reader-body.theme-parchment .drop-cap::first-letter { color: #5a2020; font-weight: bold; }
.reader-body.theme-parchment .reader-codeblock { background: #ece5d6; color: #3d2a1d; border-left: 3px solid #5a2020; }

/* Theme: Midnight */
.reader-body.theme-midnight {
  background: #110f17;
  color: #ded9d2;
}
.reader-body.theme-midnight h2 { color: var(--pink); border-bottom: 1px solid rgba(255, 110, 199, 0.3); }
.reader-body.theme-midnight .reader-chap-subtitle { color: var(--cyan); }
.reader-body.theme-midnight .drop-cap::first-letter { color: var(--pink); font-weight: bold; }
.reader-body.theme-midnight .reader-codeblock { background: rgba(255, 255, 255, 0.04); color: #00e5ff; border-left: 3px solid var(--pink); }

/* Theme: Ivory */
.reader-body.theme-ivory {
  background: #ffffff;
  color: #1a1a1a;
}
.reader-body.theme-ivory h2 { color: #111; border-bottom: 1px solid #ccc; }
.reader-body.theme-ivory .reader-chap-subtitle { color: #666; }
.reader-body.theme-ivory .drop-cap::first-letter { color: #111; font-weight: bold; }
.reader-body.theme-ivory .reader-codeblock { background: #f4f4f4; color: #222; border-left: 3px solid #666; }

.reader-chap-title {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  padding-bottom: 0.6rem;
}

.reader-chap-subtitle {
  font-size: 0.95rem;
  font-style: italic;
  margin: 0 0 1.8rem;
}

.reader-para {
  margin: 0 0 1.3rem;
  text-align: justify;
}

.drop-cap::first-letter {
  font-size: 3rem;
  float: left;
  line-height: 0.85;
  padding-right: 8px;
}

.reader-codeblock {
  padding: 1rem 1.4rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 1.2rem 0;
}

/* Reader Navigation Footer */
.reader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  gap: 1rem;
}

.reader-chap-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reader-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cream);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  max-width: 320px;
  outline: none;
}

.reader-select option {
  background: #181520;
  color: #fff;
}

@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
  .reader-pane {
    height: 98vh;
    border-radius: 12px;
  }
  .reader-body {
    padding: 1.5rem 1.4rem;
  }
  .reader-header, .reader-footer {
    padding: 0.75rem 1rem;
  }
  .reader-select {
    max-width: 180px;
  }
}


/* ==========================================================================
   KM RECORDS PODCASTS NETWORK
   ========================================================================== */
.podcasts-block {
  padding-top: 4.5rem;
}

.podcasts-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.pod-filter-pills {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.pod-filter-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pod-filter-btn:hover {
  color: var(--cream);
}

.pod-filter-btn.active {
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255, 110, 199, 0.35);
}

/* Featured Hero Podcast Player */
.podcast-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.2rem;
  background: rgba(18, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 110, 199, 0.12);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.podcast-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 110, 199, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.pod-hero-cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

.pod-hero-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--pink);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pod-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pod-hero-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.pod-hero-show {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pod-hero-num {
  font-size: 0.8rem;
  color: var(--muted);
}

.pod-hero-title {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.3;
}

.pod-hero-summary {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.55;
}

/* Scrubber / Progress Bar */
.pod-hero-progress-box {
  margin-bottom: 1.4rem;
}

.pod-hero-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: monospace;
  margin-bottom: 0.4rem;
}

.pod-hero-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pod-hero-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--pink), var(--cyan));
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* Controls Bar */
.pod-hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pod-hero-ctrl-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pod-hero-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink);
  border: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 110, 199, 0.4);
}

.pod-hero-play-btn:hover {
  transform: scale(1.08);
  background: #ff85d2;
}

.pod-skip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cream);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.72rem;
  font-weight: 700;
}

.pod-skip-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--pink);
}

.pod-speed-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cream);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pod-speed-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--cyan);
}

.pod-notes-trigger-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

/* Episodes Grid */
.pod-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.8rem;
}

.podcast-card {
  display: flex;
  background: rgba(18, 17, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.4rem;
  gap: 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
}

.podcast-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 110, 199, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 110, 199, 0.12);
}

.podcast-card.active-playing {
  border-color: var(--pink);
  background: rgba(26, 20, 32, 0.85);
  box-shadow: 0 0 24px rgba(255, 110, 199, 0.25);
}

.podcast-card-cover-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.podcast-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pod-card-play-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.podcast-card:hover .pod-card-play-btn,
.podcast-card.active-playing .pod-card-play-btn {
  opacity: 1;
}

.podcast-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pod-card-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}

.pod-card-show {
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pod-card-num {
  color: var(--muted);
  font-weight: 500;
}

.pod-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
}

.pod-card-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.pod-card-desc {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #aaa;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.pod-card-actions {
  display: flex;
  gap: 0.6rem;
}

.pod-card-action-play {
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
}

.pod-card-action-notes {
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
}

/* ==========================================================================
   SHOW NOTES MODAL
   ========================================================================== */
.pod-notes-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 10, 0.88);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pod-notes-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pod-notes-pane {
  background: #14121a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 110, 199, 0.15);
}

.pod-notes-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  gap: 1rem;
}

.pod-notes-head-copy h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  color: var(--cream);
  font-weight: 800;
}

.pod-notes-head-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--pink);
  font-weight: 600;
}

.pod-notes-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.8rem;
}

.pod-notes-meta {
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.pod-notes-summary {
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border-left: 3px solid var(--pink);
}

.pod-notes-body h4 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pod-timestamps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pod-timestamp-item {
  font-size: 0.85rem;
  color: #bbb;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pod-notes-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .podcast-hero {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }
  .pod-episodes-grid {
    grid-template-columns: 1fr;
  }
  .podcast-card {
    flex-direction: column;
  }
  .podcast-card-cover-wrap {
    width: 100%;
    height: 180px;
  }
}


/* ==========================================================================
   KM RADIO TRANSMISSION & ACTIVITY LOG MODAL
   ========================================================================== */
.radio-log-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 10, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.radio-log-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.radio-log-pane {
  background: #111018;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(235, 77, 138, 0.12);
  overflow: hidden;
}

.radio-log-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  gap: 1rem;
}

.radio-log-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #22c55e;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.radio-log-head-copy h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  color: var(--cream);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.radio-log-sub {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.radio-log-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.radio-log-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.8rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.radio-log-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.radio-log-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-log-filter-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.radio-log-filter-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.radio-log-clock {
  font-size: 0.82rem;
  font-family: monospace;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.radio-log-table-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 0.5rem 1.8rem;
}

.radio-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.radio-log-table th {
  padding: 0.75rem 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: #111018;
  z-index: 2;
}

.radio-log-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

.log-row-current {
  background: rgba(235, 77, 138, 0.12) !important;
  border-left: 3px solid var(--pink);
}

.log-time {
  font-family: monospace;
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
}

.log-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-song-start { background: rgba(34, 197, 94, 0.18); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.tag-song-finish { background: rgba(239, 68, 68, 0.14); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-dj-start { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.tag-dj-finish { background: rgba(168, 85, 247, 0.14); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-ident-start { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.tag-ident-finish { background: rgba(217, 119, 6, 0.14); color: #f59e0b; border: 1px solid rgba(217, 119, 6, 0.3); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pill.on-air {
  background: #22c55e;
  color: #04240f;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-pill.completed {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.status-pill.upcoming {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #04240f;
  animation: logPulse 1.2s infinite ease-in-out;
}

@keyframes logPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

.radio-log-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 0.6rem;
}


/* --- Catalogue Search & Filters --- */
.catalogue-controls {
  margin: 1.2rem 0 1.6rem;
}

.catalogue-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalogue-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.catalogue-search-wrap .search-icon {
  position: absolute;
  left: 0.9rem;
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  pointer-events: none;
}

.catalogue-search-input {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 2.4rem;
  font-size: 0.92rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.catalogue-search-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

#kayleigh .catalogue-search-input:focus {
  outline: none;
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(255, 46, 166, 0.25);
}

#leah .catalogue-search-input:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(122, 91, 255, 0.25);
}

.catalogue-search-clear {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.catalogue-search-clear:hover {
  color: var(--cream);
}

.catalogue-count-badge {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.catalogue-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.catalogue-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.catalogue-pill:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

#kayleigh .catalogue-pill.active {
  background: rgba(255, 46, 166, 0.18);
  border-color: var(--pink);
  color: var(--cream);
  box-shadow: 0 0 10px rgba(255, 46, 166, 0.2);
}

#leah .catalogue-pill.active {
  background: rgba(122, 91, 255, 0.18);
  border-color: var(--violet);
  color: var(--cream);
  box-shadow: 0 0 10px rgba(122, 91, 255, 0.2);
}

.catalogue-empty {
  text-align: center;
  padding: 2.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin: 1.5rem 0;
}

.catalogue-empty p {
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.catalogue-reset-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

#kayleigh .catalogue-reset-btn:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

#leah .catalogue-reset-btn:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

@media (max-width: 600px) {
  .catalogue-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .catalogue-search-wrap {
    max-width: 100%;
  }
  .catalogue-count-badge {
    align-self: flex-start;
  }
}


/* Schedule Day Tabs */
.schedule-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 0.8rem;
}

.schedule-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.schedule-tab-btn:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.schedule-tab-btn.active {
  background: rgba(255, 46, 166, 0.18);
  border-color: var(--pink);
  color: var(--cream);
  box-shadow: 0 0 10px rgba(255, 46, 166, 0.2);
}

/* ==========================================================================
   KM Records — Social Sharing, Likes & Comment Actions
   ========================================================================== */

/* Track Card Actions (Catalogue) */
ul.covers li, ul.also li {
  position: relative;
  display: flex;
  flex-direction: column;
}

.track-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: rgba(14, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.track-card-actions:hover {
  background: rgba(20, 26, 40, 0.95);
  border-color: rgba(255, 46, 166, 0.3);
}

.track-like-btn, .track-share-btn, .track-discuss-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.18s ease;
}

.track-like-btn:hover {
  color: #ff4d8d;
  background: rgba(255, 77, 141, 0.12);
}

.track-like-btn.liked {
  color: #ff2ea6;
}

.track-like-btn.liked .like-icon {
  filter: drop-shadow(0 0 6px rgba(255, 46, 166, 0.6));
}

.track-share-btn:hover {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
}

.track-discuss-btn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

/* Bottom Player Actions (.now) */
.now-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  margin-right: 0.25rem;
}

.now-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cream);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.now-action-btn:hover {
  background: rgba(255, 46, 166, 0.2);
  border-color: var(--pink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 46, 166, 0.25);
}

.now-like-btn.liked {
  border-color: var(--pink);
  background: rgba(255, 46, 166, 0.25);
  color: #ff99d6;
}

.now-share-btn svg {
  stroke: var(--cream);
  transition: stroke 0.2s;
}

.now-share-btn:hover svg {
  stroke: var(--pink);
}

/* Universal KM Share Modal */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.8);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.share-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.share-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #181d2c 0%, #0d101b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(122, 91, 255, 0.15);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-modal-overlay.open .share-modal-card {
  transform: translateY(0) scale(1);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.share-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--cream);
}

.share-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.share-modal-close:hover {
  color: var(--pink);
}

/* Track Preview in Modal */
.share-track-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem;
  margin-bottom: 1.4rem;
}

.share-preview-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.share-preview-info {
  flex: 1;
  min-width: 0;
}

.share-preview-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.share-preview-artist {
  font-size: 0.85rem;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.share-preview-badge {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

/* Share Grid (Social Buttons) */
.share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.share-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-channel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.share-channel-icon {
  font-size: 1.15rem;
}

.share-threads {
  background: linear-gradient(135deg, #000000, #1c1c1c);
  border-color: #333;
}
.share-threads:hover {
  border-color: #666;
}

.share-x {
  background: linear-gradient(135deg, #111, #1a1a1a);
  border-color: #333;
}
.share-x:hover {
  border-color: #555;
}

.share-whatsapp {
  background: linear-gradient(135deg, #128c7e, #25d366);
  border-color: #25d366;
}
.share-whatsapp:hover {
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.share-facebook {
  background: linear-gradient(135deg, #1877f2, #166fe5);
  border-color: #1877f2;
}
.share-facebook:hover {
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.35);
}

/* Copy Link Row */
.share-copy-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.share-link-input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.82rem;
}

.share-copy-btn {
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.share-footer-links {
  text-align: center;
  margin-top: 0.5rem;
}

.share-green-room-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--cream) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.share-green-room-btn:hover {
  background: rgba(255, 46, 166, 0.2) !important;
  border-color: var(--pink) !important;
  color: #fff !important;
}

/* Share Toast Notification */
.share-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ff2ea6;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 46, 166, 0.45);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   KM Records — Artist Knowledge Base & Presenter Briefings Modal
   ========================================================================== */

.knowledge-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.knowledge-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.knowledge-modal-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #161b2a 0%, #0d101b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75), 0 0 50px rgba(122, 91, 255, 0.18);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.knowledge-modal-overlay.open .knowledge-modal-card {
  transform: translateY(0) scale(1);
}

.knowledge-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.knowledge-modal-title-box h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--cream);
}

.knowledge-modal-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.knowledge-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.knowledge-modal-close:hover {
  color: var(--pink);
}

/* Toolbar & Tabs */
.knowledge-modal-toolbar {
  padding: 1rem 1.8rem 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.knowledge-search-wrap input {
  width: 100%;
  padding: 0.7rem 1.1rem;
  background: rgba(10, 13, 20, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.knowledge-search-wrap input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(122, 91, 255, 0.25);
}

.knowledge-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.knowledge-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.knowledge-tab-btn:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
}

.knowledge-tab-btn.active {
  background: rgba(122, 91, 255, 0.22);
  border-color: var(--violet);
  color: var(--cream);
}

/* Modal Body */
.knowledge-modal-body {
  padding: 1.5rem 1.8rem;
  overflow-y: auto;
  max-height: calc(90vh - 180px);
}

.knowledge-hero-card {
  background: linear-gradient(135deg, rgba(255, 46, 166, 0.1) 0%, rgba(122, 91, 255, 0.12) 100%);
  border: 1px solid rgba(255, 46, 166, 0.25);
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.3rem;
}

.hero-dossier-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--pink);
  margin-bottom: 0.4rem;
}

.knowledge-hero-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--cream);
}

.hero-dossier-bio {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d1d5db;
  margin: 0 0 0.8rem;
}

.dossier-quote {
  font-style: italic;
  color: #ff99d6;
  font-size: 0.88rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--pink);
}

/* Knowledge Grid & Cards */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.2rem;
}

.knowledge-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem;
}

.knowledge-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.knowledge-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.card-meta-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.gear-list, .trivia-list, .hooks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gear-list li, .trivia-list li, .hooks-list li {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e5e7eb;
  padding-left: 1.2rem;
  position: relative;
}

.gear-list li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 2px;
}

.trivia-list li::before {
  content: "💿";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 2px;
}

.hooks-list li::before {
  content: "🎙️";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 2px;
}

/* Presenter Prompts Tab */
.knowledge-prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
}

.prompt-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.prompt-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  font-size: 1.05rem;
}

.prompt-body {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
  flex: 1;
}

.send-prompt-chat-btn {
  align-self: flex-start;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

/* ===== Catch-Up ===== */
.catchup-block { padding-top: 4rem; }
.catchup-lead { color: var(--muted); max-width: 46rem; margin: 0 0 1.4rem; }
.catchup-days { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.catchup-day {
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--cream);
  border-radius: 999px; padding: .4rem 1rem; font-size: .88rem; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.catchup-day:hover { background: rgba(255,255,255,.12); }
.catchup-day.active { background: rgba(255,46,166,.16); border-color: var(--pink); }
.catchup-list { display: flex; flex-direction: column; gap: .7rem; }
.catchup-card {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: 1rem; align-items: center;
  background: rgba(10,12,18,.85); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem;
  transition: border-color .15s;
}
.catchup-card:hover { border-color: rgba(255,255,255,.28); }
.catchup-card.is-current { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(255,46,166,.35); }
.catchup-time { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.catchup-time span { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.catchup-info h3 { margin: 0; font-size: 1.05rem; }
.catchup-presenter { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
.catchup-picks { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; opacity: .85; }
.catchup-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.catchup-actions .pill { padding: .4rem .9rem; font-size: .85rem; white-space: nowrap; }
.catchup-empty { padding: 1.4rem; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.catchup-player {
  margin-top: 1.4rem; background: rgba(10,12,18,.92); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem;
  background-image: linear-gradient(90deg, rgba(122,91,255,.10), rgba(255,46,166,.07));
}
.catchup-np-label { margin: 0; color: var(--pink); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.catchup-np h3 { margin: .2rem 0 0; font-size: 1.25rem; }
.catchup-np-meta { margin: .15rem 0 .8rem; color: var(--muted); font-size: .88rem; }
.catchup-player audio { width: 100%; margin-bottom: .8rem; }
.catchup-controls { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.catchup-controls .pill { padding: .4rem .9rem; font-size: .85rem; }
.catchup-chapters { list-style: none; padding: 0; margin: 0; max-height: 18rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.catchup-chapter {
  width: 100%; display: flex; gap: .9rem; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--cream); padding: .55rem .9rem; cursor: pointer; font: inherit; font-size: .9rem;
}
.catchup-chapter:hover { background: rgba(255,255,255,.06); }
.catchup-chapter.active { background: rgba(255,46,166,.14); }
.catchup-chapter.link .catchup-ch-label { color: var(--cyan); }
.catchup-ch-time { color: var(--muted); min-width: 3.4rem; font-variant-numeric: tabular-nums; }
.catchup-ch-label em { color: var(--muted); font-style: normal; margin-left: .35rem; }
.catchup-toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 20px); background: #14161f; border: 1px solid var(--line);
  color: var(--cream); padding: .6rem 1.1rem; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 80;
}
.catchup-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
  .catchup-card { grid-template-columns: 1fr; gap: .6rem; }
  .catchup-time { display: flex; gap: .5rem; align-items: baseline; }
  .catchup-time span { display: inline; margin: 0; }
  .catchup-time span::before { content: "– "; }
  .catchup-actions { justify-content: flex-start; }
}

/* Catch-Up sits on a dark panel: keep ghost buttons light (the generic .block .pill.ghost is dark ink) */
.catchup-block .pill.ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-family: inherit;
  cursor: pointer;
}
.catchup-block .pill.ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); }
.catchup-block button.pill { font-family: inherit; cursor: pointer; }

/* Radio Live Telemetry & Audience FOMO Counter */
.radio-telemetry-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #ff4766;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin: 1.25rem 0 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.telemetry-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 71, 102, 0.18);
  color: #ff4766;
  border: 1px solid rgba(255, 71, 102, 0.45);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telemetry-dot {
  width: 7px;
  height: 7px;
  background: #ff4766;
  border-radius: 50%;
  animation: telemetryPulse 1.6s infinite ease-in-out;
}

@keyframes telemetryPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.telemetry-info {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  flex: 1 1 auto;
}

.telemetry-show strong {
  color: #ffffff;
  font-weight: 700;
}

.telemetry-show span {
  color: #ffd166;
  font-weight: 600;
}

.telemetry-sep {
  color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

.telemetry-song strong {
  color: #38bdf8;
  font-weight: 600;
}

.telemetry-song span {
  color: #ffffff;
  font-weight: 600;
}

.telemetry-listeners {
  margin-left: auto;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  white-space: nowrap;
}

.telemetry-listeners strong {
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .radio-telemetry-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
  }
  .telemetry-listeners {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* Studio Textline 2988 Badge & Pills */
.badge.text-sms {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}
.sms-studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.28rem 0.72rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #10b981;
  white-space: nowrap;
  text-decoration: none;
}
.sms-studio-pill strong {
  color: #fff;
  font-weight: 800;
}
.sms-studio-pill .sms-rate-note {
  opacity: 0.78;
  font-weight: 500;
  font-size: 0.72rem;
}
.sms-studio-pill.light-surface {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.35);
  color: #065f46;
}
.sms-studio-pill.light-surface strong {
  color: #047857;
}
.now-sms-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #6ee7b7;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .now-sms-pill { display: none; }
}

.badge.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
}
