/* 000 官網首頁三款主題（A 影院 / B 漫畫 / C 檔案）＋漫畫閱讀頁。基本色票沿用 style.css 的 :root */

/* ---------- 主題切換 ---------- */
.theme-switch{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom, 0px));z-index:30;display:flex;align-items:center;gap:6px;padding:6px;background:rgba(5,6,7,.92);border:1px solid var(--line-2);font-family:var(--mono);font-size:12px}
.theme-switch span{color:var(--text-lo);padding:0 6px}
.theme-switch a{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;color:var(--text);border:1px solid transparent}
.theme-switch a:hover{border-color:var(--line-2);color:var(--text-hi)}
.theme-switch a.on{background:var(--acid);color:#000;font-weight:700}
.theme-switch-toggle{display:none;margin:0;border:0;background:var(--acid);color:#000;font:inherit;font-weight:700;cursor:pointer;min-width:40px;min-height:40px;padding:0 10px;align-items:center;justify-content:center}

/* ---------- BATCH4：影片區的 YouTube 頻道入口 ---------- */
.ha-channel-row{margin:0 0 16px;font-family:var(--mono);font-size:13px;letter-spacing:.06em}
.ha-channel{color:var(--acid);text-decoration:underline;text-underline-offset:3px}
.ha-channel:hover{color:var(--acid-soft)}

/* ---------- 共用：YouTube 縮圖 ---------- */
.yt{position:relative;display:block;width:100%;padding:0;border:1px solid var(--line-2);background:#050607;cursor:pointer;aspect-ratio:16/9;overflow:hidden;color:#000}
.yt img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s,opacity .3s;opacity:.85}
.yt:hover img,.yt:focus-visible img{transform:scale(1.03);opacity:1}
.yt-play{position:absolute;inset:0;margin:auto;width:64px;height:64px;border-radius:50%;background:var(--acid);display:flex;align-items:center;justify-content:center;box-shadow:0 0 30px rgba(57,255,20,.45)}
.yt-frame{width:100%;aspect-ratio:16/9;border:1px solid var(--line-2);display:block;background:#000}
.vgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.vcard{display:flex;flex-direction:column;gap:10px}
.vtitle{color:var(--text-hi);font-weight:700;line-height:1.5}
.ha-h{font-size:clamp(22px,2.4vw,28px);margin:0 0 18px}

/* ---------- A：影院首映 ---------- */
.ha-hero{border-top:0;padding:40px 0 0}
.ha-stage{margin-top:18px}
.yt-hero{aspect-ratio:16/9;border-color:var(--line-2)}
.yt-hero .ha-poster{opacity:.7}
.ha-overlay{position:absolute;inset:auto 0 0 0;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px;padding:clamp(16px,4vw,40px);background:linear-gradient(to top,rgba(0,0,0,.94),rgba(0,0,0,0));text-align:left}
.ha-copy{display:flex;flex-direction:column;gap:8px}
.ha-title{font-family:var(--display);font-weight:700;font-size:clamp(56px,9vw,104px);line-height:.9;color:#fff;letter-spacing:.06em}
.ha-tag{font-size:clamp(18px,2.6vw,30px);font-weight:900;color:#fff}
.ha-sub{font-size:15px;color:var(--text-mid)}
.ha-play{display:inline-flex;align-items:center;gap:10px;background:var(--acid);color:#000;font-weight:900;font-size:18px;padding:16px 26px;min-height:52px}
.ha-more{border-top:0;padding:48px 0 0}
.ha-comic{border-top:0;padding:72px 0 0}
.ha-comic-row{display:flex;flex-wrap:wrap;gap:40px;align-items:center;border-top:1px solid var(--line);padding-top:56px}
.ha-cover img{width:300px;max-width:100%;aspect-ratio:993/1404;object-fit:cover;border:1px solid var(--line-2);box-shadow:0 0 60px rgba(57,255,20,.15);display:block}
.ha-comic-copy{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px}
.ha-thumbs{display:flex;gap:12px}
.ha-thumbs img{width:110px;aspect-ratio:993/1404;object-fit:cover;border:1px solid var(--line-2);display:block}
.ha-cta{border-top:0;padding:80px 0 96px}
.ha-cta-box{border:1px solid var(--acid);padding:clamp(24px,4vw,48px);display:flex;flex-wrap:wrap;gap:28px;align-items:center;justify-content:space-between}
.ha-cta-box > div:first-child{flex:999 1 480px;min-width:0;display:flex;flex-direction:column;gap:12px}
.ha-cta-box h2{font-size:clamp(26px,3vw,36px)}

/* ---------- B：漫畫優先 ---------- */
body.home-b{background:#07070A}
.hb-hero{border-top:0;padding:40px 0 64px}
.hb-row{display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.hb-stack{position:relative;flex:1 1 380px;min-width:0;height:clamp(420px,40vw,560px);display:block}
.hb-stack img{position:absolute;aspect-ratio:993/1404;object-fit:cover;border:3px solid #F1F1F4;display:block}
.hb-stack .s1{left:0;top:0;width:min(380px,70%);box-shadow:14px 14px 0 #FF4FD8}
.hb-stack .s2{left:16%;top:20px;width:min(340px,62%);transform:rotate(-4deg);opacity:.8}
.hb-stack .s3{left:30%;top:40px;width:min(330px,60%);transform:rotate(7deg);opacity:.55}
.hb-copy{flex:999 1 440px;min-width:0;display:flex;flex-direction:column;gap:20px}
.hb-badge{align-self:flex-start;background:#FF4FD8;color:#07070A;font-weight:900;padding:6px 12px;font-size:14px;transform:rotate(-2deg)}
.hb-copy h1{margin:0;font-size:clamp(36px,5.5vw,72px);line-height:1.1;font-weight:900;color:#F1F1F4}
.hb-main{background:#F1F1F4;color:#07070A;font-weight:900;box-shadow:6px 6px 0 var(--acid);border-color:#F1F1F4}
.hb-main:hover{background:#fff;color:#000}
.hb-small{margin:0;color:var(--text-mid);font-size:14px}
.hb-small a{color:#FF8BE6}
.hb-peek{border-top:0;padding:0 0 64px}
.hb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.hb-grid a{display:block;border:3px solid #F1F1F4;height:320px;overflow:hidden}
.hb-grid img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;transition:transform .4s}
.hb-grid a:hover img{transform:scale(1.04)}
.hb-videos{padding:56px 0;background:#111117;border-top:3px solid #F1F1F4;border-bottom:3px solid #F1F1F4}
.hb-yt{border:3px solid #F1F1F4}
.hb-yt .yt-play{background:#FF4FD8}
.hb-steps{border-top:0;padding:72px 0 96px}
.hb-steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.hb-step{border:3px solid #F1F1F4;padding:28px;display:flex;flex-direction:column;gap:10px;color:var(--text)}
.hb-step b{color:#F1F1F4;font-size:20px}
.hb-step .n{font-family:var(--display);font-size:40px;color:var(--acid)}
.hb-step.on{border-color:var(--acid);box-shadow:8px 8px 0 var(--acid)}
.hb-step .btn{align-self:flex-start;margin-top:8px}

/* ---------- C：機密檔案 ---------- */
.hc-hero{border-top:0;padding:72px 0 40px}
.hc-mono,.hc-bar,.hc-status,.hc-term{font-family:var(--mono)}
.hc-mono{font-size:13px;color:var(--text-lo)}
.hc-title{margin:16px 0 0;font-family:var(--display);font-size:clamp(80px,12vw,140px);line-height:.9;letter-spacing:.08em;color:#fff}
.hc-h{margin:16px 0 8px;font-size:clamp(20px,2.4vw,26px);font-weight:700;color:var(--text-hi);max-width:760px}
.hc-files{border-top:0;padding:0 0 64px}
.hc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}
.hc-file{border:1px solid var(--line-2);display:flex;flex-direction:column;background:#000}
.hc-file.on{border-color:var(--acid)}
.hc-bar{display:flex;justify-content:space-between;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line-2);font-size:12px;color:var(--text-mid)}
.hc-file.on .hc-bar{border-color:var(--acid);color:var(--acid)}
.g{color:var(--acid)}
.hc-yt{border:0;border-bottom:1px solid var(--line-2)}
.hc-file .yt-frame{border:0}
.hc-pages{aspect-ratio:16/10;display:flex;gap:6px;padding:12px;background:#0A0C0E;overflow:hidden}
.hc-pages img{height:100%;aspect-ratio:993/1404;object-fit:cover;display:block}
.hc-pages img:nth-child(2){opacity:.8}.hc-pages img:nth-child(3){opacity:.6}
.hc-term{aspect-ratio:16/10;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:24px;font-size:14px;background:#050806;color:var(--text)}
.hc-body{padding:20px;display:flex;flex-direction:column;gap:12px;flex:1}
.hc-body h2{font-size:22px}
.hc-body p{margin:0;color:var(--text-mid);line-height:1.7}
.hc-body .btns{margin-top:auto}
.hc-line{display:flex;align-items:center;gap:12px;min-height:48px;width:100%;padding:0;background:none;border:0;border-bottom:1px solid var(--line);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.hc-line:hover{color:var(--text-hi)}
.hc-line .g{font-family:var(--mono);flex:none}
.hc-status{display:flex;flex-wrap:wrap;gap:32px;margin-top:32px;padding-top:24px;border-top:1px dashed var(--line-2);font-size:13px;color:var(--text-mid)}
.hc-status b{color:var(--text-hi)}
.hc-status b.g{color:var(--acid)}

/* ---------- 漫畫閱讀頁 ---------- */
body.reader{background:#000}
.rd-bar{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:rgba(0,0,0,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);font-family:var(--mono);font-size:13px}
.rd-back{color:var(--text);min-height:40px;display:inline-flex;align-items:center}
.rd-eds,.rd-tools{display:flex;align-items:center;gap:6px}
.rd-eds a,.rd-btn,.rd-jump select{min-height:40px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid var(--line-2);color:var(--text);background:transparent;font:inherit;cursor:pointer}
.rd-eds a.on{background:var(--acid);color:#000;border-color:var(--acid);font-weight:700}
.rd-jump select{background:#000}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.rd-hint{margin:12px auto 0;max-width:900px;padding:0 16px;color:var(--text-lo);font-size:13px;font-family:var(--mono)}
.rd-pages{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 0 120px}
.rd-page{margin:0;width:min(900px,100%);scroll-margin-top:72px}
.rd-page img{width:100%;height:auto;display:block;background:#0A0C0E;aspect-ratio:993/1404}
body.rtl .rd-page img{aspect-ratio:1300/1839}
.rd-end{text-align:center;padding:48px 16px;display:flex;flex-direction:column;align-items:center;gap:16px;color:var(--text-hi);font-size:20px;font-weight:700}
.rd-tap{display:none}
body.reader.flip .rd-hint{display:block}
body.reader:not(.flip) .rd-hint{display:none}
body.reader.flip .rd-page{display:none}
body.reader.flip .rd-page.on{display:block;width:auto}
body.reader.flip .rd-page.on img{max-height:calc(100vh - 80px);width:auto;max-width:100vw;margin:0 auto}
body.reader.flip .rd-end{display:none}
body.reader.flip .rd-tap{display:block;position:fixed;top:64px;bottom:0;width:40%;background:transparent;border:0;cursor:pointer;z-index:10}
body.reader.flip .rd-left{left:0}
body.reader.flip .rd-right{right:0}

@media (max-width:640px){
  .theme-switch{left:8px;bottom:calc(8px + env(safe-area-inset-bottom, 0px));padding:4px}
  .theme-switch span{display:none}
  .theme-switch a{padding:0 8px}
  .yt-hero{aspect-ratio:4/5}
  .ha-overlay{padding:16px}
  .ha-thumbs img{width:30%}
  .hb-stack{height:480px}
  .hb-grid a{height:240px}
  .rd-bar{font-size:12px}
}

/* ---------- 原聲帶（首頁區塊＋music.php） ---------- */
.ost-sec{border-top:0;padding:72px 0 0}
.ost-row{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start;border-top:1px solid var(--line);padding-top:56px}
.ost-copy{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:14px}
.ost-copy h1,.ost-copy h2{font-size:clamp(28px,3.4vw,44px);margin:0}
.ost-by{margin:0;color:var(--text-lo);font-family:var(--mono);font-size:13px}
.ost-player{flex:1.4 1 420px;min-width:0;border:1px solid var(--line-2);background:#07090B;padding:18px;display:flex;flex-direction:column;gap:14px}
.ost-playing .ost-player{border-color:var(--acid);box-shadow:0 0 40px rgba(57,255,20,.12)}
.ost-now{display:flex;align-items:center;gap:10px}
.ost-btn{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);background:transparent;color:var(--text-hi);cursor:pointer}
.ost-btn svg{width:18px;height:18px;fill:currentColor}
.ost-btn:hover{border-color:var(--acid);color:var(--acid)}
.ost-play{width:56px;height:56px;background:var(--acid);border-color:var(--acid);color:#000}
.ost-play:hover{color:#000;box-shadow:0 0 24px rgba(57,255,20,.5)}
.ost-play svg{width:22px;height:22px}
.ost-play .i-pause,.ost-player.playing .ost-play .i-play{display:none}
.ost-player.playing .ost-play .i-pause{display:block}
.ost-title{min-width:0;display:flex;flex-direction:column;gap:2px;margin-left:6px}
.ost-no{font-family:var(--mono);font-size:12px;color:var(--acid);letter-spacing:.12em}
.ost-title b{font-size:20px;color:var(--text-hi);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ost-en{font-size:13px;color:var(--text-lo)}
.ost-bar{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;font-family:var(--mono);font-size:13px;color:var(--text-lo);font-variant-numeric:tabular-nums}
.ost-bar input{width:100%;accent-color:#39FF14}
.ost-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.ost-list button{width:100%;display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:12px 6px;min-height:52px;background:none;border:0;border-bottom:1px solid var(--line);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.ost-list button:hover{background:#0D1114}
.ost-list .n{font-family:var(--mono);color:var(--text-lo)}
.ost-list .t{min-width:0;display:flex;flex-direction:column;gap:2px}
.ost-list .t b{color:var(--text-hi);font-weight:700}
.ost-list .t small{color:var(--text-lo);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ost-list .d{font-family:var(--mono);color:var(--text-lo);font-size:13px}
.ost-list button[aria-current="true"]{background:rgba(57,255,20,.06)}
.ost-list button[aria-current="true"] .n,.ost-list button[aria-current="true"] .t b{color:var(--acid)}

.music-page main{padding-bottom:96px}
.mp-brand{font-family:var(--mono);font-size:13px;color:var(--acid);letter-spacing:.14em}
.mp-hero{border-top:0;padding:32px 0 0}
.mp-hero .ost-row{border-top:0;padding-top:0}
.mp-tracks{border-top:0;padding:56px 0 0}
.mp-tracks .wrap{display:flex;flex-direction:column;gap:24px}
.mp-card{border:1px solid var(--line-2);background:#07090B;padding:clamp(18px,3vw,32px);display:flex;flex-direction:column;gap:14px;scroll-margin-top:80px}
.mp-card.is-current{border-color:var(--acid)}
.mp-card-head{display:flex;gap:16px;align-items:center}
.mp-playbtn{flex:none;width:52px;height:52px;border-radius:50%;border:1px solid var(--acid);background:transparent;color:var(--acid);display:grid;place-items:center;cursor:pointer}
.mp-playbtn svg{width:20px;height:20px;fill:currentColor}
.mp-playbtn:hover,.mp-card.is-current .mp-playbtn{background:var(--acid);color:#000}
.mp-no{font-family:var(--mono);font-size:12px;color:var(--text-lo);letter-spacing:.12em}
.mp-card h2{margin:2px 0;font-size:clamp(22px,2.6vw,30px)}
.mp-card h2 small{font-size:15px;color:var(--text-lo);font-weight:500;margin-left:10px}
.mp-meta{font-family:var(--mono);font-size:13px;color:var(--acid)}
.mp-sum{margin:0;line-height:1.85;color:var(--text-hi);max-width:72ch}
.mp-inst{margin:0;color:var(--text-mid);font-size:14px;line-height:1.7}
.mp-inst b{color:var(--text-lo);font-weight:500;margin-right:10px;font-family:var(--mono);font-size:12px;letter-spacing:.1em}
.mp-h3{margin:6px 0 0;font-size:14px;color:var(--text-lo);font-weight:500}
.mp-cues,.mp-lyrics ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.mp-cues button,.mp-lyrics button{width:100%;display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:baseline;padding:9px 6px;min-height:44px;background:none;border:0;border-bottom:1px solid var(--line);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.mp-cues button:hover,.mp-lyrics button:hover{background:#0D1114}
.mp-cues .tm,.mp-lyrics .tm{font-family:var(--mono);font-size:13px;color:var(--acid)}
.mp-lyrics,.mp-sheet{border-top:1px solid var(--line);padding-top:10px}
.mp-lyrics summary,.mp-sheet summary{cursor:pointer;color:var(--text-hi);font-weight:700;padding:8px 0;min-height:44px;display:flex;align-items:center}
.mp-lyrics .part{font-family:var(--mono);font-size:12px;color:var(--text-lo);letter-spacing:.12em;padding:14px 6px 4px}
.mp-lyrics .ln{display:flex;flex-direction:column;gap:2px;color:var(--text-mid)}
.mp-lyrics .ln small{color:var(--text-lo);font-size:13px}
.mp-lyrics button.on .ln{color:#fff}
.mp-lyrics button.on{background:rgba(57,255,20,.07)}
.mp-sheet img{width:100%;height:auto;background:#fbf9f4;border:1px solid var(--line-2);display:block;margin-top:8px}
.mp-end{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;padding-top:24px}
@media (max-width:560px){
  .ost-player{padding:14px}
  .ost-title b{font-size:17px}
  .mp-card h2 small{display:block;margin:2px 0 0}
}

/* ---------- 首屏縮小到 60%（2026-10-29），讓生活點滴在第一屏就看得到 ---------- */
@media (min-width:861px){
  .ha-stage{width:60%;margin-left:auto;margin-right:auto}
  .ha-stage .ha-title{font-size:clamp(44px,5.4vw,64px)}
  .ha-stage .ha-tag{font-size:clamp(16px,1.6vw,20px)}
  .ha-stage .ha-sub{font-size:13px}
  .ha-stage .ha-play{transform:scale(.85);transform-origin:right bottom}
  .ha-stage .ha-overlay{padding:24px}
  .ha-hero + .lf-sec,.hb-hero + .lf-sec{padding-top:20px}
}
.hb-hero{padding:32px 0 32px}
.hb-row{gap:40px}
.hb-stack{flex:0 1 300px;height:clamp(252px,24vw,336px)}
.hb-stack .s1{width:min(228px,70%);box-shadow:9px 9px 0 #FF4FD8}
.hb-stack .s2{top:12px;width:min(204px,62%)}
.hb-stack .s3{top:24px;width:min(198px,60%)}
.hb-copy h1{font-size:clamp(30px,3.6vw,48px)}
@media (max-width:640px){
  .hb-stack{height:300px;flex-basis:100%}
}

/* ---------- 原聲帶：正在播放的段落亮綠色（2026-10-30） ---------- */
.mp-cues button{transition:color .3s,background .3s,box-shadow .3s}
.mp-cues button.on{color:var(--acid);background:rgba(57,255,20,.07);box-shadow:inset 3px 0 0 var(--acid)}
.mp-cues button.on span:last-child{text-shadow:0 0 10px rgba(57,255,20,.45);font-weight:700}

/* BATCH5：寬度 480 以下，A/B/C 與語系切換都收成一顆 40px 按鈕，分置左下／右下，不再互相疊、也不再蓋住頁尾。
   點開後就地展開。頁尾與漫畫閱讀區底部留出按鈕＋安全區的空間。 */
@media (max-width:480px){
  .theme-switch{left:8px;bottom:calc(8px + env(safe-area-inset-bottom, 0px));padding:3px;z-index:30}
  .theme-switch-toggle{display:inline-flex}
  .theme-switch:not(.open) span,
  .theme-switch:not(.open) a{display:none}
  .theme-switch.open{gap:4px}
  .theme-switch.open .theme-switch-toggle{display:none}
  footer{padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px))}
  body.reader .rd-pages{padding-bottom:calc(88px + env(safe-area-inset-bottom, 0px))}
}
