/* வாசகர் வட்டம் — Apple-style: system type, translucent materials, springs, restraint */
:root {
  --bg: #0c0b0a;
  --bg-2: #151311;
  --ink: #f5f1e8;
  --ink-2: rgba(245, 241, 232, .68);
  --ink-3: rgba(245, 241, 232, .44);
  --line: rgba(245, 241, 232, .10);
  --card: rgba(255, 250, 240, .045);
  --card-hi: rgba(255, 250, 240, .08);
  --glass: rgba(22, 20, 18, .62);
  --accent: #ffb340;        /* lamp-light amber */
  --accent-ink: #1a1206;
  --green: #1ed760;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -20px rgba(0,0,0,.6);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ta: "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ta-serif: "Noto Serif Tamil", "Noto Sans Tamil", Georgia, serif;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f2ea; --bg-2: #efe9dd;
    --ink: #1b1813; --ink-2: rgba(27,24,19,.68); --ink-3: rgba(27,24,19,.45);
    --line: rgba(27,24,19,.10); --card: rgba(255,255,255,.6); --card-hi: #fff;
    --glass: rgba(246,242,234,.7); --accent: #b8650a; --accent-ink: #fff;
    --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 20px 50px -24px rgba(60,40,10,.25);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--ta);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; z-index: 100; top: 12px; left: 12px; width: auto; height: auto; clip: auto; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* ---------- Nav: floating translucent material ---------- */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1080px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 14px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.45);
  transition: transform .5s var(--ease), opacity .3s;
}
.nav.hide { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--ink-2); font-size: .9rem; padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav nav a:hover, .nav nav a.on { color: var(--ink); background: var(--card-hi); text-decoration: none; }
@media (max-width: 760px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* ---------- Buttons: respond on press ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--ta); color: var(--ink); text-decoration: none !important;
  transition: transform .12s ease-out, background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active, .btn.pressed { transform: scale(.96); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-glass { background: var(--card-hi); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: .9rem; background: var(--ink); color: var(--bg); }

/* ---------- Type: size-specific tracking & leading ---------- */
.display {
  font-family: var(--ta-serif); font-weight: 800;
  font-size: clamp(3rem, 11vw, 8.5rem); line-height: 1.05; letter-spacing: -.035em;
  margin: .1em 0 .2em;
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 55%, var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-family: var(--ta-serif); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3.25rem); line-height: 1.18; letter-spacing: -.025em; margin: .15em 0 0; }
h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.01em; margin: .4em 0 .3em; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.65; color: var(--ink-2); max-width: 38em; margin: 0 auto; }
.lede strong { color: var(--ink); }
.lede-sm { color: var(--ink-2); margin: .6em 0 0; }
.kicker { margin: 0; color: var(--ink-3); font-size: .85rem; font-weight: 600; letter-spacing: .03em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 104px 20px 56px;
}
/* Aurora: slow drifting light (30s+ cycles, far below vestibular-trigger frequencies) */
.aurora { position: absolute; inset: -10%; z-index: -2; filter: blur(70px) saturate(130%); opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.aurora .a1 { width: 60vmax; height: 60vmax; left: 20%; top: -20%; background: radial-gradient(closest-side, rgba(255,170,60,.55), transparent); animation: drift1 38s ease-in-out infinite alternate; }
.aurora .a2 { width: 50vmax; height: 50vmax; left: -15%; top: 30%; background: radial-gradient(closest-side, rgba(60,140,40,.45), transparent); animation: drift2 46s ease-in-out infinite alternate; }
.aurora .a3 { width: 45vmax; height: 45vmax; right: -15%; top: 35%; background: radial-gradient(closest-side, rgba(220,80,90,.35), transparent); animation: drift3 52s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-12vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(14vmax, -8vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -12vmax) scale(1.1); } }
@media (prefers-color-scheme: light) { .aurora { opacity: .55; } .aurora i { mix-blend-mode: multiply; } }
.grain { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }

/* Poster fan: a hand of cards, gently floating, tilting toward the pointer */
.fan { position: relative; width: min(460px, 92vw); height: clamp(170px, 34vw, 240px); margin: 0 auto 30px; perspective: 900px; }
.fan-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.fan .card-p {
  --w: clamp(118px, 26vw, 168px);
  position: absolute; left: 50%; bottom: 0; width: var(--w); aspect-ratio: 1; margin-left: calc(var(--w) / -2);
  border-radius: 18px; overflow: hidden; transform-origin: 50% 230%;
  box-shadow: 0 22px 40px -16px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.1);
  transform: rotate(var(--r)) translateY(var(--y));
  transition: transform .9s var(--ease), opacity .6s;
  animation: bob 7s ease-in-out infinite alternate; animation-delay: var(--d);
}
.fan .card-p img { width: 100%; height: 100%; object-fit: cover; }
.fan .card-p:nth-child(3) { z-index: 3; }
.fan .card-p:nth-child(2), .fan .card-p:nth-child(4) { z-index: 2; }
.fan.pre .card-p { transform: rotate(0deg) translateY(40px); opacity: 0; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -8px; } }

/* Live pill */
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; margin-bottom: 14px;
  border-radius: 999px; color: var(--ink); font-size: .92rem; font-weight: 600;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  transition: transform .12s ease-out, background .2s;
}
.live-pill:hover { text-decoration: none; background: rgba(255,255,255,.11); }
.live-pill:active { transform: scale(.97); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d058; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #34d058; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.pill-arrow { color: var(--ink-3); font-size: 1.1rem; line-height: 1; }
@media (prefers-color-scheme: light) { .live-pill { background: rgba(255,255,255,.7); border-color: var(--line); } }

/* Title: slow golden sheen */
.hero .display {
  margin: .05em 0 .1em;
  background: linear-gradient(100deg, #fff4dc 0%, #ffd38a 30%, #fff8ec 45%, #ffb340 60%, #fff1d6 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 30px rgba(255,170,60,.25));
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-color-scheme: light) { .hero .display { background-image: linear-gradient(100deg, #3a2405, #b8650a 40%, #5a3608 60%, #c97a1c); filter: none; } }
.motto { margin: 0 0 18px; color: var(--accent); font-weight: 600; letter-spacing: .04em; font-size: clamp(.95rem, 2.4vw, 1.1rem); }
.br-wide { display: none; }
@media (min-width: 720px) { .br-wide { display: inline; } }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 40px; }
@media (max-width: 560px) { .cta-row { width: 100%; } .cta-row .btn { flex: 1 1 100%; } }

/* Stats: one glass bar */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; padding: 6px; width: min(760px, 100%);
  border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.7);
}
.stats div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; }
.stats div + div::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(255,255,255,.1); }
.stats .si { order: 1; font-size: 1.15rem; line-height: 1; margin-bottom: 4px; }
.stats dd { order: 2; margin: 0; font: 700 clamp(1.7rem, 4.5vw, 2.3rem)/1.05 system-ui, -apple-system, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 60%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dt { order: 3; color: var(--ink-3); font-size: .78rem; line-height: 1.35; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3)::before { display: none; }
  .stats div:nth-child(n+3)::after { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px; background: rgba(255,255,255,.1); }
}
@media (prefers-color-scheme: light) { .stats { background: rgba(255,255,255,.65); border-color: var(--line); } }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .fan .card-p, .hero .display, .pulse::after { animation: none !important; }
  .fan .card-p, .fan-inner { transition: opacity .3s !important; }
}
@media (prefers-reduced-transparency: reduce) { .live-pill, .stats { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-2); } }

/* ---------- Sections & cards ---------- */
.section { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 96px 0 24px; }
.section-wide { width: 100%; }
.section-wide .section-head { width: min(1080px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .next-grid { grid-template-columns: 1fr; } }
.card-next { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.next-date { margin: 4px 0 0; font: 700 clamp(1.7rem, 4vw, 2.6rem)/1.2 var(--ta-serif); letter-spacing: -.02em; }
.next-time { margin: 0; color: var(--ink-2); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin: 14px 0 8px; }
.countdown div { text-align: center; padding: 12px 4px; border-radius: var(--radius-sm); background: var(--card-hi); }
.countdown span { display: block; font: 700 clamp(1.6rem, 4vw, 2.4rem)/1 system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.countdown small { color: var(--ink-3); font-size: .75rem; }
.card-next .muted { font-size: .95rem; margin: 6px 0 10px; }

/* Latest meeting — "now playing" card: uncropped artwork, tinted by its own colours */
.card-latest {
  position: relative; isolation: isolate; overflow: hidden; padding: 22px;
  display: flex; flex-direction: column; gap: 20px; color: #f5f1e8;
  background: #14110e;
}
.latest-bg {
  position: absolute; inset: -30%; z-index: -1;
  background: var(--art) center/cover no-repeat;
  filter: blur(60px) saturate(1.5) brightness(.55); transform: scale(1.1);
}
.latest-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,6,.15), rgba(10,8,6,.65)); }
.latest-art {
  width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .45s var(--ease);
}
.latest-art img { width: 100%; height: 100%; object-fit: cover; }
.latest-art:hover { transform: scale(1.015); }
.latest-art:active { transform: scale(.98); transition-duration: .12s; }
.latest-info { display: flex; flex-direction: column; gap: 6px; }
.latest-info .kicker { display: flex; align-items: center; gap: 8px; color: rgba(245,241,232,.72); }
.latest-info .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.latest-info h3 { font-family: var(--ta-serif); font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; margin: 2px 0 0; }
.latest-author { margin: 0; font-size: 1.05rem; color: rgba(245,241,232,.85); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 0; }
.chips li { padding: 4px 11px; border-radius: 999px; font-size: .82rem; color: rgba(245,241,232,.9); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.latest-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.latest-actions .btn { flex: 1 1 140px; }
.card-latest .btn-glass { color: #f5f1e8; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); }
/* Wide but short column: artwork beside text */
@media (min-width: 861px) { .card-latest { flex-direction: row; align-items: center; padding: 20px; } .latest-art { width: 56%; flex: none; } .latest-actions .btn { flex-basis: 100%; } }
.card-next .btn { align-self: stretch; text-align: center; line-height: 1.3; padding-block: 10px; }
@media (min-width: 560px) { .card-next .btn { align-self: flex-start; } }

/* ---------- Poster rail: native momentum scroll + snap ---------- */
.rail-wrap { position: relative; }
.rail {
  list-style: none; margin: 0; padding: 4px max(20px, calc((100% - 1080px) / 2)) 28px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 28vw, 300px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(20px, calc((100% - 1080px) / 2));
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail li { scroll-snap-align: start; }
.poster {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: inherit; -webkit-tap-highlight-color: transparent;
}
.poster .art { aspect-ratio: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.poster .art img { width: 100%; height: 100%; object-fit: cover; }
.poster:hover .art { transform: translateY(-4px); box-shadow: 0 28px 50px -20px rgba(0,0,0,.75); }
.poster:active .art { transform: scale(.97); transition-duration: .1s; }
.poster .cap { padding: 12px 4px 0; }
.poster .cap b { display: block; font-size: 1.05rem; line-height: 1.35; }
.poster .cap span { color: var(--ink-3); font-size: .85rem; }
.rail-btn {
  position: absolute; top: calc(50% - 40px); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .12s ease-out, opacity .2s;
}
.rail-btn:active { transform: scale(.92); }
.rail-btn.prev { left: 16px; } .rail-btn.next { right: 16px; }
@media (hover: none) { .rail-btn { display: none; } }

/* ---------- Listen ---------- */
.listen-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .listen-grid { grid-template-columns: 1fr; } }
.embed-card { padding: 0; overflow: hidden; }
.embed-card iframe { display: block; width: 100%; height: 352px; border: 0; }
.listen-side { display: grid; gap: 12px; }
.platform {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: transform .12s ease-out, background .2s;
}
.platform:hover { background: var(--card-hi); text-decoration: none; }
.platform:active { transform: scale(.98); }
.platform strong { display: block; line-height: 1.3; }
.platform small { color: var(--ink-3); }
.pi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.pi::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.pi-spotify { background: #1ed760; color: #000; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 14.4a.6.6 0 0 1-.9.2c-2.4-1.5-5.4-1.8-9-1a.6.6 0 1 1-.3-1.2c3.9-.9 7.2-.5 9.9 1.1.3.2.4.6.3.9Zm1.2-2.7a.8.8 0 0 1-1 .3c-2.7-1.7-6.9-2.2-10.2-1.2a.8.8 0 1 1-.4-1.5c3.7-1.1 8.4-.6 11.4 1.3.4.2.5.7.2 1.1Zm.1-2.8C14.7 9 9.4 8.8 6.3 9.7a.9.9 0 1 1-.5-1.8c3.6-1.1 9.4-.9 13.1 1.3a.9.9 0 0 1-1 1.7Z'/%3E%3C/svg%3E"); }
.pi-yt { background: #ff0033; color: #fff; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.pi-x { background: var(--ink); color: var(--bg); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.8 3h3.1l-6.8 7.8 8 10.2h-6.3l-4.9-6.4L5.3 21H2.2l7.3-8.3L1.8 3h6.4l4.4 5.9L17.8 3Zm-1.1 16.2h1.7L7.4 4.7H5.6l11.1 14.5Z'/%3E%3C/svg%3E"); }

/* ---------- Archive ---------- */
.archive-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 48px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.search:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.search svg { width: 18px; height: 18px; fill: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 1rem var(--ta); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--ink-2); font: 600 .9rem var(--ta); padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: background .25s var(--ease), color .2s; }
.seg button.on { background: var(--card-hi); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.archive { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.group { list-style: none; }
.year {
  position: sticky; top: 76px; z-index: 2; display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 10px; padding: 8px 4px; font: 700 1.5rem/1.1 system-ui, -apple-system, sans-serif; letter-spacing: -.02em;
  background: linear-gradient(var(--bg) 75%, transparent);
}
.year small { font: 500 .85rem var(--ta); color: var(--ink-3); letter-spacing: 0; }
.group-list {
  list-style: none; margin: 0; padding: 4px 0; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
}
.row {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .18s;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 84px; right: 0; height: 1px; background: var(--line); }
.row:hover { background: var(--card-hi); }
.row:active { background: color-mix(in srgb, var(--card-hi) 100%, var(--accent) 6%); }
.row:active .thumb { transform: scale(.94); }
.thumb {
  width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(140deg, hsl(var(--h) 45% 32%), hsl(calc(var(--h) + 40) 50% 18%));
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; transition: transform .15s ease-out;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { font: 700 1.3rem system-ui, -apple-system, sans-serif; color: rgba(255,255,255,.92); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.row .t { min-width: 0; display: flex; flex-direction: column; }
.row .t b { font-size: 1.04rem; line-height: 1.35; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .sub { color: var(--ink-2); font-size: .9rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub2 { color: var(--ink-3); font-size: .8rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; font: 600 .7rem var(--ta); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.play {
  border: 0; padding: 0; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--green); color: #000; box-shadow: 0 6px 16px -8px var(--green); transition: transform .12s ease-out;
}
.play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.play:hover { text-decoration: none; transform: scale(1.06); }
.play:active { transform: scale(.9); }
.chev { color: var(--ink-3); font-size: 1.5rem; line-height: 1; padding: 0 6px; }
@media (max-width: 560px) {
  .row { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 9px 12px; }
  .thumb { width: 48px; height: 48px; border-radius: 10px; }
  .row + .row::before { left: 72px; }
  .year { top: 72px; font-size: 1.3rem; }
}
@media (max-width: 560px) { .archive-tools { gap: 10px; } .search { flex-basis: 100%; } .seg { width: 100%; } .seg button { flex: 1; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps p { color: var(--ink-2); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1rem system-ui, sans-serif; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 80px 20px 64px; color: var(--ink-2); }
.foot img { margin: 0 auto 14px; border-radius: 50%; }
.foot p { margin: 4px 0; }

/* ---------- Sheet (spring-driven, drag to dismiss) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); opacity: 0; }
.sheet {
  position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(640px, 100%); max-height: 92svh;
  transform: translate(-50%, 100%); overflow: hidden; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); color: var(--ink);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0;
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 -30px 80px -20px rgba(0,0,0,.6); touch-action: none; will-change: transform;
}
@media (min-width: 700px) { .sheet { bottom: 24px; border-radius: 28px; border-bottom: 1px solid var(--line); max-height: calc(100svh - 48px); } }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--ink-3); margin: 10px auto 0; flex: none; cursor: grab; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card-hi); color: var(--ink-2); font-size: .9rem; cursor: pointer; z-index: 2; }
.sheet-close:active { transform: scale(.92); }
.sheet-body { overflow-y: auto; padding: 18px 26px 32px; touch-action: pan-y; overscroll-behavior: contain; }
.sheet-art { width: 120px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; margin: 6px 0 14px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.sheet-art img { width: 100%; height: 100%; object-fit: cover; }
.sheet h3 { font-family: var(--ta-serif); font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.sheet dt { color: var(--ink-3); font-size: .9rem; }
.sheet dd { margin: 0; }
.sheet .links { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.sheet iframe { width: 100%; height: 152px; border: 0; border-radius: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .3s; }
  .poster .art, .nav { transition: none; }
  .poster:hover .art { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .sheet, .rail-btn, .btn-glass, .card-latest .latest-info { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-2); }
  .card-latest .latest-info { background: #14110e; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(245,241,232,.35); --ink-2: var(--ink); --ink-3: rgba(245,241,232,.8); }
}

/* Reminder buttons */
.remind-row { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.remind-row .btn { flex: 1 1 180px; align-self: auto; }

.pill-label { display: inline; }
@media (max-width: 480px) { .pill-label { display: none; } .live-pill { font-size: .88rem; } }

/* Join the X group */
.group-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 26px 28px; margin-bottom: 10px; border-radius: 28px; color: var(--ink);
  background: linear-gradient(135deg, rgba(255,179,64,.16), rgba(40,80,8,.18) 55%, rgba(220,80,90,.12));
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: transform .2s var(--ease), box-shadow .3s;
}
.group-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 36px 70px -30px rgba(0,0,0,.85); }
.group-card:active { transform: scale(.985); transition-duration: .1s; }
.gc-glow { position: absolute; z-index: -1; width: 340px; height: 340px; left: -80px; top: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,179,64,.35), transparent); filter: blur(20px); animation: drift1 30s ease-in-out infinite alternate; }
.gc-logo { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 14px 30px -10px rgba(0,0,0,.7); }
.gc-avatars { position: absolute; right: 24px; top: 18px; display: flex; }
.gc-avatars img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #1a1612; margin-left: -10px; }
.gc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gc-kicker { color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
.gc-text strong { font-family: var(--ta-serif); font-size: clamp(1.35rem, 3.4vw, 1.75rem); line-height: 1.25; letter-spacing: -.015em; }
.gc-sub { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.gc-sub b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.gc-btn { white-space: nowrap; }
.gc-note { margin: 0 0 28px; padding-left: 6px; color: var(--ink-3); font-size: .82rem; }
@media (max-width: 760px) {
  .group-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 22px 24px; gap: 16px; }
  .gc-avatars { position: static; order: 2; margin-top: -4px; }
  .gc-logo { order: 1; } .gc-text { order: 3; } .gc-btn { order: 4; width: 100%; }
  .gc-note { text-align: center; padding: 0; }
}
@media (prefers-color-scheme: light) { .group-card { background: linear-gradient(135deg, rgba(255,179,64,.22), rgba(255,255,255,.7) 55%, rgba(220,80,90,.12)); border-color: var(--line); } .gc-avatars img { border-color: #fff; } }
@media (prefers-reduced-motion: reduce) { .gc-glow { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .group-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-2); } }

/* Embedded player in the sheet */
.player { min-height: 152px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.04); }
.player iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 14px; }
.player-hint { margin: 10px 2px 0; font-size: .85rem; color: var(--ink-2); }
