/* Prototype B, "Nakshatra": time-of-day sky, frosted glass, white type, warm gold. */
:root {
  --ink: #FFFFFF; --muted: rgba(255, 255, 255, .74); --faint: rgba(255, 255, 255, .14); --line: rgba(255, 255, 255, .16);
  --gold: #F2C46D; --gold-ink: #2A1B05; --glass: rgba(16, 20, 44, .38); --glass-2: rgba(255, 255, 255, .1);
  --font: Figtree, Inter, system-ui, -apple-system, sans-serif; --tabs: 74px; --mini: 0px;
  color-scheme: dark;
}
:root[data-sky="dawn"] { --tint: rgba(60, 30, 50, .25); }
:root[data-sky="day"] { --tint: rgba(10, 30, 25, .42); }
:root[data-sky="dusk"] { --tint: rgba(30, 15, 45, .3); }
:root[data-sky="night"] { --tint: rgba(5, 8, 25, .2); }
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { background: #0E1430; }
body { font: 400 17px/1.5 var(--font); color: var(--ink); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
body.has-mini { --mini: 72px; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }

#sky { position: fixed; inset: 0; z-index: -1; background: #0E1430 center / cover no-repeat; }
#sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--tint) 0%, rgba(8, 10, 28, .25) 40%, rgba(8, 10, 28, .82) 100%); }
#view { max-width: 640px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px calc(var(--tabs) + var(--mini) + 40px + env(safe-area-inset-bottom)); outline: none; }

.glass { background: var(--glass); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--line); border-radius: 24px; }
.sub { color: var(--muted); font-size: 16px; }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }
.page-h { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 8px 0 8px; }
.kicker { color: var(--gold); font-weight: 600; font-size: 14px; display: block; margin-top: 8px; }
.sec { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }

/* home */
.hello { padding: 8px 2px 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.logo { height: 26px; width: auto; margin-bottom: 28px; }
.hello p { font-size: 17px; color: var(--muted); }
.hello h1 { font-size: 36px; line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.daily { padding: 20px; }
.daily-top { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: 13px; font-weight: 700; color: var(--gold-ink); background: var(--gold); padding: 6px 12px; border-radius: 999px; }
.ghost { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); }
.daily h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.015em; margin: 14px 0 6px; font-weight: 700; }
.daily .first { font-size: 19px; color: #FFE7B8; font-weight: 500; }
.daily .ben { color: var(--muted); font-size: 15px; margin-top: 6px; }
.daily-act { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.daily-act b { display: block; font-size: 17px; }
.daily-act a { color: var(--gold); font-weight: 600; font-size: 15px; display: inline-block; min-height: 32px; padding-top: 4px; }
.play-xl { width: 76px; height: 76px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 8px rgba(242, 196, 109, .18), 0 14px 34px -10px rgba(242, 196, 109, .7); }
.play-xl .ic { width: 30px; height: 30px; }
.play-xl.center { margin: 18px auto 10px; }

.live { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-top: 12px; border-radius: 20px; }
.live > span:nth-child(2) { flex: 1; min-width: 0; }
.live b { display: block; }
.live small { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #FF6B5E; flex: none; animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 94, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 107, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 94, 0); } }

.shelf { margin-top: 30px; }
.shelf h2 { font-size: 21px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.shelf h2 a { font-size: 15px; color: var(--gold); font-weight: 600; }
.hs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.hs::-webkit-scrollbar { display: none; }
.hs > * { scroll-snap-align: start; flex: none; }

.sq { width: 140px; }
.sq-img { display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--glass-2); }
.sq-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; transform: scale(1.25); transform-origin: center 85%; }
.sq b { display: block; font-size: 15px; line-height: 1.3; margin-top: 8px; font-weight: 600; }
.sq small { color: var(--muted); font-size: 13px; }

.pt { position: relative; width: 150px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; background: linear-gradient(150deg, var(--c1), var(--c2)); }
.pt.big { width: 240px; aspect-ratio: 16 / 11; }
.pt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; mix-blend-mode: soft-light; opacity: .9; }
.pt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.pt span { position: relative; z-index: 1; }
.pt b { display: block; font-size: 17px; line-height: 1.15; font-weight: 700; }
.pt small { font-size: 13px; color: rgba(255, 255, 255, .85); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pgrid .pt { width: auto; }

.prog { position: relative; width: 260px; aspect-ratio: 16 / 12; border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; }
.prog img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.prog::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 10, 28, .85)); }
.pk { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 12px; font-weight: 700; background: rgba(8, 10, 28, .55); backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 999px; }
.pb { position: relative; z-index: 1; padding: 14px; width: 100%; }
.pb b { display: block; font-size: 19px; line-height: 1.2; }
.pb small { color: var(--muted); font-size: 14px; }
.bar { display: block; height: 5px; border-radius: 9px; background: var(--faint); margin-top: 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 9px; }

/* explore */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--line); margin: 6px 0 16px; }
.seg a { text-align: center; min-height: 44px; display: grid; place-items: center; border-radius: 999px; font-weight: 600; color: var(--muted); }
.seg a[aria-selected="true"] { background: rgba(255, 255, 255, .92); color: #10142c; }
.search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-radius: 18px; margin-bottom: 14px; position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 5; }
.search input { flex: 1; background: none; border: 0; outline: none; font: inherit; color: #fff; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips a { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: color-mix(in srgb, var(--c) 45%, rgba(16, 20, 44, .55)); border: 1px solid var(--line); font-weight: 600; font-size: 15px; backdrop-filter: blur(12px); }
.empty { color: var(--muted); padding: 18px 4px; }

.list { padding: 4px 14px; border-radius: 22px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 72px; }
.row:last-child { border-bottom: 0; }
.row-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.th { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex: none; background: var(--glass-2); }
.th img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; transform: scale(1.5); transform-origin: center 85%; }
.rt { flex: 1; min-width: 0; text-align: left; }
.rt b { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.rt small { color: var(--muted); font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); flex: none; }
.rp .ic { width: 20px; height: 20px; }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.pill.big { min-height: 58px; font-size: 18px; padding: 0 28px; }
.pill.wide { width: 100%; margin: 14px 0 4px; }
.ghost-pill { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid var(--line); }
.acts { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.acts > * { flex: 1; }
.acts.center > .pill { flex: 0 1 auto; }
.circle { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid var(--line); flex: none !important; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 14px 0 8px; margin-left: -6px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px; background: rgba(8, 10, 28, .3); backdrop-filter: blur(10px); }

/* detail heads */
.pl-head { position: relative; display: flex; align-items: flex-end; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 10; margin: 12px 0 14px; background: linear-gradient(150deg, var(--c1, #333), var(--c2, #111)); }
.pl-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; mix-blend-mode: soft-light; }
.prog-head img { mix-blend-mode: normal; }
.pl-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .6)); }
.pl-head div { position: relative; z-index: 1; padding: 18px; }
.pl-head small { color: rgba(255, 255, 255, .85); font-size: 14px; }
.pl-head h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.m-head { text-align: center; padding: 6px 0 4px; }
.m-art { display: block; width: 200px; height: 200px; margin: 6px auto 18px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.m-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; transform: scale(1.4); transform-origin: center 85%; }
.m-head small { color: var(--gold); font-weight: 700; font-size: 14px; }
.m-head h1 { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; margin: 4px 0 8px; }
.words { padding: 18px 20px; margin-top: 18px; }
.words h2 { font-size: 20px; margin-bottom: 8px; }
.ln { padding: 10px 0; }
.sa { color: #FFE7B8; font-size: 18px; }
.tr { font-size: 20px; font-weight: 600; line-height: 1.4; }
.me { color: var(--muted); font-size: 16px; margin-top: 2px; }
.words hr, .pl-words hr { border: 0; border-top: 1px dashed var(--line); margin: 6px 0; }
.meter { padding: 14px 18px; font-size: 15px; color: var(--muted); border-radius: 18px; }
.lesson { padding-right: 4px; }
.lk { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex: none; }
.lk.done { background: var(--gold); color: var(--gold-ink); }
.vid { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 20px; margin: 16px 0 6px; }
.read { font-size: 19px; line-height: 1.6; margin: 16px 0; }
.steps { padding: 8px 18px; margin-top: 16px; }
.steps div { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps div:last-child { border: 0; }
.steps span { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.steps b { display: block; font-size: 17px; }
.steps p { color: var(--muted); }
.steps p b { color: #fff; }
.progs { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.pcard { display: flex; gap: 14px; padding: 12px; align-items: center; }
.pcard img { width: 104px; height: 104px; border-radius: 18px; object-fit: cover; object-position: center 85%; flex: none; }
.pcard small { color: var(--gold); font-weight: 600; font-size: 13px; }
.pcard b { display: block; font-size: 19px; line-height: 1.2; margin: 2px 0 4px; }
.pcard em { font-style: normal; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty-card { padding: 28px; text-align: center; color: var(--muted); display: grid; place-items: center; gap: 10px; }

/* radio */
.radio { text-align: center; padding-top: 6px; }
.onair { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .04em; background: rgba(8, 10, 28, .4); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(10px); }
.r-disc { width: min(66vw, 260px); aspect-ratio: 1; margin: 24px auto 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 12px rgba(255, 255, 255, .07), 0 0 0 24px rgba(255, 255, 255, .04), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.r-disc img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; transform: scale(1.35); transform-origin: center 85%; }
.r-disc.spin img { animation: spin 40s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: scale(1.35) rotate(360deg); } }
.radio h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.015em; }

/* tabs */
#tabs { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-around; height: 66px; border-radius: 24px; background: rgba(12, 15, 36, .62); backdrop-filter: blur(24px) saturate(1.4); border: 1px solid var(--line); }
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; font-weight: 600; color: var(--muted); min-height: 56px; justify-content: center; }
#tabs a[aria-current] { color: #fff; }
#tabs a[aria-current] .ti { color: var(--gold); }
#tabs .tab-radio .ti { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink) !important; box-shadow: 0 10px 24px -8px rgba(242, 196, 109, .8); }

/* mini */
#mini { position: fixed; left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 19; max-width: 540px; margin: 0 auto; }
#mini:not(:empty) { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(24px); border: 1px solid var(--line); }
.mini-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
#mini .th { width: 46px; height: 46px; border-radius: 12px; }
#mini .rt b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* immersive player */
#player { position: fixed; inset: 0; z-index: 50; transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); background: #0B0E24; overflow: clip; }
#player.open { transform: none; }
#player::before { content: ""; position: absolute; inset: 0; transform: scale(1.2); background: var(--art) center 85% / cover; filter: blur(40px) saturate(1.4) brightness(.55); }
#player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 28, .2), rgba(8, 10, 28, .75)); }
.pl-in { position: relative; z-index: 1; height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); }
.pl-top { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--muted); }
.pl-top [aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.pl-mid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 0; padding: 14px 0; }
.pl-art { width: min(78vw, 340px); aspect-ratio: 1; border-radius: 30px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.pl-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.pl-words { align-self: stretch; width: 100%; overflow-wrap: anywhere; overflow-y: auto; max-height: 100%; text-align: center; padding: 6px 4px; mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
.pl-words .tr { font-size: 22px; }
.pl-info h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.015em; }
.pl-info p { color: var(--muted); }
#seek { width: 100%; accent-color: var(--gold); height: 28px; margin-top: 10px; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.live-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; margin-top: 12px; }
.ctrls { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.ctrls button:not(.play-xl) { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; }
.ctrls .ic { width: 26px; height: 26px; }
.ctrls:has(> :only-child) { justify-content: center; }
.pl-foot { display: flex; justify-content: center; gap: 10px; }
.pl-foot button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
