@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,600;0,800;1,600;1,800&display=swap');

:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #17160f; color: #f8ead0; font-family: "DM Mono", monospace; }
.scene { min-height: 100svh; position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; padding: 25px clamp(22px, 4.5vw, 68px); background: #202016 url("assets/chai-route-background.png") center / cover no-repeat; }
.wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,12,8,.56) 0%, rgba(15,14,10,.18) 45%, rgba(9,9,6,.14) 100%), linear-gradient(0deg, rgba(7,7,5,.5), transparent 45%); }
.topbar, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; letter-spacing: .08em; text-shadow: 0 2px 8px #000; }
#clock { font-size: 13px; }
.live { display: flex; gap: 8px; align-items: center; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #c9e85a; box-shadow: 0 0 0 5px rgba(201,232,90,.18), 0 0 18px #c9e85a; }
.share { appearance: none; border: 1px solid rgba(248,234,208,.55); border-radius: 50px; background: rgba(8,8,6,.25); color: inherit; font: inherit; padding: 10px 15px; cursor: pointer; text-decoration: none; backdrop-filter: blur(7px); }
.share:hover { background: #f8ead0; color: #1e1d13; }
.brand { margin-top: clamp(36px, 9vh, 110px); max-width: 600px; text-shadow: 0 3px 16px rgba(0,0,0,.75); }
.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .2em; color: #dec38e; margin: 0 0 13px 4px; }
h1 { margin: 0; color: #f7e7c4; font: 800 clamp(58px, 11vw, 138px)/.72 "Playfair Display", Georgia, serif; letter-spacing: -.075em; }
h1 em { color: #c7d970; font-weight: 600; }
.tagline { margin: 28px 0 0 4px; font-size: clamp(12px, 1.4vw, 16px); line-height: 1.6; color: #f2e0ba; }
.player { align-self: center; width: min(560px, 100%); max-width: 100%; margin-top: auto; margin-bottom: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px 10px 11px; overflow: hidden; border: 1px solid rgba(255,235,213,.38); border-radius: 999px; background: rgba(34,22,16,.24); box-shadow: 0 12px 42px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.16); color: #fff7eb; backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%); }
.cover-wrap { flex: 0 0 auto; width: 64px; height: 64px; overflow: hidden; border: 2px solid rgba(248,234,208,.72); border-radius: 50%; box-shadow: 0 3px 15px rgba(0,0,0,.35); background: #4b3020; }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.now-playing { display: none; }
.track-copy { min-width: 0; overflow: hidden; }
.track-copy h2 { margin: 0; max-width: 100%; overflow: hidden; color: #fff7ed; font: 600 clamp(13px, 2.2vw, 16px)/1.2 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.track-copy p { margin: 3px 0 0; max-width: 100%; overflow: hidden; color: rgba(255,241,226,.77); font: 12px/1.2 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.progress-wrap { height: 4px; margin-top: 8px; overflow: visible; border-radius: 8px; background: rgba(255,238,222,.3); }
.progress-wrap input { display: block; width: 100%; height: 6px; margin: 0; appearance: none; cursor: pointer; border-radius: 8px; background: linear-gradient(to right, #fff0d9 var(--progress, 0%), rgba(250,231,205,.35) var(--progress, 0%)); }
.progress-wrap input::-webkit-slider-thumb { width: 12px; height: 12px; appearance: none; border: 0; border-radius: 50%; background: #fff0d9; }
.progress-wrap input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff0d9; }
.time { display: block; margin-top: 5px; color: rgba(255,241,226,.75); font: 10px Arial, sans-serif; }
.controls { display: flex; flex-shrink: 0; align-items: center; gap: clamp(8px, 1.8vw, 14px); }
.controls button { border: 0; padding: 0; background: transparent; color: #fff6ea; font-size: 14px; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.controls button:hover { transform: translateY(-1px); opacity: .8; }
.skip-icon { display: block; width: 26px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.35; }
.shuffle-icon { display: block; width: 20px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.controls button[aria-pressed="true"] { color: #d7ed73; }
.controls .play { display: grid; place-items: center; width: 40px; height: 40px; padding-left: 3px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: #fffaf2; color: #211b13; font-size: 13px; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
footer { color: #e4cd9e; opacity: .9; }
#youtube-player { position: fixed; width: 1px; height: 1px; overflow: hidden; left: -100px; bottom: -100px; }
@media (max-width: 720px) {
  .player { width: min(100%, 520px); }
  #shuffle-button { display: none; }
}
@media (max-width: 600px) {
  .scene { padding: 16px; background-position: 58% center; }
  .topbar { font-size: 9px; gap: 10px; }
  .share { padding: 8px 10px; }
  .player { grid-template-columns: auto minmax(0, 1fr); width: 100%; margin-bottom: 12px; padding: 12px; border-radius: 28px; gap: 12px; }
  .cover-wrap { width: 56px; height: 56px; }
  .track-copy h2 { font-size: 14px; }
  .track-copy p { margin-top: 4px; font-size: 12px; }
  .progress-wrap { margin-top: 9px; }
  .time { font-size: 10px; }
  .controls { grid-column: 1 / -1; justify-content: center; gap: 22px; padding-top: 2px; }
  .controls .play { width: 48px; height: 48px; }
  #shuffle-button { display: inline-flex; }
  footer { font-size: 8px; gap: 8px; }
}
@media (max-width: 380px) {
  .scene { padding: 12px; }
  .cover-wrap { width: 48px; height: 48px; }
  .track-copy h2 { font-size: 13px; }
  .controls { gap: 16px; }
  .skip-icon { width: 22px; height: 20px; }
}
