/* Talkapic Lullaby — calm night theme, soft, no flashing. */
:root {
  --bg1: #1b2440;
  --bg2: #2a3560;
  --card: rgba(255, 255, 255, 0.06);
  --text: #eaf0ff;
  --muted: #9fb0d8;
  --accent: #ffd98a;
  --line: rgba(255, 255, 255, 0.14);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px;
  background: radial-gradient(120% 100% at 50% 0%, var(--bg2), var(--bg1));
  color: var(--text);
  font-family: "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px 22px 28px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.moon {
  font-size: 3.4rem;
  line-height: 1;
  /* very slow, gentle breathing — never flashing */
  animation: breathe 6s ease-in-out infinite;
}
body.playing .moon { animation-duration: 4s; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}
h1 { font-size: 1.7rem; font-weight: bold; margin: 8px 0 4px; color: var(--accent); }
.now { min-height: 1.4rem; color: var(--muted); margin: 0 0 16px; font-size: 1.1rem; }

.songs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.group-head { text-align: left; font-size: 0.95rem; color: var(--muted); margin: 10px 4px 0; letter-spacing: 0.3px; }
.group-head:first-child { margin-top: 0; }
.song {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.song:active { transform: translateY(2px); }
.song.active { border-color: var(--accent); background: rgba(255, 217, 138, 0.12); }
.song-en { font-size: 1.2rem; }
.song-tr { font-size: 0.95rem; color: var(--muted); }

.controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.play {
  width: 74px; height: 74px;
  font-size: 2rem;
  border: none; border-radius: 50%;
  background: var(--accent); color: #2a2410;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 217, 138, 0.3);
}
.play:active { transform: translateY(2px); }
.ctl {
  width: 54px; height: 54px;
  font-size: 1.4rem;
  border: 2px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  cursor: pointer;
  opacity: 0.5;
}
.ctl.on { opacity: 1; border-color: var(--accent); }
.vol-wrap { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.vol-wrap input { width: 110px; accent-color: var(--accent); }

.sleep-wrap { display: block; color: var(--muted); font-size: 1.05rem; }
.sleep-wrap select {
  margin-left: 8px;
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--bg2);
  color: var(--text);
}

.foot {
  display: flex; flex-direction: column; gap: 4px;
  align-items: center;
  font-size: 0.85rem; color: var(--muted); text-align: center;
}
.foot a { color: var(--accent); text-decoration: none; font-size: 1rem; }
