/* ============================
   RESET & ROOT
============================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --orange:   #FF8952;
  --orange2:  #D96B3D;
  --black:    #000000;
  --dark:     #0d0905;
  --dark2:    #181008;
  --border:   #2c1c0a;
  --cream:    #ecdfc8;
  --muted:    #806050;
  --EN: 'Gabarito', sans-serif;
  --TH: 'Bai Jamjuree', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--EN);
  position: relative;
}

/* ============================
   NAV / HEADER
============================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 54px;
  background: #000000;
  border-bottom: 1px solid #1a1008;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 28px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--EN);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.nav-btn:hover { color: var(--orange); }

.nav-btn-cta {
  background: var(--orange);
  color: var(--dark);
  padding: 7px 14px;
  letter-spacing: .02em;
  font-family: var(--TH);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  transition: background .2s, transform .2s;
}
.nav-btn-cta:hover {
  background: var(--orange2);
  color: var(--dark);
  transform: translateY(-1px);
}

.mobile-menu .mobile-cta {
  background: var(--orange);
  color: var(--dark);
  font-family: var(--TH);
  letter-spacing: .02em;
  text-transform: none;
  font-size: 15px;
}
.mobile-menu .mobile-cta:hover,
.mobile-menu .mobile-cta:active {
  background: var(--orange2);
  color: var(--dark);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px;
}
.nav-social a {
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .2s;
}
.nav-social a:hover { opacity: .75; transform: translateY(-1px); }
.nav-social svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.nav-social a.yt svg { width: 22px; height: 22px; }
.nav-social a.dc svg { width: 20px; height: 20px; }

/* Mobile hamburger button (hidden on desktop) */
.hamburger-btn {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--orange);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hamburger-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--orange);
  transition: transform .25s, opacity .25s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  background: #000;
  border-top: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  z-index: 899;
  max-height: calc(100vh - 54px);
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu button,
.mobile-menu a {
  display: block;
  width: 100%;
  padding: 16px 22px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--EN);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mobile-menu button:hover,
.mobile-menu a:hover,
.mobile-menu button:active,
.mobile-menu a:active {
  background: #1a1108;
  color: var(--orange);
}

.nav-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-logo img {
  height: 46px;
  cursor: pointer;
  transition: opacity .2s;
}
.nav-logo img:hover { opacity: .8; }

/* ============================
   PAGE SWITCHER
============================ */
.page { display: none; }
.page.active { display: block; }

/* ============================
   INLINE PROJECT EXPAND
   Slides down beneath the projects row when a project card is clicked.
============================ */
.proj-expand {
  overflow: hidden;
  max-height: 0;
  transition: max-height .65s cubic-bezier(.2,.7,.2,1);
  background: radial-gradient(ellipse at 50% 0%, #2a1808 0%, #100a04 60%, #060402 100%);
}
.proj-expand.open {
  max-height: 1600px;
}
.proj-expand-inner {
  position: relative;
  padding: 40px 24px 56px;
  opacity: 0;
}
.proj-expand.open .proj-expand-inner { opacity: 1; transition: opacity .35s ease .1s; }

@keyframes innerSlideIn {
  from { opacity: 0; transform: translateY(-26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.proj-expand-inner.slide-in {
  animation: innerSlideIn .55s cubic-bezier(.2,.7,.2,1);
}

.proj-expand-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: 1px solid var(--orange);
  color: var(--orange);
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--EN);
  transition: background .2s, color .2s, transform .2s;
  z-index: 10;
}
.proj-expand-close:hover {
  background: var(--orange);
  color: var(--dark);
  transform: rotate(90deg);
}

.proj-card.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 10px 24px -10px rgba(200,102,42,.6);
  transform: translateY(-8px);
}

/* ============================
   HOME — HERO
   정확히 reference와 같이: 순수한 오렌지 배경
============================ */
#hero {
  height: calc(100vh - 54px);
  margin-top: 54px;
  background: var(--orange);
  position: relative;
  overflow: hidden;
}
/* Optional: drop in a real bg image later with class .has-bg */
#hero.has-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}
#hero img.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================
   HOME — PROJECTS SECTION
============================ */
#projects-section {
  background: var(--dark);
  padding: 64px 40px 48px;
}

.section-eyebrow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.projects-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.proj-card {
  aspect-ratio: 1/1;
  background: var(--dark2);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .35s;
}
.proj-card:hover {
  border-color: var(--orange);
  transform: translateY(-8px);
}

.proj-card-fill {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #2a1508 0%, #0d0905 100%);
}
.proj-card-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform .45s ease;
}
.proj-card:hover .proj-card-logo {
  transform: scale(1.06);
}
.proj-card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 45%, transparent 70%);
  z-index: 2;
}
.proj-card-body { z-index: 3; }
.proj-card-arrow { z-index: 4; }
.proj-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 12px;
}
.proj-card-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .35em;
  color: var(--orange);
  margin-bottom: 4px;
}
.proj-card-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.25;
}
.proj-card-arrow {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translate(6px,-6px);
  transition: opacity .25s, transform .25s;
}
.proj-card:hover .proj-card-arrow { opacity: 1; transform: translate(0,0); }

/* ============================
   HOME — TEAM SECTION
============================ */
#team-section {
  background: var(--dark2);
  padding: 64px 40px 64px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 10px;
  text-decoration: none;
  color: var(--cream);
  transition: border-color .25s, transform .25s, background .25s;
}
.team-card:hover {
  border-color: var(--orange);
  background: #1a1108;
  transform: translateY(-3px);
}
.team-card-img {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--dark2);
  border: 1px solid var(--border);
}
.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-card-body {
  flex: 1;
  min-width: 0;
}
.team-card-channel {
  font-family: var(--EN);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.team-card:hover .team-card-channel { color: var(--orange); }
.team-card-meta {
  font-family: var(--TH);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}
.team-card-meta .dot { color: var(--orange); }
.team-card-meta .char { color: var(--cream); }

/* ============================
   MUSIC PLAYER (fixed bottom-right, above now-on-air bar)
============================ */
#music-player {
  position: fixed;
  bottom: 72px;
  right: 20px;
  z-index: 800;
  width: 280px;
  padding: 14px 18px 14px;
  background: rgba(13,9,5,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--orange);
  color: var(--cream);
  font-family: var(--EN);
  box-shadow: 0 10px 28px rgba(0,0,0,.55);
  transition: opacity .25s, transform .25s;
}
#music-player.hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }

.mp-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .35em;
  color: var(--orange);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.mp-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-artist {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .22em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.mp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mp-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--cream);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-family: var(--EN);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
  padding: 0;
  line-height: 1;
}
.mp-btn:hover {
  background: var(--orange);
  color: var(--dark);
  border-color: var(--orange);
}
.mp-btn-play {
  width: 40px;
  height: 40px;
  border-color: var(--orange);
  color: var(--orange);
  font-size: 14px;
}
@keyframes mpPulse {
  0%, 100% { box-shadow: 0 0 0 0    rgba(255,137,82,.6); }
  50%      { box-shadow: 0 0 0 12px rgba(255,137,82,0);  }
}
.mp-btn-play.pulse {
  animation: mpPulse 1.4s ease-in-out infinite;
}
.mp-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mp-vol-icon {
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  color: var(--orange);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  transition: opacity .2s;
}
.mp-vol-icon:hover { opacity: .65; }
.mp-vol-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  border-radius: 2px;
}
.mp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 1px var(--orange);
}
.mp-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 1px var(--orange);
}
.mp-vol-value {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  min-width: 26px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.mp-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}
.mp-btn-play svg { width: 16px; height: 16px; }
.mp-vol-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
  margin: 0 auto;
}
.mp-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.mp-close:hover { color: var(--orange); }

/* ============================
   NOW ON AIR BAR
   Reference: ด้านล่าง fixed
   LEFT: thumb + "NOW ON AIR | NAME"
   RIGHT: tab boxes 01 02 03 04
============================ */
#now-on-air {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  height: 56px;
  background: #000000;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 8px 28px;
}

.air-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--orange);
  height: 40px;
  overflow: hidden;
}
.air-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.air-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--orange);
}
.air-text em {
  font-style: normal;
  color: var(--orange);
}
.air-text.tab-selected .air-text-prefix { display: none; }

/* Tabs */
.air-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.air-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--orange);
  padding: 0 12px;
  cursor: pointer;
  font-family: var(--EN);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--orange);
  background: none;
  text-transform: uppercase;
  transition: color .2s, background .2s;
  white-space: nowrap;
  min-width: 44px;
  height: 40px;
}
.air-tab:hover { color: var(--dark); background: var(--orange); }

.air-tab-name {
  font-size: 9px;
  letter-spacing: .1em;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width .4s ease, opacity .3s, margin .4s;
  color: var(--dark);
}

.air-tab.active {
  background: var(--orange);
  color: var(--dark);
}
.air-tab.active .air-tab-name {
  max-width: 200px;
  opacity: 1;
  margin-left: 8px;
}

/* ============================
   PROJECT DETAIL PAGE
   Reference image 2
============================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 20px 32px;
  background: none;
  border: none;
  color: var(--orange);
  font-family: var(--EN);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s;
}
.back-btn:hover { opacity: .6; }

/* Project logo / title block — reference shows ornate centered logo */
.proj-detail-header {
  text-align: center;
  padding: 30px 20px 36px;
}
.proj-detail-logo {
  display: block;
  max-width: 480px;
  max-height: 260px;
  width: auto;
  height: auto;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.6));
}
.proj-detail-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  color: var(--orange);
  margin-bottom: 10px;
}
.proj-detail-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.proj-detail-sub {
  font-family: var(--TH);
  font-size: 14px;
  font-weight: 300;
  color: var(--orange);
  letter-spacing: .06em;
}

/* ─── DIAGONAL CHARACTER CARDS ───
   Reference: parallelogram tilted ~-13deg
   3 rows × 8 cards, first row has real images, rest empty (orange)
   Cards overlap slightly, tight gap
──────────────────────────────────── */
.char-section {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}

.char-row {
  display: flex;
  gap: 5px;
  justify-content: center;
}

/* The parallelogram wrapper */
.c-card {
  width: 88px;
  height: 158px;
  flex-shrink: 0;
  transform: skewX(-13deg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--orange);
  transition: transform .3s cubic-bezier(.4,0,.2,1), filter .3s;
}
.c-card:hover {
  transform: skewX(-13deg) translateY(-14px);
  filter: brightness(1.2);
  z-index: 5;
}

/* Counter-skew so image stays upright */
.c-card img {
  position: absolute;
  top: 0; left: -14%;
  width: 128%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: skewX(13deg);
  display: block;
}

/* Empty / locked slot */
.c-card.empty {
  background: var(--orange);
  opacity: .6;
  cursor: default;
}
.c-card.empty:hover {
  transform: skewX(-13deg);
  filter: none;
}
.c-card.empty img {
  opacity: .2;
}

/* Pagination dots (for projects with > 1 page, e.g. Nemorphine) */
.char-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 0 24px;
}
.page-dot {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  width: 38px; height: 38px;
  cursor: pointer;
  font-family: var(--EN);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .2s, color .2s, transform .2s;
}
.page-dot.active,
.page-dot:hover { background: var(--orange); color: var(--dark); }
.page-dot.active { transform: translateY(-2px); }

/* Decorative divider — reference shows thin line with diamonds */
.proj-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px auto 0;
  width: 360px;
  max-width: 90vw;
}
.proj-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--orange));
}
.proj-divider-line.r {
  background: linear-gradient(to left, transparent, var(--orange));
}
.proj-divider-gem {
  color: var(--orange);
  font-size: 9px;
  letter-spacing: 6px;
}

/* ============================
   MODS PAGE
============================ */
#page-mods {
  min-height: 100vh;
  padding-top: 54px;
  padding-bottom: 56px;
  background: var(--dark);
}

.mods-inner {
  padding: 20px 32px 48px;
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.mod-card {
  background: var(--dark2);
  padding: 24px 20px;
  transition: background .2s;
}
.mod-card:hover { background: #201408; }

.mod-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--orange);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.mod-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.mod-desc {
  font-family: var(--TH);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.mod-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--orange);
  padding: 6px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--orange);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: var(--EN);
  text-transform: uppercase;
  background: none;
}
.mod-dl:hover { background: var(--orange); color: var(--dark); }

.mod-status {
  display: inline-block;
  border: 1px dashed var(--orange);
  color: var(--orange);
  padding: 6px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-family: var(--EN);
  opacity: .72;
  cursor: not-allowed;
  user-select: none;
}

/* ============================
   GOODS PAGE (coming soon)
============================ */
#page-goods {
  min-height: 100vh;
  padding-top: 54px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 56px;
}
.goods-box {
  width: 100%;
  max-width: 480px;
  padding: 0 24px;
  text-align: center;
}
.goods-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--dark);
  font-family: var(--TH);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 7px 18px;
  margin-bottom: 18px;
}
.goods-title {
  font-family: var(--TH);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 12px;
}
.goods-text {
  font-family: var(--TH);
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================
   TRACK NUMBER PAGE
============================ */
#page-track {
  min-height: 100vh;
  padding-top: 54px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 56px;
}

.track-box {
  width: 100%;
  max-width: 480px;
  padding: 0 24px;
}
.track-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.track-heading {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.track-sub {
  font-family: var(--TH);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.track-field {
  width: 100%;
  background: var(--dark2);
  border: none;
  border-bottom: 1px solid var(--orange);
  color: var(--cream);
  font-family: var(--EN);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  margin-bottom: 10px;
  display: block;
  transition: border-color .2s;
}
.track-field:focus { border-color: #e07840; }
.track-field::placeholder { color: var(--muted); font-family: var(--TH); }

.track-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--orange);
  border: none;
  color: var(--dark);
  font-family: var(--EN);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
  transition: background .2s;
}
.track-submit:hover { background: #d97030; }

.track-result {
  display: none;
  margin-top: 20px;
  border: 1px solid var(--border);
  background: var(--dark2);
  padding: 16px 18px;
}
.track-result.show { display: block; }
.track-result-label {
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 6px;
}
.track-result-text { font-size: 14px; font-weight: 600; }

/* ============================
   TRACK NUMBER MODAL OVERRIDE
============================ */
.track-modal-box {
  max-width: 460px !important;
  display: block !important;
  padding: 36px 28px 28px;
}
.track-modal-box .track-box {
  padding: 0;
  max-width: none;
}

/* ============================
   CHARACTER MODAL
============================ */
.modal-bg {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-bg.open { display: flex; }

.modal-box {
  background: var(--dark2);
  border: 1px solid var(--orange);
  width: 100%;
  max-width: 580px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.modal-img-col {
  width: 180px;
  flex-shrink: 0;
  background: var(--dark);
  border-left: 1px solid var(--border);
}
.modal-img-col img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.modal-body {
  flex: 1;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.modal-roman {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .35em;
  color: var(--orange);
  margin-bottom: 4px;
}
.modal-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.15;
  margin-bottom: 2px;
}
.modal-thai {
  font-family: var(--TH);
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}
.modal-en {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.modal-hr {
  width: 28px; height: 1px;
  background: var(--orange);
  margin-bottom: 12px;
}
.modal-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 12px;
}
.modal-stats > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.modal-stats .k {
  display: inline-block;
  width: 44px;
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--orange);
  text-transform: uppercase;
}
.modal-stats .v {
  font-family: var(--TH);
  font-size: 12px;
  color: var(--cream);
  line-height: 1.45;
}
.modal-player {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.modal-player-line {
  font-family: var(--TH);
  font-size: 11px;
  color: var(--muted);
}
.modal-player-line strong {
  color: var(--cream);
  font-family: var(--EN);
  font-weight: 700;
  letter-spacing: .05em;
}
.modal-player-id {
  font-family: var(--EN);
  font-size: 10px;
  color: var(--muted);
}
.modal-player-yt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  width: fit-content;
}
.modal-player-yt:hover { background: var(--orange); color: var(--dark); }
.modal-player-yt svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  display: block;
}
.modal-tag {
  margin-top: 8px;
  font-size: 11px;
  color: var(--orange);
  letter-spacing: .04em;
}
.modal-close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: none; border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.modal-close-btn:hover { color: var(--cream); }

/* ============================
   SCROLLBAR
============================ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ============================
   NEWS SECTION (YouTube embeds)
   Row 1: 2 original-song embeds · Row 2: 3 LENLOR clip embeds
============================ */
#news-section {
  background: var(--dark);
  padding: 56px 24px 64px;
}
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.news-row {
  display: grid;
  gap: 14px;
}
.news-row.r-2 { grid-template-columns: repeat(2, 1fr); }
.news-row.r-3 { grid-template-columns: repeat(3, 1fr); }

.news-item {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--dark2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.news-item:hover { border-color: var(--orange); transform: translateY(-3px); }
.news-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.news-item-label {
  position: absolute;
  top: 10px;
  left: 12px;
  max-width: calc(100% - 24px);
  font-family: var(--EN);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--orange);
  background: rgba(0,0,0,.78);
  padding: 5px 10px;
  pointer-events: none;
  z-index: 2;
  line-height: 1.35;
}

.news-item.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #1a1108 0%, #0d0905 100%);
}
.news-item.placeholder .ph-label {
  font-family: var(--EN);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--muted);
  text-transform: uppercase;
}
.news-item.placeholder .ph-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 8px 16px;
  font-family: var(--EN);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.news-item.placeholder .ph-link:hover {
  background: var(--orange);
  color: var(--dark);
}
.news-item.placeholder .ph-link svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  display: block;
}

/* ============================
   TEAM REGISTER PAGE
============================ */
#page-teamregister {
  min-height: 100vh;
  padding-top: 54px;
  padding-bottom: 56px;
  background: var(--dark);
}
.tr-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 24px 60px;
}
.tr-logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 20px auto 22px;
  object-fit: contain;
}
.tr-title {
  font-family: var(--TH);
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 42px;
  color: var(--cream);
}

.tr-section {
  margin-bottom: 26px;
  padding: 24px 26px 26px;
  background: var(--dark2);
  border: 1px solid var(--border);
}
.tr-subtitle {
  font-family: var(--TH);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--orange);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tr-list {
  list-style: none;
  font-family: var(--TH);
  font-size: 15px;
  line-height: 1.75;
  color: var(--cream);
  padding: 0;
  margin: 0;
}
.tr-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.tr-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
}
.tr-list strong {
  font-family: var(--EN);
  color: var(--orange);
  letter-spacing: .08em;
  margin-right: 4px;
}
.tr-list-divider { height: 14px; }

/* Role cards (positions wanted) */
.tr-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tr-role {
  display: flex;
  gap: 14px;
  padding: 18px 18px;
  background: var(--dark);
  border: 1px solid var(--border);
  align-items: flex-start;
  transition: border-color .2s, transform .2s, background .2s;
}
.tr-role:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  background: #1a1108;
}
.tr-role-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  border: 1px solid var(--orange);
}
.tr-role-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
.tr-role-body { flex: 1; min-width: 0; }
.tr-role-name {
  font-family: var(--EN);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--orange);
  margin-bottom: 6px;
}
.tr-role-desc {
  font-family: var(--TH);
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream);
}
.tr-role-other {
  border-style: dashed;
}

.tr-ack {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--dark2);
  border: 1px solid var(--orange);
  margin-bottom: 36px;
  cursor: pointer;
  font-family: var(--TH);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  user-select: none;
}
.tr-ack input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.tr-form-note {
  font-family: var(--TH);
  font-size: 14px;
  color: var(--muted);
  margin: -6px 0 24px;
}

.tr-field {
  display: block;
  margin-bottom: 20px;
}
.tr-field-label {
  display: block;
  font-family: var(--TH);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--orange);
  margin-bottom: 8px;
}
.tr-field-label .th {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--TH);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
}
.tr-field input[type="text"],
.tr-field textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--TH);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
  box-sizing: border-box;
}
.tr-field input:focus,
.tr-field textarea:focus { border-color: var(--orange); }
.tr-field textarea { min-height: 180px; line-height: 1.65; }
.tr-field-note {
  display: block;
  font-family: var(--TH);
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.tr-email-notice {
  background: var(--orange);
  color: var(--dark);
  padding: 16px 20px;
  margin: 8px 0 20px;
  font-family: var(--TH);
  font-size: 15px;
  line-height: 1.6;
}
.tr-email-notice strong {
  font-weight: 700;
  margin-right: 4px;
}
.tr-email-notice a {
  color: var(--dark);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-word;
}
.tr-email-notice a:hover { opacity: .7; }

.tr-submit {
  display: block;
  width: 100%;
  background: var(--orange);
  color: var(--dark);
  border: none;
  font-family: var(--TH);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 16px;
  margin-top: 14px;
  cursor: pointer;
  transition: background .2s;
}
.tr-submit:hover:not(:disabled) { background: var(--orange2); }
.tr-submit:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.tr-success {
  display: none;
  background: rgba(255,137,82,.08);
  border: 1px solid var(--orange);
  padding: 30px 24px;
  margin-top: 24px;
  text-align: center;
  font-family: var(--TH);
  font-size: 14px;
  color: var(--cream);
}
.tr-success.show { display: block; }
.tr-success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--dark);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Registration closed notice */
.tr-closed { text-align: center; }
.tr-closed-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--dark);
  font-family: var(--TH);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 7px 18px;
  margin-bottom: 18px;
}
.tr-closed-title {
  font-family: var(--TH);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 10px;
}
.tr-closed-text {
  font-family: var(--TH);
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}
.tr-closed-steps {
  display: grid;
  gap: 12px;
  text-align: left;
}
.tr-closed-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--dark);
  border: 1px solid var(--border);
}
.tr-closed-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--dark);
  font-family: var(--EN);
  font-size: 14px;
  font-weight: 700;
}
.tr-closed-step > div { display: flex; flex-direction: column; gap: 4px; }
.tr-closed-step strong {
  font-family: var(--TH);
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
}
.tr-closed-step span {
  font-family: var(--TH);
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream);
}

/* Results announcement (accepted-for-interview list) */
.tr-announce-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  list-style: none;
  text-align: left;
  font-family: var(--TH);
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream);
  padding: 0;
  margin: 0 0 8px;
  counter-reset: announce;
}
.tr-announce-list li {
  position: relative;
  padding-left: 26px;
  counter-increment: announce;
}
.tr-announce-list li::before {
  content: counter(announce) '.';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-family: var(--EN);
  font-weight: 700;
}
.tr-announce-divider { margin: 28px auto; }
.tr-announce-body {
  font-family: var(--TH);
  font-size: 15px;
  line-height: 1.75;
  color: var(--cream);
  text-align: left;
  margin: 0 0 14px;
}
.tr-announce-date {
  font-family: var(--TH);
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  text-align: left;
  margin: 0;
}
.tr-announce-sign {
  font-family: var(--TH);
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  text-align: right;
  margin: 20px 0 0;
}

/* Mobile tweaks for register page */
@media (max-width: 720px) {
  .tr-inner { padding: 20px 14px 60px; }
  .tr-logo { width: 96px; height: 96px; margin-top: 12px; }
  .tr-title { font-size: 24px; margin-bottom: 30px; }
  .tr-section { padding: 18px 18px 20px; }
  .tr-subtitle { font-size: 15px; }
  .tr-announce-list { grid-template-columns: 1fr; }
  .tr-list { font-size: 13px; line-height: 1.65; }
  .tr-list li { padding-left: 16px; }
  .tr-ack { font-size: 14px; padding: 14px 16px; }
  .tr-field-label { font-size: 13px; }
  .tr-field input[type="text"],
  .tr-field textarea { font-size: 14px; padding: 11px 12px; }
  .tr-submit { font-size: 15px; padding: 14px; }

  /* Role cards: 3 -> 2 columns on mobile */
  .tr-roles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tr-role { padding: 14px 14px; gap: 12px; }
  .tr-role-icon { width: 36px; height: 36px; }
  .tr-role-icon svg { width: 20px; height: 20px; }
  .tr-role-name { font-size: 12px; letter-spacing: .1em; }
  .tr-role-desc { font-size: 12px; }
}

@media (max-width: 480px) {
  .tr-roles { grid-template-columns: 1fr; }
}

/* ============================
   FOOTER
============================ */
#footer {
  background: var(--orange);
  color: var(--dark);
  padding: 48px 24px 38px;
  text-align: center;
  font-family: var(--EN);
}
.footer-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto 14px;
  display: block;
  object-fit: contain;
}
.footer-tagline {
  font-family: var(--TH);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 22px;
  letter-spacing: .02em;
}
.footer-tagline em {
  font-style: normal;
  font-weight: 700;
  color: var(--dark);
  background: rgba(0,0,0,.12);
  padding: 1px 6px;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--dark);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
  background: none;
  border: none;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
}
.footer-links a:hover { opacity: .55; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}
.footer-social a {
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dark);
  transition: background .2s, color .2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--dark); color: var(--orange); }
.footer-social svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.footer-social a.yt svg { width: 17px; height: 17px; }
.footer-social a.dc svg { width: 16px; height: 16px; }
.footer-copy {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25em;
  opacity: .75;
}

/* ============================
   SPACER
============================ */
.spacer { height: 56px; }

/* ============================================================
   MOBILE / RESPONSIVE (<= 720px)
   Keeps desktop column counts — just shrinks fonts/icons/spacing
   so it fits a phone, and lets char rows scroll horizontally.
============================================================ */
@media (max-width: 720px) {
  body { overflow-x: hidden; }

  /* Header: hamburger replaces nav */
  #header .nav-group { display: none; }
  .hamburger-btn { display: flex; }
  #header { justify-content: center; padding: 0 16px; }

  /* Sections: tight side padding */
  #projects-section,
  #news-section,
  #team-section { padding: 40px 10px 44px; }

  /* Projects: KEEP 4/row — small font, allow name to wrap */
  .projects-row { gap: 6px; }
  .proj-card-body { padding: 6px 6px; }
  .proj-card-num  { font-size: 6px; letter-spacing: .18em; margin-bottom: 1px; }
  .proj-card-name { font-size: 8px; line-height: 1.15; letter-spacing: 0; white-space: normal; word-break: break-word; }
  .proj-card-arrow { width: 18px; height: 18px; font-size: 8px; top: 5px; right: 5px; }

  /* News: KEEP 2+3 columns — smaller labels + YouTube icons */
  .news-row { gap: 6px; }
  .news-item-label { font-size: 7px; padding: 3px 6px; letter-spacing: .02em; }
  .news-item.placeholder .ph-label { font-size: 7px; letter-spacing: .14em; }
  .news-item.placeholder .ph-link  { padding: 4px 8px; font-size: 7px; letter-spacing: .1em; gap: 3px; border-width: 1px; }
  .news-item.placeholder .ph-link svg { width: 6px; height: 6px; }

  /* Team: KEEP 3/row — very compact card so it actually fits */
  .team-grid { gap: 6px; }
  .team-card { padding: 4px; gap: 6px; min-width: 0; }
  .team-card-img { width: 40px; height: 40px; }
  .team-card-body { min-width: 0; overflow: hidden; }
  .team-card-channel {
    font-size: 9px;
    margin-bottom: 1px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .team-card-meta {
    font-size: 7px;
    line-height: 1.25;
    gap: 1px 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .team-card-meta > span { overflow: hidden; text-overflow: ellipsis; }

  /* Project detail header */
  .proj-expand-inner { padding: 24px 8px 32px; }
  .proj-expand-close { top: 8px; right: 10px; width: 28px; height: 28px; }
  .proj-detail-logo  { max-width: 100%; max-height: 140px; }
  .proj-detail-sub   { font-size: 12px; }
  .proj-divider      { width: auto; max-width: calc(100% - 16px); }

  /* Character cards on mobile: 8 cards wrap to 4 per row (2 visual rows per logical row) */
  .char-section {
    padding: 0 4px;
    overflow: visible;
    align-items: stretch;
  }
  .char-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px 4px;
    gap: 6px 5px;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
  }
  .c-card {
    flex: 0 0 calc((100% - 15px) / 4);
    max-width: 88px;
    height: auto;
    aspect-ratio: 88 / 158;
    min-width: 0;
  }

  /* Pagination */
  .page-dot { width: 34px; height: 34px; font-size: 11px; }

  /* Modal: keep [info | image] horizontal on mobile too, just shrink image col */
  .modal-bg { padding: 12px; }
  .modal-box { flex-direction: row; max-width: 100%; }
  .modal-img-col {
    width: 110px;
    height: auto;
    border-top: none;
    border-left: 1px solid var(--border);
  }
  .modal-img-col img { height: 100%; min-height: 280px; object-position: center top; }
  .modal-body { padding: 16px 14px 14px; }
  .modal-name  { font-size: 16px; }
  .modal-thai  { font-size: 12px; }
  .modal-en    { font-size: 10px; }
  .modal-stats .k { width: 36px; font-size: 7px; letter-spacing: .18em; }
  .modal-stats .v { font-size: 11px; }
  .modal-player-line { font-size: 10px; }
  .modal-player-yt { padding: 5px 10px; font-size: 9px; letter-spacing: .14em; }
  .modal-tag { font-size: 9px; }

  /* Track modal full width */
  .track-modal-box { max-width: 100% !important; padding: 28px 20px 20px; }
  .track-heading { font-size: 26px; }

  /* NOW ON AIR bar */
  #now-on-air { padding: 6px 12px; gap: 14px; height: 52px; }
  .air-label  { padding: 5px 10px; height: 38px; gap: 8px; }
  .air-thumb  { width: 24px; height: 24px; }
  .air-text   { font-size: 9px; letter-spacing: .12em; }
  .air-tab    { padding: 0 10px; min-width: 36px; height: 38px; font-size: 11px; }
  .air-tab .air-tab-name { display: none; }
  .spacer { height: 52px; }

  /* Music player: shrinks with viewport — never overflows */
  #music-player {
    width: min(220px, calc(100vw - 24px));
    bottom: 64px;
    right: 12px;
    padding: 10px 14px;
    box-sizing: border-box;
  }
  .mp-title  { font-size: 11px; }
  .mp-artist { margin-bottom: 8px; font-size: 8px; }
  .mp-btn      { width: 28px; height: 28px; }
  .mp-btn-play { width: 34px; height: 34px; }
  .mp-volume   { gap: 8px; margin-top: 10px; padding-top: 8px; }
  .mp-vol-value { font-size: 8px; min-width: 22px; }

  /* Footer */
  #footer { padding: 40px 18px 32px; }
  .footer-logo { width: 110px; height: 110px; margin-bottom: 14px; }
  .footer-tagline { font-size: 13px; margin-bottom: 18px; }
  .footer-links { gap: 10px 18px; font-size: 11px; letter-spacing: .14em; }

  .section-eyebrow { font-size: 9px; letter-spacing: .3em; }
}

@media (max-width: 420px) {
  /* Projects 4/row really tight — drop fonts again */
  .proj-card-name { font-size: 7px; line-height: 1.1; }
  .proj-card-num  { font-size: 5px; }
  .proj-card-body { padding: 4px 5px; }
  .proj-card-arrow { display: none; }

  /* Team 3/row really tight */
  .team-card { padding: 3px; gap: 4px; }
  .team-card-img  { width: 32px; height: 32px; }
  .team-card-channel { font-size: 8px; }
  .team-card-meta { font-size: 6px; }

  /* News even smaller */
  .news-item-label { font-size: 6px; padding: 2px 5px; }
  .news-item.placeholder .ph-label { font-size: 6px; }
  .news-item.placeholder .ph-link  { font-size: 6px; padding: 3px 7px; }

  /* Music player */
  #music-player {
    width: min(190px, calc(100vw - 20px));
    padding: 8px 12px;
    right: 10px;
  }
}
