:root{
  --bg:#0b0f18;
  --card:#0f1626;
  --muted:#a7b0c2;
  --text:#eef2ff;
  --accent:#22b8ff;
  --accent2:#00d4a6;
  --danger:#ff4d4d;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color:var(--text);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(1200px 800px at 50% 20%, rgba(34,184,255,.16), transparent 55%),
    radial-gradient(900px 700px at 20% 70%, rgba(0,212,166,.10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
}

.app{min-height:100%; display:flex; flex-direction:column}

.topbar{
  position: relative;
  display:flex;
  align-items:center;
  padding:16px 14px;
  gap:12px;
}
.logo{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width:80px;
  height:auto;
  display:block;
  object-fit:contain;
  pointer-events: none;
}

.icon-btn{
  appearance:none;
  border:0;
  background:rgba(255,255,255,.08);
  color:var(--text);
  width:44px;
  height:44px;
  border-radius:12px;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.icon-btn svg{width:22px; height:22px; fill:currentColor}

.main{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding: 10px 16px 32px;
}

.footer{
  padding: 10px 16px 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
}
.footer-logo img{
  width: 180px;
  height: auto;
  display:block;
  object-fit:contain;
  opacity: .92;
}
.footer-credit{
  font-size: 12px;
  color: var(--muted);
  text-align:center;
}

.card{
  width:min(560px, 100%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.art-wrap{
  position:relative;
  padding: 8px 0 0;
  display:flex;
  justify-content:center;
}
.art{
  width:80%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit:cover;
  display:block;
  border: 2px solid rgba(34,184,255,.35);
}
.art-glow{
  position:absolute;
  left:50%;
  width:80%;
  max-width: 420px;
  transform: translateX(-50%);
  bottom:-18px;
  height:70px;
  border-radius: 22px;
  background: radial-gradient(closest-side, rgba(34,184,255,.35), transparent);
  filter: blur(18px);
  pointer-events:none;
  opacity:.85;
}

.meta{
  padding: 18px 16px 10px;
  text-align:center;
}
.live{
  display:inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#051018;
  font-weight:700;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  letter-spacing:.06em;
  margin-bottom:10px;
}
.title{
  font-size:22px;
  font-weight:800;
  line-height:1.2;
  margin-bottom:6px;
}
.subtitle{
  font-size:14px;
  color:var(--muted);
}

.controls{
  padding: 16px 18px 20px;
}

.play{
  width:100%;
  border:0;
  cursor:pointer;
  border-radius: 16px;
  padding: 14px 14px;
  background: linear-gradient(90deg, rgba(34,184,255,.95), rgba(0,212,166,.90));
  color:#041018;
  font-weight:800;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.play svg{width:22px; height:22px; fill:currentColor}
.play[disabled]{opacity:.6; cursor:not-allowed}

.row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
}
.slider{
  flex:1;
  accent-color: var(--accent);
}
.status{
  min-width: 86px;
  text-align:right;
  font-size:12px;
  color:var(--muted);
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.pill{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
}
.pill[aria-pressed="true"]{
  border-color: rgba(34,184,255,.35);
  background: rgba(34,184,255,.14);
}

.timer{
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.timer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.select{
  flex:1;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding: 10px 10px;
  font-weight:700;
}
.timer-count{
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
  min-width: 96px;
  text-align:right;
}

.drawer{
  position:fixed;
  top:0;
  left:0;
  height:100%;
  width:min(360px, 86vw);
  background: rgba(15,22,38,.98);
  border-right:1px solid rgba(255,255,255,.10);
  transform: translateX(-102%);
  transition: transform .18s ease-out;
  z-index:50;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.drawer.open{transform: translateX(0)}
.drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.drawer-logo{
  width: 160px;
  height: auto;
  display:block;
  object-fit: contain;
}
.drawer-footer{
  margin-top: auto;
  padding-top: 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
}
.drawer-isgm img{
  width: 180px;
  height: auto;
  display:block;
  object-fit:contain;
  opacity: .92;
}
.drawer-credit{
  font-size: 12px;
  color: var(--muted);
  text-align:center;
}
.drawer-section-title{
  font-size: 12px;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.favorites{display:flex; flex-direction:column; gap:10px}
.fav-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.fav-art{
  width:44px;
  height:44px;
  border-radius: 10px;
  object-fit:cover;
  flex:0 0 auto;
}
.fav-meta{flex:1; min-width:0}
.fav-title{font-weight:800; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fav-sub{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fav-actions{display:flex; gap:8px}
.mini-btn{
  border:0;
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 12px;
  width:40px;
  height:40px;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.mini-btn svg{width:20px; height:20px; fill:currentColor}

.links{display:flex; flex-direction:column; gap:10px}
.link{
  color: var(--text);
  text-decoration:none;
  padding: 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  font-weight:800;
}

.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  z-index:40;
}
