/* ============================================================
   MAX FM | SIGNAL TV — COMPONENTS
   ============================================================ */

/* ── Custom Cursor ──────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-out), background 0.2s, width 0.2s, height 0.2s;
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 190, 30, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-spring),
    height 0.4s var(--ease-spring),
    background 0.3s,
    border-color 0.3s;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: none;
}

.cursor-ring.is-hovering {
  width: 64px;
  height: 64px;
  border-color: var(--gold-primary);
  background: rgba(255, 190, 30, 0.08);
}

.cursor-ring.is-play {
  width: 80px;
  height: 80px;
  border-color: var(--gold-primary);
  background: rgba(255, 190, 30, 0.12);
}

.cursor-ring.is-live {
  width: 80px;
  height: 80px;
  border-color: var(--blue-light);
  background: rgba(30, 100, 255, 0.12);
}

.cursor-ring .cursor-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  text-transform: uppercase;
}

.cursor-ring.is-play .cursor-label,
.cursor-ring.is-live .cursor-label {
  opacity: 1;
}

.cursor-ring.is-live .cursor-label {
  color: var(--blue-light);
}

/* Hide custom cursor on touch */
@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  * {
    cursor: auto;
  }
}

/* ── Loading Screen ─────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: var(--z-loading);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#loading-screen.hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.loading-bg-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.loading-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.loading-logo {
  width: min(340px, 80vw);
  animation: logoReveal 1.4s var(--ease-out) forwards;
  filter: drop-shadow(0 0 40px var(--glow-gold));
}

.loading-tagline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1s forwards;
}

.loading-signal {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.2s forwards;
}

.loading-signal-bar {
  width: 4px;
  background: var(--gold-primary);
  border-radius: 2px;
  animation-duration: 0.8s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
}

.loading-signal-bar:nth-child(1) {
  animation-name: eqBar1;
  animation-delay: 0s;
}

.loading-signal-bar:nth-child(2) {
  animation-name: eqBar2;
  animation-delay: 0.1s;
}

.loading-signal-bar:nth-child(3) {
  animation-name: eqBar3;
  animation-delay: 0.2s;
}

.loading-signal-bar:nth-child(4) {
  animation-name: eqBar2;
  animation-delay: 0.3s;
}

.loading-signal-bar:nth-child(5) {
  animation-name: eqBar1;
  animation-delay: 0.15s;
}

.loading-signal-bar:nth-child(6) {
  animation-name: eqBar3;
  animation-delay: 0.25s;
}

.loading-signal-bar:nth-child(7) {
  animation-name: eqBar2;
  animation-delay: 0.05s;
}

.loading-signal-bar:nth-child(8) {
  animation-name: eqBar1;
  animation-delay: 0.35s;
}

.loading-progress-wrap {
  width: min(320px, 75vw);
  height: 2px;
  background: var(--void-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out) 1.5s forwards;
}

.loading-progress-bar {
  height: 100%;
  background: var(--grad-gold);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.3s var(--ease-out);
  box-shadow: 0 0 12px var(--glow-gold);
}

.loading-status {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out) 1.6s forwards;
  min-height: 1.2em;
}

/* Light sweep on loading */
.loading-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  animation: lightSweepLoop 3s ease-in-out infinite;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0);
  transition: background var(--duration-base) var(--ease-out);
}

.btn:hover::before {
  background: rgba(255, 255, 255, 0.07);
}

.btn:active {
  transform: scale(0.96) !important;
}

/* Ripple container */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
  transform: scale(0);
}

/* Gold primary button */
.btn-gold {
  background: var(--grad-gold);
  color: var(--void);
  box-shadow: 0 4px 20px var(--glow-gold-soft);
}

.btn-gold:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-gold);
}

/* Blue primary button */
.btn-blue {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-blue-soft);
}

.btn-blue:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-blue);
}

/* Ghost button */
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  transform: scale(1.03) translateY(-1px);
  border-color: rgba(255, 190, 30, 0.4);
  box-shadow: 0 4px 20px rgba(255, 190, 30, 0.1);
}

/* Icon button */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: var(--text-lg);
  transition: transform var(--duration-base) var(--ease-spring),
    background var(--duration-base),
    box-shadow var(--duration-base);
}

.btn-icon:hover {
  transform: scale(1.1);
  background: var(--glass-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-icon:active {
  transform: scale(0.94) !important;
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--void-mid);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 190, 30, 0.15);
}

.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow),
    border-color var(--duration-slow);
}

.card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 190, 30, 0.2);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  transition: background 0.4s var(--ease-out),
    backdrop-filter 0.4s,
    border-color 0.4s;
}

.nav.scrolled {
  background: rgba(7, 10, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--void-border);
}

.nav-logo {
  height: 36px;
  filter: drop-shadow(0 0 8px var(--glow-gold-soft));
  transition: filter 0.3s, transform 0.3s var(--ease-spring);
}

.nav-logo:hover {
  filter: drop-shadow(0 0 16px var(--glow-gold));
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--duration-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Live Badge ─────────────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff4444;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 6px #ff4444;
  animation: livePulse 1.5s ease-in-out infinite;
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 68, 68, 0.5);
  animation: liveRing 1.5s ease-out infinite;
}

/* ── Volume Slider ──────────────────────────────────────── */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  border-radius: var(--radius-full);
  background: linear-gradient(to right, var(--gold-primary) var(--vol, 70%), var(--void-border) var(--vol, 70%));
  outline: none;
  cursor: pointer;
  transition: height 0.2s var(--ease-spring);
}

.volume-slider:hover {
  height: 6px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--glow-gold);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: none;
  box-shadow: 0 0 8px var(--glow-gold);
  cursor: pointer;
}

/* ── Radio Player ────────────────────────────────────────── */
#radio-player {
  position: relative;
  overflow: hidden;
}

.player-section-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-radio);
  z-index: 0;
}

.player-section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, hsla(221, 90%, 30%, 0.5) 0%, transparent 60%);
}

.player-card {
  position: relative;
  z-index: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(40px);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

/* Logo vinyl container */
.logo-vinyl-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.logo-vinyl {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-full);
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 0 0px var(--glow-gold));
  transition: filter 0.8s var(--ease-out);
}

.logo-vinyl.playing {
  filter: drop-shadow(0 0 30px var(--gold-primary)) drop-shadow(0 0 60px rgba(255, 190, 30, 0.4));
}

.logo-vinyl-reflection {
  position: absolute;
  bottom: -24px;
  left: 10%;
  right: 10%;
  height: 50%;
  background: inherit;
  border-radius: inherit;
  transform: scaleY(-1);
  opacity: 0.15;
  filter: blur(6px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  pointer-events: none;
}

.logo-vinyl-shadow {
  position: absolute;
  bottom: -30px;
  left: 15%;
  right: 15%;
  height: 20px;
  background: var(--glow-gold-soft);
  filter: blur(16px);
  border-radius: 50%;
  pointer-events: none;
}

/* Waveform / Equalizer Canvas */
.player-waveform-canvas {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.player-spectrum-canvas {
  width: 100%;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Play button */
.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px var(--glow-gold-soft), 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px var(--glow-gold), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.play-btn:active {
  transform: scale(0.95);
}

.play-btn svg {
  color: var(--void);
  transition: transform 0.2s var(--ease-spring);
}

.play-btn:hover svg {
  transform: scale(1.1);
}

/* Connection quality */
.connection-indicator {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.connection-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--void-border);
  transition: background 0.3s;
}

.connection-bar.active {
  background: #22c55e;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

.connection-bar:nth-child(1) {
  height: 33%;
}

.connection-bar:nth-child(2) {
  height: 60%;
}

.connection-bar:nth-child(3) {
  height: 85%;
}

.connection-bar:nth-child(4) {
  height: 100%;
}

/* Buffering animation */
.buffering-ring {
  width: 24px;
  height: 24px;
  border: 2px solid var(--void-border);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.buffering-ring.active {
  display: block;
}

/* Program info */
.program-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.program-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.program-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ── Mini Player ─────────────────────────────────────────── */
#mini-player {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%;
  max-width: 820px;
  z-index: var(--z-sticky);
  background: rgba(8, 12, 28, 0.72);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.35s ease;
}

#mini-player.visible {
  transform: translateX(-50%) translateY(0);
}

#mini-player.is-idle {
  opacity: 0.28;
  transform: translateX(-50%) translateY(68%);
}

/* Three-zone inner layout */
.mini-player-inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
}

/* ── LEFT: Logo + LIVE badge ─── */
.mini-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.mini-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mini-live {
  font-size: 0.6rem;
  padding: 2px 7px;
  letter-spacing: 0.12em;
}

/* ── CENTER: Metadata + waveform ─── */
.mini-center {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  overflow: hidden;
}

.mini-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}

.mini-station {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--gold-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.mini-program {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mini-waveform {
  flex: 1;
  min-width: 60px;
  max-width: 160px;
  height: 32px;
  opacity: 0.8;
}

/* ── RIGHT: Controls ─── */
.mini-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.mini-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--glow-gold-soft);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.mini-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 22px var(--glow-gold);
}

.mini-vol {
  width: 80px;
}

/* ── Responsive ─── */
@media (max-width: 768px) {
  #mini-player {
    bottom: 12px;
    width: 96%;
    border-radius: var(--radius-xl);
    padding: var(--space-2) var(--space-3);
  }

  #mini-player.is-idle {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .mini-player-inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-3);
    min-height: 48px;
  }

  .mini-waveform {
    display: none;
  }

  .mini-vol {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .mini-station {
    display: none;
  }

  .mini-vol {
    display: none;
  }

  .mini-player-inner {
    gap: var(--space-2);
  }
}

/* ── TV Player ──────────────────────────────────────────── */
#tv-player-section {
  position: relative;
  overflow: hidden;
}

.tv-player-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--void-border);
}

.tv-player-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
}

/* TV overlay controls */
.tv-controls-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tv-player-wrap:hover .tv-controls-overlay {
  opacity: 1;
}

.tv-controls-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* TV Loading overlay */
.tv-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  z-index: 10;
}

.tv-loading-overlay.hidden {
  display: none;
}

.tv-loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--void-border);
  border-top-color: var(--blue-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px var(--glow-blue-soft);
}

/* Quality badge */
.quality-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--blue-light);
  background: rgba(30, 100, 255, 0.12);
  border: 1px solid rgba(30, 100, 255, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── Section Helpers ─────────────────────────────────────── */
.reveal-mask {
  overflow: hidden;
}

.reveal-mask>* {
  transform: translateY(100%);
}

/* Animated gradient border */
.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold-primary), var(--blue-primary), var(--gold-primary));
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  z-index: -1;
}

/* Shimmer text */
.shimmer-text {
  background: linear-gradient(90deg,
      var(--gold-dark) 0%,
      var(--gold-primary) 20%,
      var(--gold-light) 50%,
      var(--gold-primary) 80%,
      var(--gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Section label */
.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--glow-gold);
}

/* ── Stats ──────────────────────────────────────────────── */
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ── Error States ────────────────────────────────────────── */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  text-align: center;
  gap: var(--space-6);
}

.error-icon {
  font-size: 64px;
  opacity: 0.5;
  animation: floatY 3s ease-in-out infinite;
}

.error-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.error-message {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

/* ── Social Icons ────────────────────────────────────────── */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  transition: transform 0.3s var(--ease-spring),
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.social-icon:hover {
  transform: scale(1.15) translateY(-2px);
  background: var(--glass-hover);
  color: var(--gold-primary);
  box-shadow: 0 4px 16px rgba(255, 190, 30, 0.15);
}

/* ── Tooltip ─────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--void-raised);
  border: 1px solid var(--void-border);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  white-space: nowrap;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: var(--z-overlay);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Keyboard Shortcut Badge ─────────────────────────────── */
.kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-body);
  font-size: 10px;
  background: var(--void-border);
  border-radius: 4px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Noise Texture overlay ───────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ════════════════════════════════════════════════════════
   CONTACT SECTION
═════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-card {
  background: var(--void-surface);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: var(--text-2xl);
  line-height: 1;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--gold-primary);
  margin-bottom: var(--space-2);
}

.contact-card p,
.contact-card a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--gold-primary);
}

.contact-form-wrapper {
  background: var(--void-surface);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all 0.3s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.05);
}

.form-group .error-msg {
  color: #ef4444;
  font-size: var(--text-xs);
  display: none;
  margin-top: 4px;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #ef4444;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-status {
  display: none;
  margin-top: 1rem;
  text-align: center;
  font-size: var(--text-sm);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.form-status.success {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsiveness */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

/* Live Card Highlight */
.live-card {
  border-color: #ef4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
  transform: translateY(-2px);
}

.live-card .program-card-name::before {
  content: "EN DIRECT";
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
  line-height: 1;
}

/* Display days in grid */
.program-section {
  margin-bottom: var(--space-8);
}

/* ── Schedule List (Table Alternative) ── */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.schedule-header {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--void-border);
  margin-bottom: var(--space-2);
}

.schedule-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  align-items: center;
  padding: var(--space-4);
  background: var(--void-mid);
  /* Premium dark glass */
  border: 1px solid var(--void-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.schedule-row:hover {
  background: var(--void-light);
  transform: translateX(4px);
  border-color: var(--gold-primary);
}

.schedule-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.schedule-time {
  font-family: var(--font-mono);
  color: var(--gold-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.schedule-program {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

/* ── Live / Next States ── */
.live-row {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
  box-shadow: inset 4px 0 0 #ef4444;
}

.next-row {
  border-color: var(--gold-primary) !important;
  box-shadow: inset 4px 0 0 var(--gold-primary);
}

.status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  width: fit-content;
}

.badge-live {
  background: #ef4444;
  color: #fff;
  animation: pulse-live 2s infinite;
}

.badge-next {
  background: var(--gold-primary);
  color: var(--void-bg);
}

@keyframes pulse-live {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

/* ── Mobile Layout ── */
@media (max-width: 768px) {
  .schedule-header {
    display: none;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
  }

  .schedule-time {
    font-size: 0.85rem;
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--void-border);
  }

  .schedule-program {
    font-size: 1.2rem;
  }
}
/* ════════════════════════════════════════════════════════
   SCHEDULE TABS
═════════════════════════════════════════════════════════ */
.schedule-tabs {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--void-border);
  -webkit-overflow-scrolling: touch;
}

.schedule-tabs::-webkit-scrollbar {
  height: 4px;
}
.schedule-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.schedule-tabs::-webkit-scrollbar-thumb {
  background: var(--void-border);
  border-radius: 4px;
}

.schedule-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.schedule-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.schedule-tab.active {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.schedule-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.schedule-container {
  min-height: 400px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.schedule-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--void-surface);
  border: 1px solid var(--void-border);
  border-radius: var(--radius-md);
  align-items: center;
  transition: all 0.3s ease;
}

.schedule-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.schedule-time {
  font-family: var(--font-mono);
  color: var(--gold-primary);
  font-size: var(--text-sm);
}

.schedule-program {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
}

.schedule-host {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Highlight row for live program */
.schedule-row.live-row {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Badge specific overrides within rows */
.schedule-row .status-badge {
  display: inline-block;
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.schedule-row .badge-live {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: pulse-border 2s infinite;
}
.schedule-row .badge-next {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--void-border);
}

@media (max-width: 768px) {
  .schedule-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding: var(--space-4);
  }
  .schedule-time {
    font-size: var(--text-xs);
    opacity: 0.8;
  }
}
