/* Mini Scholars Radio — দিনের সময়ের সাথে আকাশ বদলায়; বাকি সব শান্ত */
@font-face { font-family: "Li Ador Noirrit"; src: url("../fonts/LiAdorNoirrit-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Li Ador Noirrit"; src: url("../fonts/LiAdorNoirrit-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Li Ador Noirrit"; src: url("../fonts/LiAdorNoirrit-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --rd-blue: #1675D1; --rd-blue-deep: #0B3F75; --rd-yellow: #FFB91F; --rd-orange: #F0782B;
  --rd-font: "Li Ador Noirrit", "Hind Siliguri", system-ui, sans-serif;
  --rd-latin: "Nunito", var(--rd-font);
  /* আকাশ: উপরে, মাঝে, নিচে + পাহাড় + লেখার রং */
  --s1: #7EC3FF; --s2: #4DA3F0; --s3: #1675D1; --hill1: #0F5FB0; --hill2: #0B3F75;
  --rd-ink: #fff; --rd-ink-soft: rgba(255,255,255,.78); --rd-card: rgba(8, 28, 64, .34); --rd-line: rgba(255,255,255,.16);
  --orb: #FFD25E; --orb-glow: rgba(255, 210, 94, .55);
}
.th-dawn    { --s1: #7FA6DA; --s2: #F2A57E; --s3: #FFD49E; --hill1: #D9784A; --hill2: #A9532F; --orb: #FFB91F; --orb-glow: rgba(255,185,31,.5); --rd-card: rgba(80, 32, 16, .34); }
.th-day     { --s1: #5DB2FF; --s2: #3E97EA; --s3: #1675D1; --hill1: #1F8A4C; --hill2: #146B39; }
.th-noon    { --s1: #7CC2FA; --s2: #4FA4EC; --s3: #2381D9; --hill1: #2A9A5A; --hill2: #1B7A45; --orb: #FFE58A; --rd-card: rgba(6, 40, 96, .32); }
.th-dusk    { --s1: #5B5FB0; --s2: #F0782B; --s3: #FFB91F; --hill1: #A24A2E; --hill2: #6E2E2A; --orb: #FFD25E; --rd-card: rgba(60, 20, 40, .3); }
.th-evening { --s1: #141B4D; --s2: #3B3F8F; --s3: #C25A6A; --hill1: #2A2A63; --hill2: #171944; --orb: #F6E7B0; --orb-glow: rgba(246,231,176,.35); }
.th-night   { --s1: #050B24; --s2: #0B1A3A; --s3: #18306A; --hill1: #0E1D45; --hill2: #08122E; --orb: #F3EED8; --orb-glow: rgba(243,238,216,.3); --rd-card: rgba(255,255,255,.07); }

body.radio { margin: 0; min-height: 100dvh; background: var(--s2); overflow-x: hidden; }
.rd-app { font-family: var(--rd-font); color: var(--rd-ink); text-shadow: 0 1px 3px rgba(0, 20, 50, .28); }
.rd-app button { font: inherit; color: inherit; cursor: pointer; }
.rd-app a { color: inherit; }
.rd-app :focus-visible { outline: 3px solid var(--rd-yellow); outline-offset: 3px; }
body.radio .site-header { z-index: 5; }

/* ---------- আকাশ */
.sky { position: fixed; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 55%, var(--s3) 100%); transition: background 1.2s; }
.stars { position: absolute; inset: 0 0 35% 0; opacity: 0; transition: opacity 1.2s;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 42%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 52%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 36% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 50%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 94% 60%, #fff 50%, transparent 51%); }
.th-night .stars, .th-evening .stars { opacity: .9; }
.th-evening .stars { opacity: .45; }
.orb { position: absolute; width: 92px; height: 92px; border-radius: 50%; left: calc(var(--x, .5) * 100% - 46px); top: calc(var(--y, .2) * 100% - 46px);
  background: radial-gradient(circle at 40% 38%, #fff8, transparent 55%), var(--orb); box-shadow: 0 0 60px 20px var(--orb-glow); transition: left 1.5s, top 1.5s, background 1.2s; }
.th-night .orb, .th-evening .orb { box-shadow: 0 0 60px 14px var(--orb-glow), inset -22px -6px 0 0 rgba(0,0,0,.12); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; min-height: 120px; }
.hills .h1 { fill: var(--hill1); transition: fill 1.2s; }
.hills .h2 { fill: var(--hill2); transition: fill 1.2s; }

/* ---------- রেডিওর নিজের পাটি — Tube-এর মতো সাদা, উপরে আটকে থাকে */
.rd-appbar { position: sticky; top: 0; z-index: 4; height: 60px; display: flex; align-items: center; gap: 1rem; padding: 0 clamp(12px, 3vw, 28px);
  background: #fff; color: #0F0F0F; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.rd-logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: #0F0F0F; flex: none; }
.rd-wordmark { display: inline-flex; align-items: flex-start; gap: .15rem; font-family: "Melon Pop", "Nunito", system-ui, sans-serif; letter-spacing: -.02em; line-height: 1; }
.rd-wordmark b { font-size: 1.2rem; font-weight: 400; color: #0B3F75; }
.rd-wordmark i { font-style: normal; font-weight: 800; font-size: .72rem; color: #fff; background: #F0782B; border-radius: 5px; padding: .12rem .3rem; margin-top: -.25rem; }
.rd-onair { margin: 0 auto; font-weight: 600; color: #3A4458; font-size: .98rem; }
.rd-onair::before { content: "এখন: "; color: #8A93A5; font-weight: 400; }
.rd-appbar-r { display: flex; align-items: center; gap: .6rem; flex: none; }
.rd-live { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px; border-radius: 99px; background: #F2F2F2; color: #0F0F0F; font-size: 14px; font-weight: 700; }
.rd-live i { width: 9px; height: 9px; border-radius: 50%; background: #9aa3b2; }
.rd-live.on { background: #FFE9E9; color: #C62828; }
.rd-live.on i { background: #E53935; box-shadow: 0 0 0 0 rgba(229,57,53,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(229,57,53,0); } }
.rd-hop { display: inline-flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .8rem 0 .5rem; border-radius: 999px; border: 1px solid #E5E5E5;
  text-decoration: none; color: #0F0F0F; font-weight: 700; font-size: .9rem; }
.rd-hop:hover { background: #F2F2F2; }
@media (max-width: 700px) {
  .rd-appbar { height: 56px; gap: .5rem; }
  .rd-wordmark b { font-size: 1rem; }
  .rd-onair, .rd-hop span { display: none; }
  .rd-appbar-r { margin-left: auto; }
  .rd-hop { padding: 0 .45rem; border: 0; }
}

/* ---------- মূল অংশ */
.rd-main { position: relative; z-index: 1; padding-top: 22px !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 6px clamp(16px, 4vw, 40px) 40px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 960px) { .rd-main { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; padding-top: 24px; } }

.rd-stage { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rd-prog { margin: 0 0 14px; text-shadow: 0 1px 10px rgba(0, 20, 50, .55); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 17px; font-weight: 600; }
.rd-prog-time { color: var(--rd-ink-soft); font-weight: 400; }

/* দরজার মতো খিলান — ব্র্যান্ডের লোগোর দরজা */
.rd-door { width: min(100%, 460px); padding: 14px 14px 14px; border-radius: 240px 240px 26px 26px / 200px 200px 26px 26px;
  background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
  padding-top: clamp(70px, 18vw, 96px); position: relative; }
.rd-door::before { content: ""; position: absolute; left: 50%; top: 22px; width: 40px; height: 40px; transform: translateX(-50%);
  background: url("../img/star.svg") center / contain no-repeat; opacity: .95; }

/* আমাদের নিজের রেকর্ড-ডিস্ক — বাজলে ঘোরে */
.rd-door { display: flex; flex-direction: column; align-items: center; padding-bottom: 22px; }
.rd-disc { position: relative; width: min(64vw, 250px); aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; background: none; }
.rd-rec { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.07) 31.5% 32%, transparent 32.5% 40%, rgba(255,255,255,.07) 40.5% 41%, transparent 41.5% 50%,
      rgba(255,255,255,.07) 50.5% 51%, transparent 51.5% 60%, rgba(255,255,255,.06) 60.5% 61%, transparent 61.5%),
    conic-gradient(from 30deg, #0D1B33, #1C2E52 20%, #0D1B33 40%, #22375F 60%, #0D1B33 80%, #1C2E52);
  box-shadow: 0 22px 40px -14px rgba(0,0,0,.6), inset 0 0 0 6px rgba(0,0,0,.25); }
.rd-label { position: absolute; inset: 31%; border-radius: 50%; background: var(--rd-yellow); display: grid; place-items: center;
  box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.rd-label::after { content: ""; position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #0D1B33; }
.rd-label-mark { width: 58%; height: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.playing .rd-rec { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rd-tap { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px 9px 14px; border-radius: 99px; background: var(--rd-yellow); color: var(--rd-blue-deep); font-weight: 700; font-size: 17px;
  white-space: nowrap; text-shadow: none; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.playing .rd-tap { display: none; }
.rd-eq { display: flex; align-items: flex-end; gap: 5px; height: 26px; margin-top: 26px; opacity: .35; }
.rd-eq i { width: 5px; height: 6px; border-radius: 3px; background: #fff; }
.playing .rd-eq { opacity: 1; }
.playing .rd-eq i { animation: eq 1s ease-in-out infinite alternate; }
.rd-eq i:nth-child(2) { animation-delay: -.4s !important; } .rd-eq i:nth-child(3) { animation-delay: -.7s !important; }
.rd-eq i:nth-child(4) { animation-delay: -.2s !important; } .rd-eq i:nth-child(5) { animation-delay: -.9s !important; }
.rd-eq i:nth-child(6) { animation-delay: -.5s !important; } .rd-eq i:nth-child(7) { animation-delay: -.1s !important; }
@keyframes eq { from { height: 5px; } to { height: 26px; } }

/* ইউটিউব প্লেয়ার — ছোট জানালা (নিয়মের সর্বনিম্ন ২০০×২০০) বা লুকানো */
.rd-screen { position: relative; overflow: hidden; background: #000; }
.rd-yt, .rd-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-small .rd-screen { width: 200px; height: 200px; margin-top: 26px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.pl-small .rd-screen:not(:has(iframe)) { display: none; }
.pl-hidden .rd-screen { position: fixed; left: -10px; bottom: -10px; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

.rd-now { width: min(100%, 460px); margin-top: 18px; }
.rd-kind { margin: 0; color: var(--rd-ink-soft); font-size: 15px; }
.rd-title { margin: 4px 0 12px; font-size: clamp(21px, 4.8vw, 27px); line-height: 1.35; font-weight: 700; text-wrap: balance; }
.rd-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.22); overflow: hidden; }
.rd-bar span { display: block; height: 100%; width: 0; background: var(--rd-yellow); border-radius: 6px; transition: width 1s linear; }
.rd-left { margin: 8px 0 0; font-size: 14px; color: var(--rd-ink-soft); min-height: 1.4em; }

.rd-controls { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.rd-ctl { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.rd-ctl:hover { background: rgba(255,255,255,.26); }
.rd-ctl[aria-pressed="true"] { text-shadow: none; background: #fff; color: var(--rd-blue-deep); }
.rd-play { width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--rd-yellow); color: var(--rd-blue-deep); display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.45); }
.rd-play:active { transform: scale(.96); }

.rd-timer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; }
.rd-timer span { color: var(--rd-ink-soft); margin-right: 2px; }
.rd-timer button { border: 1px solid var(--rd-line); background: transparent; border-radius: 99px; padding: 6px 13px; }
.rd-timer button[aria-pressed="true"] { text-shadow: none; background: #fff; color: var(--rd-blue-deep); border-color: #fff; font-weight: 600; }
.rd-timer-left { margin: 10px 0 0; font-size: 14px; color: var(--rd-ink-soft); }

/* ---------- পাশের কার্ড */
.rd-side { display: grid; gap: 16px; }
.rd-card { background: var(--rd-card); border: 1px solid var(--rd-line); border-radius: 22px; padding: 18px 18px 8px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rd-card h2 { margin: 0 0 8px; font-size: 18px; }
.rd-next, .rd-day { list-style: none; margin: 0; padding: 0; }
.rd-next li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rd-line); font-size: 15px; line-height: 1.4; }
.rd-next li:first-child { border-top: 0; }
.rd-next time { color: var(--rd-yellow); font-weight: 600; }
.rd-next small { display: block; color: var(--rd-ink-soft); font-size: 13px; }
.rd-day li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 11px 10px; margin: 0 -10px; border-radius: 14px; }
.rd-day li + li { margin-top: 2px; }
.rd-day li.on { background: rgba(255,255,255,.16); }
.rd-day b { display: block; font-size: 15.5px; }
.rd-day small { display: block; color: var(--rd-ink-soft); font-size: 13px; line-height: 1.4; }
.rd-day time { font-size: 13px; color: var(--rd-ink-soft); white-space: nowrap; }
.rd-day li.on time { color: var(--rd-ink); font-weight: 600; }
.sw { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(180deg, var(--s1), var(--s3)); box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.rd-note { margin: 4px 4px 0; font-size: 13.5px; line-height: 1.6; color: var(--rd-ink-soft); }
.rd-off { grid-column: 1 / -1; text-align: center; padding: 18vh 0; }

/* ---------- ঘুমের মোড */
.rd-dim { position: fixed; inset: 0; z-index: 50; background: #000; color: #8a8f9c; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; cursor: pointer; }
.rd-dim[hidden] { display: none; }
.rd-clock { margin: 0; font-size: clamp(56px, 16vw, 110px); font-weight: 600; color: #3d4250; letter-spacing: .02em; }
.rd-dim-title { margin: 10px 0 0; font-size: 17px; color: #555b6a; max-width: 32ch; }
.rd-dim-hint { margin: 28px 0 0; font-size: 13px; color: #3a3f4b; }

@media (max-width: 420px) {
  .rd-controls { gap: 16px; }
  .rd-timer button { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .playing .rd-rec, .playing .rd-eq i { animation: none; }
  .rd-live.on i { animation: none; }
  .sky, .orb, .stars, .hills path { transition: none; }
}
