:root {
  --bg: #0a0b10;
  --bg2: #10111a;
  --gold: #d4af37;
  --gold2: #f3c649;
  --ink: #f5f1e6;
  --mute: #9a96a8;
  --dim: #5f5c6e;
  --glass: rgba(255, 255, 255, 0.05);
  --glass2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Heebo", system-ui, -apple-system, sans-serif;
  --he: "Heebo", "Plus Jakarta Sans", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabh: 64px;
  --minih: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
body {
  min-height: 100dvh;
  overscroll-behavior-y: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 77, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(212, 175, 55, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
svg { display: block; }
.he { font-family: var(--he); }
[hidden] { display: none !important; }

/* ---------- top ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 14px) 18px 10px;
  background: linear-gradient(to bottom, rgba(10, 11, 16, 0.92), rgba(10, 11, 16, 0.75));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo h1 {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo .he { color: var(--mute); font-size: 14px; }
.hdate { font-size: 12px; color: var(--mute); margin-top: 2px; }
.shab-chip {
  display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 12px; color: var(--gold2); white-space: nowrap;
}
.chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--line); color: var(--mute); transition: all 0.2s;
}
.chip.on { color: #1a1406; background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; }
.chip.toggle.on { background: rgba(212, 175, 55, 0.16); color: var(--gold2); border-color: rgba(212, 175, 55, 0.4); }
.banner {
  margin: 12px 18px 0; padding: 12px 14px; border-radius: 16px; font-size: 13px; line-height: 1.45;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(124, 77, 255, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.banner b { color: var(--gold2); }
.banner button { color: var(--gold2); text-decoration: underline; margin-left: 4px; font-size: 13px; }

/* ---------- main ---------- */
main { padding: 6px 0 calc(var(--tabh) + var(--minih) + var(--safe-b) + 30px); }
.view { animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sec { padding: 18px 18px 4px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec-h h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.sec-h .more { font-size: 13px; color: var(--gold2); }
.sub { font-size: 13px; color: var(--mute); margin: -4px 0 12px; }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
}

/* mood mix */
.mix { padding: 16px; }
.mix h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; }
.mix .chips { margin-top: 10px; }
.mix-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mix-row input[type="range"] { flex: 1; accent-color: var(--gold); }
.mix-row .mins { width: 64px; text-align: right; font-size: 13px; color: var(--mute); }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px;
  font-weight: 700; color: #1a1406; background: linear-gradient(180deg, var(--gold2), var(--gold));
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.25);
}
.btn-ghost { padding: 10px 14px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* rails */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { flex: none; width: 150px; scroll-snap-align: start; text-align: left; }
.card .art { position: relative; width: 150px; height: 150px; border-radius: 18px; overflow: hidden; background: var(--bg2); }
.card .art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.card .art::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.card .t { font-size: 13px; font-weight: 600; margin-top: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .a { font-size: 12px; color: var(--mute); margin-top: 2px; }

/* track list */
.list { padding: 0 10px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; width: 100%; text-align: left;
  transition: background 0.15s;
}
.row:active { background: var(--glass2); }
.row.playing { background: rgba(212, 175, 55, 0.08); }
.row .thumb { position: relative; flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--bg2); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.row .meta { flex: 1; min-width: 0; }
.row .t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.playing .t { color: var(--gold2); }
.row .a { font-size: 12px; color: var(--mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .dots { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--mute); border-radius: 50%; }
.tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 6px; margin-left: 6px; background: rgba(212, 175, 55, 0.14); color: var(--gold2); vertical-align: 1px; }
.eq { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.45); }
.eq i { display: inline-block; width: 3px; margin: 0 1px; background: var(--gold2); border-radius: 2px; 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.4s; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.paused .eq i { animation-play-state: paused; }

/* skeleton */
.sk { background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 70%); background-size: 300% 100%; animation: sh 1.4s linear infinite; border-radius: 10px; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-row { display: flex; gap: 12px; align-items: center; padding: 8px; }
.sk-row .a1 { width: 52px; height: 52px; border-radius: 12px; }
.sk-row .l1 { height: 12px; width: 70%; } .sk-row .l2 { height: 10px; width: 40%; margin-top: 8px; }

/* artists */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px 12px; padding: 0 18px; }
.artist { text-align: center; }
.artist .av {
  width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--bg2);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 10px 30px rgba(0, 0, 0, 0.5); display: grid; place-items: center;
  font-family: var(--serif); font-size: 30px; color: var(--gold2);
}
.artist .av img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); }
.artist .n { font-size: 13px; font-weight: 600; margin-top: 8px; }
.artist .h { font-size: 11px; color: var(--mute); }
.hero-artist { display: flex; gap: 16px; align-items: center; padding: 16px 18px 6px; }
.hero-artist .av { width: 96px; height: 96px; }
.hero-artist h2 { font-family: var(--serif); font-size: 30px; margin: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--gold2); font-size: 14px; padding: 12px 18px 0; }

/* radio */
.stations { display: grid; gap: 12px; padding: 0 18px; }
.station { display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left; width: 100%; }
.station .ic {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(243, 198, 73, 0.35), rgba(212, 175, 55, 0.05)); color: var(--gold2);
}
.station .n { font-weight: 700; } .station .d { font-size: 12px; color: var(--mute); margin-top: 2px; }
.station.on { border-color: rgba(212, 175, 55, 0.5); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 10px 40px rgba(212, 175, 55, 0.12); }
.live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: #ff6b6b; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff6b6b; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* search */
.search { margin: 14px 18px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--glass2); border: 1px solid var(--line); }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 16px; }
.empty { text-align: center; color: var(--mute); font-size: 14px; padding: 40px 30px; line-height: 1.5; }
.empty .big { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 6px; }

/* ---------- tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  padding: 8px 6px calc(var(--safe-b) + 6px); height: calc(var(--tabh) + var(--safe-b));
  background: rgba(10, 11, 16, 0.85); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--dim); width: 64px; }
.tab.on { color: var(--gold2); }

/* ---------- mini player ---------- */
.mini {
  position: fixed; left: 10px; right: 10px; z-index: 31; bottom: calc(var(--tabh) + var(--safe-b) + 8px);
  height: var(--minih); display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 20px;
  background: rgba(28, 26, 36, 0.78); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(0); transition: transform 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.3s;
}
.mini.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mini .thumb { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: none; background: var(--bg2); }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.mini .meta { flex: 1; min-width: 0; text-align: left; }
.mini .t { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .a { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.mini .ctl { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.mini .bar { position: absolute; left: 18px; right: 18px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.mini .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold2)); }

/* ---------- full player sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 8px) 22px calc(var(--safe-b) + 16px);
  background:
    radial-gradient(700px 500px at 50% 10%, rgba(212, 175, 55, 0.18), transparent 60%),
    radial-gradient(600px 600px at 100% 100%, rgba(124, 77, 255, 0.16), transparent 60%),
    #07080c;
  transform: translateY(100%); transition: transform 0.38s cubic-bezier(.2,.8,.2,1);
  touch-action: none;
}
.sheet.open { transform: translateY(0); }
.sheet.dragging { transition: none; }
.grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); margin: 4px auto 6px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.sheet-top .ctx { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); text-align: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.icon-btn.on { color: var(--gold2); }

.stage { flex: 1; display: grid; place-items: center; min-height: 0; position: relative; }
.vinyl-wrap { position: relative; width: min(78vw, 360px, 42vh); aspect-ratio: 1; }
.ring {
  position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(243,198,73,0.0), rgba(243,198,73,0.55), rgba(212,175,55,0.0), rgba(243,198,73,0.4), rgba(243,198,73,0.0));
  filter: blur(14px); opacity: 0.35; animation: spin 9s linear infinite; animation-play-state: paused;
}
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,0.03) 31.5%, transparent 32%),
    repeating-radial-gradient(circle, #111 0 1.2px, #1b1b1f 1.6px 2.6px),
    #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(255,255,255,0.04);
  animation: spin 3.6s linear infinite; animation-play-state: paused;
}
.vinyl::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,0.09) 25%, transparent 32% 70%, rgba(255,255,255,0.07) 75%, transparent 82%);
}
.label {
  position: absolute; inset: 31%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.6), 0 0 0 6px #0c0c10;
}
.label img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.8); }
.label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; transform: translate(-50%, -50%); border-radius: 50%; background: #07080c; box-shadow: 0 0 0 1px rgba(212,175,55,0.6); }
.playing-now .vinyl, .playing-now .ring { animation-play-state: running; }
.playing-now .ring { opacity: 0.55; }
@keyframes spin { to { transform: rotate(360deg); } }
.radio-disc .label { display: grid; place-items: center; background: radial-gradient(circle, #2a2110, #0c0c10); }

.now { margin-top: 18px; display: flex; align-items: flex-start; gap: 12px; }
.now .meta { flex: 1; min-width: 0; }
.now .t { font-size: 21px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now .a { font-size: 15px; color: var(--gold2); margin-top: 4px; }
.prog { margin-top: 18px; }
.prog input { width: 100%; accent-color: var(--gold2); height: 18px; }
.times { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; margin-top: 2px; }
.ctls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.ctls .big {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #1a1406;
  background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 12px 40px rgba(212, 175, 55, 0.35);
}
.ctls .mid { width: 52px; height: 52px; display: grid; place-items: center; }
.ctls .sm { width: 40px; height: 40px; display: grid; place-items: center; color: var(--mute); position: relative; }
.ctls .sm.on { color: var(--gold2); }
.ctls .sm .one { position: absolute; font-size: 9px; font-weight: 800; right: 4px; top: 6px; }
.dock { display: flex; justify-content: space-around; margin-top: 16px; }
.dock button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--mute); }
.dock button.on { color: var(--gold2); }
.src-note { text-align: center; font-size: 11px; color: var(--dim); margin-top: 8px; min-height: 14px; }

/* panels inside sheet (queue / lyrics) */
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: 30%; z-index: 5; display: flex; flex-direction: column;
  background: rgba(14, 14, 20, 0.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-radius: 26px 26px 0 0; border-top: 1px solid var(--line); padding: 14px 16px calc(var(--safe-b) + 12px);
  transform: translateY(105%); transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}
.panel.open { transform: none; }
.panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-h h3 { margin: 0; font-family: var(--serif); font-size: 24px; }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.q-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 12px; }
.q-row.cur { background: rgba(212, 175, 55, 0.1); }
.q-row .thumb { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; flex: none; }
.q-row .thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.q-row .meta { flex: 1; min-width: 0; text-align: left; }
.q-row .t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row .a { font-size: 11px; color: var(--mute); }
.q-row .mv { width: 30px; height: 30px; display: grid; place-items: center; color: var(--mute); }
.q-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 10px 4px 4px; }
.lyrics { padding: 10px 6px 40vh; }
.lyrics p { margin: 0; padding: 9px 4px; font-size: 22px; font-weight: 800; line-height: 1.3; color: rgba(255,255,255,0.28); transition: color 0.25s, transform 0.25s; cursor: pointer; transform-origin: left center; }
.lyrics p[dir="rtl"] { transform-origin: right center; }
.lyrics p.on { color: var(--ink); transform: scale(1.03); }
.lyrics p.past { color: rgba(255,255,255,0.5); }
.lyrics.plain p { font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.75); cursor: default; }

/* action sheet */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.action {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 10px); z-index: 61;
  border-radius: 24px; padding: 8px; background: rgba(28, 26, 36, 0.94); border: 1px solid var(--line);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  transform: translateY(120%); transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  max-height: 80vh; overflow-y: auto;
}
.action.open { transform: none; }
.action .head { display: flex; gap: 12px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.action .head img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.action .head .t { font-weight: 700; font-size: 14px; } .action .head .a { font-size: 12px; color: var(--mute); }
.action .it { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 12px; border-radius: 14px; font-size: 15px; text-align: left; }
.action .it:active { background: var(--glass2); }
.action .it svg { color: var(--gold2); }
.action input.pl-new { width: 100%; padding: 12px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--line); outline: 0; margin: 6px 0; }

/* floating YouTube stage */
.yt {
  position: fixed; z-index: 55; right: 12px; top: calc(var(--safe-t) + 70px); width: 200px; aspect-ratio: 16/9;
  border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.35);
  transition: all 0.3s;
}
.yt.big { left: 12px; right: 12px; width: auto; top: calc(var(--safe-t) + 60px); }
.yt.offstage { width: 2px; height: 2px; opacity: 0.01; pointer-events: none; right: 0; top: 0; }
.yt #yt-slot, .yt iframe { width: 100%; height: 100%; display: block; }
.yt .x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 2; }
.yt .grow { position: absolute; top: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 2; }

/* toast */
.toast {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 14px); z-index: 90; transform: translate(-50%, -150%);
  max-width: 92vw; padding: 11px 16px; border-radius: 14px; font-size: 13px; line-height: 1.4;
  background: rgba(28, 26, 36, 0.96); border: 1px solid rgba(212, 175, 55, 0.35); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translate(-50%, 0); }

/* shabbos overlay */
.shabbos {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center; padding: 30px;
  background: radial-gradient(600px 600px at 50% 40%, rgba(243, 198, 73, 0.18), transparent 60%), #06070a;
}
.shabbos .candles { display: flex; gap: 26px; justify-content: center; margin-bottom: 28px; }
.candle { width: 14px; height: 70px; border-radius: 3px; background: linear-gradient(#f6efe0, #cfc4a8); position: relative; }
.candle::before { content: ""; position: absolute; left: 50%; top: -26px; width: 14px; height: 24px; transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6c8, #f3c649 45%, rgba(255,140,0,0.4) 70%, transparent 72%); filter: drop-shadow(0 0 14px rgba(243,198,73,0.9)); animation: flick 2.2s ease-in-out infinite; }
@keyframes flick { 50% { transform: translateX(-50%) scale(0.92, 1.06) rotate(-2deg); } }
.shabbos h2 { font-family: var(--serif); font-size: 44px; margin: 0; color: var(--gold2); }
.shabbos p { color: var(--mute); font-size: 15px; line-height: 1.6; max-width: 340px; margin: 12px auto 0; }

@media (min-width: 900px) {
  main, .top { max-width: 920px; margin: 0 auto; }
  .mini { left: 50%; right: auto; width: 640px; transform: translateX(-50%); }
  .mini.hide { transform: translate(-50%, 140%); }
  .sheet { max-width: 520px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
