/* ==========================================================================
   Marquee-Magic Live (EPIC-WEB-005 Sprint 1C) - Cinema Obsidian Theme v0.27.0
   Standalone CSS matching assets/design-tokens.json (YouTube Desktop + Shorts Mobile)
   ========================================================================== */

:root {
  --live-bg: #06080d;
  --live-surface: #0d1119;
  --live-elevated: #151c2a;
  --live-input: #0b101a;
  --live-border: #1e293b;
  --live-border-subtle: #162032;
  --live-red: #ef4444;
  --live-red-hover: #dc2626;
  --live-emerald: #10b981;
  --live-sky: #38bdf8;
  --live-amber: #f59e0b;
  --live-text: #f8fafc;
  --live-text-sec: #94a3b8;
  --live-text-muted: #64748b;
  --live-rail-width: 244px;
  --live-header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--live-bg);
  color: var(--live-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Sticky Top App Header
   -------------------------------------------------------------------------- */
.live-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 8, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--live-border);
}

.live-header-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.live-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.live-rail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--live-border);
  background: var(--live-surface);
  color: var(--live-text);
  cursor: pointer;
}

.live-rail-toggle:hover {
  background: var(--live-elevated);
  border-color: var(--live-sky);
}

.live-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.live-brand-link img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.live-brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.live-brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.live-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.48rem;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--live-red);
  box-shadow: 0 0 8px var(--live-red);
  animation: live-pulse 1.8s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.live-brand-sub {
  font-size: 0.68rem;
  color: var(--live-text-sec);
  font-weight: 500;
}

/* Location + Search Center */
.live-center-controls {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 780px;
}

.live-location-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.live-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  border-radius: 9999px;
  background: var(--live-elevated);
  border: 1px solid var(--live-border);
  color: var(--live-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.live-location-pill:hover {
  border-color: var(--live-sky);
  background: #1a2436;
}

.live-location-pill.is-travel {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.5);
  color: #bae6fd;
}

.live-reset-home-btn {
  padding: 0.42rem 0.7rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.live-reset-home-btn:hover {
  background: rgba(16, 185, 129, 0.25);
}

.live-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.live-search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--live-text-muted);
  pointer-events: none;
}

.live-search-input {
  width: 100%;
  padding: 0.5rem 2.2rem 0.5rem 2.35rem;
  border-radius: 9999px;
  background: var(--live-input);
  border: 1px solid var(--live-border);
  color: var(--live-text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.live-search-input:focus {
  border-color: var(--live-sky);
}

.live-search-clear {
  position: absolute;
  right: 0.65rem;
  background: transparent;
  border: none;
  color: var(--live-text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem;
}

/* Header Right Actions */
.live-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--live-border);
  background: var(--live-surface);
  color: var(--live-text);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.live-btn:hover {
  background: var(--live-elevated);
  border-color: #334155;
}

.live-btn-primary {
  background: var(--live-red);
  border-color: var(--live-red);
  color: #ffffff;
}

.live-btn-primary:hover {
  background: var(--live-red-hover);
  border-color: var(--live-red-hover);
}

.live-btn-sky {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
}

.live-btn-sky:hover {
  background: rgba(56, 189, 248, 0.28);
}

.live-btn-emerald {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
}

.live-btn-following {
  background: var(--live-emerald);
  border-color: var(--live-emerald);
  color: #032219;
}

.live-notif-wrap {
  position: relative;
}

.live-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--live-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-notif-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(340px, 90vw);
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
  padding: 0.85rem;
  z-index: 60;
}

.live-notif-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.live-notif-item {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--live-elevated);
  border: 1px solid var(--live-border-subtle);
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Sticky Filter & Activity Strip
   -------------------------------------------------------------------------- */
.live-filter-bar {
  position: sticky;
  top: 58px;
  z-index: 35;
  background: rgba(13, 17, 25, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--live-border);
  padding: 0.65rem 1.25rem;
}

.live-filter-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.live-filter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-pill-scroll {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.live-pill-scroll::-webkit-scrollbar {
  display: none;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.78rem;
  border-radius: 9999px;
  background: var(--live-elevated);
  border: 1px solid var(--live-border);
  color: var(--live-text-sec);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
  flex-shrink: 0;
}

.live-chip:hover {
  color: var(--live-text);
  border-color: #334155;
}

.live-chip.active {
  background: #f8fafc;
  color: #06080d;
  border-color: #f8fafc;
}

.live-chip.tag-chip.active {
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  border-color: var(--live-sky);
}

.live-chip.when-chip.active {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border-color: var(--live-red);
}

.live-sort-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.live-select {
  background: var(--live-input);
  border: 1px solid var(--live-border);
  color: var(--live-text);
  border-radius: 9px;
  padding: 0.36rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
}

.live-date-range-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.7rem;
  background: var(--live-elevated);
  border-radius: 10px;
  border: 1px solid var(--live-border);
  font-size: 0.78rem;
}

.live-date-input {
  background: var(--live-input);
  border: 1px solid var(--live-border);
  color: var(--live-text);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   App Workspace: Left Rail + Main Feed Stage
   -------------------------------------------------------------------------- */
.live-shell {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - 150px);
}

.live-sidebar {
  width: var(--live-rail-width);
  flex-shrink: 0;
  border-right: 1px solid var(--live-border);
  background: var(--live-bg);
  padding: 1rem 0.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: margin-left 0.2s ease, opacity 0.2s ease;
}

.live-sidebar.collapsed {
  display: none;
}

.live-rail-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--live-text-muted);
  padding: 0 0.6rem;
  margin-bottom: 0.35rem;
}

.live-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.live-rail-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.56rem 0.75rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--live-text-sec);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.live-rail-item:hover {
  background: var(--live-surface);
  color: var(--live-text);
}

.live-rail-item.active {
  background: var(--live-elevated);
  color: var(--live-text);
  border: 1px solid var(--live-border);
}

.live-rail-sublist {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.live-trip-btn,
.live-channel-mini-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: var(--live-surface);
  border: 1px solid var(--live-border-subtle);
  color: var(--live-text-sec);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
}

.live-trip-btn:hover,
.live-channel-mini-btn:hover {
  border-color: var(--live-sky);
  color: var(--live-text);
}

.live-biz-cta-card {
  margin-top: auto;
  padding: 0.9rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.12), rgba(56, 189, 248, 0.08));
  border: 1px solid var(--live-border);
  font-size: 0.78rem;
  line-height: 1.45;
}

.live-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.25rem 1.5rem 5.5rem;
}

/* Context / Travel Banner */
.live-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--live-surface);
  border: 1px solid var(--live-border);
}

.live-context-banner.is-travel {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(13, 17, 25, 0.96));
  border-color: rgba(56, 189, 248, 0.4);
}

.live-context-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.live-context-sub {
  font-size: 0.82rem;
  color: var(--live-text-sec);
  margin: 0.15rem 0 0;
}

/* --------------------------------------------------------------------------
   Poster & Video Discovery Card Grid
   -------------------------------------------------------------------------- */
.live-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1.15rem;
}

.live-card {
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.live-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.live-card-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  max-height: 410px;
  background: #030509;
  overflow: hidden;
}

.live-card-media-box img,
.live-card-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-card-video-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.live-card:hover .live-card-video-preview.is-playing {
  opacity: 1;
}

.live-card-top-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: none;
}

.live-sched-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(6, 8, 13, 0.85);
  color: var(--live-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.live-sched-badge.is-live {
  background: rgba(239, 68, 68, 0.92);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.live-sched-badge.is-tonight {
  background: rgba(245, 158, 11, 0.92);
  color: #1c1000;
  border-color: rgba(255, 255, 255, 0.2);
}

.live-media-type-pill {
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(6, 8, 13, 0.82);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.live-card-distance-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.live-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 auto;
}

.live-card-venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.live-card-venue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--live-text-sec);
}

.live-card-venue-link:hover {
  color: var(--live-sky);
}

.live-venue-avatar {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid var(--live-border);
  flex-shrink: 0;
}

.live-verified-pill {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
  flex-shrink: 0;
}

.live-card-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--live-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-card-meta {
  font-size: 0.76rem;
  color: var(--live-text-sec);
}

.live-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.live-mini-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.14rem 0.48rem;
  border-radius: 9999px;
  background: var(--live-elevated);
  border: 1px solid var(--live-border);
  color: #cbd5e1;
}

.live-card-footer {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--live-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.live-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.52rem;
  border-radius: 8px;
  background: var(--live-elevated);
  border: 1px solid var(--live-border);
  color: var(--live-text-sec);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.live-icon-btn:hover {
  color: var(--live-text);
  border-color: var(--live-sky);
}

.live-icon-btn.is-liked {
  background: rgba(239, 68, 68, 0.18);
  border-color: var(--live-red);
  color: #fca5a5;
}

.live-icon-btn.is-saved {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--live-sky);
  color: #bae6fd;
}

/* --------------------------------------------------------------------------
   Venues Directory Grid & Business Channel Page
   -------------------------------------------------------------------------- */
.live-venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}

.live-venue-card {
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.live-venue-card:hover {
  border-color: var(--live-sky);
}

.live-channel-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.6));
  border: 1px solid var(--live-border);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.live-channel-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.live-channel-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--live-border);
  flex-shrink: 0;
}

.live-channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.live-channel-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--live-border);
  padding-bottom: 0.75rem;
}

.live-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.live-about-card {
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 14px;
  padding: 1.1rem;
}

/* --------------------------------------------------------------------------
   Modals (Desktop Theater Viewer, Location/Travel, Auth, QR Code)
   -------------------------------------------------------------------------- */
.live-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 5, 9, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.live-modal-overlay.live-modal-top {
  z-index: 90;
}

.live-modal-card {
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.35rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.live-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.live-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.live-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: var(--live-elevated);
  border: 1px solid var(--live-border);
  color: var(--live-text);
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-theater-card {
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 18px;
  width: min(1180px, 96vw);
  height: min(820px, 92vh);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.82);
}

.live-theater-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: rgba(21, 28, 42, 0.92);
  border-bottom: 1px solid var(--live-border);
  flex-shrink: 0;
}

.live-theater-close-pill {
  padding: 0.34rem 0.72rem;
  font-size: 0.76rem;
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
}

.live-theater-close-pill:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: var(--live-red);
  color: #ffffff;
}

.live-theater-body {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.85fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.live-theater-stage {
  position: relative;
  background: radial-gradient(circle at center, #0f172a 0%, #020408 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  height: 100%;
  padding: 0.9rem 3.25rem 2.75rem;
  overflow: hidden;
  border-right: 1px solid var(--live-border);
}

.live-theater-stage img,
.live-theater-stage video,
.live-theater-media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  animation: live-slide-fade 0.42s ease;
}

.live-theater-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(6, 8, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

.live-theater-nav:hover {
  border-color: var(--live-sky);
}

.live-theater-nav.prev { left: 0.75rem; }
.live-theater-nav.next { right: 0.75rem; }

.live-theater-pane {
  padding: 1.15rem 1.25rem;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--live-text-sec);
  margin-bottom: 0.35rem;
}

.live-form-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--live-input);
  border: 1px solid var(--live-border);
  color: var(--live-text);
  font-size: 0.88rem;
  outline: none;
}

.live-form-input:focus {
  border-color: var(--live-sky);
}

.live-geo-results {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 200px;
  overflow-y: auto;
}

.live-geo-hit {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--live-elevated);
  border: 1px solid var(--live-border-subtle);
  color: var(--live-text);
  font-size: 0.82rem;
  cursor: pointer;
}

.live-geo-hit:hover {
  border-color: var(--live-sky);
}

.live-radius-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   Mobile Shorts-Style Vertical Swipe Player
   -------------------------------------------------------------------------- */
.live-shorts-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #000000;
  display: flex;
  flex-direction: column;
}

.live-shorts-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.9rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent);
}

.live-shorts-scroller {
  flex: 1 1 auto;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.live-short-item {
  position: relative;
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #020408;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.live-short-item img,
.live-short-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-short-actions-stack {
  position: absolute;
  right: 0.75rem;
  bottom: 5.5rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.live-short-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  background: rgba(6, 8, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 14px;
  padding: 0.5rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 54px;
  backdrop-filter: blur(8px);
}

.live-short-bottom-meta {
  position: absolute;
  left: 0;
  right: 4.75rem;
  bottom: 0;
  z-index: 5;
  padding: 2rem 1rem max(1.25rem, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 25%, transparent);
}

/* Mobile Fixed Bottom Navigation Bar */
.live-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(13, 17, 25, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--live-border);
  padding: 0.35rem 0.4rem max(0.35rem, env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
}

.live-mobile-tab {
  background: transparent;
  border: none;
  color: var(--live-text-sec);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
}

.live-mobile-tab.active {
  color: var(--live-sky);
  background: rgba(56, 189, 248, 0.12);
}

.live-empty-state {
  background: var(--live-surface);
  border: 1px dashed var(--live-border);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 560px;
  margin: 2rem auto;
}

.live-toast {
  position: fixed;
  bottom: 4.5rem;
  right: 1.25rem;
  z-index: 120;
  background: var(--live-elevated);
  border: 1px solid var(--live-sky);
  color: var(--live-text);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
}

/* --------------------------------------------------------------------------
   Responsive Rules (Tablet & Mobile Shorts View)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .live-sidebar,
  .live-rail-toggle,
  .live-desktop-only {
    display: none !important;
  }

  .live-mobile-nav {
    display: grid;
  }

  .live-header-inner {
    flex-wrap: wrap;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }

  .live-center-controls {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .live-location-group {
    width: 100%;
    justify-content: space-between;
  }

  .live-location-pill {
    flex: 1 1 auto;
    max-width: none;
    justify-content: space-between;
  }

  .live-filter-bar {
    top: 0;
    position: relative;
    padding: 0.5rem 0.75rem;
  }

  .live-main {
    padding: 0.85rem 0.75rem 5.5rem;
  }

  .live-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .live-theater-card {
    height: auto;
    max-height: 94vh;
    max-height: 94dvh;
  }

  .live-theater-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .live-theater-stage {
    height: 46dvh;
    min-height: 260px;
    max-height: 460px;
    border-right: none;
    border-bottom: 1px solid var(--live-border);
    padding: 0.7rem 2.6rem 2.5rem;
  }

  .live-theater-pane {
    overflow-y: visible;
  }
}

@media (max-width: 440px) {
  .live-brand-sub {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Live Marquee Slideshow Stage & Fullscreen Mode (v0.27.1)
   -------------------------------------------------------------------------- */
.live-slideshow-section {
  background: var(--live-surface);
  border: 1px solid var(--live-border);
  border-radius: 16px;
  margin-bottom: 1.35rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.live-slideshow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.72rem 1rem;
  background: rgba(21, 28, 42, 0.85);
  border-bottom: 1px solid var(--live-border);
}

.live-slideshow-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-width: 0;
}

.live-slideshow-filter-summary {
  font-size: 0.8rem;
  color: var(--live-text-sec);
  font-weight: 500;
}

.live-slideshow-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.live-slideshow-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--live-text-sec);
  padding: 0.28rem 0.58rem;
  border-radius: 8px;
  background: var(--live-input);
  border: 1px solid var(--live-border);
  font-variant-numeric: tabular-nums;
}

.live-slideshow-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  min-height: 0;
}

.live-slideshow-stage {
  position: relative;
  height: clamp(320px, 54vh, 510px);
  background: radial-gradient(circle at center, #0f172a 0%, #020408 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 3.25rem 1.2rem;
  overflow: hidden;
  border-right: 1px solid var(--live-border);
}

.live-slideshow-media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  animation: live-slide-fade 0.42s ease;
}

@keyframes live-slide-fade {
  from {
    opacity: 0.15;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.live-slideshow-top-pills {
  position: absolute;
  top: 0.7rem;
  left: 0.8rem;
  right: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 4;
}

.live-slideshow-distance-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(6, 8, 13, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
}

.live-slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(6, 8, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.live-slideshow-nav:hover {
  background: rgba(21, 28, 42, 0.96);
  border-color: var(--live-sky);
}

.live-slideshow-nav.prev { left: 0.75rem; }
.live-slideshow-nav.next { right: 0.75rem; }

.live-slideshow-play-btn {
  position: absolute;
  bottom: 1rem;
  left: 0.85rem;
  z-index: 5;
  padding: 0.34rem 0.72rem;
  border-radius: 9999px;
  background: rgba(6, 8, 13, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.live-slideshow-play-btn:hover {
  border-color: var(--live-sky);
}

.live-slideshow-dots {
  position: absolute;
  bottom: 1.05rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.55rem;
  border-radius: 9999px;
  background: rgba(6, 8, 13, 0.72);
  max-width: 60%;
  overflow: hidden;
}

.live-slideshow-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.live-slideshow-dot.active {
  width: 18px;
  background: var(--live-sky);
}

.live-slideshow-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(30, 41, 59, 0.85);
  z-index: 6;
}

.live-slideshow-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--live-red), var(--live-sky));
}

.live-slideshow-info {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  overflow-y: auto;
}

.live-slideshow-venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.live-slideshow-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}

.live-slideshow-caption {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--live-text-sec);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-slideshow-sched-line {
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 600;
}

.live-slideshow-touring-line {
  font-size: 0.76rem;
  color: #7dd3fc;
  font-weight: 600;
}

.live-slideshow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.live-slideshow-upnext-wrap {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--live-border-subtle);
}

.live-slideshow-upnext-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--live-text-muted);
  margin-bottom: 0.4rem;
}

.live-slideshow-up-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.live-upnext-item {
  background: var(--live-elevated);
  border: 1px solid var(--live-border-subtle);
  border-radius: 9px;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  text-align: left;
  color: var(--live-text);
  min-width: 0;
  transition: border-color 0.15s ease;
}

.live-upnext-item:hover {
  border-color: var(--live-sky);
}

.live-upnext-item img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.live-upnext-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--live-text-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fullscreen Marquee Mode */
.live-slideshow-section.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 105;
  margin: 0;
  border-radius: 0;
  border: none;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #020408;
}

.live-slideshow-section.is-fullscreen .live-slideshow-body {
  flex: 1 1 auto;
  min-height: 0;
}

.live-slideshow-section.is-fullscreen .live-slideshow-stage {
  height: 100%;
  max-height: none;
}

@media (max-width: 960px) {
  .live-slideshow-body {
    grid-template-columns: 1fr;
  }

  .live-slideshow-stage {
    height: 44vh;
    min-height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--live-border);
    padding: 0.7rem 2.6rem 1.2rem;
  }

  .live-slideshow-section.is-fullscreen .live-slideshow-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .live-slideshow-section.is-fullscreen .live-slideshow-stage {
    height: 62dvh;
  }
}

