/* 台灣149公播電台 新站樣式 — 深色為預設；淺色「畫廊白・朱紅」 */
:root, [data-theme="dark"] {
  --bg: #121217; --bg2: #18181f; --card: #1f1f28; --card2: #272732; --line: #2e2e3a;
  --tx: #eeedf2; --mut: #9c9aa8; --red: #e8412f; --red-h: #ff5641; --on-red: #fff;
  --shadow: 0 8px 28px rgba(0,0,0,.45); --focus: #ffb3a8;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f3ec; --bg2: #efe9de; --card: #fffdf8; --card2: #f3eee4; --line: #e0d9cb;
  --tx: #1c1b20; --mut: #6b6874; --red: #c8321f; --red-h: #ab2615; --on-red: #fff;
  --shadow: 0 8px 24px rgba(60,40,20,.12); --focus: #c8321f;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  display: grid; grid-template: "top top" 60px "side main" 1fr / 236px 1fr; height: 100dvh; overflow: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-h); }
.prose a, .muted a, .faq-mini a, .notice a, .hero-sub a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--mut); }
.center { text-align: center; }

/* ===== 頂部 ===== */
.top { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--bg2); border-bottom: 1px solid var(--line); z-index: 20; }
.logo { display: flex; align-items: baseline; gap: 2px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; width: 196px; }
.logo-tw, .logo-tx { font-size: 17px; }
.logo-149 { font-size: 24px; color: var(--red); font-style: italic; letter-spacing: -.02em; margin: 0 1px; }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 40px; color: var(--mut); }
.search:focus-within { border-color: var(--red); }
.page-search { max-width: 560px; margin-top: 6px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--tx); font: inherit; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; }
.menu { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; min-width: 220px; padding: 6px; box-shadow: var(--shadow); display: grid; }
.menu a, .menu button { padding: 9px 12px; border-radius: 8px; background: none; border: 0; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--card2); color: var(--tx); }
.menu-h { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-h small { color: var(--mut); }

/* ===== 按鈕 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn.red { background: var(--red); color: var(--on-red); }
.btn.red:hover { background: var(--red-h); color: var(--on-red); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--tx); }
.btn.ghost:hover { border-color: var(--mut); color: var(--tx); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 50px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 42px; padding: 0; }
.btn[aria-disabled] { opacity: .6; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: none; border: 0; color: var(--mut); }
.icon-btn:hover { color: var(--tx); background: var(--card2); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .ic { width: 17px; height: 17px; }
.icon-btn.big { width: 46px; height: 46px; background: var(--tx); color: var(--bg); }
.icon-btn.big:hover { background: var(--tx); color: var(--bg); transform: scale(1.05); }
.icon-btn.on, [data-liked] { color: var(--red) !important; }
[data-liked] .ic, .pl-like.on .ic { fill: currentColor; }

/* ===== 側欄 ===== */
.side { grid-area: side; background: var(--bg2); border-right: 1px solid var(--line); padding: 14px 12px 100px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.nav-g { display: grid; gap: 2px; }
.nav-h { font-size: 12px; color: var(--mut); padding: 6px 12px; letter-spacing: .08em; }
.nav-i { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--mut); font-weight: 500; }
.nav-i:hover { background: var(--card); color: var(--tx); }
.nav-i.on { background: var(--card2); color: var(--tx); }
.nav-i.on .ic { color: var(--red); }
.side-cta { margin-top: 4px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--red), #9d1f12); color: #fff; display: grid; gap: 2px; }
.side-cta:hover { color: #fff; filter: brightness(1.08); }
.side-cta span { font-size: 13px; opacity: .9; }
.side-f { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 12px; font-size: 12px; color: var(--mut); }

/* ===== 主內容 ===== */
main { grid-area: main; overflow-y: auto; padding: 28px 36px 120px; outline: 0; scroll-behavior: smooth; }
main.loading { opacity: .55; transition: opacity .2s .1s; }
.ph { margin-bottom: 24px; display: grid; gap: 8px; }
.ph.center { text-align: center; justify-items: center; }
.ph h1 { font-size: 32px; letter-spacing: .01em; }
.ph p { color: var(--mut); margin: 0; max-width: 720px; }
.kicker { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: .12em; margin: 0; }

.promo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: 36px; border-radius: 22px; margin-bottom: 30px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(232,65,47,.28), transparent 55%), var(--card); border: 1px solid var(--line); }
.promo h1 { font-size: clamp(28px, 3.4vw, 44px); margin: 8px 0 12px; letter-spacing: .01em; }
.promo p { color: var(--mut); margin: 0 0 20px; max-width: 560px; }
.promo-f { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promo-f li { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.promo-f b { display: flex; align-items: center; gap: 8px; }
.promo-f b .ic { color: var(--red); }
.promo-f span { color: var(--mut); font-size: 14px; padding-left: 28px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.row { margin: 0 0 34px; }
.row-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.row-h h2 { font-size: 21px; }
.more { display: flex; align-items: center; gap: 2px; color: var(--mut); font-size: 14px; }
.more .ic { width: 16px; height: 16px; }

.cards { display: grid; gap: 18px; }
.cards.grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cards.scroll { grid-auto-flow: column; grid-auto-columns: 180px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.card { position: relative; scroll-snap-align: start; }
.card-a { display: grid; gap: 10px; }
.card .cv { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--card2); }
.card h3 { font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-s { margin: 2px 0 0; color: var(--mut); font-size: 13px; }
.play-fab { position: absolute; right: 10px; top: calc((100% - 70px) - 54px); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(6px); transition: .18s; }
.play-fab .ic { fill: currentColor; stroke: none; }
.card:hover .play-fab, .play-fab:focus-visible { opacity: 1; transform: none; }

.venues { display: flex; flex-wrap: wrap; gap: 10px; }
.venue { padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; }
.venue:hover { border-color: var(--red); color: var(--tx); }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gcard { padding: 18px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; min-height: 84px; align-content: end;
  background-image: linear-gradient(135deg, rgba(232,65,47,.16), transparent 60%); }
.gcard span { font-weight: 700; }
.gcard small { color: var(--mut); }
.gcard:hover { border-color: var(--red); color: var(--tx); }

/* ===== 歌單／專輯頁頭 ===== */
.hero { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: end; margin-bottom: 26px; }
.hero-cv { width: 220px; height: 220px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); background: var(--card2); }
.hero-b { display: grid; gap: 10px; }
.hero h1 { font-size: clamp(26px, 3vw, 40px); }
.hero-sub { margin: 0; color: var(--mut); }
.hero-d { margin: 0; color: var(--mut); max-width: 760px; font-size: 14px; }

/* ===== 曲目 ===== */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; }
.tr { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.tr:hover, .tr.now { background: var(--card); }
.tr.now .tr-t { color: var(--red); }
.tr-play { width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; color: var(--mut); display: grid; place-items: center; position: relative; }
.tr-play .ic { display: none; fill: currentColor; stroke: none; }
.tr:hover .tr-play .ic, .tr-play:focus-visible .ic { display: block; color: var(--tx); }
.tr:hover .tr-n, .tr-play:focus-visible .tr-n { display: none; }
.tr-n { font-variant-numeric: tabular-nums; font-size: 14px; }
.tr-main { display: grid; min-width: 0; }
.tr-t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-a { color: var(--mut); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-d { color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; }
.tr-x { display: flex; gap: 2px; opacity: .25; transition: opacity .15s; }
.tr:hover .tr-x, .tr-x:focus-within { opacity: 1; }
.tr-x [data-liked] { opacity: 1; }
.empty { color: var(--mut); padding: 24px 0; }
.empty.big { text-align: center; padding: 80px 20px; display: grid; gap: 12px; justify-items: center; }
.empty.big h1 { font-size: 26px; color: var(--tx); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0; color: var(--mut); }

/* ===== 方案 ===== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 34px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.rec { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan h2 { font-size: 19px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 34px; letter-spacing: -.02em; }
.price span, .price-n { color: var(--mut); font-size: 14px; margin: 0; }
.plan-d { color: var(--mut); font-size: 14px; margin: 0; white-space: pre-line; }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; flex: 1; font-size: 14px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ic { color: var(--red); width: 18px; height: 18px; margin-top: 2px; }

.faq-mini { max-width: 820px; margin: 10px 0 30px; display: grid; gap: 8px; }
.faq-mini h2 { font-size: 20px; margin-bottom: 6px; }
.faq-mini details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq-mini summary { cursor: pointer; font-weight: 600; }
.faq-mini p { margin: 8px 0 0; color: var(--mut); }

/* ===== 自訂頁面 ===== */
.page { max-width: 860px; }
.page h1 { font-size: 30px; margin-bottom: 18px; }
.prose { line-height: 1.85; overflow-wrap: anywhere; }
.prose img { height: auto; border-radius: 12px; margin: 12px 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.prose iframe { max-width: 100%; border: 0; border-radius: 12px; }

/* ===== 表單 ===== */
.auth { max-width: 420px; margin: 20px auto; display: grid; gap: 16px; }
.auth h1 { text-align: center; font-size: 26px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--mut); }
.form label.chk { display: flex; align-items: center; gap: 8px; }
.form label.chk a { color: var(--red); }
.form input:not([type=checkbox]), .form select, .form textarea, .afilter input, .modal input, .modal select {
  height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--tx); padding: 0 12px; font: inherit; width: 100%; }
.form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--red); }
.form input:disabled { opacity: .6; }
.form-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--red); }
.form-msg.ok { color: #3fb27f; }
.or { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.acct { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; align-items: start; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 12px; margin-bottom: 18px; }
.box h2 { font-size: 18px; }
.big-plan { font-size: 24px; font-weight: 800; margin: 0; color: var(--red); }
.subs ul { padding-left: 18px; color: var(--mut); font-size: 14px; }
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--red); background: rgba(232,65,47,.08); margin-bottom: 18px; }
.notice .ic { color: var(--red); }

/* ===== 後台 ===== */
.atabs { display: flex; gap: 6px; flex-wrap: wrap; }
.atabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); }
.atabs a.on { background: var(--red); color: #fff; border-color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; }
.stat b { font-size: 26px; }
.stat span { color: var(--mut); font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--mut); font-weight: 500; }
.tbl a { color: var(--red); }
.afilter { display: flex; gap: 8px; max-width: 480px; margin-bottom: 14px; }

/* ===== 定時播放 ===== */
.sched-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.sched-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sched-tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; }
.sched-tabs button.on { background: var(--card2); border-color: var(--mut); }
.sched-tabs .live { color: var(--red); font-size: 12px; margin-left: 4px; }
.week { display: grid; grid-template-columns: 52px repeat(7, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); position: relative; }
.week-h { padding: 10px 4px; text-align: center; font-size: 13px; color: var(--mut); border-bottom: 1px solid var(--line); background: var(--bg2); }
.week-h.today { color: var(--red); font-weight: 700; }
.week-t { position: relative; border-right: 1px solid var(--line); }
.week-t span { position: absolute; right: 6px; font-size: 11px; color: var(--mut); transform: translateY(-50%); }
.week-d { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hr) - 1px), var(--line) calc(var(--hr) - 1px) var(--hr)); cursor: copy; }
.slot { position: absolute; left: 3px; right: 3px; border-radius: 8px; background: var(--red); color: #fff; padding: 4px 6px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; border: 0; text-align: left; }
.slot small { display: block; opacity: .85; }
.slot.k-album { background: #3a7bd5; }
.slot.k-genre { background: #2f9e6e; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: #ffd23f; z-index: 2; pointer-events: none; }
.sched-list { display: none; }

/* ===== 對話框 ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; width: min(460px, 100%); max-height: 86dvh; overflow-y: auto; display: grid; gap: 12px; box-shadow: var(--shadow); }
.modal h2 { font-size: 19px; }
.modal .days { display: flex; gap: 6px; flex-wrap: wrap; }
.modal .days label { display: flex; align-items: center; justify-content: center; width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.modal .days input { display: none; }
.modal .days label:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal label { display: grid; gap: 4px; font-size: 14px; color: var(--mut); }
.modal .chk { display: flex; align-items: center; gap: 8px; }
.modal .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.pick { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.pick button { text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; background: var(--bg2); display: flex; justify-content: space-between; gap: 8px; }
.pick button small { color: var(--mut); flex: none; }
.pick button.on { border-color: var(--red); }
.plist { display: grid; gap: 6px; }
.plist button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); }
.plist button:hover { border-color: var(--red); }

/* ===== 播放器 ===== */
.player { position: fixed; left: 0; right: 0; bottom: 0; height: 78px; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 16px; padding: 0 18px;
  background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.pl-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-art { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--card2); }
.pl-meta { display: grid; min-width: 0; }
.pl-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.pl-ctl { display: grid; justify-items: center; gap: 2px; }
.pl-btns { display: flex; align-items: center; gap: 6px; }
.pl-btns .big .ic { fill: currentColor; stroke: none; }
.pl-seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.pl-bar, .pl-vol { flex: 1; accent-color: var(--red); height: 4px; cursor: pointer; }
.pl-r { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.pl-vol { max-width: 110px; }
.pl-sched { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-size: 12px; padding: 4px 10px; border: 1px solid var(--red); border-radius: 999px; margin-right: 6px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sched .ic { width: 15px; height: 15px; }
[data-act=shuffle].on, [data-act=repeat].on { color: var(--red); }
.queue { position: fixed; right: 16px; bottom: 88px; width: min(380px, calc(100vw - 32px)); max-height: 60dvh; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; z-index: 45; }
.queue-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.queue-l { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.queue-l li { padding: 7px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.queue-l li small { color: var(--mut); }
.queue-l li:hover { background: var(--card2); }
.queue-l li.now { color: var(--red); }
body:has(.player:not([hidden])) main { padding-bottom: 130px; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--tx); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 70; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.foot { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mut); font-size: 13px; display: grid; gap: 8px; }
.foot-l { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tabbar { display: none; }
.only-m { display: none !important; }

/* ===== 平板 ===== */
@media (max-width: 1100px) {
  body { grid-template-columns: 200px 1fr; }
  .logo { width: auto; }
  main { padding: 24px 24px 120px; }
  .promo { grid-template-columns: 1fr; }
}
/* ===== 手機 ===== */
@media (max-width: 760px) {
  body { grid-template: "top" 56px "main" 1fr / 1fr; }
  .only-m { display: inline-grid !important; }
  .top { padding: 0 8px 0 4px; gap: 6px; }
  .logo-tw { display: none; }
  .logo-tx { font-size: 15px; }
  .logo-149 { font-size: 21px; }
  .top .search { display: none; }
  .page-search { display: flex !important; max-width: none; }
  .top-r .btn.ghost { display: none; }
  .side { position: fixed; top: 56px; bottom: 0; left: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .22s; box-shadow: var(--shadow); }
  body.nav-open .side { transform: none; }
  main { padding: 18px 16px 150px; }
  .ph h1 { font-size: 26px; }
  .promo { padding: 22px; border-radius: 18px; }
  .promo-f span { padding-left: 0; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .hero-cv { width: 200px; height: 200px; }
  .hero .hero-act { justify-content: center; }
  .cards.grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cards.scroll { grid-auto-columns: 42%; }
  .play-fab { opacity: 1; transform: none; width: 40px; height: 40px; top: auto; bottom: 62px; right: 8px; }
  .tr { grid-template-columns: 36px 1fr auto; padding: 6px 2px; }
  .tr-d { display: none; }
  .tr-x { opacity: 1; }
  .tr-x .icon-btn.sm { width: 34px; height: 34px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg2); border-top: 1px solid var(--line); z-index: 41; }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11px; color: var(--mut); }
  .player { bottom: calc(58px + env(safe-area-inset-bottom)); height: 64px; grid-template-columns: 1fr auto; padding: 0 8px 0 10px; gap: 6px; }
  .pl-art { width: 44px; height: 44px; }
  .pl-like, .pl-r, .pl-seek, .pl-btns [data-act=shuffle], .pl-btns [data-act=repeat], .pl-btns [data-act=prev] { display: none; }
  .pl-btns .big { width: 42px; height: 42px; }
  .player::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: var(--prog, 0%); background: var(--red); }
  .pl-r.m-show { display: flex; position: absolute; right: 8px; top: -44px; }
  .queue { bottom: 140px; }
  .toast { bottom: 140px; }
  .week { grid-template-columns: 40px repeat(7, minmax(44px, 1fr)); overflow-x: auto; }
  .slot { font-size: 11px; padding: 3px 4px; }
  .slot small { display: none; }
  .acct { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 試聽結束提示 */
.pv-end { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 75; width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--tx); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.pv-end p { margin: 0 0 12px; line-height: 1.6; }
.pv-end div { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .pv-end { bottom: 150px; } }

/* ===== 首頁主視覺：一日節奏（精簡版＋天空動畫）===== */
.dayhero { position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 18px; padding: 32px 32px 18px; color: #f4f2f7;
  background-color: var(--bg); border: 1px solid rgba(244,242,247,.08); transition: background-color 1s ease; display: grid; gap: 16px; }
.dh-main, .dh-slots, .dh-foot, .dh-act { position: relative; z-index: 1; }
.dh-main { max-width: 640px; }
.dh-k { margin: 0; font-size: 13px; letter-spacing: .16em; color: rgba(244,242,247,.72); }
.dayhero h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.25; font-weight: 900; margin: 8px 0 0; }
.dh-sub { margin: 6px 0 0; font-size: 16px; color: rgba(244,242,247,.85); }
.dh-149 { font-style: italic; font-weight: 900; color: var(--ac); transition: color .8s; }
.dh-now { margin: 14px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.dh-now.fade { animation: dhFade .45s cubic-bezier(.2,.8,.2,1); }
@keyframes dhFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dh-t { font-size: 24px; font-weight: 700; color: var(--ac); transition: color .8s; font-variant-numeric: tabular-nums; }
.dh-l { font-size: 17px; font-weight: 700; }
.dh-m { font-size: 14px; color: rgba(244,242,247,.78); }
.dh-slots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.dh-slot { position: relative; min-height: 52px; padding: 6px 4px; border-radius: 12px; border: 1px solid rgba(244,242,247,.22); background: rgba(0,0,0,.12); color: #f4f2f7;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: background .25s, color .25s, border-color .25s, transform .15s; }
.dh-slot b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.dh-slot span { font-size: 14px; }
.dh-slot:hover { border-color: rgba(244,242,247,.6); transform: translateY(-1px); }
.dh-slot[aria-pressed="true"] { background: #f4f2f7; color: #16151b; border-color: #f4f2f7; }
.dh-foot { margin: 0 -32px; padding: 0 32px; }
.dh-bars { height: 46px; display: flex; align-items: flex-end; gap: 3px; }
.dh-bars i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: rgba(244,242,247,.16); transform-origin: 50% 100%;
  animation: dhSway 1.3s ease-in-out infinite alternate; transition: height .8s cubic-bezier(.2,.8,.2,1), background-color .8s; }
.dh-bars i.hi { background: var(--ac); }
@keyframes dhSway { from { transform: scaleY(.6); } to { transform: scaleY(1); } }
.dh-axis { position: relative; height: 26px; border-top: 1px solid rgba(244,242,247,.25); display: flex; justify-content: space-between; align-items: flex-end; font-size: 11px; color: rgba(244,242,247,.62); font-variant-numeric: tabular-nums; }
.dh-mk { position: absolute; top: -6px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 4px rgba(255,255,255,.12); transition: left .8s cubic-bezier(.2,.9,.2,1.1), background-color .8s; }
.dh-act { display: flex; align-items: center; gap: 12px; }
.dh-act .btn.ghost { color: #f4f2f7; border-color: rgba(244,242,247,.35); }
.dh-tip { font-size: 13px; color: rgba(244,242,247,.7); }
/* 天空：太陽、月亮、雲、星星 */
.dh-sky { position: absolute; top: 0; right: 0; width: 46%; height: 62%; pointer-events: none; }
.dh-sun, .dh-moon { position: absolute; display: block; border-radius: 50%; transform: translate(-50%, -50%);
  transition: left 1.4s cubic-bezier(.3,.8,.3,1), top 1.4s cubic-bezier(.3,.8,.3,1), opacity 1s, background-color 1s, box-shadow 1s; }
.dh-sun { left: var(--sx); top: var(--sy); width: 64px; height: 64px; background-color: var(--sc); opacity: var(--sun);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--sc) 22%, transparent), 0 0 60px 10px color-mix(in srgb, var(--sc) 45%, transparent); animation: dhGlow 4s ease-in-out infinite; }
@keyframes dhGlow { 50% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--sc) 14%, transparent), 0 0 80px 16px color-mix(in srgb, var(--sc) 35%, transparent); } }
.dh-moon { left: var(--mx); top: var(--my); width: 46px; height: 46px; background: transparent; box-shadow: inset -13px 7px 0 0 #f1ecd9; opacity: var(--moon); filter: drop-shadow(0 0 12px rgba(241,236,217,.45)); }
.dh-cloud { position: absolute; display: block; width: 96px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.82); opacity: var(--cloud); transition: opacity 1s; animation: dhDrift 46s linear infinite; }
.dh-cloud::before, .dh-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.dh-cloud::before { width: 42px; height: 42px; left: 14px; top: -20px; }
.dh-cloud::after { width: 30px; height: 30px; left: 46px; top: -13px; }
.dh-cloud.c1 { top: 30%; animation-delay: -6s; }
.dh-cloud.c2 { top: 58%; transform: scale(.7); animation-duration: 62s; animation-delay: -30s; }
.dh-cloud.c3 { top: 12%; transform: scale(.55); animation-duration: 75s; animation-delay: -50s; }
@keyframes dhDrift { from { left: -20%; } to { left: 105%; } }
.dh-stars { position: absolute; inset: 0; opacity: var(--star); transition: opacity 1.2s; }
.dh-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: dhTw 3s ease-in-out infinite; }
@keyframes dhTw { 50% { opacity: .2; } }
.promo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 30px; }
@media (max-width: 1280px) { .dh-slots { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dayhero { padding: 22px 16px 14px; border-radius: 16px; }
  .dh-foot { margin: 0 -16px; padding: 0 16px; }
  .dh-sky { width: 70%; height: 46%; opacity: .55; }
  .dh-slots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .dh-bars i:nth-child(n+33) { display: none; }
  .dh-axis span:nth-child(even) { display: none; }
  .dh-hint { font-size: 12px; }
  .promo-row { grid-template-columns: 1fr; }
}
/* 提示：可點時段試聽；播放中的時段顯示小音頻圖示 */
.dh-hint { margin: 0; display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 13px; color: #16151b; background: var(--ac); padding: 5px 12px 5px 8px; border-radius: 999px; transition: background-color .8s, opacity .4s; animation: dhNudge 2.2s ease-in-out infinite; }
.dh-hint .ic { width: 14px; height: 14px; }
@keyframes dhNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.dayhero.used .dh-hint { opacity: 0; pointer-events: none; animation: none; }
.dh-pi { position: absolute; top: 5px; right: 6px; opacity: .55; transition: opacity .2s; }
.dh-pi .ic { width: 11px; height: 11px; display: block; }
.dh-slot:hover .dh-pi { opacity: 1; }
.dayhero:not(.used) .dh-slot .dh-pi { animation: dhPing 2.2s ease-in-out infinite; }
@keyframes dhPing { 50% { opacity: 1; transform: scale(1.25); } }
.dh-eq { position: absolute; top: 6px; right: 6px; display: none; align-items: flex-end; gap: 2px; height: 11px; }
.dh-eq u { display: block; width: 2px; height: 100%; background: currentColor; transform-origin: 50% 100%; animation: dhEq .8s ease-in-out infinite alternate; }
.dh-eq u:nth-child(2) { animation-delay: -.3s; } .dh-eq u:nth-child(3) { animation-delay: -.55s; }
@keyframes dhEq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.dh-slot.live .dh-eq { display: flex; color: var(--red); }
.dh-slot.live .dh-pi { display: none; }
.dh-slot.live.paused .dh-eq u { animation-play-state: paused; }
.dh-slot.live:not([aria-pressed="true"]) { border-color: var(--ac); }
.dh-slot.live:not([aria-pressed="true"]) .dh-eq { color: var(--ac); }
@media (prefers-reduced-motion: reduce) { .dh-hint, .dh-pi, .dh-eq u { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .dh-bars i, .dh-now.fade, .dh-sun, .dh-cloud, .dh-stars i { animation: none; } .dayhero, .dh-mk, .dh-bars i, .dh-sun, .dh-moon { transition: none; } }

/* ===== 下載 App ===== */
.apphero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 36px 32px; border-radius: 20px; background: radial-gradient(120% 140% at 85% 20%, rgba(232,65,47,.22), transparent 60%), var(--card); border: 1px solid var(--line); margin-bottom: 24px; }
.apphero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; margin: 6px 0 14px; letter-spacing: .01em; }
.apphero p { color: var(--mut); line-height: 1.8; max-width: 34em; }
.ap-act { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ap-ok { display: inline-flex; gap: 8px; align-items: center; color: #4ccf8a; font-weight: 600; }
.ap-phone { justify-self: center; width: 190px; aspect-ratio: 9/18; border-radius: 30px; border: 6px solid #2b2b36; background: #0d0d12; box-shadow: var(--shadow); display: grid; place-items: center; }
.ap-scr { display: grid; justify-items: center; gap: 8px; color: #eee; }
.ap-ico img { border-radius: 16px; display: block; box-shadow: 0 6px 18px rgba(232,65,47,.35); animation: apPop 2.6s ease-in-out infinite; }
.ap-eq { display: flex; gap: 3px; height: 18px; align-items: flex-end; margin-top: 6px; }
.ap-eq i { width: 4px; background: var(--red); border-radius: 2px; animation: apEq 1s ease-in-out infinite; }
.ap-eq i:nth-child(2) { animation-delay: .15s } .ap-eq i:nth-child(3) { animation-delay: .3s } .ap-eq i:nth-child(4) { animation-delay: .45s } .ap-eq i:nth-child(5) { animation-delay: .6s }
@keyframes apEq { 0%,100% { height: 4px } 50% { height: 18px } }
@keyframes apPop { 0%,100% { transform: scale(1) } 50% { transform: scale(1.06) } }
.apptabs { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; }
.ap-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.ap-tabs button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mut); font: inherit; cursor: pointer; }
.ap-tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.ap-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ap-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ap-steps b { display: block; } .ap-steps b .ic { width: 16px; height: 16px; vertical-align: -2px; }
.ap-steps small { display: block; color: var(--mut); margin-top: 3px; line-height: 1.6; }
.ap-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--red); font-weight: 700; }
.ap-pc { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.ap-pc figure { margin: 0; text-align: center; } .ap-pc figcaption { color: var(--mut); font-size: 13px; margin-top: 6px; }
.qr { width: 160px; height: 160px; border-radius: 10px; display: block; }
.appfeat { margin-bottom: 24px; } .appfeat h2 { font-size: 20px; margin-bottom: 12px; }
.appfeat ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.appfeat li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.appfeat li > .ic { flex: none; width: 22px; height: 22px; color: var(--red); }
.appfeat small { display: block; color: var(--mut); margin-top: 4px; line-height: 1.6; }
@media (max-width: 760px) {
  .apphero { grid-template-columns: 1fr; padding: 24px 18px; } .ap-phone { display: none; }
  .apptabs { padding: 16px; } .ap-pc { grid-template-columns: 1fr; } .ap-pc figure { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ap-eq i, .ap-ico img { animation: none; } }
/* 手機底部安裝提示列 */
.appbar { position: fixed; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); box-shadow: var(--shadow); animation: apIn .35s ease-out; }
.appbar img { border-radius: 9px; } .appbar div { flex: 1; min-width: 0; } .appbar b { display: block; font-size: 14px; } .appbar small { color: var(--mut); font-size: 12px; }
body:has(.player:not([hidden])) .appbar { bottom: calc(150px + env(safe-area-inset-bottom)); }
@keyframes apIn { from { transform: translateY(20px); opacity: 0 } }
/* 裝成 App 後：頂部留出瀏海安全區 */
.standalone .top { padding-top: env(safe-area-inset-top); }

/* 方案限時優惠、加購貼紙 */
.plan.on-sale { border-color: #f0a33a; }
.promo-tag { margin: 0; display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(240,163,58,.16); color: #f0a33a; font-size: 13px; font-weight: 600; }
.price del { color: var(--mut); font-size: 18px; }
.addon { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 14px; margin: -14px 0 30px; }
.addon > .ic { width: 26px; height: 26px; color: var(--red); flex: none; }
.addon div { flex: 1; } .addon b { display: block; } .addon span { color: var(--mut); font-size: 14px; }
.promo-f { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; }
@media (max-width: 760px) { .addon { flex-wrap: wrap; } }
