:root {
  --primary: #FF3B3F;
  --secondary: #6A11CB;
  --accent: #FFD200;
  --bg-dark: #0A0A0B;
  --bg-darker: #050505;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #FDFDFD;
  --text-dim: #A1A1AA;
  --font-body: 'Inter', sans-serif;
  --font-head: 'Outfit', sans-serif;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.logo-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn-ghost {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(255, 59, 63, 0.1) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 210, 0, 0.15);
  color: var(--accent);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
}

/* Player Section */
.player-section {
  padding: 40px 0;
}

.player-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
  gap: 40px;
  padding: 40px;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.player-episode-image {
  flex: 0 0 320px;
  height: 320px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.player-episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 5s ease;
}

.player-card:hover .player-episode-image img {
  transform: scale(1.1);
}

.player-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.player-ep-num {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-ep-date {
  color: var(--text-dim);
}

.player-title {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.player-desc {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom Audio Progress */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.time-current, .time-total {
  font-size: 12px;
  color: var(--text-dim);
  min-width: 40px;
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  width: 0%;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: var(--text-main);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-bar:hover .progress-thumb {
  opacity: 1;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.8;
}

.ctrl-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.ctrl-play {
  width: 72px;
  height: 72px;
  background: var(--text-main);
  color: var(--bg-dark);
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.ctrl-play:hover {
  transform: scale(1.05);
  background: var(--primary);
  color: white;
}

/* Mode selector */
.mode-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.mode-btn {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.mode-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--text-main);
}

.player-links {
  display: flex;
  gap: 12px;
}

.link-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.link-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* ─── Karaoke Lyrics Section ─────────────────────────────────────────── */
.lyrics-section {
  padding: 16px 0 40px;
}

.lyrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.lyrics-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.lyrics-actions {
  display: flex;
  gap: 8px;
}

.lyrics-box {
  max-width: 900px;
  margin: 0 auto;
  height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Hide scrollbar visually */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 60px 0;
  position: relative;
}
.lyrics-box::-webkit-scrollbar { display: none; }

/* Gradient fade top/bottom for cinematic look */
.lyrics-box::before,
.lyrics-box::after {
  content: '';
  position: sticky;
  left: 0; right: 0;
  height: 80px;
  display: block;
  pointer-events: none;
  z-index: 2;
}
.lyrics-box::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
  margin-bottom: -80px;
}
.lyrics-box::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
  margin-top: -80px;
}

/* Each subtitle line */
.lyric-line {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 40px;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.lyric-line:hover {
  color: rgba(255, 255, 255, 0.4);
}

.lyric-line.past {
  color: rgba(255, 255, 255, 0.3);
}

.lyric-line.active {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  transform: scale(1.03);
  /* Gradient highlight on active line */
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* Status / loading states */
.lyric-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  color: var(--text-dim);
  font-size: 15px;
  text-align: center;
}

.lyric-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 1s infinite linear;
}


/* Episodes Grid */
.episodes-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: 36px;
}

.search-wrap {
  flex: 1;
  max-width: 400px;
}

#searchInput {
  width: 100%;
  padding: 14px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

#searchInput:focus {
  border-color: var(--primary);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.episode-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.episode-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.card-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--card-border);
}

.card-content {
  padding: 24px;
}

.card-meta {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-active-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.episode-card.active .card-active-indicator {
  opacity: 1;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 13px;
}

.site-footer a {
  color: var(--text-main);
  text-decoration: underline;
}

/* Loading */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 1s infinite linear;
  margin: 0 auto 20px;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .player-card {
    flex-direction: column;
    padding: 24px;
  }
  .player-episode-image {
    flex: 0 0 240px;
    width: 100%;
    height: 240px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
