:root {
  color-scheme: dark;
  --bg: #070b13;
  --panel: rgba(17, 25, 37, .86);
  --panel-2: rgba(24, 36, 52, .92);
  --line: rgba(103, 232, 249, .18);
  --text: #f7fbff;
  --muted: #9fb0c7;
  --cyan: #35c2ff;
  --pink: #ff4ed8;
  --orange: #ff9a45;
  --green: #45d483;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 5%, rgba(255, 78, 216, .28), transparent 36%),
    radial-gradient(circle at 82% 16%, rgba(53, 194, 255, .24), transparent 32%),
    linear-gradient(150deg, #05070d, var(--bg) 55%, #0c111c);
}

button, input { font: inherit; }
button { cursor: pointer; }

.radio-app {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(20px, 5vw, 54px) 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(22px, 5vw, 44px);
  background: linear-gradient(145deg, rgba(14, 21, 32, .96), rgba(12, 17, 28, .86));
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 360px;
  background: linear-gradient(90deg, transparent, rgba(255,78,216,.18), rgba(53,194,255,.18), transparent);
  filter: blur(24px);
  transform: rotate(-6deg);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 30px rgba(53,194,255,.28);
}

.kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 7vw, 76px);
  line-height: .95;
  letter-spacing: -.06em;
}

.cover-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(390px, 78vw);
  margin: 14px auto 28px;
  aspect-ratio: 1;
}

.pulse {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--pink), var(--cyan), var(--orange), var(--pink));
  filter: blur(16px);
  opacity: .62;
  animation: spin 12s linear infinite;
}

.cover {
  position: relative;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 8px rgba(0,0,0,.22), 0 22px 70px rgba(0,0,0,.45);
}

.live-badge {
  position: absolute;
  right: 9%;
  bottom: 16%;
  padding: 8px 12px;
  border-radius: 999px;
  color: #061018;
  background: linear-gradient(135deg, var(--green), #b7ffd4);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(69,212,131,.25);
}

.now {
  position: relative;
  text-align: center;
}

.now h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
}

.now p {
  color: #dbe8f8;
  font-size: clamp(16px, 2.6vw, 22px);
}

.muted, .status {
  color: var(--muted) !important;
}

.controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.play-button {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 14px 46px rgba(53,194,255,.26);
  transition: transform .18s ease, filter .18s ease;
}

.play-button:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.volume {
  min-width: min(320px, 100%);
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}

.volume span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.volume input { width: 100%; }
.status { position: relative; margin: 18px 0 0; text-align: center; }

.history-section {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.section-head h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 4vw, 38px);
}

.history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.history-card, .empty {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: var(--panel-2);
}

.history-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.history-card img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.history-card strong, .history-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.playing .pulse {
  opacity: .86;
  animation-duration: 5s;
}

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

@media (max-width: 560px) {
  .radio-app { width: min(100% - 18px, 680px); padding-top: 12px; }
  .hero { padding: 18px; border-radius: 24px; }
  .brand img { width: 52px; height: 52px; }
  .play-button { width: 74px; height: 74px; }
}
/* THOFI PWA Background 2026-07-02 */
html {
  background: #05000c;
}

body {
  position: relative !important;
  isolation: isolate !important;
  background-color: #05000c !important;
  background-image: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 18%, rgba(123, 92, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(5, 0, 12, 0.78), rgba(5, 0, 12, 0.9)),
    url("thofi-site-bg.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.9;
}

body > * {
  position: relative;
  z-index: 1;
}
