/* Abubid Radio app - same look as abubidradio.com (dark + orange) */
:root {
  --bg: #0a0a0b; --card: #131316; --card-2: #1a1a1e; --line: rgba(255,255,255,.09);
  --fg: #fafafa; --muted: #a1a1aa; --muted-2: #71717a;
  --accent: #f97316; --accent-dark: #ea580c; --glow: rgba(249,115,22,.45); --live: #ef4444;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  min-height: 100dvh; color: var(--fg); font-family: var(--body); display: flex; justify-content: center;
  background: radial-gradient(600px 420px at 50% 0%, rgba(249,115,22,.16), transparent 70%), var(--bg);
  -webkit-tap-highlight-color: transparent;
}
.app {
  width: 100%; max-width: 460px; min-height: 100dvh; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0) 18px calc(env(safe-area-inset-bottom, 0) + 16px);
}
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Top bar */
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 0 12px; }
.logo { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 6px 18px rgba(249,115,22,.35); }
.brand { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font: 700 17px/1 var(--display); letter-spacing: .06em; }
.brand strong span { color: var(--accent); }
.brand small { margin-top: 4px; font-size: 11px; color: var(--muted-2); }
.live-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font: 600 11px/1 var(--display); letter-spacing: .2em; color: var(--muted); }
.live-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.live-chip.on { color: var(--accent); border-color: rgba(249,115,22,.5); background: rgba(249,115,22,.08); }
.live-chip.on .dot { background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }

/* News ticker */
.ticker { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ticker__tag { flex-shrink: 0; padding: 8px 12px; background: var(--accent-dark); color: #fff; font: 600 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.ticker__view { overflow: hidden; flex: 1; }
.ticker__track { display: inline-flex; white-space: nowrap; font-size: 13px; color: var(--muted); animation: tick 40s linear infinite; }
.ticker__track span { padding: 0 28px; }
@keyframes tick { to { transform: translateX(-50%); } }

main { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }

/* Player stage */
.stage { display: flex; flex-direction: column; align-items: center; text-align: center; }
.art { position: relative; width: min(64vw, 250px); aspect-ratio: 1; margin-bottom: 22px; }
.art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6); background: var(--card); }
.art__glow { position: absolute; inset: 12%; border-radius: 50%; background: var(--accent); filter: blur(60px); opacity: .35; transition: opacity .6s; }
.is-playing .art__glow { opacity: .6; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.eyebrow--muted { color: var(--muted-2); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.is-playing .eyebrow__dot { animation: pulse 1.4s infinite; }
.show { margin-top: 10px; font: 700 clamp(28px, 8vw, 36px)/1.05 var(--display); text-transform: uppercase; }
.show-sub { margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 34ch; }
.song { margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song__label { color: var(--accent); font-weight: 600; }

.eq { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin: 18px 0 6px; }
.eq i { width: 4px; height: 5px; border-radius: 2px; background: var(--accent); opacity: .3; }
.is-playing .eq i { opacity: 1; animation: bounce 1s ease-in-out infinite; }
.is-playing .eq i:nth-child(2n) { animation-delay: .15s; }
.is-playing .eq i:nth-child(3n) { animation-duration: .75s; background: #fb923c; }
.is-playing .eq i:nth-child(4n) { animation-duration: 1.25s; }
@keyframes bounce { 50% { height: 24px; } }

.transport { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 10px; }
.play {
  position: relative; width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(145deg, #fb923c, var(--accent-dark)); display: grid; place-items: center;
  box-shadow: 0 14px 40px var(--glow); transition: transform .15s ease;
}
.play:active { transform: scale(.94); }
.play svg { position: relative; z-index: 1; width: 38px; height: 38px; fill: #fff; }
.play .i-pause, .is-playing .play .i-play { display: none; }
.is-playing .play .i-pause { display: block; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(249,115,22,.5); opacity: 0; pointer-events: none; }
.is-playing .ring { animation: ripple 2.2s infinite; }
.is-playing .ring--2 { animation-delay: 1.1s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.round { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 11px; }
.round svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); fill: var(--fg); transition: border-color .2s; }
.round:hover svg { border-color: rgba(249,115,22,.6); }
.round.active svg { fill: var(--accent); border-color: rgba(249,115,22,.6); }

.status { min-height: 18px; margin-top: 12px; font-size: 12px; color: var(--muted-2); }
.volume { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 300px; margin-top: 6px; }
.mute { background: none; border: 0; cursor: pointer; }
.mute svg { width: 20px; height: 20px; fill: var(--muted); }
.mute.muted svg { fill: var(--muted-2); opacity: .5; }
input[type=range] { flex: 1; accent-color: var(--accent); height: 4px; }

/* Up next */
.next { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid rgba(249,115,22,.3); border-radius: 14px; background: rgba(249,115,22,.06); }
.next__line { font-size: 14px; color: var(--muted); text-align: right; }
.next__line b { color: var(--fg); font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }

/* Cards */
.card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.card h2 { font: 600 18px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.card__meta { font-size: 11px; color: var(--muted-2); }
.card__link { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }

.today { list-style: none; }
.today li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.today li:last-child { border-bottom: 0; }
.today .t { font: 12px/1.6 'SFMono-Regular', 'Courier New', monospace; color: var(--muted-2); }
.today .n { font: 600 15px/1.3 var(--display); text-transform: uppercase; }
.today .d { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.today li.past { opacity: .4; }
.today li.now { margin: 4px -10px; padding: 12px 10px; border: 1px solid rgba(249,115,22,.4); border-radius: 12px; background: rgba(249,115,22,.07); }
.today li.now .t, .today li.now .n { color: var(--accent); }
.today .pill { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.4); color: #f87171; font: 600 9px/1 var(--display); letter-spacing: .12em; vertical-align: 2px; }

.verse__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--fg); }
.verse__ref { margin-top: 8px; font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.install { display: flex; align-items: center; gap: 14px; border-color: rgba(249,115,22,.35); }
.install img { border-radius: 12px; flex-shrink: 0; }
.install h2 { font-size: 16px; }
.install p { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.install > div { flex: 1; }
.btn { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #1a0f00; font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 18px var(--glow); }

.site { align-self: center; padding: 6px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.site:hover { color: var(--accent); }
.foot { padding: 18px 0 4px; text-align: center; font-size: 11px; color: var(--muted-2); }

/* Sleep timer sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); }
.sheet__panel { width: 100%; max-width: 460px; padding: 20px 18px calc(env(safe-area-inset-bottom, 0) + 18px); border-radius: 22px 22px 0 0; background: var(--card-2); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sheet__panel .eyebrow { margin-bottom: 6px; }
.sheet__panel button { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 15px; text-align: left; }
.sheet__panel button:hover { border-color: rgba(249,115,22,.5); }
.sheet__cancel { text-align: center !important; color: var(--muted); }

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

/* Arrived from the website's install button */
.install--highlight { outline: 2px solid #f97316; outline-offset: 3px; }
