* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #0c0c0c;
  --bg2: #141414;
  --bg3: #1c1c1c;
  --bg4: #242424;
  --bg5: #2c2c2c;
  --t1: #fff;
  --t2: #b0b0b0;
  --t3: #707070;
  --t4: #444;
  --blue: #5b8dd4;
  --blue2: #7aabef;
  --green: #4db84d;
  --red: #e03c3c;
  --yellow: #f0a020;
  --r8: 8px;
  --r12: 12px;
  --r16: 16px;
  --r24: 24px;
  --rf: 999px;
  --fn: 'Sarabun', sans-serif;
  --nh: 54px;
  --ph: 56px;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--fn);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
}

img {
  display: block;
  object-fit: cover;
}

button {
  border: none;
  background: none;
  color: inherit;
  font-family: var(--fn);
  cursor: pointer;
}

.mi {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  vertical-align: middle;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.page.active {
  display: flex;
}

.page.slide-in {
  animation: slideIn 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page.fade-in {
  animation: fadeIn 0.22s ease both;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

@keyframes barAnim {
  0%,
  100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}

/* HEADER */
.app-header {
  background: var(--bg);
  border-bottom: 1px solid #1f1f1f;
  flex-shrink: 0;
  z-index: 10;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  height: 50px;
}

.top-bar h1 {
  font-size: 17px;
  font-weight: 700;
}

.hdr-act {
  display: flex;
  gap: 2px;
}

.icon-btn {
  padding: 6px;
  border-radius: 50%;
  color: var(--t2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:active {
  background: var(--bg3);
  color: var(--t1);
}

.tabs-wrap {
  overflow-x: auto;
  padding: 0 10px 10px;
}

.tabs {
  display: flex;
  gap: 2px;
  list-style: none;
  white-space: nowrap;
}

.tabs li {
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t3);
  cursor: pointer;
  border-radius: var(--rf);
  transition: all 0.15s;
}

.tabs li.active {
  color: var(--t1);
  background: rgba(255, 255, 255, 0.09);
}

.scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.sec {
  margin-bottom: 4px;
  animation: fadeUp 0.3s ease both;
}

.sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 9px;
}

.sec-title {
  font-size: 15px;
  font-weight: 700;
}

.sec-more {
  display: flex;
  align-items: center;
  color: var(--blue2);
  font-size: 12.5px;
  cursor: pointer;
}

.divider {
  height: 1px;
  background: #1e1e1e;
  margin: 2px 0;
}

/* HERO */
.hero {
  margin: 0 14px 4px;
  border-radius: var(--r16);
  overflow: hidden;
  height: 148px;
  position: relative;
  cursor: pointer;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2a4a, #0d1f3c, #1a1a3a);
  background-size: cover;
  background-position: center;
}

.hero-deco {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: var(--rf);
  width: max-content;
}

.hero-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}

/* TRACKS */
.track-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.14s;
}

.track-item:active {
  background: var(--bg3);
}

.t-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--r8);
  flex-shrink: 0;
  background: var(--bg4);
}

.t-info {
  flex: 1;
  min-width: 0;
}

.t-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-sub {
  font-size: 12px;
  color: var(--t2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.t-menu {
  color: var(--t4);
  padding: 4px;
  flex-shrink: 0;
}

.t-playing .t-title {
  color: var(--blue2);
}

.t-playing .t-thumb {
  box-shadow: 0 0 0 2px var(--blue2);
}

.play-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-right: 4px;
  flex-shrink: 0;
}

.t-playing .play-bars {
  display: flex;
}

.pb {
  width: 3px;
  border-radius: 2px;
  background: var(--blue2);
  animation: barAnim 1s ease-in-out infinite;
}

.pb:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}

.pb:nth-child(2) {
  height: 14px;
  animation-delay: 0.2s;
}

.pb:nth-child(3) {
  height: 10px;
  animation-delay: 0.4s;
}

.yt-badge {
  font-size: 9px;
  font-weight: 700;
  background: #ff0000;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  flex-shrink: 0;
  display: inline-block;
}

/* CARDS */
.hscroll {
  display: flex;
  gap: 10px;
  padding: 0 16px 6px;
  overflow-x: auto;
}

.card-sq {
  flex-shrink: 0;
  width: 140px;
  cursor: pointer;
}

.card-sq:active {
  opacity: 0.85;
}

.card-sq-img {
  width: 140px;
  height: 140px;
  border-radius: var(--r12);
  background: var(--bg4);
  overflow: hidden;
  position: relative;
}

.card-sq-img img {
  width: 100%;
  height: 100%;
}

.card-sq-title {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 7px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sq-sub {
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
}

.card-ov {
  flex-shrink: 0;
  width: 158px;
  height: 96px;
  border-radius: var(--r12);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.card-ov:active {
  opacity: 0.82;
}

.card-ov-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.card-ov-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.card-ov-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9px 11px;
}

.card-ov-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.card-ov-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.card-art {
  flex-shrink: 0;
  width: 84px;
  cursor: pointer;
  text-align: center;
}

.card-art-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--bg4);
  overflow: hidden;
  margin: 0 auto;
}

.card-art-img img {
  width: 100%;
  height: 100%;
}

.card-art-name {
  font-size: 12px;
  font-weight: 500;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--rf);
  color: #fff;
  text-transform: uppercase;
}

.genre-chip {
  padding: 7px 15px;
  border-radius: var(--rf);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #2a2a2a;
  color: var(--t2);
  background: var(--bg3);
}

.genre-chip:active,
.genre-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 10px;
}

/* MINI PLAYER */
#mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--nh);
  background: #18181e;
  border-top: 1px solid #252528;
  z-index: 300;
  cursor: pointer;
}

.player-bar {
  height: 2px;
  background: #2a2a2a;
}

.player-fill {
  height: 100%;
  background: var(--blue2);
  transition: width 0.5s linear;
  width: 0%;
}

.player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  height: 52px;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.player-cover {
  width: 36px;
  height: 36px;
  border-radius: var(--r8);
  flex-shrink: 0;
  background: var(--bg4);
}

.player-texts {
  flex: 1;
  min-width: 0;
}

.player-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 11.5px;
  color: var(--t2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-ctrls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.player-ctrls .icon-btn .mi {
  font-size: 24px;
  color: var(--t1);
}

.player-ctrls .icon-btn.sm .mi {
  font-size: 19px;
  color: var(--t2);
}

.mp-spin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--blue2);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
  flex-shrink: 0;
  display: none;
}

/* BOTTOM NAV */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nh);
  background: #111112;
  border-top: 1px solid #1e1e1e;
  display: flex;
  z-index: 300;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  gap: 2px;
}

.nav-btn .mi {
  font-size: 23px;
  color: var(--t4);
  transition: color 0.15s;
}

.nav-btn.active .mi {
  color: var(--t1);
}

.nav-lbl {
  font-size: 9px;
  color: var(--t4);
  font-weight: 500;
  transition: color 0.15s;
}

.nav-btn.active .nav-lbl {
  color: var(--t1);
}

.n-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 20px);
  background: var(--red);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: var(--rf);
  min-width: 15px;
  text-align: center;
  line-height: 14px;
}

/* SUB HEADER */
.sub-hdr {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  height: 50px;
  background: var(--bg);
  border-bottom: 1px solid #1e1e1e;
  flex-shrink: 0;
}

.sub-hdr-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.sub-hdr-right {
  display: flex;
  gap: 2px;
}

/* YOUTUBE HIDDEN PLAYER */
#yt-container {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  z-index: -1;
}

/* FULL PLAYER */
.fullplayer {
  background: linear-gradient(180deg, #1a2040 0%, #0c0c0c 55%);
}

.fp-cover-wrap {
  padding: 28px 40px 20px;
}

.fp-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r24);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  background: var(--bg4);
}

.fp-cover img {
  width: 100%;
  height: 100%;
  display: block;
}

.fp-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.fp-spinner .ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--blue2);
  animation: spin 0.8s linear infinite;
}

.fp-video-wrap {
  display: none;
  margin: 0 24px 8px;
  border-radius: var(--r16);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}

.fp-video-wrap.show {
  display: block;
}

.fp-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.yt-active-bar {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 24px 8px;
  padding: 10px 14px;
  background: rgba(255, 0, 0, 0.1);
  border-radius: var(--r12);
  border: 1px solid rgba(255, 0, 0, 0.2);
  cursor: pointer;
}

.yt-active-bar.show {
  display: flex;
}

.yt-active-bar .mi {
  font-size: 18px;
  color: #ff5555;
}

.yt-active-text {
  flex: 1;
  font-size: 12px;
  color: #ff7777;
  font-weight: 600;
}

.yt-active-toggle {
  font-size: 11px;
  color: var(--t3);
}

.fp-info {
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fp-texts {
  flex: 1;
  min-width: 0;
}

.fp-title {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-artist {
  font-size: 14px;
  color: var(--t2);
  margin-top: 3px;
}

.fp-like .mi {
  font-size: 26px;
  color: var(--t3);
}

.fp-progress {
  padding: 16px 24px 8px;
}

.prog-bar {
  height: 4px;
  background: #2a2a2a;
  border-radius: var(--rf);
  position: relative;
  cursor: pointer;
}

.prog-fill {
  height: 100%;
  background: var(--blue2);
  border-radius: var(--rf);
  position: relative;
  width: 0%;
  transition: width 0.5s linear;
}

.prog-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.prog-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--t3);
}

.fp-ctrls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 16px 16px;
}

.fp-ctrls .mi {
  font-size: 28px;
  color: var(--t2);
  cursor: pointer;
}

.fp-ctrls .mi.main {
  font-size: 60px;
  color: var(--t1);
}

.fp-extra {
  display: flex;
  justify-content: space-around;
  padding: 0 16px 12px;
}

.fp-extra .mi {
  font-size: 22px;
  color: var(--t3);
  cursor: pointer;
}

/* SEARCH */
.search-bar-wrap {
  padding: 10px 14px;
  flex-shrink: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border-radius: var(--r12);
  padding: 9px 14px;
}

.search-bar .mi {
  font-size: 20px;
  color: var(--t3);
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--t1);
  font-family: var(--fn);
  font-size: 15px;
  outline: none;
}

.search-input::placeholder {
  color: var(--t3);
}

.search-cancel {
  color: var(--blue2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* LIB TABS */
.lib-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  flex-shrink: 0;
}

.lib-tab {
  padding: 6px 16px;
  border-radius: var(--rf);
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  background: var(--bg3);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.lib-tab.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.lib-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
  padding: 10px 16px 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* PLAYLIST PAGE */
.pl-hero {
  padding: 24px 16px 16px;
  text-align: center;
  flex-shrink: 0;
}

.pl-cover {
  width: 180px;
  height: 180px;
  border-radius: var(--r16);
  margin: 0 auto 16px;
  background: var(--bg4);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.pl-cover img {
  width: 100%;
  height: 100%;
}

.pl-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pl-meta {
  font-size: 12.5px;
  color: var(--t2);
  margin-bottom: 16px;
}

.pl-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-play-lg {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--rf);
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--fn);
  cursor: pointer;
}

.btn-play-lg:active {
  background: #4a70b0;
}

.btn-icon-lg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon-lg .mi {
  font-size: 22px;
  color: var(--t2);
}

/* PROFILE */
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px;
}

.profile-ava {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a5cc5, #5b8dd4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.profile-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-sub {
  font-size: 13px;
  color: var(--t2);
}

.profile-stats {
  display: flex;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  margin: 0 0 8px;
}

.p-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid #1e1e1e;
}

.p-stat:last-child {
  border-right: none;
}

.p-stat-num {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.p-stat-lbl {
  font-size: 11px;
  color: var(--t2);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.14s;
  border-bottom: 1px solid #181818;
}

.menu-item:active {
  background: var(--bg3);
}

.menu-item .mi {
  font-size: 22px;
  color: var(--t3);
}

.menu-item-text {
  flex: 1;
}

.menu-item-title {
  font-size: 14px;
  font-weight: 500;
}

.menu-item-sub {
  font-size: 12px;
  color: var(--t3);
  margin-top: 1px;
}

.menu-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--t4);
  padding: 14px 16px 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.toggle {
  width: 44px;
  height: 24px;
  border-radius: var(--rf);
  background: var(--bg5);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle.on {
  background: var(--blue);
}

.toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.toggle.on::after {
  left: 22px;
}

/* RADIO */
.radio-hero {
  margin: 0 14px 12px;
  border-radius: var(--r16);
  padding: 20px;
  background: linear-gradient(135deg, #1a3a6a, #0d2050);
  position: relative;
  overflow: hidden;
}

.radio-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 0, 0, 0.7);
  padding: 2px 9px;
  border-radius: var(--rf);
  margin-bottom: 10px;
}

.radio-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
}

.radio-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.radio-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* BOTTOM SHEET */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 500;
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(2px);
}

#modal-overlay.show {
  display: flex;
}

.bottom-sheet {
  background: #1c1c1f;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding-bottom: 24px;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: var(--rf);
  background: #3a3a3a;
  margin: 10px auto 14px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 700;
  padding: 0 16px 12px;
  border-bottom: 1px solid #242424;
  margin-bottom: 4px;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.14s;
}

.sheet-item:active {
  background: var(--bg3);
}

.sheet-item .mi {
  font-size: 22px;
  color: var(--t2);
}

.sheet-item-text {
  font-size: 14px;
  font-weight: 500;
}

/* ADD YOUTUBE MODAL */
.yt-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 600;
  align-items: flex-end;
  backdrop-filter: blur(3px);
}

.yt-modal.show {
  display: flex;
}

.yt-sheet {
  background: #1c1c22;
  border-radius: 20px 20px 0 0;
  width: 100%;
  padding: 20px 20px 36px;
  animation: slideUp 0.25s ease both;
}

.yt-sheet-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-sheet-sub {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 16px;
}

.yt-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.yt-inp {
  flex: 1;
  background: var(--bg3);
  border: 1.5px solid #333;
  border-radius: var(--r12);
  padding: 11px 14px;
  color: var(--t1);
  font-family: var(--fn);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.yt-inp:focus {
  border-color: var(--blue2);
}

.yt-inp::placeholder {
  color: var(--t3);
}

.yt-go {
  background: var(--red);
  color: #fff;
  border-radius: var(--r12);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--fn);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.yt-go:active {
  background: #c0302e;
}

.yt-examples-title {
  font-size: 12px;
  color: var(--t3);
  margin-bottom: 8px;
}

.yt-example-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r8);
  cursor: pointer;
  transition: background 0.14s;
  border: 1px solid #2a2a2a;
  margin-bottom: 6px;
}

.yt-example-item:active {
  background: var(--bg3);
}

.yt-ex-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg4);
}

.yt-ex-info {
  flex: 1;
  min-width: 0;
}

.yt-ex-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-ex-artist {
  font-size: 11px;
  color: var(--t3);
}

/* TOAST */
#toast {
  position: fixed;
  bottom: calc(var(--nh) + var(--ph) + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #2a2a2f;
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--rf);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 700;
  opacity: 0;
  transition: all 0.22s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* EMPTY */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 12px;
  text-align: center;
}

.empty-state .mi {
  font-size: 52px;
  color: var(--t4);
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--t2);
}

.empty-state p {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.5;
}

.sec:nth-child(1) {
  animation-delay: 0.02s;
}
.sec:nth-child(2) {
  animation-delay: 0.05s;
}
.sec:nth-child(3) {
  animation-delay: 0.08s;
}
.sec:nth-child(4) {
  animation-delay: 0.11s;
}
.sec:nth-child(5) {
  animation-delay: 0.14s;
}
.sec:nth-child(6) {
  animation-delay: 0.17s;
}
.sec:nth-child(7) {
  animation-delay: 0.20s;
}
.sec:nth-child(8) {
  animation-delay: 0.23s;
}
.sec:nth-child(9) {
  animation-delay: 0.26s;
}