:root {
  --bg-primary: #070b12;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(26, 38, 66, 0.88);
  --border-gold: #e5b95f;
  --border-glow: rgba(229, 185, 95, 0.4);
  --accent-blue: #0088ff;
  --accent-cyan: #38bdf8;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(0, 136, 255, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Atmospheric Background with Image */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: saturate(1.15) brightness(0.55);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 15%, rgba(10, 25, 47, 0.7) 0%, rgba(7, 11, 18, 0.94) 75%, #070b12 100%);
  backdrop-filter: blur(8px);
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Header Styles */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(13, 20, 36, 0.65);
  border: 1px solid rgba(229, 185, 95, 0.3);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  margin-bottom: 28px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.podcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.85);
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 0 14px rgba(229, 185, 95, 0.25);
}

.on-air-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--accent-red);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    transform: scale(1.25);
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.podcast-label {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--border-gold);
  text-transform: uppercase;
}

.soundwave-icon {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.soundwave-icon span {
  width: 3px;
  background: var(--border-gold);
  border-radius: 2px;
  display: inline-block;
}

.soundwave-icon span:nth-child(1) { height: 6px; }
.soundwave-icon span:nth-child(2) { height: 14px; }
.soundwave-icon span:nth-child(3) { height: 9px; }

.brand-info h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.website-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 136, 255, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.website-btn:hover {
  background: rgba(0, 136, 255, 0.3);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

/* Main Layout Grid */
.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .main-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured Player Section */
.player-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-main);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-details {
  padding: 24px;
}

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

.now-playing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.episode-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.current-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #fff;
}

.current-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.player-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Sidebar & Playlist */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.playlist-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.episode-count-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--text-secondary);
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.episode-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.episode-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.episode-card.active {
  background: rgba(14, 30, 60, 0.85);
  border-color: var(--border-gold);
  box-shadow: 0 0 20px rgba(229, 185, 95, 0.25);
}

.episode-card.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-gold);
  border-radius: 4px 0 0 4px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-ep-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.card-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--border-gold);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.card-btn-play {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-btn-play:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

.card-btn-download {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-btn-download:hover {
  background: rgba(229, 185, 95, 0.2);
  color: var(--border-gold);
  border-color: rgba(229, 185, 95, 0.4);
}

/* Mission Banner / Info Box */
.mission-card {
  background: linear-gradient(135deg, rgba(14, 26, 49, 0.8) 0%, rgba(8, 14, 28, 0.9) 100%);
  border: 1px solid rgba(229, 185, 95, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
}

.mission-card h3 {
  font-size: 0.95rem;
  color: var(--border-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.mission-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.88rem;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsiveness */
@media (max-width: 640px) {
  .app-container {
    padding: 16px 12px 40px;
  }
  
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .player-details {
    padding: 16px;
  }

  .current-title {
    font-size: 1.25rem;
  }

  .player-action-buttons {
    flex-direction: column;
  }

  .player-action-buttons .btn {
    width: 100%;
  }
}