/* ============================================
   LIVE SHOW DETAIL PAGE
   - Route: /live/<slug>
   - View:  src/views/pages/live/show.php
   - Layout:
     - Hero with player + meta
     - Main column: about, rundown, chat
     - Sidebar: facts + subscription upsell
     - Related live shows
============================================ */

/* Root page wrapper */
.live-show-page {
  background: radial-gradient(
    circle at top,
    #0b1120 0,
    #020617 40%,
    #020617 100%
  );
  color: #e5e7eb;
  min-height: 100vh;
}

/* Shared dot separator between inline items */
.dot {
  margin: 0 0.35rem;
  opacity: 0.6;
}

/* ==============================
   HERO / PLAYER
   - Backdrop + overlay + 2-column layout
============================== */

.live-show-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 1.75rem 1.75rem;
  padding: 1.5rem 1rem 2rem;
  background: #020617;
}

/* Backdrop
   - Uses blurred, scaled background-image
   - Recommended actual image size: 1920×1080 (JPG/WEBP)
*/
.live-show-backdrop {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.45);
  transform: scale(1.15);
  transform-origin: center;
}

/* Dark + subtle light overlay for text readability */
.live-show-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.96)
    ),
    radial-gradient(
      circle at top center,
      rgba(248, 250, 252, 0.06),
      transparent 60%
    );
}

/* Inner hero layout (player + meta) */
.live-show-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr);
  gap: 1.5rem;
}

/* Player wrapper */
.live-show-player-wrap {
  width: 100%;
}

/* Player container
   - Maintains a 16:9 aspect ratio via CSS
   - iframe or placeholder fills this box
*/
.live-show-player-aspect {
  position: relative;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle at top, #111827, #020617);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
}

/* 16:9 aspect ratio enforcement for player content */
.live-show-player-aspect iframe,
.live-show-player-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Iframe itself (borderless, responsive) */
.live-show-player-aspect iframe {
  border: none;
}

/* Placeholder player for custom VAN implementation */
.live-show-player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.live-show-player-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
}

/* Live / scheduled status pill (top-left on player) */
.live-show-status-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(55, 65, 81, 0.96);
  color: #f9fafb;
}

/* "Live" state styling */
.live-show-status-pill--live {
  background: rgba(248, 113, 113, 0.96);
  color: #fee2e2;
}

/* Viewers pill (bottom-left on player) */
.live-show-viewers-pill {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
}

/* ==============================
   HERO META COLUMN
============================== */

.live-show-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.live-show-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

/* Main title for live show */
.live-show-title {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* One-line tagline under title */
.live-show-tagline {
  font-size: 0.9rem;
  color: #cbd5f5;
}

/* Inline meta row (category / region / language) */
.live-show-meta-row,
.live-show-schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.8rem;
  color: #9ca3af;
  gap: 0.1rem;
}

/* "Schedule:" label emphasis */
.live-show-schedule-label {
  font-weight: 600;
  color: #e5e7eb;
  margin-right: 0.3rem;
}

/* Channel row (avatar + name + follow) */
.live-show-channel-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

/* Circular avatar (initial-based) */
.live-show-channel-avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at top, #f97316, #facc15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #111827;
  flex-shrink: 0;
}

/* Channel text container */
.live-show-channel-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Channel name */
.live-show-channel-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Channel subtitle (verified line) */
.live-show-channel-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* "+ Follow" button to the far right */
.live-show-follow-btn {
  margin-left: auto;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  border: 1px solid rgba(250, 204, 21, 0.75);
  background: rgba(15, 23, 42, 0.7);
  color: #facc15;
  cursor: pointer;
  white-space: nowrap;
}

.live-show-follow-btn:hover {
  background: rgba(250, 204, 21, 0.08);
}

/* ==============================
   HERO ACTION BUTTONS
============================== */

.live-show-actions-row {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Base styles for all hero buttons */
.live-show-btn-primary,
.live-show-btn-secondary,
.live-show-btn-icon {
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* Primary CTA button ("Watch from Start" / "Notify Me") */
.live-show-btn-primary {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.live-show-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.95);
}

/* Secondary CTA ("Add to My List") */
.live-show-btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.live-show-btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
}

/* Icon-style button ("Share") */
.live-show-btn-icon {
  padding-inline: 0.8rem;
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.live-show-btn-icon:hover {
  background: rgba(15, 23, 42, 0.7);
}

/* ==============================
   MAIN LAYOUT (CONTENT + SIDEBAR)
============================== */

.live-show-layout {
  max-width: 1200px;
  margin: 1.75rem auto 2.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr);
  gap: 2rem;
}

/* Main column container */
.live-show-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Base card style for all content sections */
.live-show-section {
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.97)
  );
  border-radius: 1.1rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

/* Generic header layout for section titles + optional action link */
.live-show-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Section heading text */
.live-show-section-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Section subtitle text */
.live-show-section-subtitle {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ABOUT / DESCRIPTION SECTION */

.live-show-description {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.6;
}

/* ==============================
   RUNDOWN LIST (Segments / Chapters)
============================== */

.live-show-rundown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

/* Each rundown row: time + text */
.live-show-rundown-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: flex-start;
}

/* Time marker */
.live-show-rundown-time {
  font-size: 0.8rem;
  color: #facc15;
  font-weight: 600;
  padding-top: 0.1rem;
}

/* Text body for segment */
.live-show-rundown-body {
  font-size: 0.86rem;
}

.live-show-rundown-body p {
  margin-top: 0.1rem;
  color: #9ca3af;
}

/* ==============================
   LIVE CHAT PLACEHOLDER
============================== */

.live-show-chat-placeholder {
  background: radial-gradient(
    circle at top left,
    rgba(55, 65, 81, 0.35),
    rgba(15, 23, 42, 0.95)
  );
  border-radius: 0.9rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px dashed rgba(75, 85, 99, 0.85);
}

/* Chat bubble container */
.live-show-chat-bubble {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.8rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
}

.live-show-chat-bubble strong {
  display: block;
  margin-bottom: 0.1rem;
  color: #e5e7eb;
}

.live-show-chat-bubble p {
  color: #cbd5f5;
}

/* Host bubble highlight */
.live-show-chat-bubble--host {
  border-left: 3px solid #f97316;
}

/* Chat input row (currently disabled) */
.live-show-chat-input-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.2rem;
}

/* Input styling */
.live-show-chat-input-row input {
  flex: 1 1 auto;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.live-show-chat-input-row input::placeholder {
  color: #6b7280;
}

/* Send button styling (disabled state color) */
.live-show-chat-input-row button {
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.78rem;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #6b7280;
}

/* ==============================
   SIDEBAR
============================== */

.live-show-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Sidebar sections are slightly stronger shadowed */
.live-show-sidebar-section {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.75);
}

/* Facts list (definition list styled as rows) */
.live-show-facts {
  margin: 0;
  padding: 0;
}

/* Each fact row: label + value */
.live-show-fact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(55, 65, 81, 0.7);
}

.live-show-fact-row:last-child {
  border-bottom: none;
}

.live-show-fact-row dt {
  font-size: 0.8rem;
  color: #9ca3af;
}

.live-show-fact-row dd {
  margin: 0;
  font-size: 0.8rem;
  text-align: right;
}

/* Subscription upsell text */
.live-show-subscription-text {
  font-size: 0.85rem;
  color: #e5e7eb;
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
}

/* CTA button for plans & pricing */
.live-show-subscription-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.9);
}

.live-show-subscription-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.95);
}

/* Sub-note text under plans CTA */
.live-show-subscription-note {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ==============================
   RELATED LIVE SHOWS
   - "You Might Also Like" cards
============================== */

.live-show-related {
  max-width: 1200px;
  margin: 0 auto 2.8rem;
  padding: 0 1rem;
}

/* "Browse Live Hub" link styling */
.live-show-section-link {
  font-size: 0.8rem;
  color: #facc15;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.live-show-section-link:hover {
  border-color: rgba(250, 204, 21, 0.7);
  background: rgba(15, 23, 42, 0.95);
}

/* Related cards grid layout */
.live-show-related-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.9rem;
}

/* Card container */
.live-related-card {
  background: radial-gradient(
    circle at top,
    rgba(37, 99, 235, 0.25),
    rgba(15, 23, 42, 0.98)
  );
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.75);
}

/* Thumbnail link block (clickable area) */
.live-related-thumb-link {
  display: block;
}

/* Thumbnail wrapper
   - Maintains 16:9 ratio visually
*/
.live-related-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Thumbnail image
   - Recommended file size: 1280×720 or 1920×1080
   - Will scale to fit the 16:9 container
*/
.live-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover zoom effect */
.live-related-thumb-link:hover .live-related-thumb img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* Badge (e.g. "Weekdays") */
.live-related-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
}

/* Card body */
.live-related-body {
  padding: 0.7rem 0.85rem 0.9rem;
}

/* Card title */
.live-related-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Title link */
.live-related-title a {
  color: #f9fafb;
  text-decoration: none;
}

.live-related-title a:hover {
  color: #facc15;
}

/* Card meta (category, region) */
.live-related-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ==============================
   RESPONSIVE BREAKPOINTS
============================== */

@media (min-width: 640px) {
  .live-show-hero {
    padding: 1.8rem 1.5rem 2.4rem;
  }

  .live-show-hero-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 1.75rem;
  }

  .live-show-title {
    font-size: 1.7rem;
  }

  .live-show-layout {
    padding-inline: 1.5rem;
  }

  .live-show-related {
    padding-inline: 1.5rem;
  }

  .live-show-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .live-show-hero-inner {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  }

  .live-show-title {
    font-size: 1.9rem;
  }

  .live-show-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  }
}

@media (min-width: 1200px) {
  .live-show-hero {
    padding-inline: 2rem;
  }

  .live-show-layout {
    padding-inline: 0;
  }

  .live-show-related {
    padding-inline: 0;
  }

  .live-show-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
