/* Alongside+ International TV & 24/7 Broadcast Grading Network
   Self-hosted Cormorant (headings) + Figtree (body/UI) only. Zero external CDN. */

:root {
  --tv-ivory: #FAF7F1;
  --tv-paper: #FFFFFF;
  --tv-sand: #F2ECE0;
  --tv-navy: #0B192E;
  --tv-navy-deep: #060E1D;
  --tv-navy-mid: #13284A;
  --tv-gold: #D4A84B;
  --tv-gold-bright: #F4D57F;
  --tv-gold-deep: #8C6114;
  --tv-ink: #111827;
  --tv-muted: #4B5563;
  --tv-live: #DC2626;
  --tv-emerald: #10B981;
  --tv-border: rgba(11, 25, 46, 0.11);
  --tv-border-gold: rgba(212, 168, 75, 0.44);
  --tv-shadow: 0 18px 42px -20px rgba(6, 14, 29, 0.35);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--tv-ivory);
  color: var(--tv-ink);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.tv-main, .tv-main * { box-sizing: border-box; }
.tv-main { width: 100%; overflow-x: clip; }

.tv-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==================== SUB-NAV & PARTNER BAR ==================== */
.tv-subbar {
  background: #081326;
  border-bottom: 1px solid rgba(212, 168, 75, 0.25);
  color: #E5ECF6;
  padding: 10px 0;
}

.tv-subbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tv-pills-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tv-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(235, 241, 250, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tv-nav-pill:hover {
  background: rgba(212, 168, 75, 0.16);
  border-color: rgba(244, 213, 127, 0.5);
  color: #FFFFFF;
}

.tv-nav-pill.is-active {
  background: linear-gradient(135deg, #F4D57F, #D4A84B);
  color: #0B192E;
  border-color: transparent;
}

.tv-ref-bar {
  font-size: 12.5px;
  color: rgba(235, 241, 250, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 168, 75, 0.34);
  border-radius: 999px;
  padding: 6px 14px;
}

.tv-ref-bar a { color: var(--tv-gold-bright); font-weight: 700; }
.tv-ref-bar.is-active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
  color: #D1FAE5;
}

/* ==================== HERO 24/7 LIVE BROADCAST THEATER ==================== */
.tv-theater-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(212, 168, 75, 0.16), transparent 44%),
    radial-gradient(circle at 10% 85%, rgba(30, 91, 184, 0.24), transparent 46%),
    linear-gradient(160deg, #050B16 0%, #0A172D 55%, #071122 100%);
  color: #FFFFFF;
  padding: 28px 0 42px;
  border-bottom: 1px solid rgba(212, 168, 75, 0.32);
}

.tv-top-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tv-onair-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tv-onair-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #FEE2E2;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tv-onair-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
  animation: tvPulse 1.6s infinite;
}

@keyframes tvPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.tv-clock-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--tv-gold-bright);
  background: rgba(212, 168, 75, 0.12);
  border: 1px solid rgba(244, 213, 127, 0.34);
  padding: 6px 12px;
  border-radius: 999px;
}

.tv-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tv-hero-head h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.06;
  font-weight: 700;
  margin: 0 0 6px;
  color: #FFFFFF;
}

.tv-hero-head h1 span { color: var(--tv-gold-bright); }

.tv-hero-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(226, 234, 245, 0.86);
  max-width: 720px;
}

/* 4 Live Channel Tabs */
.tv-channels-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.tv-ch-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E5ECF6;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.tv-ch-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(244, 213, 127, 0.45);
  transform: translateY(-1px);
}

.tv-ch-tab.is-active {
  background: linear-gradient(145deg, rgba(212, 168, 75, 0.22), rgba(19, 40, 74, 0.92));
  border-color: var(--tv-gold-bright);
  box-shadow: 0 10px 26px -14px rgba(212, 168, 75, 0.65);
}

.tv-ch-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--tv-gold-bright);
}

.tv-ch-tab strong {
  font-size: 14px;
  line-height: 1.25;
  color: #FFFFFF;
}

.tv-ch-tab small {
  font-size: 11.5px;
  color: rgba(226, 234, 245, 0.72);
}

/* Main Theater Grid: Screen Left + Up Next Queue Right */
.tv-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.tv-screen-shell {
  background: #040914;
  border: 1px solid rgba(212, 168, 75, 0.46);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.tv-screen-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #02060F;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Visual + Audio / Radio Broadcast Overlay Mode */
.tv-audio-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #071124;
}

.tv-audio-stage[hidden] { display: none; }

.tv-audio-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.tv-audio-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.25) 0%, rgba(5, 11, 22, 0.92) 78%);
}

.tv-audio-content {
  position: relative;
  z-index: 2;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}

.tv-eq-bars i {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: var(--tv-gold-bright);
  height: 8px;
  transition: height 0.2s;
}

.tv-audio-stage.is-playing .tv-eq-bars i {
  animation: tvEq 0.75s ease-in-out infinite alternate;
}
.tv-audio-stage.is-playing .tv-eq-bars i:nth-child(2) { animation-delay: 0.14s; }
.tv-audio-stage.is-playing .tv-eq-bars i:nth-child(3) { animation-delay: 0.28s; }
.tv-audio-stage.is-playing .tv-eq-bars i:nth-child(4) { animation-delay: 0.19s; }
.tv-audio-stage.is-playing .tv-eq-bars i:nth-child(5) { animation-delay: 0.35s; }
.tv-audio-stage.is-playing .tv-eq-bars i:nth-child(6) { animation-delay: 0.08s; }

@keyframes tvEq {
  0% { height: 7px; }
  100% { height: 26px; }
}

.tv-audio-content audio {
  width: 100%;
  height: 40px;
}

.tv-now-playing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-now-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.tv-now-meta {
  font-size: 13px;
  color: rgba(226, 234, 245, 0.8);
  margin-top: 3px;
}

/* Live 1-5 Star "Grade This Broadcast" Bar right under player */
.tv-grade-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: 14px;
  background: rgba(19, 40, 74, 0.65);
  border: 1px solid rgba(212, 168, 75, 0.35);
}

.tv-grade-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tv-grade-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tv-gold-bright);
}

.tv-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tv-star-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, color 0.12s, background 0.12s, border-color 0.12s;
}

.tv-star-btn:hover,
.tv-star-btn.is-lit {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.55);
  transform: translateY(-1px);
}

.tv-grade-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #E5ECF6;
}

.tv-grade-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(212, 168, 75, 0.2);
  border: 1px solid rgba(244, 213, 127, 0.5);
  color: var(--tv-gold-bright);
}

.tv-grade-badge.is-aplus {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.55);
  color: #A7F3D0;
}

.tv-grade-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Right-hand Up Next Auto-Advance Playlist */
.tv-queue-panel {
  background: rgba(8, 17, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  max-height: 610px;
}

.tv-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
}

.tv-queue-head h2 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 22px;
  margin: 0;
  color: #FFFFFF;
}

.tv-queue-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-mini-btn {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: 'Figtree', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(244, 213, 127, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: #F4D57F;
  cursor: pointer;
}
.tv-mini-btn:hover { background: rgba(212, 168, 75, 0.22); }
.tv-mini-btn.is-on {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.55);
  color: #A7F3D0;
}

.tv-queue-list {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.tv-q-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.tv-q-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(244, 213, 127, 0.4);
}

.tv-q-item.is-playing {
  background: rgba(212, 168, 75, 0.16);
  border-color: var(--tv-gold-bright);
}

.tv-q-thumb {
  position: relative;
  width: 96px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #0F203D;
}

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

.tv-q-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(6, 14, 29, 0.85);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}

.tv-q-info strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.tv-q-info small {
  display: block;
  font-size: 11.5px;
  color: rgba(226, 234, 245, 0.72);
}

/* ==================== BUTTONS ==================== */
.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.tv-btn:hover { transform: translateY(-1px); }

.tv-btn-gold {
  background: linear-gradient(135deg, #F4D57F, #D4A84B);
  color: #0B192E;
}
.tv-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 213, 127, 0.45);
  color: #FFFFFF;
}
.tv-btn-navy {
  background: var(--tv-navy);
  color: #FFFFFF;
}

/* ==================== STORYBOARD PIPELINE SECTION ==================== */
.tv-section {
  padding: 50px 0;
}

.tv-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tv-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--tv-gold-deep);
  margin-bottom: 6px;
}

.tv-h2 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--tv-navy);
  margin: 0 0 8px;
}

.tv-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tv-muted);
  max-width: 720px;
}

.tv-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.tv-pipe-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--tv-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  box-shadow: 0 12px 26px -18px rgba(11, 25, 46, 0.22);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.tv-pipe-card:hover {
  transform: translateY(-2px);
  border-color: var(--tv-gold);
  box-shadow: 0 18px 34px -18px rgba(11, 25, 46, 0.34);
}

.tv-pipe-card.is-final {
  background: linear-gradient(155deg, #0B192E 0%, #162E54 100%);
  border-color: var(--tv-gold);
  color: #FFFFFF;
}

.tv-pipe-step {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tv-gold-deep);
}
.tv-pipe-card.is-final .tv-pipe-step { color: var(--tv-gold-bright); }

.tv-pipe-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0F203D;
}

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

.tv-pipe-card h3 {
  font-size: 14px;
  line-height: 1.25;
  margin: 0;
  color: inherit;
}

.tv-pipe-card p {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  color: var(--tv-muted);
}
.tv-pipe-card.is-final p { color: rgba(235, 241, 250, 0.85); }

.tv-pipe-cta {
  margin-top: auto;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--tv-gold-deep);
}
.tv-pipe-card.is-final .tv-pipe-cta { color: var(--tv-gold-bright); }

/* ==================== JURY FILTER BAR ==================== */
.tv-jury-band {
  background: #F4EFE4;
  border-top: 1px solid rgba(11, 25, 46, 0.08);
  padding: 46px 0 64px;
}

.tv-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tv-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tv-filter-btn {
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--tv-border);
  background: #FFFFFF;
  color: var(--tv-navy);
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tv-filter-btn.is-active {
  background: var(--tv-navy);
  color: var(--tv-gold-bright);
  border-color: var(--tv-navy);
}

.tv-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--tv-border);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 40px;
  min-width: 260px;
}

.tv-search-box input {
  border: 0;
  outline: none;
  background: transparent;
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  width: 100%;
  color: var(--tv-ink);
}

/* ==================== FREE-FLOWING MASONRY JURY MOSAIC ==================== */
/* Zero cropped heads, zero artificial aspect forcing: natural width 100%, height auto */
.tv-masonry {
  columns: 4 240px;
  column-gap: 16px;
}

.tv-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  background: #FFFFFF;
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px -18px rgba(11, 25, 46, 0.22);
  transition: transform 0.16s, box-shadow 0.16s;
}

.tv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -18px rgba(11, 25, 46, 0.34);
}

.tv-card-media {
  position: relative;
  background: #0B192E;
  overflow: hidden;
}

.tv-card-media img,
.tv-card-media video {
  width: 100%;
  height: auto;
  display: block;
}

.tv-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.tv-pill-glass {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(6, 14, 29, 0.8);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.tv-pill-glass.is-aplus {
  background: rgba(15, 106, 79, 0.9);
  border-color: rgba(110, 231, 183, 0.55);
  color: #ECFDF5;
}

.tv-pill-glass.is-gold {
  background: rgba(212, 168, 75, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
  color: #0B192E;
}

.tv-card-body {
  padding: 13px 14px 14px;
}

.tv-card-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--tv-navy);
  margin: 0 0 4px;
}

.tv-card-creator {
  font-size: 12px;
  color: var(--tv-muted);
  margin-bottom: 10px;
}

.tv-card-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--tv-ivory);
  border: 1px solid var(--tv-border);
  margin-bottom: 10px;
}

.tv-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tv-cstar {
  border: 0;
  background: none;
  padding: 2px;
  font-size: 16px;
  line-height: 1;
  color: #CBD5E1;
  cursor: pointer;
  transition: transform 0.1s, color 0.1s;
}
.tv-cstar.is-lit,
.tv-cstar:hover {
  color: #D97706;
  transform: scale(1.12);
}

.tv-card-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--tv-navy);
  white-space: nowrap;
}

.tv-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
}

.tv-cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 9px;
  font-family: 'Figtree', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--tv-border);
  background: #FFFFFF;
  color: var(--tv-navy);
  cursor: pointer;
}
.tv-cbtn:hover { background: var(--tv-sand); }
.tv-cbtn.is-play {
  background: var(--tv-navy);
  border-color: var(--tv-navy);
  color: var(--tv-gold-bright);
}
.tv-cbtn.is-studio {
  background: #FDF4DD;
  border-color: rgba(212, 168, 75, 0.55);
  color: var(--tv-gold-deep);
}

.tv-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 3000;
  background: #0B192E;
  color: #FFFFFF;
  border: 1px solid var(--tv-gold);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.tv-toast.is-open { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1140px) {
  .tv-stage-grid { grid-template-columns: 1fr; }
  .tv-queue-panel { max-height: 340px; }
  .tv-pipeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .tv-channels-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-pipeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .tv-wrap { padding: 0 14px; }
  .tv-masonry { columns: 2 150px; column-gap: 10px; }
  .tv-card { margin-bottom: 10px; border-radius: 12px; }
  .tv-card-body { padding: 9px 10px 10px; }
  .tv-card-title { font-size: 16px; }
  .tv-card-rating-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 7px 8px; }
  .tv-card-actions { grid-template-columns: 1fr 1fr; }
  .tv-card-actions .tv-cbtn-share { grid-column: 1 / -1; }
  .tv-search-box { min-width: 0; width: 100%; }
}
/* ==================== M508 SHARED STUDIO MOSAIC OVERRIDES (2026-11-25) ==================== */
.tv-masonry.m508-mosaic {
  columns: unset !important;
  column-count: unset !important;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #081C32 !important;
  border: 1.5px solid rgba(212, 168, 75, 0.36) !important;
  box-shadow: 0 12px 28px -14px rgba(6, 22, 42, 0.45) !important;
  cursor: pointer;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile:hover {
  border-color: #F0CD78 !important;
  box-shadow: 0 18px 34px -12px rgba(6, 22, 42, 0.58), 0 0 0 1px rgba(240, 205, 120, 0.45) !important;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #081C32;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-media img,
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-media video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 22%;
  display: block;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-badges {
  z-index: 5;
  top: 9px;
  left: 9px;
  right: 9px;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-body {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 4;
  padding: 28px 11px 10px !important;
  background: linear-gradient(180deg, rgba(6, 20, 38, 0) 0%, rgba(6, 20, 38, 0.80) 38%, rgba(5, 16, 30, 0.96) 100%) !important;
  color: #FFFFFF !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-title {
  color: #FFFFFF !important;
  font-family: 'Figtree', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.24 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile[data-m508-shape="hero"] .tv-card-title {
  font-family: 'Cormorant', Georgia, serif !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-creator {
  color: rgba(235, 242, 252, 0.88) !important;
  font-size: 11.5px !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-rating-row {
  background: rgba(8, 22, 42, 0.72) !important;
  border: 1px solid rgba(240, 205, 120, 0.28) !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  flex-direction: row !important;
  align-items: center !important;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-score {
  color: #FCE6A6 !important;
  font-size: 11.5px !important;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-cstar {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-cstar.is-lit,
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-cstar:hover {
  color: #FBBF24;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-cbtn {
  min-height: 28px !important;
  padding: 3px 8px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-cbtn.is-lb {
  background: #F0CD78 !important;
  border-color: #F0CD78 !important;
  color: #0B192E !important;
}
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile[data-m508-shape="std"] .tv-card-rating-row,
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile[data-m508-shape="std"] .tv-cbtn.is-studio,
.tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile[data-m508-shape="std"] .tv-cbtn-share {
  display: none !important;
}
@media (max-width: 680px) {
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-body {
    padding: 20px 8px 8px !important;
    gap: 4px;
  }
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-title {
    font-size: 12.5px !important;
  }
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile[data-m508-shape="hero"] .tv-card-title {
    font-size: 16px !important;
  }
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-creator,
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-cbtn.is-studio,
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-cbtn-share {
    display: none !important;
  }
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile[data-m508-shape="hero"] .tv-card-creator {
    display: block !important;
  }
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile .tv-card-rating-row {
    display: none !important;
  }
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile[data-m508-shape="hero"] .tv-card-rating-row {
    display: flex !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile,
  .tv-masonry.m508-mosaic > .tv-card.m508-mosaic-tile:hover,
  .tv-card, .tv-card:hover, .tv-pipe-card, .tv-pipe-card:hover, .tv-cstar, .tv-star-btn {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}
