:root {
  color-scheme: dark;
  --page: #090c13;
  --page-soft: #10141d;
  --panel: rgba(21, 25, 35, .88);
  --panel-strong: #171c27;
  --line: rgba(255,255,255,.1);
  --text: #f7f8fb;
  --muted: #a3aaba;
  --soft: #727b8c;
  --amber: #ffc65a;
  --coral: #ff796e;
  --pink: #ff79b8;
  --radius: 22px;
  --player-height: 88px;
  font-family: Inter, "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  padding: 0 0 calc(var(--player-height) + 28px);
  color: var(--text);
  background:
    radial-gradient(ellipse at 8% -8%, rgba(255, 198, 90, .08), transparent 34rem),
    radial-gradient(ellipse at 95% 10%, rgba(95, 157, 201, .08), transparent 34rem),
    linear-gradient(180deg, #080b11, #0e121a 75%, #090c13);
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.app-shell { width: min(1380px, calc(100% - 32px)); margin: 16px auto 28px; }
.glass { border: 1px solid var(--line); background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.24); backdrop-filter: blur(18px); }

.topbar {
  position: sticky;
  z-index: 30;
  top: 10px;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 19px;
  background: rgba(15,18,26,.91);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: linear-gradient(140deg, var(--amber), #ff8157); color: #11141a; font-size: 1.2rem; box-shadow: 0 6px 20px rgba(255,175,65,.22); }
.brand-text { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.055em; }
.brand-text span { color: var(--amber); }
.artist-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.artist-nav-btn, .my-list-nav, .icon-button, .text-button, .favorite-button, .player-control, .button { border: 0; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.artist-nav-btn { padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: .95rem; font-weight: 750; }
.artist-nav-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.artist-nav-btn.is-active { border-color: rgba(255,198,90,.68); background: rgba(255,198,90,.12); color: #ffd27c; box-shadow: 0 0 18px rgba(255,198,90,.08); }
.artist-nav-btn[data-artist="thegunp"].is-active { border-color: rgba(255,121,184,.74); background: rgba(255,121,184,.12); color: #ffabd0; box-shadow: 0 0 18px rgba(255,121,184,.1); }
.my-list-nav { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--muted); font-size: .84rem; font-weight: 650; }
.my-list-nav span { color: #ff8c9b; font-size: 1.2rem; }
.my-list-nav:hover, .my-list-nav.is-active { border-color: rgba(255,121,110,.45); background: rgba(255,121,110,.11); color: #fff; }

.spotlight-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .9fr); gap: 14px; margin-bottom: 16px; }
.artist-hero, .artist-teaser { position: relative; isolation: isolate; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #182331; box-shadow: 0 14px 38px rgba(0,0,0,.24); }
.artist-hero { display: flex; min-height: 350px; align-items: flex-end; }
.artist-hero-image, .artist-teaser-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .5s ease, opacity .3s ease; }
.artist-hero:hover .artist-hero-image, .artist-teaser:hover .artist-teaser-image { transform: scale(1.035); }
.artist-hero-shade, .artist-teaser-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(4,9,14,.92) 0%, rgba(4,9,14,.72) 44%, rgba(4,9,14,.08) 100%), linear-gradient(0deg, rgba(4,7,12,.72), transparent 55%); }
.artist-theme-orcavibe { --artist-accent: #79d4d1; --artist-accent-soft: rgba(48,164,167,.25); }
.artist-theme-thegunp { --artist-accent: #ff9dca; --artist-accent-soft: rgba(255,115,178,.26); }
.artist-hero.artist-theme-orcavibe { background: linear-gradient(125deg,#0b2732,#176276 58%,#cf8850); }
.artist-hero.artist-theme-thegunp { background: linear-gradient(125deg,#3a1730,#ad4f7c 58%,#f5c5da); }
.artist-teaser.artist-theme-orcavibe { background: linear-gradient(145deg,#0b2732,#197081 60%,#f0aa62); }
.artist-teaser.artist-theme-thegunp { background: linear-gradient(145deg,#491b38,#ce6798 60%,#ffd2e5); }
.artist-hero.artist-theme-thegunp .artist-hero-shade { background: linear-gradient(90deg, rgba(37,8,25,.88) 0%, rgba(54,12,35,.7) 46%, rgba(74,16,49,.12) 100%), linear-gradient(0deg, rgba(40,8,27,.66), transparent 58%); }
.artist-hero.artist-theme-orcavibe .artist-hero-shade { background: linear-gradient(90deg, rgba(4,13,18,.91) 0%, rgba(4,13,18,.68) 46%, rgba(4,13,18,.08) 100%), linear-gradient(0deg, rgba(4,13,18,.7), transparent 58%); }
.artist-hero-content { width: min(610px, 82%); padding: 28px 30px 26px; }
.artist-kicker, .section-eyebrow { display: inline-block; color: var(--artist-accent, var(--amber)); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.artist-hero h1 { margin: 6px 0 9px; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.055em; line-height: 1; text-shadow: 0 4px 28px rgba(0,0,0,.28); }
.artist-hero p { max-width: 510px; margin: 0 0 8px; color: rgba(255,255,255,.88); font-size: 1rem; line-height: 1.6; }
.artist-handle { color: var(--artist-accent, var(--amber)); font-size: .9rem; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border-radius: 999px; font-size: .9rem; font-weight: 750; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(120deg, #ffd978, #ffb84d); color: #1a1712; box-shadow: 0 8px 22px rgba(255,179,75,.2); }
.artist-theme-thegunp .button-primary { background: linear-gradient(120deg, #ffd9eb, #ff83bb); box-shadow: 0 8px 22px rgba(255,121,184,.22); }
.button-outline { border: 1px solid rgba(255,255,255,.42); background: rgba(8,12,18,.3); color: #fff; }
.button-outline:hover { background: rgba(255,255,255,.12); }
.button-share { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; }
.button-share:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); }
.artist-teaser { display: flex; min-height: 350px; align-items: flex-end; width: 100%; padding: 0; text-align: left; }
.artist-teaser:hover { transform: translateY(-2px); }
.artist-teaser-shade { background: linear-gradient(0deg, rgba(17,5,14,.92), rgba(39,7,25,.14) 92%); }
.artist-teaser-content { display: flex; width: 100%; flex-direction: column; align-items: flex-start; padding: 22px; }
.artist-teaser-content strong { margin: 4px 0 3px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; }
.teaser-description { color: rgba(255,255,255,.82); font-size: .86rem; }
.teaser-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 13px; padding: 8px 13px; border: 1px solid rgba(255,157,202,.65); border-radius: 999px; background: rgba(255,121,184,.15); color: #ffd9eb; font-size: .84rem; font-weight: 750; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 14px; align-items: start; }
.music-panel, .video-card, .recommended-card { overflow: hidden; border-radius: var(--radius); }
.music-panel { min-height: 390px; }
.panel-header, .side-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header { padding: 19px 20px 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.panel-header h2, .side-panel-heading h2 { margin: 4px 0 0; font-size: 1.17rem; letter-spacing: -.025em; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: .85rem; }
.panel-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.track-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--muted); font-size: 1.15rem; }
.icon-button:hover { border-color: rgba(255,198,90,.45); color: var(--amber); }
.search-box { display: flex; align-items: center; gap: 9px; margin: 13px 16px 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); color: var(--muted); }
.search-box > span { font-size: 1.25rem; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .88rem; }
.search-box input::placeholder { color: #828b9c; }
.songs-list { display: grid; gap: 5px; padding: 4px 10px 12px; }
.song-item { display: grid; grid-template-columns: 30px 58px minmax(0,1fr) 40px; align-items: center; gap: 11px; min-height: 76px; padding: 8px 10px; border: 1px solid transparent; border-radius: 15px; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.song-item:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.045); }
.song-item.playing { border-color: color-mix(in srgb, var(--active-accent, var(--amber)) 38%, transparent); background: color-mix(in srgb, var(--active-accent, var(--amber)) 10%, transparent); }
.song-index { color: var(--soft); font-size: .75rem; font-weight: 750; text-align: center; }
.song-thumb { display: block; width: 58px; height: 58px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #202634; object-fit: cover; }
.song-meta { min-width: 0; }
.song-title { overflow: hidden; margin: 0 0 4px; color: #f6f7fa; font-size: .92rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.new-badge { display: inline-block; margin-left: 7px; padding: 2px 7px; border: 1px solid rgba(255,121,110,.28); border-radius: 999px; background: rgba(255,121,110,.14); color: #ff9c90; font-size: .62rem; font-weight: 800; line-height: 1.3; vertical-align: 2px; }
.song-artist { overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.song-extra { margin-top: 3px; color: var(--soft); font-size: .7rem; }
.song-play { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: rgba(255,255,255,.05); color: #fff; cursor: pointer; }
.song-play:hover { border-color: var(--amber); background: var(--amber); color: #141414; }
.empty-state { padding: 34px 18px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--text); }
.error-state { color: #ffb0aa; }

.side-column { display: grid; gap: 14px; }
.video-card, .recommended-card { padding-bottom: 12px; }
.side-panel-heading { padding: 16px 17px 12px; }
.side-panel-heading h2 { font-size: 1.02rem; }
.text-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.text-button:hover { border-color: rgba(255,198,90,.45); color: var(--amber); }
.video-frame { position: relative; aspect-ratio: 16 / 9; margin: 0 13px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #05070a; }
.video-frame.is-focused { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,198,90,.12); }
.video-frame #ytPlayer, .video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-note { margin: 9px 15px 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.recommended-list { display: grid; gap: 4px; padding: 0 9px; }
.recommended-item { display: grid; grid-template-columns: 50px minmax(0,1fr) 32px; align-items: center; gap: 9px; padding: 7px; border: 1px solid transparent; border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.recommended-item:hover { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.06); }
.recommended-item img { width: 50px; height: 50px; border-radius: 11px; object-fit: cover; }
.recommended-copy { min-width: 0; }
.recommended-copy strong, .recommended-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recommended-copy strong { margin-bottom: 4px; font-size: .8rem; }
.recommended-copy .new-badge { display: inline-block; }
.recommended-copy span { color: var(--muted); font-size: .7rem; }
.recommended-play { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: var(--amber); }

.sticky-player { position: fixed; z-index: 60; right: 50%; bottom: 12px; display: grid; width: min(1380px, calc(100% - 32px)); min-height: 78px; grid-template-columns: minmax(220px, .95fr) minmax(260px, 1.25fr) minmax(180px, .8fr); align-items: center; gap: 16px; padding: 10px 15px; border-radius: 19px; background: rgba(20,23,32,.94); transform: translateX(50%); }
.sticky-track { display: flex; min-width: 0; align-items: center; gap: 10px; }
.sticky-track > img { width: 50px; height: 50px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; object-fit: cover; }
.sticky-track-copy { display: grid; min-width: 0; gap: 3px; }
.sticky-track-copy strong, .sticky-track-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-track-copy strong { font-size: .83rem; }
.sticky-track-copy span { color: var(--muted); font-size: .74rem; }
.favorite-button { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: transparent; color: #ff9ba7; font-size: 1.35rem; }
.favorite-button.is-saved { color: #ff7185; }
.share-track-button { color: #c3ccd9; font-size: 1.05rem; }
.share-track-button:hover { color: var(--amber); }
.sticky-controls-wrap { display: grid; justify-items: center; gap: 4px; }
.sticky-controls { display: flex; align-items: center; gap: 16px; }
.player-control { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 50%; background: transparent; color: #d6d9df; font-size: .8rem; }
.player-control:hover { color: var(--amber); }
.player-play { width: 38px; height: 38px; background: linear-gradient(135deg, #ffd978, #ff9f46); color: #17130e; font-size: .95rem; box-shadow: 0 5px 15px rgba(255,185,82,.23); }
.player-play:hover { color: #111; transform: scale(1.05); }
.seek-row { display: grid; width: 100%; grid-template-columns: 36px minmax(0,1fr) 36px; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; }
.seek-row input, .volume-control input { width: 100%; height: 4px; accent-color: var(--amber); cursor: pointer; }
.sticky-extra { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.playing-label { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.volume-control { display: flex; width: 112px; align-items: center; gap: 8px; color: var(--muted); }
.volume-control input { accent-color: var(--amber); }
.toast { position: fixed; z-index: 90; right: 50%; bottom: 110px; max-width: min(420px, calc(100% - 32px)); padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; background: #202633; color: #fff; opacity: 0; pointer-events: none; transform: translate(50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }

@media (max-width: 980px) {
  .spotlight-grid { grid-template-columns: minmax(0, 1.4fr) minmax(250px, .9fr); }
  .artist-hero, .artist-teaser { min-height: 310px; }
  .artist-hero-content { width: 90%; padding: 22px; }
  .content-grid { grid-template-columns: minmax(0, 1.25fr) minmax(270px, .85fr); }
  .sticky-player { grid-template-columns: minmax(190px, .9fr) minmax(250px, 1.2fr) minmax(145px, .7fr); gap: 10px; }
}
@media (max-width: 720px) {
  :root { --player-height: 132px; }
  .app-shell { width: min(100% - 20px, 600px); margin-top: 10px; }
  .topbar { top: 6px; min-height: 60px; gap: 8px; margin-bottom: 12px; padding: 8px 10px; border-radius: 16px; }
  .brand { gap: 7px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 11px; font-size: 1rem; }
  .brand-text { font-size: 1.13rem; }
  .artist-nav { gap: 2px; }
  .artist-nav-btn { padding: 8px 10px; font-size: .78rem; }
  .my-list-nav { width: 36px; height: 36px; justify-content: center; padding: 0; font-size: 0; }
  .my-list-nav span { font-size: 1.3rem; }
  .spotlight-grid { grid-template-columns: 1fr; gap: 10px; }
  .artist-hero { min-height: 300px; }
  .artist-teaser { min-height: 180px; }
  .artist-teaser-image { object-position: center 42%; }
  .artist-teaser-content { padding: 17px 20px; }
  .artist-teaser-content strong { font-size: 1.7rem; }
  .teaser-link { margin-top: 8px; }
  .content-grid { grid-template-columns: 1fr; gap: 10px; }
  .side-column { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sticky-player { right: 50%; bottom: 7px; width: calc(100% - 14px); min-height: 118px; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 9px 11px; border-radius: 17px; }
  .sticky-track { grid-column: 1 / 2; grid-row: 1; }
  .sticky-track > img { width: 42px; height: 42px; }
  .sticky-controls-wrap { display: contents; }
  .sticky-controls { grid-column: 2; grid-row: 1; gap: 8px; }
  .seek-row { grid-column: 1 / -1; grid-row: 2; }
  .sticky-extra { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; }
  .volume-control { width: 100px; }
}
@media (max-width: 460px) {
  .artist-hero { min-height: 280px; }
  .artist-hero-content { width: 100%; padding: 19px; }
  .artist-hero h1 { font-size: 2.5rem; }
  .artist-hero p { max-width: 320px; font-size: .88rem; }
  .hero-actions { gap: 7px; }
  .button { min-height: 39px; padding: 9px 12px; font-size: .8rem; }
  .panel-header { padding: 15px 13px 11px; }
  .panel-header h2 { font-size: 1rem; }
  .panel-header p { max-width: 230px; font-size: .76rem; }
  .songs-list { padding-right: 6px; padding-left: 6px; }
  .song-item { grid-template-columns: 22px 50px minmax(0,1fr) 32px; gap: 8px; min-height: 68px; padding: 6px; }
  .song-thumb { width: 50px; height: 50px; border-radius: 10px; }
  .song-title { font-size: .82rem; }
  .song-artist { font-size: .71rem; }
  .song-extra { font-size: .66rem; }
  .song-play { width: 29px; height: 29px; }
  .side-column { grid-template-columns: 1fr; }
  .recommended-item { grid-template-columns: 46px minmax(0,1fr) 28px; }
  .recommended-item img { width: 46px; height: 46px; }
  .sticky-extra { display: none; }
  .sticky-player { min-height: 95px; grid-template-rows: 44px 28px; }
  .seek-row { grid-row: 2; }
}
