@import url('https://fonts.googleapis.com/css2?family=Niconne&display=swap');
  *{margin:0;padding:0;box-sizing:border-box}
  :root{
    --wall:#4a0e0e;
    --wall-light:#5c1515;
    --wood:#2c1a0e;
    --wood-light:#3d2410;
    --wood-edge:#1a0f08;
    --cell:clamp(110px, 18vw, 165px);
    --gap:clamp(20px, 1.5vw, 20px);
  }
  
  html,body{
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;

    background:#1a0808;
    font-family:'Helvetica Neue',Arial,sans-serif;
    background: linear-gradient(rgb(10 4 4 / 31%), rgb(10 4 4 / 13%)), url(assets/wood-bg.jpg) center center / cover no-repeat;
    display: flex;
    flex-direction: column;
  }

  /* 隱藏網頁原本的滑鼠 */
  html, body, a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
  }
  *, *::before, *::after {
    cursor: none !important;
  }
  a, button, .cell {
    cursor: none;
  }

  /* 2. 甜甜圈滑鼠本體 */
  .vinyl-cursor {
    width: 30px;   
    height: 30px;  
    border: none; 
    background-color: transparent;
    background-image: url('assets/vinyl-cursor.svg');
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none !important; 
    cursor: none !important;         
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 100px;
  }

  /* 3. 旋轉動畫定義 */
  @keyframes vinylSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
  }

  /* 4. 動態 Class */
  .vinyl-cursor.moving {
    animation: vinylSpin 1s linear infinite; 
  }

  /* 4. 核心：外擴光暈輪廓 */
  .vinyl-cursor::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px; 
    border: 2px solid #ffffff6f; 
    border-radius: 50%;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
  }

  .vinyl-cursor.near-object::after {
    animation: pulseGlow 1.2s infinite ease-out;
  }

  @keyframes pulseGlow {
    0% {
      transform: scale(1);
      opacity: 0.8;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
      transform: scale(1.2); 
      opacity: 0;            
      box-shadow: 0 0 30px rgba(255, 255, 255, 0);
    }
  }

  /* HEADER */
  #header{
    width: 100%;
    padding: 20px;
    background: linear-gradient(180deg, rgb(26 8 8 / 80%) 20%, transparent);
    display: flex; align-items: baseline; gap: 14px;
    flex-shrink: 0; 
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    position: fixed;
    z-index: 1000;
  }

  #header p{font-size:13px;letter-spacing:.25em;text-transform:uppercase;color:rgba(255,255,255,.35);font-weight:400}
  #header span{font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,80,50,.5)}
  #header img{width: 50px;}

  /* ==========================================================================
     🎯 修正後：置頂招牌（支援磨砂毛玻璃半透明背景與RWD縮放）
     ========================================================================== */
  .sign {
    position: absolute;        
    top: 0;                 
    left: 0;
    width: 100%;
    height: auto;           /* 💡 高度改由圖片內部尺寸自然撐開，更有彈性 */
    display: flex;
    align-items: center;     
    justify-content: center; 
    z-index: 100;           
    opacity: 0;
    animation: slideDownFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1.2s forwards;
  }

  /* 🎯 修正後：放大且支援手機版自動縮小的招牌圖片 */
  .sign img {
    /* 💡 使用 clamp 設定大小：手機版最小 110px，電腦版最大 200px，中間隨視窗大小自適應縮放 */
    height: clamp(110px, 15vh, 200px);           
    width: auto;
    object-fit: contain;
    box-shadow: 7px 8px 15px 3px rgba(0, 0, 0, 0.3);
  }

  /* 🎯 修正後：完美 Sticky Footer 與安全的內容頂部間距 */
  #wall {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 💡 核心：將內容拉伸，把 footer 強制推到底部 */
    align-items: center;
    min-height: calc(100vh - 90px);
    padding-top: 150px;
    padding-bottom: 90px;
  }

  /* 手機版視窗較小時，招牌自動縮小，同步減少上方安全邊距 */
  @media(max-width: 640px) {
    #wall {
      padding-top: 150px; /* 手機版專屬安全邊距 */
    }
  }

  .wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; /* 💡 核心：吃掉中間所有剩餘空間，完成置底 */
    justify-content: center;
  }

  .title{
    padding-bottom: 20px;
    flex-shrink: 0;
    animation: slideDownFade 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

  @media(max-width:640px){
    .title{ width: 50%; }
  }

  @keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  .title h1 {
    font-size: 60px;
    text-align: center;
    color: #fff;
    font-family: 'Niconne', cursive;
    font-weight: 800;
    text-transform: lowercase;
    line-height: 0.5;
    animation: neon-flicker 1.5s infinite alternate;
    text-shadow: 
        3px 3px 0px #eb452b, 
        6px 6px 0px #efa032, 
        9px 9px 0px #46b59b;
    filter: 
    drop-shadow(3px 0px 0px #8b2515) 
    drop-shadow(-3px 0px 0px #8b2515) ;
  }

  /* GRID - 唱片牆區塊 */
  #grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, var(--cell));
    gap:var(--gap);
    padding:var(--gap);
    perspective:1200px;
    max-width:calc(5 * var(--cell) + 4 * var(--gap) + 2 * var(--gap));
    margin-bottom: 40px;
    /* 💡 核心修正：移除原來的 max-height 與隱藏滾動條，讓網頁跟著唱片數量自然延伸高度，解決 Footer 排版錯亂問題 */
    height: auto; 
    /* width: 100%; */
  }

  @media(max-width:640px){
    #grid{
      grid-template-columns:repeat(auto-fill, var(--cell));
      width:min(calc(3 * var(--cell) + 4 * var(--gap)), 100vw);
    }
  }
  @media(max-width:400px){
    #grid{
      width:min(calc(2 * var(--cell) + 3 * var(--gap)), 100vw);
    }
  }

  .cell {
    width: var(--cell);
    height: var(--cell);
    position: relative;
    transform-style: preserve-3d;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: opacity 0s ease, transform 2.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .cell.show {
    opacity: 1;
    transform: scale(1) translateY(0); 
  }

  .cell::after {
    content: '';
    position: absolute;
    bottom: -8px; 
    left: 0; right: 0;
    background: url(assets/bg-wall.webp);
    z-index: 0;
    transform: scaleX(-1);
    background-size: cover;
    height: 10px;
    box-shadow:-3px 0px 25px 7px rgba(0, 0, 0, .7);
  }

  .slot {
    position: absolute; inset: 0;
    background-image: url('assets/bg-wall.webp'); 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    border-radius: 3px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.5), inset 0 -1px 0 rgba(255,180,80,.08), 0 4px 12px rgba(0,0,0,.7);
    overflow: hidden;
  }
  .slot::after {
    content: ''; position: absolute;
    left: 0; right: 0; top: 30%; height: 1px;
    background: rgba(255,150,50,.04); 
  }

  /* ALBUM COVER */
  .cover{
    position:absolute; top:0px; bottom:0px;
    border-radius:2px; overflow:hidden;
    transition:.35s cubic-bezier(.22,.68,0,1.2),box-shadow .35s ease;
    box-shadow:4px 6px 18px rgba(0,0,0,.7),2px 3px 6px rgba(0,0,0,.5);
    transform-origin:bottom center;
    cursor: pointer;
  }
  .cover-img{
    width:100%;height:100%; object-fit:cover;
    filter:saturate(.9)contrast(1.05);
  }
  .cover::after{
    content:'';position:absolute;inset:0;
    background:
      repeating-linear-gradient(0deg,rgba(255,255,255,.015) 0,rgba(255,255,255,.015) 1px,transparent 1px,transparent 3px),
      repeating-linear-gradient(90deg,rgba(0,0,0,.02) 0,rgba(0,0,0,.02) 1px,transparent 1px,transparent 3px);
    pointer-events:none;
  }
  .sheen{
    position:absolute;inset:0;opacity:0;
    background:linear-gradient(125deg,transparent 30%,rgba(255,255,255,.18) 50%,transparent 70%);
    background-size:250% 250%; background-position:100% 100%;
    transition:opacity .3s,background-position .6s ease;
    pointer-events:none;
  }

  .label {
    position: absolute; 
    bottom: 12px;       
    left: 50%;
    transform: translateX(-50%) translateY(10px); 
    width: calc(var(--cell) - 16px); 
    max-width: none;
    
    padding: 6px 8px;
    background: rgba(15, 10, 10, 0.95); 
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); 
    text-align: center;
    opacity: 0; 
    pointer-events: none; 
    z-index: 30;
    transition: opacity .3s ease, transform .3s ease; 
  }

  .label::after {
    display: none;
  }

  .cell:hover .label {
    opacity: 1; 
    transform: translateX(-50%) translateY(0); 
  }

  .label-title {
    font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .06em;
    text-transform: uppercase; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .label-year {
    font-size: 9px; color: rgba(255, 150, 100, 0.85);
    letter-spacing: .05em; margin-top: 2px; white-space: nowrap;overflow: hidden; text-overflow: ellipsis;
  }

  .cell:hover { z-index: 20; }
  .cell:hover .label {
    opacity: 1; transform: translateX(-50%) translateY(-20px); 
  }
  .cell:hover .cover{
    transform:rotate(-3deg) translateY(-18px);
    box-shadow:8px 20px 36px rgba(0,0,0,.8),4px 8px 14px rgba(0,0,0,.6);
    z-index: 20;
  }
  .cell:hover .sheen{ opacity:1; background-position:0% 0%; }

  /* ===== MODAL OVERLAY ===== */
  #modal{
    position:fixed;inset:0;z-index:100;
    background:rgba(0,0,0,0);
    display:flex;align-items:center;justify-content:center;
    pointer-events:none;
    transition: opacity .6s ease, visibility .6s ease;
    z-index: 1100;
  }
  #modal.active{background:rgba(0,0,0,.92);pointer-events:all}

  #turntable-scene{
    position:relative; width:min(520px, 94vw);
    display:flex; flex-direction:column;
    opacity:0;transform:scale(.88); transition:opacity .4s,transform .4s;
  }
  #modal.active #turntable-scene{opacity:1;transform:scale(1)}

  #tt-body{
    position:relative; width:100%; aspect-ratio: 520 / 400; 
    container-type: inline-size; 
    background:linear-gradient(160deg,#1c1c1c 0%,#111 60%,#0a0a0a 100%);
    border-radius:14px;
    box-shadow:0 0 0 1px rgba(255,255,255,.06),0 40px 80px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.08);
  }

  #platter-wrap{ position:absolute; left:9.61cqw; top:9.61cqw; width:50cqw; height:50cqw; }
  #platter{
    width:100%;height:100%;border-radius:50%;
    background:radial-gradient(circle at 50%,#2a2a2a 0%,#1a1a1a 40%,#111 100%);
    box-shadow:0 0 0 0.58cqw #333,0 0 0 0.77cqw #222,inset 0 0 3.84cqw rgba(0,0,0,.5);
    position:relative;overflow:hidden;
  }
  #platter::before{
    content:'';position:absolute;inset:1.92cqw;border-radius:50%;
    border:1px solid rgba(255,255,255,.06);
    box-shadow:0 0 0 1.54cqw rgba(255,255,255,.025),0 0 0 3.46cqw rgba(255,255,255,.02),0 0 0 5.77cqw rgba(255,255,255,.015),0 0 0 8.46cqw rgba(255,255,255,.01),0 0 0 11.54cqw rgba(255,255,255,.008),0 0 0 15cqw rgba(255,255,255,.005);
  }
  #vinyl-disc{
    position:absolute;inset:0;border-radius:50%;
    background:
      conic-gradient(from 0deg,rgba(255,255,255,.04) 0deg,rgba(0,0,0,0) 10deg,rgba(255,255,255,.02) 20deg,rgba(0,0,0,0) 30deg,rgba(255,255,255,.04) 60deg,rgba(0,0,0,0) 90deg,rgba(255,255,255,.03) 120deg,rgba(0,0,0,0) 180deg,rgba(255,255,255,.04) 240deg,rgba(0,0,0,0) 300deg,rgba(255,255,255,.04) 360deg),
      radial-gradient(circle at 50%,#333 0%,#1a1a1a 30%,#111 60%,#0d0d0d 100%);
    transform-origin:center;
  }
  #vinyl-disc.spinning{animation:spin 1.8s linear infinite}
  @keyframes spin{to{transform:rotate(360deg)}}

  #disc-art{ position:absolute; left:50%;top:50%; width:15.38cqw;height:15.38cqw; transform:translate(-50%,-50%); border-radius:50%; overflow:hidden; box-shadow:0 0 0 0.58cqw #222,0 0 0 0.96cqw #1a1a1a; }
  #disc-art img{width:100%;height:100%;object-fit:cover}
  #spindle{ position:absolute;left:50%;top:50%; width:1.92cqw;height:1.92cqw; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle at 35% 35%,#999,#333); z-index:2; }

  #tonearm-wrap{ position:absolute; right:14.42cqw; top:8.65cqw; width:26.92cqw; height:38.46cqw; }
  #tonearm{ position:absolute; right:4.8cqw;top:4.8cqw; width:2.3cqw;height:30.76cqw; transform-origin:top center; transform: rotate(-8deg); transition:transform 1.6s cubic-bezier(.4,0,.2,1); }
  #tonearm.on-record{transform:rotate(51deg)}
  #tonearm-body{ width:1.54cqw;height:26.92cqw; background:linear-gradient(180deg,#888,#555 40%,#444 100%); border-radius:0.77cqw;margin:0 auto; box-shadow:2px 2px 6px rgba(0,0,0,.6); }
  #tonearm-head{ width:4.23cqw;height:2.69cqw; background:#666;border-radius:0.58cqw; margin:-0.77cqw auto 0; box-shadow:0 4px 8px rgba(0,0,0,.5); position:relative; }
  #tonearm-needle{ position:absolute;bottom:-1.54cqw;left:50%; width:0.38cqw;height:1.92cqw; background:#aaa; transform:translateX(-50%); transform-origin:top center; }
  #pivot{ position:absolute; right:4.61cqw;top:2.69cqw; width:3.84cqw;height:3.84cqw; border-radius:50%; background:radial-gradient(circle at 35% 35%,#aaa,#444); box-shadow:0 2px 6px rgba(0,0,0,.7); z-index:2; }

  #tt-panel{ position:absolute; bottom:5.77cqw;left:9.61cqw; display:flex;gap:1.92cqw;align-items:center; }
  .tt-knob{ width:4.23cqw;height:4.23cqw; border-radius:50%; background:radial-gradient(circle at 35% 35%,#777,#333); box-shadow:0 2px 4px rgba(0,0,0,.6); }
  .tt-btn{ width:6.92cqw;height:2.69cqw; background:#222;border-radius:2px; border:1px solid #444; }

  #modal-info{
    position:absolute; right:0;top:0;bottom:0; width:180px; display:flex;flex-direction:column;justify-content: flex-end;gap:8px; opacity:0;transition:opacity .5s .8s; padding: 20px; box-sizing: border-box; pointer-events: none; 
  }
  #modal.active #modal-info.show{opacity:1}
  #modal-info .m-artist{font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,120,80,.8)}
  #modal-info .m-title{font-size:18px;font-weight:700;color:#fff;line-height:1.2}
  #modal-info .m-year{font-size:12px;color:rgba(255,255,255,.4);margin-top:4px}
  #modal-info .m-desc{font-size:11px;color:rgba(255,255,255,.55);line-height:1.6;margin-top:8px}
  
  #modal-close{
    position:absolute;top:20px;right:20px; width:32px;height:32px;border-radius:50%; background:rgba(255,255,255,.08);border:none; color:#fff;font-size:16px;cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s; z-index: 10; opacity:0;transform:scale(.88); transition:opacity .4s,transform .4s;
  }
  #modal.active #modal-close{opacity:1;transform:scale(1)}
  #modal-close:hover{background:rgba(255,255,255,.18)}

  @media(max-width:560px){
    #turntable-scene { width: 90vw; max-width: 400px; }
    #modal-info { position: relative; width: 100%; inset: auto; padding: 20px 10px 0 10px; justify-content: flex-start; }
    #modal-info .m-title { font-size: 16px; }
    #modal-info .m-desc { font-size: 11px; line-height: 1.5; }
  }

  /* DETAIL PAGE */
  #detail-page {
    position: fixed; inset: 0; z-index: 200; background: #0d0508; opacity: 0; pointer-events: none; transition: opacity .6s; overflow-y: auto;
  }
  #detail-page.show { opacity: 1; pointer-events: all; }
  #dp-hero { height: 55vh; position: relative; display: flex; align-items: flex-end; overflow: hidden; padding-right: 20px; }
  #dp-hero-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(30px) saturate(.6); transform: scale(1.1); opacity: .5; }
  #dp-hero-cover { position: absolute; left: 60px; bottom: 40px; width: 200px; height: 200px; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.8); overflow: hidden; }
  #dp-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
  #dp-hero-text { position: relative; z-index: 2; margin-left: 290px; padding-bottom: 44px; }
  #dp-hero-text .dp-genre { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,120,80,.8); margin-bottom: 8px; }
  #dp-hero-text .dp-title { font-size: 42px; font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
  #dp-hero-text .dp-artist { font-size: 18px; color: rgba(255,255,255,.65); margin-top: 6px; }

  @media (max-width: 640px) {
    #dp-hero { height: auto; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px 40px; }
    #dp-hero-cover { position: relative; left: auto; bottom: auto; width: 160px; height: 160px; margin-bottom: 24px; box-shadow: 0 15px 40px rgba(0,0,0,.6); }
    #dp-hero-text { margin-left: 0; padding-bottom: 0; text-align: center; width: 100%; }
    #dp-hero-text .dp-genre { font-size: 11px; word-break: break-all; }
    #dp-hero-text .dp-title { font-size: 28px; line-height: 1.2; word-break: break-all; }
    #dp-hero-text .dp-artist { font-size: 14px; word-break: break-all; margin-top: 8px; }
  }

  #dp-body { max-width: 820px; margin: 0 auto; padding: 60px 40px 100px; }
  @media (max-width: 640px) { #dp-body { padding: 40px 24px 80px; } }
  #dp-body h2 { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,120,80,.7); margin-bottom: 20px; }
  #dp-body p { font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.85; margin-bottom: 20px; }
  #dp-tracks { list-style: none; margin: 24px 0; }
  #dp-tracks li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; color: rgba(255,255,255,.6); }
  #dp-tracks li .tn { width: 24px; color: rgba(255,255,255,.2); text-align: right; font-size: 11px; }
  #dp-tracks li .tt { flex: 1; color: rgba(255,255,255,.8); }
  #dp-tracks li .td { color: rgba(255,255,255,.3); }
  #dp-tracks li .track-links { margin-left: auto; display: flex; gap: 8px; align-items: center; }
  #dp-tracks li .track-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); text-decoration: none; transition: background .2s ease, transform .2s ease; }
  #dp-tracks li .track-link svg { width: 18px; height: 18px; display: block; }
  #dp-tracks li .track-link.spotify { background: rgba(30,150,85,.16); border-color: rgba(30,150,85,.3); color: #8cff9f; }
  #dp-tracks li .track-link.youtube { background: rgba(255,0,0,.16); border-color: rgba(255,0,0,.3); color: #ffb4b4; }
  #dp-tracks li .track-link:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }

  #yt-popup { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1200; background: rgba(0,0,0,.92); padding: 20px; }
  #yt-popup.active { display: flex; }
  #yt-popup .yt-content { position: relative; width: min(960px, 100%); max-width: 980px; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 0 60px rgba(0,0,0,.7); }
  #yt-popup iframe { width: 100%; height: 100%; border: 0; }
  #yt-popup .yt-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.08); color: #fff; font-size: 18px; cursor: pointer; z-index: 10; }

  #dp-back { position: fixed; top: 24px; left: 24px; z-index: 1100; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color:#fff; font-size: 13px; letter-spacing: .08em; padding: 8px 18px; border-radius: 40px; cursor: pointer; transition: background .2s; backdrop-filter: blur(10px); display: none; }
  #dp-back:hover { background: rgba(255,255,255,.15); }
  #dp-back.show { display: block; }

  .spin-ring{ position:absolute;left:50%;top:50%; width:280px;height:280px; margin:-140px 0 0 -140px; border-radius:50%; border:1px solid rgba(255,100,60,.4); animation:ripple 1.4s ease-out infinite; opacity:0; }
  .spin-ring:nth-child(2){animation-delay:.5s}
  @keyframes ripple{0%{transform:scale(.8);opacity:.6}100%{transform:scale(1.3);opacity:0}}

  /* FOOTER */
  footer {
    /* position: fixed; */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    flex-shrink: 0;     
    background: rgba(15, 5, 5, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
    /* z-index: 1000; */
  }

  .footerbox p{
    color: rgba(255, 255, 255, .35);
    text-align: center;
    font-size: 12px;
    font-family: 'arial';
    letter-spacing: 2px;
    height: auto;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

/* ==========================================================================
   🎭 劇院紅布幕開場動畫樣式
   ========================================================================== */
  .curtain-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; 
    display: flex;
    overflow: hidden;
    pointer-events: none; 
  }

  .curtain-half {
    width: 50vw;
    height: 100vh;
    position: relative; 

    background: linear-gradient(to right, 
      #1f0303 0%,   
      #4a0505 8%,   
      #8c0e0e 18%,  
      #b81414 28%,  
      #d92b2b 33%,  
      #7a0b0b 42%,  
      #3d0404 50%,  
      #690a0a 58%,  
      #ad1111 68%,  
      #cf2323 76%,  
      #8f0c0c 86%,  
      #4a0505 94%,  
      #1f0303 100%  
    );
    background-size: 140px 100%; 
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.95),
                inset 0 100px 150px rgba(0, 0, 0, 0.8),
                inset 0 -100px 150px rgba(0, 0, 0, 0.8);
  }

  .curtain-half::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.13; 
    background-image: 
      linear-gradient(rgba(255,255,255,.5) 50%, transparent 50%),
      linear-gradient(90deg, rgba(0,0,0,.6) 50%, transparent 50%);
    background-size: 3px 3px; 
    pointer-events: none;
  }

  .curtain-left {
    border-right: 2px solid #220303; 
    animation: splitLeft 3.5s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
  }

  .curtain-right {
    border-left: 2px solid #220303; 
    animation: splitRight 3.5s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
  }

  @keyframes splitLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  @keyframes splitRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
  }

  .stage-sign {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000; 
    opacity: 0;
    animation: 
      slideDownAndStay 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards,
      fadeOutSign 1s ease 2s forwards;
  }

  .sign-circle {
    width: clamp(240px, 35vw, 380px);  
    height: clamp(240px, 35vw, 380px);
    border-radius: 50%;
    background: #110202; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
  }

  .sign-logo {
    width: 75%;       
    height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); 
  }

  @keyframes slideDownAndStay {
    0% { top: -50%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 50%; opacity: 1; }
  }

  @keyframes fadeOutSign {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  }

  /* 🎯 分頁按鈕容器 */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
  z-index: 10;
}

/* 🎯 分頁按鈕基礎樣式 */
.page-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* 🎯 當前點選的頁碼（高亮狀態） */
.page-btn.active {
  background: #b81414;
  color: #fff;
  border-color: #d92b2b;
  box-shadow: 0 0 12px rgba(217, 43, 43, 0.5);
  font-weight: bold;
}

/* 🎯 滑鼠游標移上去的效果 */
.page-btn:hover:not(.active):not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* 🎯 當按鈕被禁用時（例如第一頁的「上一頁」） */
.page-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}