:root {
  --navy: #060e1a;
  --navy-mid: #0c1a2e;
  --navy-card: rgba(12, 26, 46, 0.82);
  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --red: #c41e3a;
  --red-dark: #8b1530;
  --white: #faf8f4;
  --cream: #e8e0d0;
  --blue: #1a4a8a;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --radius: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Hero background ── */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,14,26,0.55) 0%, rgba(6,14,26,0.75) 40%, rgba(6,14,26,0.97) 85%),
    radial-gradient(ellipse at 70% 20%, rgba(196,30,58,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(212,175,55,0.08) 0%, transparent 50%);
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6, 14, 26, 0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-emblem svg { width: 100%; height: 100%; }

.logo-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
  display: block;
}

.logo-subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--cream);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.nav { display: flex; gap: 0.25rem; }

.nav-link {
  color: rgba(250, 248, 244, 0.75);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: rgba(196, 30, 58, 0.18);
  border: 1px solid rgba(196, 30, 58, 0.6);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ff6b7a;
  flex-shrink: 0;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196,30,58,0.6); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(196,30,58,0); }
}

/* ── Hero ── */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  background: rgba(212,175,55,0.08);
}

.hero-tagline {
  font-size: 0.82rem;
  color: rgba(250,248,244,0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #c9a227 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(250,248,244,0.6);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ── Player ── */
.player-card {
  position: relative;
  background: var(--navy-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 28px;
  padding: 2rem 2.5rem;
  box-shadow:
    0 0 80px rgba(212,175,55,0.08),
    0 30px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}

.player-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(196,30,58,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--blue), var(--red));
}

.player-top {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.player-visual {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.cover-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(212,175,55,0.4);
  box-shadow: 0 0 30px rgba(212,175,55,0.2);
  transition: var(--transition);
}

.cover-ring.playing {
  animation: spin 8s linear infinite;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vinyl {
  display: none;
}

.visualizer {
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 50px;
  opacity: 0.7;
}

.player-info { flex: 1; min-width: 0; }

.now-playing-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq-bars span {
  display: block;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  animation: eqBar 0.8s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { height: 100%; animation-delay: 0.1s; }

@keyframes eqBar {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

.track-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 1rem;
  color: rgba(250,248,244,0.65);
  margin-bottom: 1.2rem;
}

.show-info { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.show-chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.25);
}

.show-chip.outline {
  background: transparent;
  color: rgba(250,248,244,0.55);
  border-color: rgba(250,248,244,0.15);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212,175,55,0.12);
}

.btn-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(196,30,58,0.45);
  flex-shrink: 0;
}

.btn-play:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 40px rgba(196,30,58,0.55);
}

.btn-play svg { width: 30px; height: 30px; }
.btn-play .icon-pause { display: none; }
.btn-play.playing .icon-play { display: none; }
.btn-play.playing .icon-pause { display: block; }

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  max-width: 180px;
}

.volume-icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

#volumeSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(212,175,55,0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
}

.listeners-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(250,248,244,0.5);
  margin-left: auto;
}

.listeners-count svg { width: 16px; height: 16px; color: var(--gold); }

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

/* ── Sections ── */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: rgba(250,248,244,0.5);
  font-size: 0.95rem;
}

/* ── Gallery ── */
.gallery-section {
  background: rgba(6,14,26,0.6);
  border-top: 1px solid rgba(212,175,55,0.1);
  border-bottom: 1px solid rgba(212,175,55,0.1);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.gallery-section .section-header {
  max-width: 1240px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.gallery-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-large {
  grid-row: span 2;
  grid-column: span 1;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(6,14,26,0.85));
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ── Programs ── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.program-card {
  background: var(--navy-card);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.program-card:hover {
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.program-card:hover::after { opacity: 1; }

.program-day {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.program-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.program-host {
  font-size: 0.82rem;
  color: rgba(250,248,244,0.5);
  margin-bottom: 0.75rem;
}

.program-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

.program-desc {
  font-size: 0.83rem;
  color: rgba(250,248,244,0.45);
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* ── News ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.news-card {
  background: var(--navy-card);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}

.news-card:hover {
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-2px);
}

.news-date {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.news-content {
  font-size: 0.88rem;
  color: rgba(250,248,244,0.6);
  line-height: 1.65;
}

/* ── Contacts ── */
.contacts-section .section-header { margin-bottom: 1.5rem; }

.contacts-section .contacts-address {
  color: rgba(250,248,244,0.5);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.contacts-section .contacts-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.contact-link:hover { color: var(--gold); }
.contact-link svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(212,175,55,0.12);
  padding: 2.5rem 2rem;
  background: rgba(6,14,26,0.8);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  display: block;
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(250,248,244,0.4);
  display: block;
  margin-top: 2px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(250,248,244,0.3);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item-large { grid-row: span 1; }
  .gallery-item-wide  { grid-column: span 2; }
  .gallery-item { height: 200px; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(250, 248, 244, 0.55);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover { color: var(--gold); }

.lang-btn.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
}

html[lang="th"] body {
  font-family: 'Sarabun', var(--font-body);
}

html[lang="th"] .hero-title,
html[lang="th"] .section-title,
html[lang="th"] .logo-title,
html[lang="th"] .track-title,
html[lang="th"] .program-title,
html[lang="th"] .news-title,
html[lang="th"] .footer-logo {
  font-family: 'Sarabun', var(--font-display);
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; padding: 0.8rem 1rem; }
  .header-right { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero { padding: 3rem 1rem 2rem; }
  .player-top { flex-direction: column; text-align: center; }
  .player-visual { margin: 0 auto; }
  .show-info { justify-content: center; }
  .player-controls { flex-wrap: wrap; justify-content: center; }
  .listeners-count { margin-left: 0; width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-wide { grid-column: span 1; }
}
