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

:root { color-scheme: dark; font-family: "DM Mono", monospace; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #071210; color: #fff; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.saloon { position: relative; display: flex; min-height: 100dvh; overflow: hidden; align-items: center; justify-content: space-between; flex-direction: column; }
.hero-image, .veil { position: fixed; inset: 0; z-index: -2; }
.hero-image { background: #9a5731 url("assets/thenisai.png") center / cover no-repeat; transform: scale(1.02); }
.veil { z-index: -1; background: linear-gradient(180deg, rgba(2, 9, 8, .15) 20%, rgba(0, 0, 0, .05) 50%, rgba(0, 0, 0, .60) 100%); }
.clock, .presence, .links { position: fixed; top: 20px; z-index: 2; color: white; text-shadow: 0 1px 6px rgba(0,0,0,.6); font-size: 13px; }
.clock { left: 20px; letter-spacing: .02em; min-width: 48px; }
.presence { left: 50%; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 999px; background: transparent; color: #fff; }
.presence strong { font-weight: 500; }.presence span:last-child { color: rgba(255,255,255,.72); }
.pulse { position: relative; display: block; width: 10px; height: 10px; }.pulse::before, .pulse i { position: absolute; inset: 0; border-radius: 50%; background: #d5a540; content: ""; }.pulse::before { animation: ping 1.8s infinite; opacity: .55; }.pulse i { box-shadow: 0 0 10px #e0ad42; } @keyframes ping { 75%,100% { transform: scale(2.4); opacity: 0; } }
.links { right: 16px; display: flex; align-items: center; gap: 4px; }.links a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; color: inherit; text-decoration: none; transition: opacity .2s, background .2s, transform .2s; }.links a:hover { background: rgba(255,255,255,.12); opacity: .88; }.links a:active { transform: scale(.94); }.links svg { width: 18px; height: 18px; fill: white; }.links b { opacity: .52; font-size: 15px; font-weight: 400; transform: rotate(-45deg); }
.identity { margin-top: 14vh; padding: 0 24px; text-align: center; filter: drop-shadow(0 4px 20px rgba(0,0,0,.65)); }
.eyebrow { display: block; color: #f5d88d; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 10px 0 6px; line-height: .82; }.identity h1 span { display: block; font-family: "Noto Serif Tamil", serif; font-size: clamp(48px, 8vw, 87px); font-weight: 700; letter-spacing: -.08em; }.identity h1 em { display: block; margin-top: 13px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(37px, 6vw, 61px); font-weight: 800; font-style: normal; letter-spacing: .1em; }.identity p { margin: 12px 0 0; color: rgba(255,255,255,.74); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.player-wrap { width: 100%; margin-bottom: 8vh; padding: 0 24px; display: flex; justify-content: center; }.player { width: min(100%, 576px); display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; background: rgba(10, 25, 23, .5); box-shadow: 0 8px 40px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.28); backdrop-filter: blur(22px) saturate(1.5); }
.artwork { position: relative; display: grid; place-items: center; flex: 0 0 80px; width: 80px; height: 80px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: radial-gradient(circle at 37% 34%, #f1cb62 0 2%, #7a241b 3% 5%, #24120f 6% 18%, #c78e2b 19% 20%, #181714 21% 50%, #9e4425 51% 53%, #17100e 54% 69%, #d2a345 70% 72%, #221310 73%); color: #f4d889; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.5); transition: transform .25s; }.artwork:hover { transform: rotate(8deg); }.artwork::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; background: #111; }.art-label { position: relative; z-index: 1; font-size: 7px; line-height: 1.2; letter-spacing: .08em; text-align: center; text-shadow: 0 1px 2px #000; }.vinyl { position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }.vinyl span { position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.track-details { min-width: 0; flex: 1; }.track-name, .track-artist { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }.track-name { font-size: 14px; font-weight: 500; }.track-artist { margin-top: 4px; color: rgba(255,255,255,.7); font-size: 11px; }.seek { width: 100%; height: 10px; margin: 8px 0 0; appearance: none; cursor: pointer; background: transparent; }.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, #f4dc94 0 var(--progress, 0%), rgba(255,255,255,.22) var(--progress, 0%) 100%); }.seek::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -3.5px; appearance: none; border: 0; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; }.seek:hover::-webkit-slider-thumb, .seek:focus-visible::-webkit-slider-thumb { opacity: 1; }.time { display: flex; gap: 6px; margin: 2px 0 0; color: rgba(255,255,255,.58); font-size: 10px; }
.controls { display: flex; align-items: center; gap: 2px; }.controls button { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.84); cursor: pointer; font-size: 21px; transition: background .2s, transform .2s; }.controls button:hover { background: rgba(255,255,255,.14); color: white; }.controls button:active { transform: scale(.92); }.controls .play { width: 44px; height: 44px; background: #f4e3aa; color: #17221e; font-size: 18px; box-shadow: 0 3px 12px rgba(0,0,0,.35); }.controls .play:hover { background: #fff0bd; color: #17221e; transform: scale(1.06); }.controls .play span { margin-left: 2px; }
.library { width: min(91vw, 560px); max-height: min(700px, 82dvh); padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(11, 28, 25, .92); color: white; box-shadow: 0 20px 100px #000; backdrop-filter: blur(24px); }.library::backdrop { background: rgba(0,0,0,.56); backdrop-filter: blur(5px); }.library-panel { padding: 24px; }.library-heading { display: flex; align-items: start; justify-content: space-between; }.library h2 { margin: 7px 0 21px; font: 700 31px/1 "Playfair Display", serif; letter-spacing: .04em; }.library-heading button { display: grid; width: 33px; height: 33px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 24px; }.library ol { max-height: 49dvh; margin: 0; padding: 0; overflow: auto; list-style: none; border-top: 1px solid rgba(255,255,255,.13); }.library li button { display: grid; width: 100%; grid-template-columns: 32px 1fr auto; gap: 11px; align-items: center; padding: 13px 2px; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: transparent; color: white; cursor: pointer; text-align: left; }.library li button:hover { color: #f4d889; }.track-index { color: #e7c673; font-size: 11px; }.library li strong { font-size: 12px; font-weight: 500; }.library li small { margin-top: 3px; display: block; color: rgba(255,255,255,.6); font-size: 10px; }.library li time { color: rgba(255,255,255,.56); font-size: 10px; }.library-note { margin: 17px 0 0; color: rgba(255,255,255,.55); font-size: 10px; }
@media (max-width: 610px) { .clock { display: none; }.links { right: 9px; }.links a { padding: 9px; }.links a span, .links b { display: none; }.identity { margin-top: 18vh; }.player-wrap { padding: 0 14px; }.player { gap: 11px; padding: 10px 12px 10px 10px; }.artwork { flex-basis: 64px; width: 64px; height: 64px; }.track-name { font-size: 12px; }.controls { gap: 0; }.controls button { width: 28px; font-size: 17px; }.controls .play { width: 39px; height: 39px; }.presence { left: 20px; transform: none; }.presence span:last-child { display: none; } }
@media (max-width: 405px) { .controls button:first-child, .controls button:last-child { display: none; }.player { padding-right: 11px; } }
.youtube-player { position: fixed; top: -10px; left: -10px; width: 1px; height: 1px; overflow: hidden; pointer-events: none; opacity: 0; }
