:root {
  --bg: #120c26;
  --ink: #fff7e8;
  --muted: #cfc4e8;
  --dim: #948bb4;
  --card: rgba(22, 14, 44, 0.76);
  --card-solid: #1c1338;
  --line: rgba(255, 255, 255, 0.14);
  --saffron: #ffb703;
  --saffron-deep: #b26b00;
  --red: #e63946;
  --teal: #2ec4b6;
  --pink: #ff4f8b;
  --yellow: #ffd23f;
  --green: #3ddc97;
  --r: 16px;
  --f-display: 'Bungee', Impact, system-ui, sans-serif;
  --f-hindi: 'Rozha One', 'Baloo 2', serif;
  --f-body: 'Baloo 2', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--f-body); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
[hidden] { display: none !important; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
small { font-size: 10px; letter-spacing: 0.14em; color: var(--dim); font-weight: 700; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); margin-right: 6px; animation: blink 1.6s infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ============ INTRO ============ */
.intro {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; text-align: center; padding: 24px 16px 76px; overflow-y: auto;
  background:
    radial-gradient(900px 500px at 50% 115%, rgba(255, 120, 60, 0.35), transparent 60%),
    radial-gradient(1200px 700px at 50% 110%, #3b1d5e 0%, #160d2e 55%, #0b0718 100%);
  transition: opacity 0.6s, transform 0.6s;
}
.intro.gone { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-inner { max-width: 600px; }
#introTruck { width: min(440px, 88vw); height: auto; display: block; margin: 0 auto 6px; }
.eyebrow { font-family: var(--f-display); font-size: 11px; letter-spacing: 0.12em; color: var(--saffron); margin: 0; }
.intro-title { font-family: var(--f-hindi); font-weight: 400; font-size: clamp(42px, 9vw, 72px); line-height: 1.05; margin: 10px 0 8px; text-shadow: 3px 3px 0 var(--red); }
.intro-sub { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 470px; margin: 0 auto 26px; }
.intro-hint { font-size: 10px; letter-spacing: 0.16em; color: var(--dim); margin-top: 18px; font-weight: 700; }

.btn-big {
  background: var(--saffron); color: #2a1600; border-radius: 12px; padding: 14px 26px;
  font-family: var(--f-display); font-size: 15px; letter-spacing: 0.03em;
  box-shadow: 0 6px 0 var(--saffron-deep), 0 14px 30px rgba(255, 183, 3, 0.3);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn-big:hover { filter: brightness(1.06); }
.btn-big:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--saffron-deep), 0 6px 14px rgba(255, 183, 3, 0.25); }
.btn-ghost { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 700; background: rgba(255, 255, 255, 0.06); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ============ APP LAYOUT ============ */
.app { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.app > * { pointer-events: auto; }
.app > .top, .app > .quote { pointer-events: none; }

.top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); text-align: center; width: min(620px, 50vw); }
.kicker { margin: 0; font-family: var(--f-display); font-size: 11px; letter-spacing: 0.12em; color: var(--saffron); }
.title {
  margin: 2px 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05;
  color: #fff; text-shadow: 2px 2px 0 var(--red), 4px 4px 0 var(--saffron-deep), 6px 8px 18px rgba(0, 0, 0, 0.45);
}
.subtitle { margin: 6px 0 0; font-weight: 700; color: var(--yellow); font-size: 15px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }

.quote { position: absolute; top: 150px; left: 50%; transform: translateX(-50%); text-align: center; width: min(560px, 48vw); }
.quote small { color: var(--pink); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.quote p { margin: 4px 0 0; font-family: var(--f-hindi); font-size: 22px; line-height: 1.35; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75); }
.quote.pop p, .now.pop { animation: pop 0.45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: translateY(6px) scale(0.97); opacity: 0.2; } }

/* ledger */
.ledger { position: absolute; top: 16px; left: 16px; width: 262px; padding: 12px 14px 14px; }
.tabs { display: flex; gap: 4px; margin-bottom: 10px; background: rgba(0, 0, 0, 0.25); padding: 3px; border-radius: 10px; }
.tabs button { flex: 1; padding: 5px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--dim); }
.tabs button.on { background: var(--saffron); color: #2a1600; }
.tabs .sheet-close { display: none; flex: 0 0 auto; }
.fare { display: flex; align-items: baseline; gap: 4px; }
.fare .rs { font-size: 20px; font-weight: 800; color: var(--saffron); }
.fare b { font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.fare small { margin-left: auto; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); }
.rows li span { color: var(--muted); }
.cargo { font-size: 13px; margin: 10px 0 0; line-height: 1.35; }
.cargo small { display: block; }
.meter { margin-top: 10px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.bar { height: 7px; background: rgba(255, 255, 255, 0.1); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow)); border-radius: 99px; transition: width 0.4s; }
.bar i.low { background: linear-gradient(90deg, var(--red), var(--saffron)); }
.o2 .bar i { background: linear-gradient(90deg, #4cc9f0, #a5f3fc); }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }
#tab-dhaba h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 16px; color: var(--yellow); }
.dhaba-alt { margin: 0; font-size: 11px; color: var(--dim); font-weight: 700; letter-spacing: 0.06em; }
#menu b { color: var(--yellow); }

/* right column */
.side-right { position: absolute; top: 16px; right: 16px; width: 252px; display: flex; flex-direction: column; gap: 10px; }
.pills { display: flex; gap: 8px; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.pill b { font-weight: 800; }
.pill-btn { background: linear-gradient(90deg, #f9ce34, #ee2a7b, #6228d7); border: 0; font-weight: 800; color: #fff; }
.now { padding: 12px 14px 14px; }
.now h2 { margin: 2px 0 0; font-family: var(--f-display); font-weight: 400; font-size: 21px; color: var(--yellow); line-height: 1.1; }
.now .hindi { margin: 0; font-family: var(--f-hindi); font-size: 18px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.stats span { background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 5px 7px; font-size: 11px; color: var(--muted); }
.stats small { display: block; font-size: 9px; }
.stats b { font-size: 16px; color: var(--ink); font-weight: 800; }

/* controls */
.controls { position: absolute; left: 16px; bottom: 16px; width: 258px; padding: 10px; }
.ctrl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tg { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 8px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; transition: background 0.15s, transform 0.08s; }
.tg:hover { background: rgba(255, 255, 255, 0.12); }
.tg:active { transform: scale(0.96); }
.tg.on { background: var(--saffron); color: #2a1600; border-color: transparent; box-shadow: 0 0 18px rgba(255, 183, 3, 0.45); }
.tg.hot { background: linear-gradient(90deg, rgba(230, 57, 70, 0.4), rgba(255, 79, 139, 0.4)); }
.tg .ic { font-size: 15px; flex: 0 0 auto; }
.tg span:not(.ic) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.only-mobile { display: none !important; }
.speed-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 4px; background: rgba(0, 0, 0, 0.25); border-radius: 10px; }
.speed-row span { font-family: var(--f-display); font-size: 11px; letter-spacing: 0.1em; color: var(--dim); }
.speed-row button { width: 34px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); font-size: 18px; font-weight: 800; }
.speed-row button:hover { background: rgba(255, 255, 255, 0.16); }
.keys { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 6px; font-size: 11px; color: var(--dim); }
kbd { display: inline-block; min-width: 18px; padding: 0 4px; margin-right: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); border-bottom: 2px solid rgba(255, 255, 255, 0.18); color: var(--ink); font: 700 10px var(--f-body); text-align: center; }

/* horn */
.horn {
  position: absolute; right: 40px; bottom: 30px; width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #ffe27a, var(--saffron) 55%, #d98a00);
  color: #3a1d00; border: 4px solid #fff3c4;
  box-shadow: 0 8px 0 #a35f00, 0 16px 40px rgba(255, 183, 3, 0.45);
  font-family: var(--f-display); font-size: 12px; user-select: none; -webkit-user-select: none; touch-action: none;
  transition: transform 0.06s, box-shadow 0.06s;
}
.horn b { font-weight: 400; font-size: 22px; color: var(--red); margin: 2px 0; }
.horn.on { transform: translateY(6px) scale(0.97); box-shadow: 0 2px 0 #a35f00, 0 0 60px rgba(255, 183, 3, 0.8); }

/* player */
.player {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(740px, calc(100% - 590px));
  display: grid; grid-template-columns: 128px 1fr auto; grid-template-areas: "tv meta transport" "progress progress progress";
  gap: 6px 14px; align-items: center; padding: 12px 16px 10px;
}
.tv { grid-area: tv; position: relative; width: 128px; height: 72px; border-radius: 10px; overflow: hidden; background: #000; border: 2px solid rgba(255, 255, 255, 0.15); }
.tv iframe, .tv #yt { width: 100%; height: 100%; display: block; }
.tv-label { position: absolute; left: 6px; top: 5px; font-family: var(--f-display); font-size: 8px; letter-spacing: 0.1em; background: rgba(0, 0, 0, 0.6); padding: 2px 5px; border-radius: 4px; pointer-events: none; }
.meta { grid-area: meta; min-width: 0; }
.meta small { display: flex; align-items: center; }
.player:not(.playing) .meta .dot { background: var(--dim); box-shadow: none; animation: none; }
.meta h3 { margin: 2px 0 0; font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta p { margin: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transport { grid-area: transport; display: flex; align-items: center; gap: 6px; }
.transport button { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; }
.transport button:hover { background: rgba(255, 255, 255, 0.16); }
.transport svg { width: 18px; height: 18px; fill: currentColor; }
.transport .play { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #1c1338; }
.transport .play:hover { background: var(--yellow); }
.transport .play svg { width: 22px; height: 22px; }
.player .i-pause, .player.playing .i-play { display: none; }
.player.playing .i-pause { display: block; }
.progress { grid-area: progress; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.progress #seek { flex: 1; }
.vol { display: flex; align-items: center; gap: 6px; width: 120px; }
input[type=range] { accent-color: var(--saffron); width: 100%; height: 18px; margin: 0; }

/* playlist drawer */
.drawer { position: absolute; right: 16px; bottom: 160px; width: 340px; max-height: min(62vh, 560px); display: flex; flex-direction: column; padding: 12px; z-index: 20; background: var(--card-solid); }
.drawer header, .paint-form header { display: flex; justify-content: space-between; align-items: flex-start; }
.drawer h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 16px; }
.drawer header button, .paint-form header button { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
#tracks { list-style: none; margin: 10px 0 0; padding: 0; overflow-y: auto; }
#tracks button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 7px 8px; border-radius: 10px; }
#tracks button:hover { background: rgba(255, 255, 255, 0.07); }
#tracks li.on button { background: rgba(255, 183, 3, 0.16); }
#tracks li.on .n { color: var(--saffron); }
#tracks .n { font-family: var(--f-display); font-size: 12px; color: var(--dim); }
#tracks .t { display: flex; flex-direction: column; min-width: 0; }
#tracks .t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tracks .t small { letter-spacing: 0; font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit { font-size: 11px; color: var(--dim); margin: 8px 4px 0; }

/* arrival */
.overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(10, 6, 25, 0.6); z-index: 40; animation: fade 0.5s; }
@keyframes fade { from { opacity: 0; } }
.arrival-card { width: min(520px, 100%); padding: 26px 22px; text-align: center; background: var(--card-solid); }
.arrival-card h2 { font-family: var(--f-hindi); font-weight: 400; font-size: clamp(34px, 7vw, 50px); margin: 8px 0 4px; text-shadow: 3px 3px 0 var(--red); }
.arrival-card .sub { color: var(--muted); margin: 0 0 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.stat-grid div { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 10px 4px; }
.stat-grid b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--yellow); }
.stat-grid small { letter-spacing: 0.02em; font-size: 11px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* customiser */
.paint { padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--card-solid); color: var(--ink); width: min(920px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.paint::backdrop { background: rgba(6, 3, 18, 0.72); backdrop-filter: blur(4px); }
.paint-inner { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 20px; padding: 18px; }
.paint-canvas canvas { width: 100%; height: auto; display: block; border-radius: 12px; }
.paint-form h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 24px; color: var(--yellow); }
.lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-size: 13px; font-weight: 600; }
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip.on { background: var(--saffron); color: #2a1600; border-color: transparent; }
.paint input { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--ink); font: 600 15px var(--f-body); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two input { margin-top: 0; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.swatch { height: 54px; border-radius: 12px; border: 3px solid transparent; position: relative; overflow: hidden; }
.swatch span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; font-weight: 800; background: rgba(0, 0, 0, 0.55); padding: 2px 0; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--saffron); }
.paint .btn-row { justify-content: flex-start; margin-top: 18px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h, 120px) + 34px); transform: translate(-50%, 30px); z-index: 70; padding: 10px 16px; border-radius: 99px; background: #fff7e8; color: #1c1338; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.35s cubic-bezier(.2, 1.3, .4, 1), opacity 0.25s; max-width: calc(100% - 32px); text-align: center; pointer-events: none; opacity: 0; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* disco mode */
.disco .card { animation: discoGlow 1.4s linear infinite; }
@keyframes discoGlow {
  0% { border-color: #ff4d4d; box-shadow: 0 0 22px rgba(255, 77, 77, 0.45); }
  25% { border-color: #ffd23f; box-shadow: 0 0 22px rgba(255, 210, 63, 0.45); }
  50% { border-color: #3ddc97; box-shadow: 0 0 22px rgba(61, 220, 151, 0.45); }
  75% { border-color: #4cc9f0; box-shadow: 0 0 22px rgba(76, 201, 240, 0.45); }
  100% { border-color: #ff4d4d; box-shadow: 0 0 22px rgba(255, 77, 77, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .disco .card, .quote.pop p, .now.pop { animation: none; }
}

/* ============ INTRO PHOTO BACKDROP + TICKER ============ */
.intro-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.intro-bg .bg { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.intro-bg .bg.on { opacity: 0.85; }
.intro-bg .bg.kb { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.intro-bg::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 55% at 50% 50%, rgba(18, 10, 38, 0.72) 0%, rgba(18, 10, 38, 0.35) 100%),
  linear-gradient(180deg, rgba(11, 7, 24, 0.15) 0%, rgba(11, 7, 24, 0.3) 60%, rgba(11, 7, 24, 0.8) 100%); }
.intro-inner { position: relative; z-index: 1; }
.intro-walls { margin-top: 10px; }
.linkish { color: var(--yellow); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.photo-credit { position: absolute; right: 12px; bottom: 44px; z-index: 1; font-size: 11px; color: rgba(255, 255, 255, 0.6); text-decoration: none; max-width: calc(100% - 24px); text-align: right; }
.photo-credit:hover { color: #fff; text-decoration: underline; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; overflow: hidden; background: var(--saffron); color: #2a1600; padding: 7px 0; transform: rotate(0deg); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3); }
.ticker-track { display: inline-flex; white-space: nowrap; gap: 18px; align-items: center; animation: tick 160s linear infinite; font-weight: 800; font-size: 15px; }
.ticker-track i { font-style: normal; color: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }
.subtitle.pop { animation: pop 0.45s cubic-bezier(.2, 1.4, .4, 1); }

/* ============ SPOTIFY / OWN MUSIC ============ */
.sp-mount { display: none; }
.player.spotify .tv, .player.spotify .meta, .player.spotify .progress, .player.spotify #prev, .player.spotify #next { display: none; }
.player.spotify .sp-mount { display: block; grid-column: 1 / 3; grid-row: 1; min-width: 0; height: 80px; border-radius: 12px; overflow: hidden; }
.sp-mount iframe { display: block; border: 0; border-radius: 12px; }
.transport .own { background: #1db954; color: #04130a; }
.transport .own:hover { background: #1ed760; }
.own-row { margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(29, 185, 84, 0.16); border: 1px solid rgba(29, 185, 84, 0.45); font-weight: 700; font-size: 13px; text-align: left; }
.own-row:hover { background: rgba(29, 185, 84, 0.26); }

.music { width: min(620px, calc(100% - 24px)); }
.walls { width: min(1000px, calc(100% - 24px)); }
.music-inner { padding: 18px; }
.music-inner header { display: flex; justify-content: space-between; align-items: flex-start; }
.music-inner h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--yellow); }
.music-inner header button { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); flex: 0 0 auto; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; min-width: 0; margin: 0; }
.link-row .btn-big { padding: 10px 18px; font-size: 13px; }
.err { color: #ff8a8a; font-size: 13px; font-weight: 700; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--dim); font-size: 12.5px; margin: 6px 0 0; line-height: 1.45; }
.sp-connect { display: inline-flex; align-items: center; gap: 8px; background: #1db954; color: #04130a; font-weight: 800; padding: 11px 18px; border-radius: 99px; }
.sp-connect:hover { background: #1ed760; }
.sp-logo { width: 18px; height: 18px; border-radius: 50%; background: #04130a; position: relative; }
.sp-logo::after { content: ''; position: absolute; inset: 5px 4px; border-top: 2px solid #1db954; border-radius: 50% 50% 0 0; }
.sp-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 8px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.sp-item { text-align: left; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-item:hover { background: rgba(29, 185, 84, 0.18); }
.sp-cover { aspect-ratio: 1; border-radius: 8px; background: #2a2148 center / cover; margin-bottom: 4px; }
.sp-item b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item small { letter-spacing: 0; font-size: 11px; }
.back-cassette { margin-top: 18px; }
.music .paint input, .music input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--ink); font: 600 15px var(--f-body); }

/* wallpapers gallery */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; max-height: 64vh; overflow-y: auto; padding-right: 4px; }
.wall-grid figure { margin: 0; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; }
.wall-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.4s; }
.wall-grid figure:hover img { transform: scale(1.04); }
.wall-grid figcaption { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.wall-grid figcaption b { font-size: 13.5px; }
.wall-grid figcaption small { letter-spacing: 0; font-size: 11px; font-weight: 600; }
.wall-grid a { color: var(--muted); }
.wall-dl { margin-top: 6px; align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: var(--saffron); color: #2a1600 !important; font-weight: 800; font-size: 12px; text-decoration: none; }

/* ============ SHORT DESKTOP ============ */
@media (min-width: 761px) and (max-height: 760px) {
  .keys { display: none; }
  .quote { top: 128px; }
  .quote p { font-size: 19px; }
  .ledger .cargo, #tab-bhada .rows { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .top { width: 44vw; }
  .quote { width: 44vw; top: 160px; }
  .quote p { font-size: 18px; }
}

/* medium screens: icon-only controls */
@media (min-width: 761px) and (max-width: 1150px) {
  .controls { width: 156px; }
  .ctrl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg { justify-content: center; padding: 8px 4px; }
  .tg span:not(.ic) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tg { position: relative; }
  .tg .ic { font-size: 18px; }
  .keys { grid-template-columns: 1fr; }
  .player { width: min(740px, calc(100% - 400px)); }
}

/* ============ MOBILE ============ */
@media (max-width: 760px) {
  .top { top: 10px; width: calc(100% - 32px); }
  .kicker { font-size: 9.5px; }
  .title { font-size: 25px; text-shadow: 2px 2px 0 var(--red), 3px 4px 0 var(--saffron-deep); }
  .subtitle { font-size: 13px; margin-top: 2px; }

  .side-right { top: 92px; left: 16px; right: 16px; width: auto; gap: 8px; }
  .pills { justify-content: space-between; }
  .pill { font-size: 11.5px; padding: 5px 10px; }
  .now { padding: 8px 12px; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
  .now > small { grid-column: 1 / -1; font-size: 9px; }
  .now h2 { font-size: 16px; }
  .now .hindi { font-size: 14px; grid-column: 1; }
  .now .stats { grid-column: 2; grid-row: 2 / span 2; margin: 0; grid-template-columns: repeat(3, auto); }
  .stats span { padding: 3px 6px; font-size: 10px; }
  .stats b { font-size: 13px; }
  .now .o2 { display: none; }

  .quote { top: 212px; width: calc(100% - 32px); }
  .quote p { font-size: 16px; }

  .ledger { display: none; }
  .ledger.open { display: block; position: fixed; top: auto; left: 12px; right: 12px; width: auto; bottom: 12px; z-index: 30; background: var(--card-solid); max-height: 75vh; overflow-y: auto; }
  .ledger.open .rows, .ledger.open .cargo { display: block; }
  .tabs .sheet-close { display: block; }

  .controls { top: auto; bottom: calc(var(--player-h, 150px) + 18px); left: 12px; right: 12px; width: auto; transform: none; padding: 6px; display: flex; gap: 6px; align-items: stretch; }
  .ctrl-grid { display: flex; gap: 5px; flex: 1; overflow-x: auto; scrollbar-width: none; }
  .ctrl-grid::-webkit-scrollbar { display: none; }
  .tg { flex: 1 0 auto; flex-direction: column; gap: 0; padding: 5px 7px; font-size: 10px; min-width: 52px; }
  .tg .ic { font-size: 16px; }
  .only-mobile { display: flex !important; }
  .speed-row { flex-direction: column; margin: 0; padding: 3px; gap: 2px; justify-content: center; }
  .speed-row span { display: none; }
  .speed-row button { width: 32px; height: 24px; font-size: 15px; }
  .keys { display: none; }

  .horn { right: 14px; width: 78px; height: 78px; font-size: 9.5px; bottom: calc(var(--player-h, 150px) + 96px); border-width: 3px; }
  .horn b { font-size: 17px; }

  .player { bottom: 10px; width: calc(100% - 24px); grid-template-columns: 88px 1fr; grid-template-areas: "tv meta" "transport transport" "progress progress"; padding: 10px 12px 8px; gap: 6px 10px; }
  .tv { width: 88px; height: 50px; }
  .meta h3 { font-size: 16px; }
  .transport { justify-content: center; gap: 10px; }
  .transport .play { width: 46px; height: 46px; }
  .vol { display: none; }
  .player.spotify .sp-mount { grid-column: 1 / -1; }
  .transport button { width: 38px; height: 38px; }
  .photo-credit { bottom: 40px; font-size: 10px; }
  .ticker-track { font-size: 13px; }
  .toast { bottom: calc(var(--player-h, 150px) + 96px); font-size: 13px; }

  .drawer { left: 12px; right: 12px; width: auto; bottom: calc(var(--player-h, 150px) + 18px); }

  .paint-inner { display: flex; flex-direction: column; padding: 14px; gap: 0; }
  .paint-form { display: contents; }
  .paint-form header { order: -1; margin-bottom: 10px; }
  .paint-canvas { max-width: 280px; width: 100%; margin: 0 auto; }
  .swatches { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .swatch { height: 44px; }
  .swatch span { font-size: 7.5px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) and (max-height: 700px) {
  .quote { top: 186px; }
  .quote p { font-size: 14px; }
  .subtitle { display: none; }
  .side-right { top: 70px; }
}

/* ============ CASSETTE DRAWER: Side A / Side B / Meri Playlists ============ */
.drawer { width: 380px; max-height: min(70vh, 640px); }
.dtabs { display: flex; gap: 4px; margin-top: 10px; background: rgba(0, 0, 0, 0.3); padding: 3px; border-radius: 10px; }
.dtabs button { flex: 1; padding: 6px 6px; border-radius: 8px; font-size: 12.5px; font-weight: 800; color: var(--dim); }
.dtabs button.on { background: var(--saffron); color: #2a1600; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; margin-top: 8px; padding-right: 2px; }
.drawer .own-row { width: 100%; }
.play-all { background: rgba(255, 183, 3, 0.16) !important; border-color: rgba(255, 183, 3, 0.45) !important; margin: 0 0 6px !important; }
.make { background: rgba(255, 79, 139, 0.16) !important; border-color: rgba(255, 79, 139, 0.5) !important; margin: 0 0 8px !important; text-align: center !important; }
.sp-row { margin-top: 8px; }
.tracks { list-style: none; margin: 0; padding: 0; }
.trk { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.trk:hover { background: rgba(255, 255, 255, 0.06); }
.trk.on { background: rgba(255, 183, 3, 0.16); }
.trk.on .n { color: var(--saffron); }
.trk-play { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; padding: 7px 8px; }
.trk .n { font-family: var(--f-display); font-size: 12px; color: var(--dim); min-width: 20px; }
.trk .t, .pick-row .t, .chosen-row .t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.trk .t b, .pick-row .t b, .chosen-row .t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .t small, .pick-row .t small, .chosen-row .t small { letter-spacing: 0; font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-add { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; font-weight: 800; line-height: 1; background: rgba(255, 255, 255, 0.08); margin-right: 4px; }
.trk-add:hover { background: var(--pink); color: #fff; }
.tracks.small .trk-play { padding: 4px 6px; }
.tracks.small { margin-top: 6px; border-top: 1px dashed rgba(255, 255, 255, 0.12); padding-top: 4px; }

.add-menu { position: absolute; z-index: 5; width: 230px; background: #2a1d4f; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; }
.add-menu small { padding: 4px 8px; }
.add-menu button { text-align: left; padding: 8px 10px; border-radius: 8px; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-menu button:hover, .add-menu button:focus-visible { background: rgba(255, 255, 255, 0.1); }
.add-menu .new { color: var(--pink); }

.pl-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.pl-card.on { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron) inset; }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pl-head b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-head small { letter-spacing: 0; flex: 0 0 auto; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.08); }
.mini:hover { background: rgba(255, 255, 255, 0.16); }
.mini.hot { background: var(--saffron); color: #2a1600; }
.mini.danger:hover, .btn-ghost.danger:hover { background: rgba(230, 57, 70, 0.35); }
.shared-box { background: linear-gradient(135deg, rgba(255, 79, 139, 0.25), rgba(255, 183, 3, 0.18)); border: 1px solid rgba(255, 79, 139, 0.5); border-radius: 12px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; }
.shared-box small { color: var(--pink); }
.hint.empty { text-align: center; padding: 10px 6px; }
.shared-note { max-width: 460px; margin: -8px auto 18px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 79, 139, 0.2); border: 1px solid rgba(255, 79, 139, 0.55); font-weight: 700; font-size: 14px; }

/* ============ PLAYLIST BUILDER ============ */
.pl-builder { width: min(860px, calc(100% - 24px)); }
.pl-builder input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--ink); font: 600 15px var(--f-body); }
.pl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pl-col { min-width: 0; display: flex; flex-direction: column; }
.seg { display: flex; gap: 4px; margin: 8px 0; }
.seg button { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
.seg button.on { background: var(--saffron); color: #2a1600; border-color: transparent; }
.pick, .chosen { list-style: none; margin: 0; padding: 0; height: 320px; overflow-y: auto; background: rgba(0, 0, 0, 0.2); border-radius: 12px; padding: 4px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.pick-row:hover { background: rgba(255, 255, 255, 0.06); }
.pick-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--saffron); padding: 0; }
.chosen-row { display: flex; align-items: center; gap: 6px; padding: 6px 6px; border-radius: 8px; }
.chosen-row:nth-child(odd) { background: rgba(255, 255, 255, 0.04); }
.chosen-row .n { font-family: var(--f-display); font-size: 11px; color: var(--saffron); min-width: 18px; text-align: right; }
.ico { width: 28px; height: 28px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); font-weight: 800; flex: 0 0 auto; }
.ico:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); }
.ico:disabled { opacity: 0.3; cursor: default; }
.pick .hint, .chosen .hint { padding: 12px; }

@media (max-width: 760px) {
  .drawer { width: auto; max-height: 62vh; }
  .pl-cols { grid-template-columns: 1fr; gap: 6px; }
  .pick { height: 34vh; }
  .chosen { height: 22vh; }
  .shared-note { font-size: 13px; }
}
.pl-builder .btn-row { position: sticky; bottom: -18px; margin: 10px -18px -18px; padding: 12px 18px 18px; background: linear-gradient(180deg, rgba(28, 19, 56, 0), var(--card-solid) 30%); }
@media (max-width: 760px) { .pl-builder .music-inner { padding: 14px; } .pl-builder .btn-row { bottom: -14px; margin: 8px -14px -14px; padding: 12px 14px 14px; } }

/* ============ PHOTO BACKDROP ============ */
.tg.span2 { grid-column: 1 / -1; justify-content: center; }
.photo-credit-now { display: block; margin-top: 8px; font-size: 10.5px; line-height: 1.3; color: var(--dim); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-credit-now:hover { color: var(--ink); text-decoration: underline; }
.photo-credit-now[hidden] { display: none; }
@media (min-width: 761px) and (max-width: 1150px) { .tg.span2 { grid-column: auto; } }
@media (max-width: 760px) {
  .now .photo-credit-now { grid-column: 1 / -1; margin-top: 4px; font-size: 9.5px; }
}
