/*
  Palette (requested)
  --apache:        #e3c471
  --black-pearl:   #071c39
  --barley-corn:   #a8955f
  --sundance:      #c9a359
  --fuscous-gray:  #55544a
*/

:root {
  --apache: #e3c471;
  --black-pearl: #071c39;
  --barley-corn: #a8955f;
  --sundance: #c9a359;
  --fuscous-gray: #55544a;

  /* Default theme = dark (toggleable). Light theme is applied via [data-theme="light"]. */
  --primary: var(--apache);
  --primary-rgb: 227, 196, 113;
  --bg: #071c39;
  --surface-1: #0b2343;
  --surface-2: #0f2a4d;
  --surface-3: #14335a;
  --surface-4: #1a3f6e;
  --text-main: #fff8ee;
  --text-sub: rgba(227, 196, 113, 0.74);
  --border: rgba(227, 196, 113, 0.14);
  --sidebar-width: 240px;
  --right-width: 300px;
  --mobile-nav-height: 64px;
  --mini-player-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --s1-rgb: 11, 35, 67;
  --s2-rgb: 15, 42, 77;
  --s3-rgb: 20, 51, 90;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] {
  /* clean white with a calming warm tint */
  --primary: var(--sundance);
  --primary-rgb: 201, 163, 89;
  --bg: #fff8ee;
  --surface-1: #fffdf7;
  --surface-2: #ffffff;
  --surface-3: #f6f0e4;
  --surface-4: #efe6d6;
  --text-main: var(--black-pearl);
  --text-sub: var(--fuscous-gray);
  --border: rgba(7, 28, 57, 0.12);
  --s1-rgb: 255, 253, 247;
  --s2-rgb: 255, 255, 255;
  --s3-rgb: 246, 240, 228;
  --shadow-soft: 0 12px 30px rgba(7, 28, 57, 0.1);
}

[data-theme="dark"] {
  --primary: var(--apache);
  --primary-rgb: 227, 196, 113;
  --bg: #071c39;
  --surface-1: #0b2343;
  --surface-2: #0f2a4d;
  --surface-3: #14335a;
  --surface-4: #1a3f6e;
  --text-main: #fff8ee;
  --text-sub: rgba(227, 196, 113, 0.74);
  --border: rgba(227, 196, 113, 0.14);
  --s1-rgb: 11, 35, 67;
  --s2-rgb: 15, 42, 77;
  --s3-rgb: 20, 51, 90;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: #fff0;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: "Philosopher", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  overflow: hidden;
  display: flex;
}

/* --- Boot Loader --- */
#bootLoader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(
      1200px 600px at 20% 10%,
      rgba(var(--primary-rgb), 0.18),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 80% 30%,
      rgba(var(--primary-rgb), 0.12),
      transparent 55%
    ),
    var(--bg);
}

#bootLoader.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.boot-card {
  width: min(420px, 92vw);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(var(--s2-rgb), 0.85);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.boot-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--primary-rgb), 0.18);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.boot-mark .material-icons-round {
  font-size: 30px;
  color: var(--primary);
}

.boot-title {
  font-weight: 1000;
  letter-spacing: 0.2px;
  font-size: 1.35rem;
}

.boot-sub {
  margin-top: 6px;
  color: var(--text-sub);
  font-weight: 800;
  font-size: 0.88rem;
}

.boot-bar {
  margin-top: 18px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(var(--s3-rgb), 0.7);
  overflow: hidden;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.25),
    rgba(var(--primary-rgb), 0.9),
    rgba(var(--primary-rgb), 0.25)
  );
  background-size: 200% 100%;
  animation: bootMove 1.1s ease-in-out infinite;
}

@keyframes bootMove {
  0% {
    transform: translateX(-40%);
    background-position: 0% 0;
  }
  100% {
    transform: translateX(200%);
    background-position: 200% 0;
  }
}

#appRoot {
  width: 100%;
  height: 100%;
  display: flex;
}
img {
  user-select: none;
  object-fit: cover;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}
a {
  color: inherit;
  text-decoration: none;
}
.sidebar-left,
.sidebar-right {
  height: 100vh;
  overflow: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-left {
  width: var(--sidebar-width);
  border-right: 1px solid var(--border);
  padding: 18px 10px 14px;
}
.sidebar-right {
  width: var(--right-width);
  border-left: 1px solid var(--border);
  padding: 18px 14px 14px;
}
.main-view {
  flex: 1;
  height: 100vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(var(--s2-rgb), 1) 0%, var(--bg) 55%);
  padding-bottom: calc(var(--mini-player-height) + var(--safe-bottom) + 24px);
  position: relative;
}
@media (max-width: 900px) {
  body {
    display: block;
  }
  .sidebar-left,
  .sidebar-right {
    display: none !important;
  }
  .main-view {
    height: 100dvh;
    overflow-y: auto;
    padding-bottom: 0 !important;
  }
  #view-home,
  #view-library {
    padding-bottom: 250px !important;
  }
}
.brand {
  padding: 6px 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: 0.2px;
  font-size: 1.35rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 900;
  color: var(--text-sub);
  transition: 0.18s ease;
  cursor: pointer;
  margin: 2px 6px;
}
.nav-item:hover {
  background: var(--surface-3);
  color: var(--text-main);
}
.nav-item.active {
  background: var(--surface-2);
  color: var(--text-main);
}
.nav-item .icon {
  font-size: 24px;
}
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(14px + var(--safe-top)) 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(var(--s1-rgb), 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 0.04);
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
}
.search-input {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 12px 42px;
  border-radius: 999px;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 0.1px;
  outline: none;
}
.search-input:focus {
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  font-size: 22px;
  pointer-events: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-main);
  border: 1px solid var(--border);
  transition: 0.18s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.icon-btn:hover {
  transform: scale(1.1);
  background: var(--surface-3);
}
.icon-btn span.material-icons-round {
  color: var(--text-main);
}
.user-pill {
  background: rgba(var(--s2-rgb), 0.7);
  border: 1px solid var(--border);
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.18s ease;
  max-width: 220px;
}
.user-pill:hover {
  background: var(--surface-4);
}
.user-av {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface-3);
}
.user-name {
  font-size: 0.85rem;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-actions .user-pill {
  display: none !important;
}
.section-title {
  margin: 22px 18px 14px;
  font-size: 1.1rem;
  font-weight: 1000;
  letter-spacing: 0.2px;
}
.hero-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 24px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hero-slider::-webkit-scrollbar {
  display: none;
}
.prophet-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 18px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.prophet-slider::-webkit-scrollbar {
  display: none;
}
.prophet-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid rgb(255 255 255 / 0.08);
  font-weight: 1000;
  cursor: pointer;
  transition: 0.18s ease;
  scroll-snap-align: start;
  max-width: 85vw;
}
[data-theme="light"] .prophet-pill {
  border-color: rgb(0 0 0 / 0.08);
}
.prophet-pill:hover {
  background: var(--surface-3);
  transform: translateY(-1px);
}
.prophet-pill:active {
  transform: scale(0.985);
}
.prophet-pill img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-3);
  flex-shrink: 0;
}
.prophet-pill .p-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 0.85) 0%,
    rgb(0 0 0 / 0.3) 50%,
    transparent 100%
  );
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.hero-ttl {
  margin: 0;
  font-weight: 1100;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgb(0 0 0 / 0.5);
}
.hero-card {
  min-width: 300px;
  height: 170px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgb(255 255 255 / 0.06);
  transition: transform 0.18s ease;
  background: var(--surface-3);
}
.hero-card:active {
  transform: scale(0.985);
}
.hero-bg {
  width: 100%;
  height: 100%;
}
.hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.92) 0%, #fff0 60%);
  padding: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.hero-ttl {
  margin: 0;
  font-weight: 1100;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
}
.hero-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: #000;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.22);
  flex-shrink: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 0 18px;
}
@media (max-width: 520px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hero-card {
    min-width: 260px;
    height: 160px;
  }
}
.card {
  background: var(--surface-2);
  border: 1px solid rgb(255 255 255 / 0.06);
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  min-height: 210px;
  overflow: hidden;
}
[data-theme="light"] .card {
  border-color: rgb(0 0 0 / 0.06);
}
.card:hover {
  background: var(--surface-3);
  transform: translateY(-1px);
}
.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 22px rgb(0 0 0 / 0.35);
  background: var(--surface-3);
}
.card-img {
  width: 100%;
  height: 100%;
}
.play-hover {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #000;
  border-radius: 999px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.22s ease;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.22);
}
.card:hover .play-hover {
  opacity: 1;
  transform: translateY(0);
}
.card-title {
  margin: 0;
  font-weight: 1000;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-sub);
  line-height: 1.2;
  min-height: 1.2em;
  font-weight: 800;
}
.load-more {
  display: block;
  margin: 26px auto 20px;
  padding: 12px 26px;
  background: var(--surface-3);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 999px;
  font-weight: 1000;
  color: var(--text-main);
  transition: 0.18s ease;
}
[data-theme="light"] .load-more {
  border-color: rgb(0 0 0 / 0.06);
}
.load-more:hover {
  background: var(--surface-4);
  transform: translateY(-1px);
}
.side-title {
  font-size: 0.78rem;
  font-weight: 1000;
  color: var(--text-sub);
  letter-spacing: 1.2px;
  margin: 2px 4px 12px;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.18s ease;
}
.queue-item:hover {
  background: var(--surface-3);
}
.q-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface-3);
}
.q-name {
  font-weight: 1000;
  font-size: 0.92rem;
}
.q-sub {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-top: 2px;
  font-weight: 800;
}
.panel {
  background: var(--surface-2);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 14px;
  padding: 14px;
}
[data-theme="light"] .panel {
  border-color: rgb(0 0 0 / 0.06);
}
.panel label {
  font-size: 0.74rem;
  color: var(--text-sub);
  font-weight: 900;
  display: block;
  margin-bottom: 6px;
}
.panel input[type="range"] {
  width: 100%;
}
.bgm-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  margin-top: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bgm-grid::-webkit-scrollbar {
  display: none;
}
.bgm-btn {
  flex-shrink: 0;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-sub);
  font-weight: 1000;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="light"] .bgm-btn {
  border-color: rgb(0 0 0 / 0.1);
  background: #f0f0f0;
}
.bgm-btn:hover {
  transform: translateY(-2px);
  background: var(--surface-3);
  color: var(--text-main);
}
.bgm-btn.active {
  background: var(--primary);
  color: #000 !important;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
  outline: none;
}
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--mobile-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  padding-left: 8px;
  padding-right: 8px;
  background: rgb(0 0 0 / 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  z-index: 600;
}
[data-theme="light"] .mobile-nav {
  background: rgb(255 255 255 / 0.92);
  border-top-color: rgb(0 0 0 / 0.08);
}
@media (min-width: 901px) {
  .mobile-nav {
    display: none;
  }
}
.mob-item {
  flex: 1;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 1000;
  text-align: center;
  user-select: none;
}
.mob-item span.material-icons-round {
  font-size: 24px;
  line-height: 1;
  display: block;
}
.mob-item .mob-label {
  line-height: 1;
  display: block;
  transform: translateY(-1px);
  letter-spacing: 0.15px;
  white-space: nowrap;
}
.mob-item.active {
  color: var(--text-main);
}
.mob-item.active span.material-icons-round {
  color: var(--primary);
}
.mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
  height: var(--mini-player-height);
  padding: 10px 14px;
  background: rgba(var(--s2-rgb), 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgb(255 255 255 / 0.08);
  z-index: 150;
  transform: translateY(0);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}
[data-theme="light"] .mini-player {
  border-top-color: rgb(0 0 0 / 0.08);
}
.mini-player.active {
  transform: translateY(0);
}
@media (min-width: 901px) {
  .mini-player {
    bottom: 0;
    left: var(--sidebar-width);
    right: var(--right-width);
  }
}
.mp-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--surface-3);
  flex-shrink: 0;
}
.mp-info {
  flex: 1;
  min-width: 0;
}
.mp-title {
  font-weight: 1100;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.1;
}
.mp-sub {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
}
.mp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mp-ctl {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.1);
  display: grid;
  place-items: center;
  transition: 0.18s ease;
}
[data-theme="light"] .mp-ctl {
  background: rgb(0 0 0 / 0.06);
  border-color: rgb(0 0 0 / 0.08);
}
.mp-ctl:hover {
  transform: translateY(-1px);
  background: var(--surface-4);
}
.mp-ctl.play {
  background: #fff;
  color: #000;
  border-color: rgb(255 255 255 / 0.3);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.22);
}
[data-theme="light"] .mp-ctl.play {
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.1);
}
.full-player {
  position: fixed;
  inset: 0;
  background: rgba(var(--s2-rgb), 0.98);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  z-index: 260;
  transform: translateY(110%);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: calc(14px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="light"] .full-player {
  border-top-color: rgb(0 0 0 / 0.1);
  background: rgba(var(--s2-rgb), 0.98);
}
.full-player.active {
  transform: translateY(0);
}
.fp-grab {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  margin: 2px auto 2px;
}
[data-theme="light"] .fp-grab {
  background: rgb(0 0 0 / 0.12);
}
.fp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fp-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fp-top .label {
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 1px;
  color: var(--text-sub);
}
.fp-main {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 6px;
}
.fp-art {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: var(--surface-3);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.35);
}
[data-theme="light"] .fp-art {
  border-color: rgb(0 0 0 / 0.08);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.1);
}
.fp-meta {
  flex: 1;
  min-width: 0;
}
.fp-meta h2 {
  margin: 0 0 6px;
  font-weight: 1200;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-meta p {
  margin: 0;
  color: var(--text-sub);
  font-weight: 900;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 6px 0;
}
.fp-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.1);
  display: grid;
  place-items: center;
  transition: 0.18s ease;
}
[data-theme="light"] .fp-btn {
  background: rgb(0 0 0 / 0.06);
  border-color: rgb(0 0 0 / 0.08);
}
.fp-btn:hover {
  transform: translateY(-1px);
  background: var(--surface-4);
}
.fp-btn.play {
  width: 62px;
  height: 62px;
  background: #fff;
  color: #000;
  border-color: rgb(255 255 255 / 0.3);
  box-shadow: 0 16px 42px rgb(0 0 0 / 0.28);
}
[data-theme="light"] .fp-btn.play {
  box-shadow: 0 16px 42px rgb(0 0 0 / 0.1);
}
.fp-progress {
  padding: 0 6px 4px;
}
.fp-time-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-sub);
  font-weight: 900;
  font-size: 0.78rem;
  margin: 6px 2px 8px;
  letter-spacing: 0.2px;
}
input[type="range"].progress {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  outline: none;
}
[data-theme="light"] input[type="range"].progress {
  background: rgb(0 0 0 / 0.12);
}
input[type="range"].progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25);
  border: 2px solid rgb(0 0 0 / 0.35);
  cursor: pointer;
}
input[type="range"].progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary);
  border: 2px solid rgb(0 0 0 / 0.35);
  cursor: pointer;
}
input[type="range"].progress::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
}
.fp-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.1);
  font-weight: 1000;
  font-size: 0.82rem;
  transition: 0.18s ease;
}
[data-theme="light"] .pill {
  background: rgb(0 0 0 / 0.05);
  border-color: rgb(0 0 0 / 0.08);
}
.pill:hover {
  transform: translateY(-1px);
  background: var(--surface-4);
}
.pill span.material-icons-round {
  font-size: 20px;
  color: var(--primary);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  backdrop-filter: blur(8px);
  padding: 18px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  width: min(460px, 96vw);
  max-height: 82vh;
  overflow-y: auto;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 26px 90px rgb(0 0 0 / 0.55);
  padding: 0;
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@media (max-width: 600px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    margin: 0;
    padding-bottom: calc(var(--safe-bottom) + 20px) !important;
  }
  #profileModal .modal-box,
  #bgmModal .modal-box {
    padding: 24px 20px 40px;
  }
  #bgmModal .panel {
    background: var(--surface-3);
    border: none;
    padding: 16px;
    margin-top: 10px;
  }
}
@media (max-width: 600px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
    z-index: 500;
  }
  .modal-box {
    width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    margin: 0;
  }
  #profileModal .modal-box,
  #bgmModal .modal-box {
    padding: 24px 20px 40px;
  }
}
.chapter-head {
  text-align: center;
  padding: 0;
  position: relative;
}
.chapter-head img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.chapter-head h3 {
  margin: 12px 20px 6px;
  font-weight: 1200;
  font-size: 1.4rem;
}
.chapter-head p {
  margin: 0 20px 14px;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
  font-style: italic;
}
.chapter-list {
  padding: 0 14px 20px;
  border-top: none;
  margin-top: 0;
}
.chapter-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}
.chapter-item:hover {
  background: var(--surface-3);
  transform: translateX(4px);
}
.ch-num {
  font-weight: 1000;
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.8;
}
.ch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.ch-name {
  font-weight: 1000;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-sub {
  font-size: 0.75rem;
  color: var(--text-sub);
  font-weight: 800;
}
.ch-play {
  color: var(--primary);
  font-size: 24px;
}
.chip {
  font-size: 12px;
  font-weight: 1000;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  white-space: nowrap;
}
.btn-wide {
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 1100;
  background: var(--surface-3);
  border: 1px solid rgb(255 255 255 / 0.1);
}
[data-theme="light"] .btn-wide {
  border-color: rgb(0 0 0 / 0.08);
}
.btn-wide.primary {
  background: var(--primary);
  color: #000;
  border-color: rgba(var(--primary-rgb), 0.35);
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(
    var(--mobile-nav-height) + var(--mini-player-height) + var(--safe-bottom) +
      14px
  );
  z-index: 999999 !important;
  background: rgb(0 0 0 / 0.86);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 1000;
  font-size: 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 14px 50px rgb(0 0 0 / 0.45);
  display: none;
  max-width: min(520px, 92vw);
}
[data-theme="light"] .toast {
  background: rgb(20 20 20 / 0.92);
}
.toast.show {
  display: block;
  animation: pop 0.18s ease;
}
@keyframes pop {
  from {
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}
.mini-player.loading {
  box-shadow: 0 -14px 40px rgb(0 0 0 / 0.25);
}
.mini-player.loading .mp-ctl.play,
.full-player.loading .fp-btn.play {
  position: relative;
  overflow: hidden;
}
.mini-player.loading .mp-ctl.play::after,
.full-player.loading .fp-btn.play::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, #fff0, rgba(var(--primary-rgb), 0.55), #fff0);
  animation: spin 0.9s linear infinite;
  filter: blur(0.5px);
  opacity: 0.9;
}
.mini-player.loading .mp-ctl.play span,
.full-player.loading .fp-btn.play span {
  position: relative;
  z-index: 2;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.mp-load {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--text-sub);
  font-weight: 900;
  font-size: 0.74rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.22s ease, max-height 0.22s ease;
}
.mini-player.loading .mp-load {
  opacity: 1;
  max-height: 24px;
}
.mp-sub {
  overflow: hidden;
  max-height: 22px;
  transition: opacity 0.22s ease, max-height 0.22s ease, margin-top 0.22s ease;
}
.mini-player.loading .mp-sub {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}
.mp-eq,
.fp-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.mp-eq i,
.fp-eq i {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.95;
  animation: eq 0.9s ease-in-out infinite;
}
.mp-eq i:nth-child(2),
.fp-eq i:nth-child(2) {
  animation-delay: 0.12s;
}
.mp-eq i:nth-child(3),
.fp-eq i:nth-child(3) {
  animation-delay: 0.24s;
}
.mp-eq i:nth-child(4),
.fp-eq i:nth-child(4) {
  animation-delay: 0.36s;
}
@keyframes eq {
  0%,
  100% {
    height: 4px;
    opacity: 0.55;
  }
  50% {
    height: 14px;
    opacity: 1;
  }
}
.fp-status-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.fp-load-ind {
  display: none;
  align-items: flex-end;
}
.full-player.loading .fp-load-ind {
  display: inline-flex;
}
.fp-babbar {
  margin-top: 10px;
  padding: 8px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.bab-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.1);
  font-weight: 1000;
  font-size: 0.86rem;
  transition: 0.18s ease;
  text-align: left;
}
[data-theme="light"] .bab-chip {
  background: rgb(0 0 0 / 0.05);
  border-color: rgb(0 0 0 / 0.08);
}
.bab-chip.active {
  outline: 2px solid rgba(var(--primary-rgb), 0.55);
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.25);
}
.bab-chip:hover {
  transform: translateY(-1px);
  background: var(--surface-4);
}
.bab-chip .bab-label {
  color: var(--primary);
  font-weight: 1100;
  white-space: nowrap;
}
.bab-chip .bab-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee .marquee-inner {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 42px;
  will-change: transform;
  animation: marquee 10s linear infinite;
}
.marquee .marquee-gap {
  width: 42px;
  display: inline-block;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
:root {
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --pad: 16px;
  --pad-sm: 12px;
  --gap: 12px;
  --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.22);
  --shadow-float: 0 18px 60px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] {
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.1);
  --shadow-float: 0 18px 54px rgba(0, 0, 0, 0.14);
}
body {
  overflow: hidden;
}
.main-view {
  padding-bottom: calc(var(--mini-player-height) + var(--safe-bottom) + 24px);
}
.top-bar {
  padding-left: 18px;
  padding-right: 18px;
  border-bottom: 1px solid #fff0;
}
.search-input {
  padding: 12px 44px 12px 42px;
  font-weight: 900;
}
.top-actions .user-pill {
  display: flex !important;
}
.icon-btn {
  background: var(--surface-2) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none;
}
.icon-btn span.material-icons-round {
  color: var(--text-main) !important;
}
.icon-btn:hover {
  background: var(--surface-3) !important;
}
.section-title {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.section-title::after {
  content: "";
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, #fff0, rgba(var(--primary-rgb), 0.22), #fff0);
  margin-bottom: 6px;
  border-radius: 999px;
  opacity: 0.9;
}
.hero-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: linear-gradient(
    180deg,
    var(--surface-2),
    rgba(var(--s2-rgb), 0.75)
  );
}
.card-img-wrap {
  border-radius: var(--radius-md);
}
.card:hover {
  transform: translateY(-2px);
}
.play-hover {
  opacity: 1;
  transform: none;
  background: rgba(var(--primary-rgb), 0.92);
}
.card:hover .play-hover {
  opacity: 1;
  transform: none;
}
.card-badges {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.15px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
}
[data-theme="light"] .badge {
  background: rgb(255 255 255 / 0.8);
  color: #101010;
  border-color: rgb(0 0 0 / 0.08);
}
.badge .material-icons-round {
  font-size: 16px;
  color: var(--primary);
}
.badge-muted {
  opacity: 0.9;
}
.badge-good {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.35);
  color: var(--primary);
}
[data-theme="light"] .badge-good {
  background: rgba(var(--primary-rgb), 0.14);
  color: #0c7a33;
}
.badge-warn {
  background: rgb(255 200 0 / 0.18);
  border-color: rgb(255 200 0 / 0.25);
  color: #ffd24a;
}
[data-theme="light"] .badge-warn {
  color: #7a5a00;
}
.filters {
  margin: 10px 18px 12px;
  padding: 8px 6px;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.filter-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.filter-scroll::-webkit-scrollbar {
  display: none;
}
.f-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  font-weight: 1000;
  font-size: 0.85rem;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}
.f-chip.active {
  background: var(--primary);
  color: #000 !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}
.f-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.f-chip span.material-icons-round {
  font-size: 18px;
  color: inherit !important;
}
.fp-main {
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.fp-art {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #111;
  position: relative;
  border: 8px solid #222;
  box-shadow: 0 15px 50px rgb(0 0 0 / 0.5), inset 0 0 20px rgb(0 0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}
.fp-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle, #222 0, #111 2px);
  opacity: 0.3;
}
#fpArt {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 2;
  border: 4px solid #111;
  object-fit: cover;
  animation: spin 10s linear infinite;
  animation-play-state: paused;
}
.fp-art::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border-radius: 50%;
  z-index: 3;
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.5);
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.playing #fpArt {
  animation-play-state: running;
}
input[type="range"].progress {
  -webkit-appearance: none;
  background: rgb(255 255 255 / 0.1);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-size: 0% 100%;
}
[data-theme="light"] input[type="range"].progress {
  background: rgb(0 0 0 / 0.1);
}
#historyGrid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px;
}
.history-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.history-item:hover {
  background: var(--surface-3);
  transform: translateX(4px);
}
.hist-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}
.hist-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hist-title {
  font-weight: 1000;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-sub {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 800;
  margin-top: 4px;
}
.hist-play {
  color: var(--primary);
  font-size: 28px;
  opacity: 0.8;
}
@media (max-width: 600px) {
  .history-item {
    grid-template-columns: 50px 1fr auto;
    gap: 12px;
  }
  .hist-img {
    width: 50px;
    height: 50px;
  }
}
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
}
.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}
#editAvatarPreview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.2);
}
.change-photo-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid var(--surface-2);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.profile-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.action-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
  cursor: pointer;
}
.action-card:hover {
  background: var(--surface-4);
  transform: translateY(-2px);
}
.action-card span {
  font-size: 28px;
  color: var(--primary);
}
.action-card label {
  font-size: 0.8rem;
  font-weight: 1000;
  color: var(--text-main);
  cursor: pointer;
}
#bgmModal {
  z-index: 99999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgb(0 0 0 / 0.85) !important;
}
#bgmModal .modal-box {
  margin: auto !important;
  width: min(400px, 90vw) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  border-bottom: 1px solid rgb(255 255 255 / 0.1) !important;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.75) !important;
}
#bgmModal .panel {
  margin-top: 0 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.fullscreen-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.auth-input {
  width: 100%;
  background: var(--surface-2);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 1000;
  margin-bottom: 12px;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}
.auth-input:focus {
  border-color: var(--primary);
  background: var(--surface-3);
}
.splash-slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.splash-slide {
  width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  flex-shrink: 0;
}
.splash-img-wrap {
  width: 180px;
  height: 180px;
  background: var(--surface-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.1);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.splash-slide h1 {
  font-size: 2rem;
  font-weight: 1200;
  margin: 0 0 16px;
  line-height: 1.2;
}
.splash-slide p {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0;
}
.splash-dots {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  transition: 0.3s;
  cursor: pointer;
}
.dot.active {
  width: 30px;
  background: var(--primary);
  border-radius: 10px;
}
.splash-slide {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: #ffffff !important;
}
.splash-slide h1,
.splash-slide p {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.7);
}
.splash-slide .material-icons-round {
  color: #ffffff !important;
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 0.5));
}
#slide1 {
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.8)),
    url(/assets/splash1.jpg);
}
#slide2 {
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.8)),
    url(/assets/splash2.jpg);
}
#slide3 {
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.8)),
    url(/assets/splash3.jpg);
}
.app-blur {
  filter: blur(8px) grayscale(0.8);
  pointer-events: none;
  user-select: none;
  transition: 0.5s ease;
}
.premium-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgb(0 0 0 / 0.9);
  backdrop-filter: blur(15px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.premium-card {
  position: relative;
  background: linear-gradient(160deg, #1a1a1a 0%, #000000 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 32px;
  padding: 40px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 25px 80px rgb(0 0 0 / 0.8);
  animation: slideUpFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glow-effect {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.lock-icon-wrap {
  width: 70px;
  height: 70px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.1);
}
.lock-pulse {
  font-size: 32px;
  color: var(--primary);
  animation: lockBeat 2s infinite;
}
.premium-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 1200;
  background: linear-gradient(to right, #fff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
  letter-spacing: -0.5px;
}
.premium-desc {
  color: #a0a0a0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 25px;
  font-weight: 600;
}
.price-container {
  background: rgb(255 255 255 / 0.05);
  border-radius: 20px;
  padding: 16px;
  border: 1px dashed rgba(var(--primary-rgb), 0.3);
  margin-bottom: 25px;
}
.price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 1000;
  margin-bottom: 4px;
}
.price-amount {
  font-size: 2.2rem;
  font-weight: 1200;
  color: #fff;
  letter-spacing: -1px;
}
.currency {
  font-size: 1rem;
  vertical-align: top;
  margin-right: 2px;
}
.period {
  font-size: 0.9rem;
  color: #888;
  font-weight: 600;
}
.premium-features {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.pf-item {
  font-size: 0.75rem;
  color: #ccc;
  background: rgb(255 255 255 / 0.08);
  padding: 6px 12px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.pf-item span {
  font-size: 16px;
  color: var(--primary);
}
.btn-unlock-premium {
  width: 100%;
  padding: 18px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(90deg, #ffd700, #ffa500);
  color: #000;
  font-size: 1rem;
  font-weight: 1200;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-unlock-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(var(--primary-rgb), 0.4);
}
.btn-unlock-premium:active {
  transform: scale(0.98);
}
.refresh-link {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #666;
}
.refresh-link span {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
@keyframes lockBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#profileModal {
  z-index: 20000 !important;
  background: var(--bg);
}
#profileModal .modal-box {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--bg) 100%);
  padding: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
}
.prof-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + var(--safe-top)) 20px 16px;
  background: rgba(var(--s1-rgb), 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.prof-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px 40px;
  background: radial-gradient(
    circle at top,
    var(--surface-2) 0%,
    transparent 70%
  );
}
.prof-avatar-wrap {
  position: relative;
  margin-bottom: 18px;
}
.prof-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface-2);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.3);
}
.prof-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--primary);
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 4px solid var(--surface-1);
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.2);
}
.sub-card {
  margin: 0 20px 24px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e1e1e 0%, #000000 100%);
  border: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .sub-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
}
.sub-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.2;
}
.prof-menu-list {
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: 0.2s;
  cursor: pointer;
}
.pm-item:hover {
  background: var(--surface-3);
  transform: translateX(4px);
}
.pm-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--primary);
}
.pay-group-label {
  font-size: 0.75rem;
  font-weight: 1000;
  color: var(--primary);
  margin: 15px 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pay-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 8px;
}
.pay-item:hover {
  border-color: var(--primary);
  background: var(--surface-4);
}
.pay-logo {
  width: 45px;
  height: 30px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
}
.eq-container {
  background: rgb(0 0 0 / 0.2);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid rgb(255 255 255 / 0.05);
}
.eq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.eq-title {
  font-size: 0.8rem;
  font-weight: 1000;
  color: var(--text-sub);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.noise-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: rgb(255 255 255 / 0.05);
  padding: 4px 8px 4px 4px;
  border-radius: 99px;
  border: 1px solid rgb(255 255 255 / 0.1);
  transition: 0.2s;
}
.noise-toggle.active {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
}
.noise-icon {
  width: 24px;
  height: 24px;
  background: var(--surface-4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-sub);
}
.noise-toggle.active .noise-icon {
  background: var(--primary);
  color: #000;
}
.noise-label {
  font-size: 0.7rem;
  font-weight: 1000;
  color: var(--text-sub);
}
.noise-toggle.active .noise-label {
  color: var(--primary);
}
.eq-bands {
  display: flex;
  justify-content: space-between;
  height: 140px;
  padding: 10px 0;
}
.band-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 16%;
}
.band-slider {
  -webkit-appearance: none;
  width: 100px;
  height: 6px;
  background: var(--surface-4);
  border-radius: 99px;
  outline: none;
  transform: rotate(-90deg);
  margin: 50px 0;
}
.band-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.5);
  border: 2px solid var(--surface-2);
}
.band-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.band-wrap:nth-child(1) .band-slider::-webkit-slider-thumb {
  background: #ff4d4d;
}
.band-wrap:nth-child(2) .band-slider::-webkit-slider-thumb {
  background: #fa0;
}
.band-wrap:nth-child(3) .band-slider::-webkit-slider-thumb {
  background: #ff0;
}
.band-wrap:nth-child(4) .band-slider::-webkit-slider-thumb {
  background: #00e600;
}
.band-wrap:nth-child(5) .band-slider::-webkit-slider-thumb {
  background: #0cf;
}
.band-label {
  font-size: 0.65rem;
  color: var(--text-sub);
  font-weight: 800;
  margin-top: -30px;
}
.band-val {
  font-size: 0.65rem;
  color: var(--text-main);
  font-weight: 1000;
  margin-bottom: -30px;
}
#spectrumCanvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
  mask-image: linear-gradient(to top, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 80%, transparent 100%);
}
.fp-controls,
.fp-progress,
.fp-actions,
.fp-main,
.fp-top {
  position: relative;
  z-index: 5;
}
.fp-bg-anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
  filter: blur(30px) brightness(0.6);
  transform: scale(1.2);
  animation: bgMove 60s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes bgMove {
  0% {
    object-position: 10% 50%;
    transform: scale(1.2);
  }
  100% {
    object-position: 90% 50%;
    transform: scale(1.3);
  }
}
#spectrumCanvas {
  z-index: 1;
}
.fp-grab,
.fp-top,
.fp-main,
.fp-progress,
.fp-controls,
.fp-actions {
  position: relative;
  z-index: 2;
}
.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: rgb(0 0 0 / 0.92);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pm-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(145deg, #1a1a1a 0%, #000000 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 32px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.9);
  overflow: hidden;
  animation: pmSlideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: #fff;
  font-family: "Philosopher", sans-serif;
}
@keyframes pmSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.pm-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.pm-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.15);
  z-index: 1;
}
.pm-lock-anim {
  font-size: 36px;
  color: var(--primary);
  animation: pmPulse 2s infinite;
}
@keyframes pmPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 25px rgba(var(--primary-rgb), 0.8);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  }
}
.pm-title {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff 20%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
  position: relative;
  z-index: 1;
}
.pm-desc {
  font-size: 0.95rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin: 0 0 24px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.pm-price-box {
  background: rgb(255 255 255 / 0.05);
  border: 1px dashed rgba(var(--primary-rgb), 0.3);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.pm-currency {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  vertical-align: top;
  margin-right: 4px;
}
.pm-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.pm-period {
  font-size: 0.9rem;
  color: #888;
  font-weight: 600;
}
.pm-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pm-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e0e0e0;
  font-weight: 600;
}
.pm-feat span {
  color: var(--primary);
  font-size: 20px;
}
.pm-btn-action {
  width: 100%;
  padding: 18px;
  border-radius: 99px;
  border: none;
  background: linear-gradient(135deg, #ffd700 0%, #fdb931 50%, #ffd700 100%);
  color: #000;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.25);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.pm-btn-action:active {
  transform: scale(0.96);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}
.pm-footer {
  margin-top: 24px;
  font-size: 0.8rem;
  color: #666;
  position: relative;
  z-index: 1;
}
.pm-footer span {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}
#homeNotificationArea {
  width: 100%;
  padding: 0 20px;
  margin-top: 20px;
  margin-bottom: 5px;
  box-sizing: border-box;
  animation: slideDown 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.notify-banner {
  position: relative;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.notify-banner:active {
  transform: scale(0.98);
  background: var(--surface-4);
}
.notify-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 0.05),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}
.notify-icon {
  width: 42px;
  height: 42px;
  background: rgba(var(--primary-rgb), 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid rgba(var(--primary-rgb), 0.22);
}
.notify-content {
  flex: 1;
  min-width: 0;
}
.notify-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}
.notify-desc {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notify-arrow {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}
