/* ============================================================
   COTN Radio — Creatures Of The Night Lounge Radio
   Night-lounge theme · mobile-first · v1.0
   ============================================================ */

:root {
  --bg-0: #060a14;
  --bg-1: #0a1120;
  --bg-2: #101a2e;
  --card: #111c31;
  --card-2: #16233c;
  --line: rgba(122, 190, 210, 0.14);
  --teal: #2ab5c9;
  --teal-bright: #3fd4e8;
  --teal-dim: rgba(42, 181, 201, 0.14);
  --moon: #e9dfc2;
  --text: #e8eef5;
  --text-dim: #9fb0c3;
  --text-faint: #6b7d92;
  --radius: 18px;
  --player-h: 84px;
  --font-head: 'Marcellus', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

section { padding: 72px 0; position: relative; }

.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 16px; }
.section-intro { color: var(--text-dim); max-width: 640px; font-size: 17px; }

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }

.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal-bright); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--teal);
  color: #041018;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  font-family: var(--font-body);
}
.btn:hover {
  background: var(--teal-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(42, 181, 201, 0.35);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--teal-dim); color: var(--teal-bright); box-shadow: none; }

.nav .btn { padding: 9px 18px; font-size: 14px; }

/* ---------- Language switcher ---------- */
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  -webkit-appearance: none;
  appearance: none;
  background: var(--card-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%239fb0c3' stroke-width='1.5'/></svg>") no-repeat right 10px center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 28px 8px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.lang-switch:hover { border-color: rgba(42, 181, 201, 0.4); }
.lang-switch option { background: var(--bg-1); color: var(--text); }

/* ---------- Hero now-playing (under the play button) ---------- */
.hero-now {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  padding: 10px 18px;
  background: rgba(8, 15, 30, 0.55);
  border: 1px solid var(--line);
  border-radius: 100px;
  max-width: 100%;
  font-size: 14.5px;
  color: var(--text-dim);
}
.hero-now .np-eq { flex-shrink: 0; }
.hero-now .np-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
  flex-shrink: 0;
}
.hero-now .np-track {
  color: var(--moon);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ---------- Night sky hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  background:
    radial-gradient(ellipse 900px 500px at 78% 12%, rgba(233, 223, 194, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 480px at 15% 85%, rgba(42, 181, 201, 0.10), transparent 65%),
    linear-gradient(180deg, #05080f 0%, #0a1322 55%, #0d1730 100%);
  overflow: hidden;
}

.stars, .stars2 {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
}
.stars {
  background-image:
    radial-gradient(1px 1px at 25px 35px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent),
    radial-gradient(1px 1px at 310px 60px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 380px 190px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60px 220px, rgba(255,255,255,0.7), transparent);
  background-size: 420px 260px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars2 {
  background-image:
    radial-gradient(1px 1px at 80px 120px, rgba(180, 230, 240, 0.9), transparent),
    radial-gradient(1px 1px at 240px 40px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 330px 230px, rgba(233, 223, 194, 0.9), transparent),
    radial-gradient(1px 1px at 160px 200px, rgba(255,255,255,0.6), transparent);
  background-size: 480px 300px;
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }

.moon-glow {
  position: absolute;
  top: 6%;
  right: 8%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #f4ecd4 0%, var(--moon) 45%, #cbbe98 100%);
  box-shadow:
    0 0 60px 18px rgba(233, 223, 194, 0.28),
    0 0 160px 60px rgba(233, 223, 194, 0.12);
  opacity: 0.92;
  pointer-events: none;
}
.moon-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 30%, rgba(140, 128, 96, 0.35) 0 9%, transparent 11%),
    radial-gradient(circle at 34% 60%, rgba(140, 128, 96, 0.28) 0 7%, transparent 9%),
    radial-gradient(circle at 58% 70%, rgba(140, 128, 96, 0.22) 0 5%, transparent 7%);
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-dim);
  border: 1px solid rgba(42, 181, 201, 0.35);
  color: var(--teal-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.live-dot {
  width: 8px; height: 8px;
  background: #ff4d5e;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 77, 94, 0); }
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal-bright);
}

.hero p.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn-play-hero {
  font-size: 17px;
  padding: 16px 32px;
  gap: 12px;
}
.btn-play-hero .icon { font-size: 14px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
  color: var(--text-faint);
  font-size: 13.5px;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges b { color: var(--text-dim); font-weight: 600; }

/* ---------- Now playing card ---------- */
.now-strip {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.now-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}
.now-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.now-card h3 {
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.now-track {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.35;
  min-height: 36px;
}
.now-meta { color: var(--text-faint); font-size: 13.5px; margin-top: 10px; }

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}
.eq i {
  width: 3px;
  background: var(--teal-bright);
  border-radius: 2px;
  height: 30%;
}
.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.2s; }
.eq i:nth-child(3) { animation-delay: 0.45s; }
.eq i:nth-child(4) { animation-delay: 0.1s; }
@keyframes eq {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

.recent-list { list-style: none; }
.recent-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(122, 190, 210, 0.12);
  font-size: 14.5px;
  color: var(--text-dim);
}
.recent-list li:last-child { border-bottom: none; }
.recent-list time {
  color: var(--text-faint);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
}

/* ---------- Moments / use-case cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.card {
  background: linear-gradient(160deg, var(--card), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(42, 181, 201, 0.4); }
.card .emoji { font-size: 30px; display: block; margin-bottom: 14px; }
.card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.card h3 { font-size: 20px; margin-bottom: 9px; color: var(--moon); }
.card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
}
.about-copy p { color: var(--text-dim); margin-bottom: 16px; font-size: 16px; }
.about-copy strong { color: var(--text); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  color: var(--teal-bright);
  line-height: 1.1;
}
.stat span { font-size: 13px; color: var(--text-faint); }

.genre-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.genre-pills span {
  background: var(--teal-dim);
  border: 1px solid rgba(42, 181, 201, 0.3);
  color: var(--teal-bright);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 100px;
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote p { color: var(--text-dim); font-size: 15px; font-style: italic; flex: 1; }
.quote p::before { content: '\201C'; color: var(--teal); font-size: 26px; line-height: 0; margin-right: 3px; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(42, 181, 201, 0.4); }
.quote-who b { display: block; font-size: 14.5px; }
.quote-who span { font-size: 12.5px; color: var(--text-faint); }
.stars-row { color: #f5c451; font-size: 13px; letter-spacing: 2px; }

/* ---------- Listen anywhere ---------- */
.listen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.listen-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.listen-item h3 { font-size: 18px; color: var(--moon); margin-bottom: 8px; }
.listen-item p { font-size: 14px; color: var(--text-dim); }
.listen-item a { font-size: 14px; font-weight: 600; }

/* ---------- Business ---------- */
.biz { background: linear-gradient(180deg, var(--bg-1), var(--bg-2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; max-width: 780px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  color: var(--teal-bright);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
details .faq-a { padding: 0 22px 20px; color: var(--text-dim); font-size: 15px; }

/* ---------- Support ---------- */
.support-box {
  background: linear-gradient(160deg, rgba(42, 181, 201, 0.12), var(--card));
  border: 1px solid rgba(42, 181, 201, 0.3);
  border-radius: 22px;
  padding: 46px 38px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.support-box h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 14px; }
.support-box p { color: var(--text-dim); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: var(--bg-0);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-brand img { height: 52px; margin-bottom: 12px; }
.foot-brand p { color: var(--text-faint); font-size: 13.5px; max-width: 300px; }
.foot-col h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-family: var(--font-body);
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { color: var(--text-dim); font-size: 14px; }
.foot-col a:hover { color: var(--teal-bright); }
.copyright {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12.5px;
  text-align: center;
}

/* ---------- Sticky player ---------- */
.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--player-h);
  background: rgba(8, 13, 25, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(42, 181, 201, 0.3);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  padding-bottom: env(safe-area-inset-bottom);
}
.player-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: var(--player-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}
.play-btn {
  width: 54px; height: 54px;
  min-width: 54px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #041018;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(42, 181, 201, 0.4);
}
.play-btn:hover { background: var(--teal-bright); transform: scale(1.06); }
.play-btn svg { width: 22px; height: 22px; fill: currentColor; }
.play-btn .i-pause { display: none; }
.playing .play-btn .i-play { display: none; }
.playing .play-btn .i-pause { display: block; }
.play-btn.loading { animation: spinPulse 1s linear infinite; }
@keyframes spinPulse { 50% { box-shadow: 0 0 0 10px rgba(42, 181, 201, 0.12); } }

.player-info { flex: 1; min-width: 0; }
.player-station {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
}
.player-track {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.player-listeners { display: none; }

.vol-wrap { display: flex; align-items: center; gap: 10px; }
.vol-wrap svg { width: 18px; height: 18px; fill: var(--text-dim); flex-shrink: 0; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--teal) var(--vol, 75%), rgba(255,255,255,0.15) var(--vol, 75%));
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--teal-bright);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--teal-bright);
  border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .now-grid, .about-grid { grid-template-columns: 1fr; }
  .moon-glow { width: 120px; height: 120px; top: 10%; right: 6%; }
  section { padding: 56px 0; }
}

@media (max-width: 560px) {
  :root { --player-h: 74px; }
  .vol-wrap { display: none; }
  .nav .btn { display: none; }
  .lang-switch { padding: 7px 26px 7px 12px; font-size: 13px; }
  .hero-now { width: 100%; }
  .play-btn { width: 48px; height: 48px; min-width: 48px; }
  .player-listeners {
    display: block;
    font-size: 11px;
    color: var(--text-faint);
    white-space: nowrap;
  }
  .hero { padding-top: 110px; min-height: 84vh; }
  .hero-badges { gap: 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .support-box { padding: 36px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
