/* ---- เวอร์ชันเดสก์ท็อป (จอกว้างตั้งแต่ 900px) ----
   แตกต่างจากมือถืออย่างชัดเจน: แถบเมนูซ้ายถาวร เนื้อหาแบ่งหลายคอลัมน์ (เมนู/รายการเพลง/ชุดเพลง)
   ทุกกฎอยู่ใน @media จึงไม่กระทบมือถือ */
@media (min-width:900px){
  body::before{
    left:0;
    right:0;
    width:auto;
    transform:none;
    background:
      linear-gradient(90deg,rgba(16,15,12,.18),rgba(16,15,12,.06) 45%,rgba(16,15,12,.18)),
      var(--bg) url("../icons/bg-desktop.png") center center / cover no-repeat fixed;
  }
  body{font-size:16px}
  body.has-nav{padding-left:240px}
  body.has-nav #app{max-width:1200px;margin:0 auto;padding:28px 36px 56px;border-inline:0}
  body.has-nav .bottom-nav{top:0;bottom:0;right:auto;width:240px;height:auto;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;padding:26px 14px;border-top:0;border-right:1px solid var(--line);background:var(--card)}
  body.has-nav .bottom-nav a{flex:none;max-width:none;flex-direction:row;justify-content:flex-start;gap:12px;padding:12px 16px;border-radius:12px;font-size:15px;font-weight:600}
  body.has-nav .bottom-nav a.on{background:rgba(255,210,31,.12)}
  body.has-nav .bottom-nav a.home{max-width:none;justify-content:flex-start;padding-bottom:12px;font-size:15px}
  body.has-nav .bottom-nav a.home svg{width:22px;height:22px;padding:0;border-radius:0;background:none;box-shadow:none;color:currentColor}
  body.has-nav .bottom-nav a.home.on svg{box-shadow:none}
  body.has-nav .bottom-nav a:not(.home) .ndot{top:50%;margin-top:-6px;right:14px;margin-right:0}
  body.has-nav .bottom-nav .ndot{position:absolute}

  /* หัวหน้า: ตัวหนังสือใหญ่ขึ้น ช่องว่างกว้างขึ้น */
  .top{margin-bottom:18px;min-height:60px}
  .title{font-size:30px}
  .title.sm{font-size:22px}
  .sec-h{margin:28px 0 12px}
  .sec-h h2{font-size:22px}
  .search,.search-fake{max-width:720px;height:54px}

  /* เมนูหลัก: 3 คอลัมน์ การ์ดสูงขึ้น ดูเหมือนแดชบอร์ด */
  .tiles{gap:16px;margin:12px 0 24px}
  .tiles.menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .tiles.menu .tile{min-height:156px;padding:22px 22px 20px}
  .tiles.menu .tile b{font-size:21px}
  .tiles.menu .tile i{font-size:15px}

  /* รายการ (เพลง/ชุดเพลง/วง): 2 คอลัมน์ */
  .card{padding:20px}
  .card.list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;padding:8px 22px;overflow:visible}
  .card.list > .row{min-width:0;padding-block:13px}
  .card.list .row+.row{border-top:1px solid var(--line)}
  .card.list > :not(.row){grid-column:1 / -1}

  /* ชีทและหน้าดูคอร์ดกลางจอ */
  .sheet-body{left:50%;right:auto;bottom:50%;transform:translate(-50%,50%);width:min(620px,calc(100vw - 300px));border-radius:22px;max-height:80dvh}
  .sheet.open .sheet-body{bottom:auto;top:50%;transform:translate(-50%,-50%)}
  /* หน้า viewer ซ่อนเมนูหลักอยู่แล้ว จึงต้องใช้พื้นที่เต็มจอ ไม่เว้นคอลัมน์ซ้าย 240px */
  .viewer{left:0;width:100%}
}

@media (min-width:1280px){
  body.has-nav #app{max-width:1360px}
  .tiles.menu{grid-template-columns:repeat(4,minmax(0,1fr))}
  .card.list{column-gap:44px}
}
