:root {
  color-scheme: dark;
  --ink: #0d1324;
  --ink-2: #172033;
  --paper: #f7ead2;
  --paper-soft: #fff5e3;
  --muted: #adbaa8;
  --gold: #d9a441;
  --red: #d6414f;
  --rose: #f19aa3;
  --line: rgba(247, 234, 210, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --uaena-symbol: url("./assets/uaena-symbol-dark.png");
  --uaena-symbol-light: url("./assets/uaena-symbol-light.png");
  --uaena-bg-light-mobile: url("./assets/bg-uaena-light-portrait.png");
  --uaena-bg-dark-mobile: url("./assets/bg-uaena-dark-portrait.png");
  --uaena-bg-light-desktop: url("./assets/bg-uaena-light-landscape.png");
  --uaena-bg-dark-desktop: url("./assets/bg-uaena-dark-landscape.png");
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

.searchGlassShell {
  padding: 8px;
  border-radius: 28px;
}

.searchGlassShell::after {
  content: "";
  position: absolute;
  inset: 1px 12% auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  opacity: 0.72;
}

.globalSearchPanel {
  gap: 7px;
}

.globalSearchPanel input,

.globalSearchPanel select {
  min-height: 50px;
  border-radius: 22px;
  background-color: rgba(7, 11, 21, 0.42);
}

.globalSearchPanel input::placeholder {
  color: rgba(247, 234, 210, 0.52);
}

.globalSearchBox:focus-within .globalSearchIcon {
  transform: scale(1.12) rotate(-6deg);
  filter: drop-shadow(0 0 7px rgba(121, 185, 255, 0.44));
}

.bottomNav {
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 6px;
  border-color: rgba(247, 234, 210, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.32), 0 0 38px var(--theme-glow-b, rgba(217, 164, 65, 0.13));
}

.bottomNav__indicator {
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: calc((100% - 12px) / 5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 7px 20px rgba(0, 0, 0, 0.2), 0 0 26px rgba(121, 185, 255, 0.15);
}

.bottomNav button {
  min-height: 60px;
  gap: 4px;
  transition: color 240ms ease, transform 180ms ease, opacity 240ms ease;
}

.bottomNav button:active {
  transform: translateY(1px) scale(0.94);
}

.bottomNav button:focus-visible {
  outline: 2px solid rgba(140, 200, 255, 0.74);
  outline-offset: -4px;
}

.bottomNav button:not(.is-active) {
  opacity: 0.82;
}

.bottomNav button.is-active {
  opacity: 1;
  text-shadow: 0 0 14px rgba(121, 185, 255, 0.34);
}

.bottomNav button.is-active .navIcon {
  filter: drop-shadow(0 0 7px rgba(121, 185, 255, 0.42));
}

body.theme-light .globalSearchPanel input,

body.theme-light .globalSearchPanel select {
  color: #241a39;
  border-color: rgba(83, 64, 126, 0.2);
  background-color: rgba(255, 255, 255, 0.64);
}

body.theme-light .globalSearchPanel input:focus,

body.theme-light .globalSearchPanel select:focus {
  border-color: rgba(111, 75, 166, 0.48);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(111, 75, 166, 0.08), 0 9px 22px rgba(91, 70, 125, 0.1);
}

body.theme-light .globalSearchPanel input::placeholder {
  color: rgba(71, 51, 103, 0.52);
}

@media (max-width: 720px) {

  .searchGlassShell {
    padding: 7px;
    border-radius: 23px;
  }

  .searchGlassShell:focus-within,

  .searchPage.has-search .searchGlassShell {
    border-radius: 18px;
    transform: translateY(-1px);
  }

  .globalSearchPanel {
    grid-template-columns: 1fr;
  }

  .globalSearchPanel input,

  .globalSearchPanel select {
    min-height: 48px;
    border-radius: 17px;
  }

  .bottomNav {
    width: min(430px, calc(100% - 14px));
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 5px;
  }

  .bottomNav__indicator {
    left: 5px;
    top: 5px;
    bottom: 5px;
    width: calc((100% - 10px) / 5);
  }

  .bottomNav button {
    min-height: 55px;
    padding-inline: 2px;
    font-size: clamp(0.56rem, 2.55vw, 0.66rem);
  }

  .navIcon {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 350px) {

  .bottomNav button {
    min-height: 52px;
    font-size: 0.55rem;
  }

  .navIcon {
    width: 20px;
    height: 20px;
  }
}

body[data-active-view="music"] .listMoreButton {
  grid-column: 1;
}

.bottomNav button > span:not(.navIcon) {
  display: none !important;
}

.bottomNav button {
  gap: 0 !important;
}

@media (max-width: 640px) {
}

.bottomNav button > span:not(.navIcon) {
  display: none !important;
}

.bottomNav button {
  gap: 0 !important;
}

body[data-active-view="music"] {
  color: #3b245f;
  background: radial-gradient(circle at 14% 10%, rgba(188, 170, 245, 0.24), transparent 27rem), radial-gradient(circle at 92% 6%, rgba(240, 219, 170, 0.18), transparent 26rem), var(--uaena-bg-light-desktop) center center / cover fixed no-repeat, #f8f3ff;
}

body[data-active-view="music"]::before,

body[data-active-view="music"]::after {
  animation: none !important;
}

@media (max-width: 640px) {
  body[data-active-view="music"] {
    background: radial-gradient(circle at 16% 0%, rgba(188, 170, 245, 0.26), transparent 18rem), var(--uaena-bg-light-mobile) center top / cover fixed no-repeat, #f8f3ff;
  }
}

@media (max-width: 640px) {

  .lyricsDialog {
    width: min(430px, calc(100vw - 20px));
    max-height: calc(100dvh - 120px);
    padding: 24px 18px 34px;
    border: 0;
    border-radius: 0;
    color: #3b245f;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)), #fbf9ff;
    box-shadow: 0 22px 60px rgba(61, 42, 91, 0.18);
  }

  .lyricsDialog__head {
    grid-template-columns: 1fr auto;
    border: 0;
    padding: 0;
    margin-bottom: 20px;
  }

  .lyricsDialog__head .eyebrow {
    color: #9b8124;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
  }

  .lyricsDialog__head h2 {
    margin-top: 16px;
    color: #3b245f;
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .dialogCloseButton {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(105, 70, 150, 0.12);
    box-shadow: 0 10px 28px rgba(61, 42, 91, 0.12);
  }

  .lyricsDialog__body {
    max-height: none;
    padding: 0;
    color: #3b245f;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.28), rgba(5, 8, 16, 0.48)),
    var(--uaena-bg-dark-desktop) center center / cover fixed no-repeat,
    #060914;
  color: var(--paper);
  min-height: 100vh;
  padding-bottom: 88px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(5, 8, 16, 0.42), transparent 28rem),
    radial-gradient(circle at 94% 8%, rgba(5, 8, 16, 0.34), transparent 30rem),
    linear-gradient(90deg, rgba(5, 8, 16, 0.38), transparent 26%, transparent 74%, rgba(5, 8, 16, 0.42));
  transform: translate3d(0, 0, 0);
  animation: glassDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 72%);
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

@keyframes glassDrift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-2deg) scale(1.02);
  }

  to {
    transform: translate3d(2%, 1%, 0) rotate(2deg) scale(1.05);
  }
}

body.theme-light {
  color-scheme: light;
  --ink: #fff8ea;
  --ink-2: #fffdf7;
  --paper: #172033;
  --paper-soft: #0d1324;
  --muted: #596579;
  --line: rgba(13, 19, 36, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.1), rgba(255, 253, 247, 0.3)),
    var(--uaena-bg-light-desktop) center center / cover fixed no-repeat,
    #fffdf7;
  --uaena-symbol: var(--uaena-symbol-light);
}

body {
  background:
    linear-gradient(180deg, rgba(5, 8, 16, 0.28), rgba(5, 8, 16, 0.48)),
    var(--uaena-bg-dark-desktop) center center / cover fixed no-repeat,
    #060914;
}

body.theme-light {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.1), rgba(255, 253, 247, 0.3)),
    var(--uaena-bg-light-desktop) center center / cover fixed no-repeat,
    #fffdf7;
}

body.theme-light::before {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 253, 247, 0.44), transparent 28rem),
    radial-gradient(circle at 94% 8%, rgba(255, 253, 247, 0.34), transparent 30rem),
    linear-gradient(90deg, rgba(255, 253, 247, 0.36), transparent 26%, transparent 74%, rgba(255, 253, 247, 0.42));
}

body.theme-light::after {
  background:
    linear-gradient(rgba(13, 19, 36, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 19, 36, 0.012) 1px, transparent 1px);
}

.app-ready [data-view]:not(.is-active-view) {
  display: none;
}

button,

input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 0 56px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 800;
}

h1,

h2,

h3,

p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  line-height: 0.92;
  margin-bottom: 22px;
  max-width: 7ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(247, 234, 210, 0.22);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.search span,

.toggle {
  color: rgba(247, 234, 210, 0.68);
  font-size: 0.92rem;
}

.sectionTabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px 14px;
  margin: 0 0 26px;
  border: 1px solid rgba(247, 234, 210, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(13, 19, 36, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(1.35);
  scrollbar-width: none;
}
.sectionTabs::-webkit-scrollbar { display: none; }

body[data-active-view="music"] .sectionTabs {
  margin-top: 0;
}

.sectionTabs[hidden] {
  display: none;
}

.sectionTabs button,

.bottomNav button,

.segmentedControl button {
  border: 1px solid rgba(247, 234, 210, 0.18);
  color: rgba(247, 234, 210, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(247, 234, 210, 0.07);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 15px;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(18px) saturate(1.35);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.sectionTabs button.is-active,

.bottomNav button.is-active,

.segmentedControl button.is-active {
  color: var(--ink);
  background: var(--paper-soft);
  border-color: var(--paper-soft);
  font-weight: 900;
  box-shadow:
    0 8px 22px rgba(247, 234, 210, 0.12),
    0 0 34px var(--theme-glow-a, rgba(217, 164, 65, 0.2));
}

.sectionTabs button:hover,

.bottomNav button:hover,

.segmentedControl button:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 234, 210, 0.36);
}

.catalog {
  padding-top: 22px;
  margin-bottom: 78px;
}

.catalog__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.catalog__head p:not(.eyebrow) {
  max-width: 48rem;
  color: rgba(247, 234, 210, 0.7);
  line-height: 1.7;
  margin-bottom: 0;
}

.catalog__head strong {
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
}

.listMoreButton {
  display: block;
  width: min(300px, 82vw);
  min-height: 46px;
  margin: 20px auto 4px;
  border: 1px solid rgba(247, 234, 210, 0.24);
  border-radius: 999px;
  color: var(--paper);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(1.35);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.listMoreButton[hidden] {
  display: none;
}

.toTopButton {
  position: fixed;
  right: 18px;
  top: 76px;
  z-index: 60;
  min-width: 62px;
  height: 38px;
  border: 1px solid rgba(247, 234, 210, 0.24);
  border-radius: 999px;
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(13, 19, 36, 0.66);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.22),
    0 0 28px var(--theme-glow-a, rgba(217, 164, 65, 0.2));
  backdrop-filter: blur(22px) saturate(1.35);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.toTopButton.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toTopButton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 25%, rgba(255, 255, 255, 0.22), transparent 55%);
  transform: translateX(-90%);
  animation: glassSweep 3.2s ease-in-out infinite;
}

.toTopButton:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

@keyframes glassSweep {
  0%,
  55% {
    transform: translateX(-90%);
  }
  100% {
    transform: translateX(90%);
  }
}

.searchPage {
  margin-bottom: 92px;
}

.searchGlassShell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035) 42%, transparent 72%),
    rgba(13, 19, 36, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 46px rgba(0, 0, 0, 0.2),
    0 0 42px var(--theme-glow-b, rgba(217, 164, 65, 0.13));
  backdrop-filter: blur(30px) saturate(1.55);
  transform-origin: 50% 0;
  transition: border-radius 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 320ms ease, box-shadow 420ms ease,
    background 420ms ease;
}

.searchGlassShell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 14%, rgba(255, 255, 255, 0.16) 42%, transparent 68%);
  transform: translateX(-115%);
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.searchGlassShell:focus-within,

.searchPage.has-search .searchGlassShell {
  border-radius: 24px;
  transform: translateY(-2px) scale(1.006);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 28px 64px rgba(0, 0, 0, 0.27),
    0 0 52px var(--theme-glow-a, rgba(180, 111, 209, 0.2));
}

.searchGlassShell:focus-within::before,

.searchPage.has-search .searchGlassShell::before {
  transform: translateX(115%);
}

.globalSearchPanel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.28fr);
  gap: 8px;
}

.globalSearchPanel label {
  display: flex;
  align-items: center;
  color: rgba(247, 234, 210, 0.68);
  font-size: 0.9rem;
}

.globalSearchBox {
  position: relative;
}

.globalSearchBox .globalSearchIcon {
  position: absolute;
  left: 16px;
  width: 19px;
  height: 19px;
  color: var(--paper-soft);
  z-index: 2;
  pointer-events: none;
  transition: transform 260ms ease, color 260ms ease;
}

.globalSearchBox:focus-within .globalSearchIcon {
  color: #79b9ff;
  transform: scale(1.08) rotate(-7deg);
}

.globalSearchPanel input,

.globalSearchPanel select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(247, 234, 210, 0.2);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.34);
  color: var(--paper);
  padding: 0 16px;
  outline: none;
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.globalSearchPanel input {
  padding-left: 47px;
}

.globalSearchPanel input:focus,

.globalSearchPanel select:focus {
  border-color: rgba(121, 185, 255, 0.72);
  background: rgba(8, 12, 22, 0.52);
  box-shadow: inset 0 0 0 1px rgba(121, 185, 255, 0.12), 0 0 24px rgba(121, 185, 255, 0.1);
}

.globalSearchScope {
  position: relative;
}

.globalSearchScope > span {
  position: absolute;
  left: 15px;
  z-index: 2;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
}

.globalSearchScope select {
  padding-left: 49px;
}

.globalSearchResults {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-12px);
  transition: max-height 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease, transform 420ms ease,
    padding 420ms ease;
}

.searchGlassShell:focus-within .globalSearchResults,

.searchPage.has-search .globalSearchResults {
  max-height: 5000px;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
  padding: 12px 4px 4px;
}

.searchPage:not(.has-search) .globalSearchResults {
  max-height: 78px;
  opacity: 1;
  transform: translateY(0);
  padding: 8px 4px 0;
}

.globalSearchResults:empty {
  display: none;
}

.searchPage:not(.has-search) .globalSearchResults .selectionPrompt {
  min-height: 58px;
  padding: 14px;
}

.searchPage.has-search .globalResult {
  animation: searchResultReveal 460ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.searchPage.has-search .globalResult:nth-child(2n) {
  animation-delay: 55ms;
}

@keyframes searchResultReveal {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.globalResult {
  border: 1px solid rgba(247, 234, 210, 0.16);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 234, 210, 0.08), rgba(247, 234, 210, 0.03)),
    rgba(13, 19, 36, 0.82);
  backdrop-filter: blur(20px) saturate(1.25);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.globalResult:hover,

.globalResult:focus-within {
  transform: translateY(-2px);
  border-color: rgba(121, 185, 255, 0.62);
  background:
    linear-gradient(110deg, rgba(76, 151, 244, 0.2), rgba(170, 125, 219, 0.08) 58%, transparent),
    rgba(13, 19, 36, 0.86);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 24px rgba(121, 185, 255, 0.1);
}

.globalResult__cover {
  min-height: 152px;
  background:
    linear-gradient(135deg, var(--night), var(--red));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  padding: 10px;
}

.globalResult__cover span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 7px;
  color: #fff;
  font-size: 0.72rem;
  background: rgba(8, 12, 22, 0.32);
  backdrop-filter: blur(12px);
}

.globalResult__body {
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.globalResult__body > span,

.globalResult__body small {
  color: var(--muted);
  font-size: 0.8rem;
}

.globalResult h3,

.globalResult p {
  margin: 0;
}

.globalResult h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.globalResult p {
  color: rgba(247, 234, 210, 0.68);
  font-size: 0.86rem;
  line-height: 1.45;
}

.zhLine {
  color: rgba(247, 234, 210, 0.58) !important;
  font-size: 0.78rem;
  line-height: 1.35;
}

.trackLinks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trackLinks a,

.trackLinkButton {
  border: 1px solid rgba(247, 234, 210, 0.15);
  color: rgba(247, 234, 210, 0.8);
  text-decoration: none;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 0.75rem;
}

.trackLinkButton {
  background: rgba(247, 234, 210, 0.06);
  cursor: pointer;
  white-space: nowrap;
}

.trackLinkButton--primary {
  border-color: rgba(217, 164, 65, 0.5);
  color: var(--paper);
  background: rgba(217, 164, 65, 0.14);
}

.trackLinks a:hover,

.trackLinkButton:hover {
  border-color: var(--gold);
  color: var(--paper);
}

.library {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 234, 210, 0.07);
  padding: 20px;
}

.search {
  display: grid;
  gap: 8px;
}

.search input {
  min-height: 46px;
  border: 1px solid rgba(247, 234, 210, 0.2);
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.45);
  color: var(--paper);
  padding: 0 14px;
  outline: none;
}

.search input:focus {
  border-color: var(--gold);
}

.toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.note p {
  color: rgba(247, 234, 210, 0.7);
  line-height: 1.75;
}

.sectionHead {
  margin-bottom: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(247, 234, 210, 0.26);
  border-radius: 8px;
  padding: 28px;
  color: rgba(247, 234, 210, 0.72);
}

.selectionPrompt {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(247, 234, 210, 0.045);
  backdrop-filter: blur(18px) saturate(1.2);
}

.archive {
  margin-top: 78px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.archive .eyebrow {
  color: var(--red);
}

.screenPage,

.merchPage,

.profilePage {
  min-height: calc(100vh - 180px);
}

.screenGrid,

.merchGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.officialShelf {
  --official-card-size: clamp(150px, 15vw, 182px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--official-card-size);
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 18px;
  margin-bottom: 16px;
  scroll-snap-type: x proximity;
}

.officialShelf[hidden] {
  display: none;
}

.officialCategoryCard {
  block-size: var(--official-card-size);
  aspect-ratio: 1;
  min-height: 0;
  border: 1px solid rgba(247, 234, 210, 0.2);
  border-radius: 18px;
  padding: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  color: #fff;
  text-align: left;
  background-color: #090d18;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.officialCategoryCard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03) 45%, rgba(5, 8, 18, 0.28));
  backdrop-filter: blur(2px) saturate(1.28);
  -webkit-backdrop-filter: blur(2px) saturate(1.28);
}

.officialCategoryCard:hover,

.officialCategoryCard.is-active {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 28px var(--theme-glow-a, rgba(217, 164, 65, 0.2));
}

.officialCategoryCard__copy {
  display: grid;
  gap: 2px;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 20, 0.82));
}

.officialCategoryCard__copy strong {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.18;
}

.officialCategoryCard__copy small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  line-height: 1.3;
}

.officialCategoryCard__copy em {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.64rem;
  font-style: normal;
  line-height: 1.25;
}

.officialVideoCard {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(88px, auto);
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 52%, transparent),
    rgba(13, 19, 36, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(1.3);
  transition: transform 180ms ease, border-color 180ms ease;
}

.officialVideoCard:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 164, 65, 0.48);
}

.officialVideoCard__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080c16;
}

.officialVideoCard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.officialVideoCard__cover small {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
}

.officialVideoCard__body {
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.officialVideoCard__body strong {
  line-height: 1.35;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.officialVideoCard__body small {
  color: var(--muted);
  font-size: 0.72rem;
}

.merchGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.merchShelf {
  margin-top: 8px;
}

.screenCard {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 42%, transparent 72%),
    linear-gradient(180deg, rgba(247, 234, 210, 0.08), rgba(247, 234, 210, 0.03)),
    rgba(13, 19, 36, 0.82);
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px minmax(0, 1fr);
  min-height: 430px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.18),
    0 0 34px var(--theme-glow-b, rgba(217, 164, 65, 0.12));
  backdrop-filter: blur(26px) saturate(1.35);
}

.screenCard__cover {
  background:
    linear-gradient(135deg, rgba(214, 65, 79, 0.86), rgba(217, 164, 65, 0.82)),
    var(--red);
  color: #fffdf7;
  padding: 12px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  background-color: #070a12 !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.screenCard__cover::after {
  content: "";
  width: 70px;
  height: 58px;
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: var(--uaena-symbol) center / contain no-repeat;
  opacity: 0.74;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.36));
}

.screenCard__cover span,

.screenCard__cover strong,

.screenCard__cover small {
  position: relative;
  z-index: 1;
}

.screenCard__cover span {
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.8;
}

.screenCard__cover strong {
  max-width: 13ch;
  line-height: 1.05;
  font-weight: 900;
  font-size: 1.22rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.screenCard__cover small {
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.78;
}

.screenCard__cover.isMissingCover {
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(214, 65, 79, 0.68)),
    var(--ink) !important;
}

.screenCard__body {
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.screenCard__body span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.screenCard__body h3 {
  font-size: 1.04rem;
  line-height: 1.18;
  margin: 0;
}

.screenCard__body small {
  color: var(--muted);
  line-height: 1.35;
}

.screenCard__body p {
  margin: 0;
  color: rgba(247, 234, 210, 0.72);
  line-height: 1.48;
  font-size: 0.84rem;
}

.screenCard.isPosterLayout {
  grid-template-rows: 230px minmax(0, 1fr);
}

.screenCard.isWideLayout {
  grid-template-rows: 160px minmax(0, 1fr);
}

.merchCard {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 42%, transparent 72%),
    linear-gradient(180deg, rgba(247, 234, 210, 0.08), rgba(247, 234, 210, 0.03)),
    rgba(13, 19, 36, 0.82);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(88px, auto);
  min-height: 0;
  text-decoration: none;
  color: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 38px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(26px) saturate(1.36);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.merchCard:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 164, 65, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 48px rgba(0, 0, 0, 0.22),
    0 0 30px var(--theme-glow-a, rgba(214, 65, 79, 0.16));
}

.merchCard__cover {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.92), rgba(214, 65, 79, 0.55)),
    rgba(13, 19, 36, 0.88);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}

.merchCard__cover::after {
  content: "";
  width: 54px;
  height: 45px;
  position: absolute;
  right: 8px;
  bottom: 7px;
  background: var(--uaena-symbol) center / contain no-repeat;
  opacity: 0.72;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.merchCard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merchCard__cover small {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 6px;
  color: #fff;
  background: rgba(4, 7, 15, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
}

.merchCard__cover span {
  color: var(--paper);
  font-weight: 900;
}

.merchCard__body {
  padding: 12px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.merchCard__body span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}

.merchCard__body h3 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merchCard__body small,

.merchCard__body p {
  color: rgba(247, 234, 210, 0.72);
  line-height: 1.55;
}

.merchCard__body p {
  margin: 0;
  font-size: 0.74rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merchCard.isTextLong .merchCard__body h3 {
  font-size: 0.78rem;
}

.merchCard.isTextMedium .merchCard__body h3 {
  font-size: 0.82rem;
}

.profileLayout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.profileHero,

.settingsCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 234, 210, 0.07);
  padding: 22px;
}

.profileHero {
  min-height: 180px;
  display: grid;
  align-content: center;
  padding-right: 132px;
  background:
    radial-gradient(circle at 18% 12%, var(--theme-glow-a, rgba(214, 65, 79, 0.38)), transparent 38%),
    radial-gradient(circle at 86% 0%, var(--theme-glow-b, rgba(217, 164, 65, 0.3)), transparent 34%),
    linear-gradient(160deg, rgba(214, 65, 79, 0.55), rgba(217, 164, 65, 0.22)),
    rgba(13, 19, 36, 0.78);
  position: relative;
  overflow: hidden;
}

.profileHero span {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.profileHero h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  max-width: 12ch;
  position: relative;
  z-index: 1;
}

.profileHero__planetLink {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 11, 22, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) saturate(1.25);
  overflow: hidden;
  text-decoration: none;
  z-index: 2;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.profileHero__planetLink:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.26);
}

.profileHero__planetIcon {
  width: 90%;
  height: 90%;
  display: block;
  object-fit: contain;
}

.profileHero__planetIcon--light {
  display: none;
}

body.theme-light .profileHero__planetLink {
  background-color: rgba(255, 255, 255, 0.56);
}

body.theme-light .profileHero__planetIcon--dark {
  display: none;
}

body.theme-light .profileHero__planetIcon--light {
  display: block;
}

.profileHero p,

.settingsCard p {
  color: rgba(247, 234, 210, 0.72);
  line-height: 1.7;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.settingsCard {
  display: grid;
  align-content: start;
  gap: 14px;
  backdrop-filter: blur(20px) saturate(1.25);
}

.settingsCard strong {
  font-size: 3rem;
  color: var(--paper-soft);
}

.segmentedControl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bottomNav {
  --active-index: 0;
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(680px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 7px;
  border: 1px solid rgba(247, 234, 210, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(13, 19, 36, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 22px 58px rgba(0, 0, 0, 0.34),
    0 0 44px var(--theme-glow-b, rgba(217, 164, 65, 0.13));
  backdrop-filter: blur(30px) saturate(1.55);
  isolation: isolate;
  overflow: hidden;
}

.bottomNav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 8%, rgba(255, 255, 255, 0.14) 36%, transparent 62%);
  transform: translateX(-100%);
  animation: navGlassSweep 8s ease-in-out infinite;
}

.bottomNav__indicator {
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 7px;
  z-index: -1;
  width: calc((100% - 14px) / 5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(140deg, rgba(186, 155, 235, 0.26), rgba(111, 188, 255, 0.18)),
    rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 24px rgba(121, 185, 255, 0.13);
  transform: translate3d(calc(var(--active-index) * 100%), 0, 0);
  transition: transform 560ms cubic-bezier(0.22, 1.12, 0.36, 1), border-radius 260ms ease;
}

.bottomNav button {
  min-width: 0;
  min-height: 58px;
  padding: 6px 4px 5px;
  border: 0;
  border-radius: 999px;
  color: rgba(247, 234, 210, 0.72);
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 260ms ease, transform 260ms ease;
}

.bottomNav button:hover {
  transform: translateY(-1px);
  border-color: transparent;
}

.bottomNav button.is-active {
  color: #79b9ff;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-weight: 900;
}

.navIcon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
}

.navIcon--headphones {
  --nav-icon: url("./assets/icons/headphones.svg");
}

.navIcon--tv {
  --nav-icon: url("./assets/icons/tv.svg");
}

.navIcon--gift {
  --nav-icon: url("./assets/icons/gift.svg");
}

.navIcon--search {
  --nav-icon: url("./assets/icons/search.svg");
}

.navIcon--profile {
  --nav-icon: url("./assets/icons/user-round.svg");
}

.bottomNav button.is-active .navIcon {
  animation: navIconLift 520ms cubic-bezier(0.2, 1.45, 0.38, 1);
}

@keyframes navIconLift {
  0% {
    transform: translateY(0) scale(1);
  }
  48% {
    transform: translateY(-4px) scale(1.13);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes navGlassSweep {
  0%,
  72% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottomNav::after,

  .bottomNav button.is-active .navIcon,

  .searchPage.has-search .globalResult {
    animation: none;
  }

  .bottomNav__indicator,

  .searchGlassShell,

  .searchGlassShell::before,

  .globalSearchResults {
    transition-duration: 1ms;
  }
}

body.theme-light .sectionTabs {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    rgba(255, 248, 234, 0.72);
}

body.theme-light .bottomNav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    rgba(238, 238, 250, 0.72);
  border-color: rgba(13, 19, 36, 0.14);
}

/* Reference-video navigation: icon-only frosted capsule. */
#bottomNav {
  width: min(420px,calc(100% - 42px)); height: 66px; min-height: 66px;
  padding: 6px; border: 1px solid rgba(255,255,255,.58); border-radius: 999px;
  color: #45414a; background: rgba(239,238,242,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88),0 14px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(28px) saturate(1.15); -webkit-backdrop-filter: blur(28px) saturate(1.15);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
#bottomNav button { min-height: 54px; color: #45414a; font-size: 0; }
#bottomNav button > span:not(.navIcon) { display: none; }
#bottomNav button.is-active { color: #111015; }
#bottomNav .navIcon { width: 26px; height: 26px; }
#bottomNav .bottomNav__indicator {
  top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px)/5); height: calc(100% - 12px);
  border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9),0 5px 16px rgba(40,34,48,.12);
  transition: transform 360ms cubic-bezier(.2,.84,.25,1);
}
#bottomNav.is-pressing:not(.is-dragging) .bottomNav__indicator { filter: brightness(1.04); }
#bottomNav.is-dragging .bottomNav__indicator {
  transform: translate3d(var(--drag-x),0,0);
  filter: none;
  transition: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88),0 5px 16px rgba(40,34,48,.12);
}
#bottomNav.is-dragging button { opacity: 1; }
#bottomNav.is-dragging button.drag-preview { color: #6f55a8; transform: scale(1.06); }
#bottomNav.is-dragging button .navIcon { display: block; visibility: visible; opacity: .96; filter: none; }
body.theme-light #bottomNav { color: #45414a; background: rgba(242,241,245,.76); }
body.theme-light #bottomNav button,body.theme-light #bottomNav button.is-active { color: #242129; }
@media (max-width:740px) {
  #bottomNav { width: min(342px,calc(100% - 30px)); height: 62px; min-height: 62px; padding: 5px; }
  #bottomNav button { min-height: 52px; }
  #bottomNav .navIcon { width: 25px; height: 25px; }
  #bottomNav .bottomNav__indicator { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px)/5); height: calc(100% - 10px); }
}

body.theme-light .bottomNav button {
  color: rgba(38, 29, 62, 0.72);
  border-color: transparent;
  background: transparent;
}

body.theme-light .bottomNav button.is-active {
  color: #477fc6;
  border-color: transparent;
  background: transparent;
}

body.theme-light .bottomNav__indicator {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.94), transparent 44%),
    linear-gradient(140deg, rgba(194, 178, 235, 0.42), rgba(153, 210, 235, 0.3)),
    rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 9px 24px rgba(76, 67, 106, 0.14),
    0 0 26px rgba(130, 183, 230, 0.16);
}

body.theme-light .searchGlassShell {
  border-color: rgba(83, 64, 126, 0.17);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.38) 48%, transparent 74%),
    rgba(244, 239, 252, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 22px 52px rgba(92, 72, 130, 0.14),
    0 0 42px rgba(130, 183, 230, 0.12);
}

body.theme-light .globalResult:hover,

body.theme-light .globalResult:focus-within {
  border-color: rgba(71, 127, 198, 0.42);
  background:
    linear-gradient(110deg, rgba(129, 187, 238, 0.2), rgba(189, 165, 227, 0.12) 62%, transparent),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(92, 72, 130, 0.12), 0 0 22px rgba(121, 185, 255, 0.1);
}

body.theme-light .toTopButton {
  color: rgba(13, 19, 36, 0.82);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    rgba(255, 248, 234, 0.72);
  border-color: rgba(13, 19, 36, 0.14);
}

body.theme-light .globalResult,

body.theme-light .screenCard,

body.theme-light .merchCard,

body.theme-light .officialVideoCard {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.34) 44%, rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    rgba(255, 248, 234, 0.72);
}

body.theme-light .globalSearchPanel,

body.theme-light .library,

body.theme-light .profileHero,

body.theme-light .settingsCard {
  background: rgba(255, 255, 255, 0.52);
}

body.theme-light .sectionTabs button,

body.theme-light .segmentedControl button,

body.theme-light .trackLinks a,

body.theme-light .trackLinkButton {
  color: rgba(13, 19, 36, 0.78);
  border-color: rgba(13, 19, 36, 0.18);
  background: rgba(255, 255, 255, 0.44);
}

body.theme-light .selectionPrompt {
  color: #60408f;
  border-color: rgba(96, 64, 143, 0.26);
  background: rgba(255, 255, 255, 0.52);
}

body.theme-light .sectionTabs button.is-active,

body.theme-light .segmentedControl button.is-active {
  color: #fffdf7;
  background: var(--red);
  border-color: var(--red);
}

body.theme-light .catalog__head p:not(.eyebrow),

body.theme-light .screenCard__body p,

body.theme-light .merchCard__body p,

body.theme-light .merchCard__body small,

body.theme-light .globalResult p,

body.theme-light .profileHero p,

body.theme-light .settingsCard p,

body.theme-light .note p {
  color: rgba(13, 19, 36, 0.68);
}

body.theme-light .zhLine,

body.theme-light .screenCard__body small,

body.theme-light .merchCard__body small {
  color: rgba(13, 19, 36, 0.56) !important;
}

body.theme-light .screenCard__cover,

body.theme-light .merchCard__cover {
  background-color: #111521 !important;
}

body.theme-light input,

body.theme-light select,

body.theme-light textarea,

body.theme-light .search input,

body.theme-light .globalSearchPanel input,

body.theme-light .globalSearchPanel select {
  color: #172033;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(13, 19, 36, 0.18);
}

.lyricsDialog {
  width: min(880px, calc(100vw - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  position: fixed;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 34%),
    rgba(10, 15, 29, 0.82);
  color: var(--paper);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(34px) saturate(1.35);
  -webkit-backdrop-filter: blur(34px) saturate(1.35);
  animation: detailDialogIn 300ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.lyricsDialog::backdrop {
  background: rgba(5, 8, 17, 0.7);
  backdrop-filter: blur(12px) saturate(0.78);
  -webkit-backdrop-filter: blur(12px) saturate(0.78);
}

.lyricsDialog__head {
  min-height: 94px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 76px 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 8;
  background: linear-gradient(180deg, rgba(15, 21, 38, 0.96), rgba(15, 21, 38, 0.74));
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.lyricsDialog__head h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.08;
}

.lyricsDialog__body {
  padding: 22px;
  overflow: auto;
  max-height: calc(100dvh - 122px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background:
    radial-gradient(circle at 92% 4%, rgba(150, 116, 232, 0.14), transparent 30%),
    radial-gradient(circle at 4% 92%, rgba(244, 198, 52, 0.1), transparent 28%);
}

body.dialog-open {
  overflow: hidden;
}

@keyframes detailDialogIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px)) scale(0.965);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.dialogCloseButton {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  padding: 0;
  color: var(--paper);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dialogCloseButton span {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("./assets/icons/x.svg") center / contain no-repeat;
  mask: url("./assets/icons/x.svg") center / contain no-repeat;
}

.dialogCloseButton:hover,

.dialogCloseButton:focus-visible {
  transform: rotate(5deg) scale(1.08);
  border-color: rgba(244, 198, 52, 0.68);
  background: linear-gradient(145deg, rgba(244, 198, 52, 0.24), rgba(151, 112, 229, 0.18));
  outline: none;
}

.lyricsDialog__body pre {
  margin: 0 0 18px;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(247, 234, 210, 0.82);
  line-height: 1.85;
  font-family: inherit;
  font-size: 1rem;
}

.lyricsNote {
  border: 1px solid rgba(247, 234, 210, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(247, 234, 210, 0.74);
}

.lyricsNote {
  border-radius: 8px;
  line-height: 1.7;
}

.detailHero {
  min-height: 240px;
  border-radius: 16px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 22px 48px rgba(0, 0, 0, 0.22);
  background-position: center;
  background-size: cover;
}

.detailHero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(110deg, rgba(5, 8, 18, 0.84) 0%, rgba(5, 8, 18, 0.38) 48%, rgba(5, 8, 18, 0.08)),
    linear-gradient(180deg, transparent 48%, rgba(5, 8, 18, 0.68));
}

.detailHero::after {
  content: "";
  width: 118px;
  height: 98px;
  background: var(--uaena-symbol) center / contain no-repeat;
  opacity: 0.72;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
  position: absolute;
  right: 16px;
  bottom: 14px;
}

.detailHero span,

.detailHero strong {
  position: relative;
  z-index: 1;
}

.detailHero span {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(10, 14, 26, 0.34);
  backdrop-filter: blur(14px);
}

.detailHero strong {
  max-width: 70%;
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.48);
}

.detailGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.detailRow {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  display: grid;
  align-content: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease;
}

.detailRow:hover {
  transform: translateY(-2px);
  border-color: rgba(151, 112, 229, 0.42);
}

.detailRow span,

.detailLinkGroup h3 {
  color: rgba(247, 234, 210, 0.58);
  font-size: 0.78rem;
  margin: 0;
}

.detailRow strong {
  font-size: 0.95rem;
  line-height: 1.45;
}

.detailLinkGroup {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

body.theme-light .lyricsDialog {
  color: #291e48;
  border-color: rgba(86, 60, 133, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 239, 255, 0.72)),
    rgba(255, 253, 247, 0.88);
  box-shadow: 0 36px 100px rgba(72, 45, 112, 0.26), inset 0 1px 0 #fff;
}

body.theme-light .lyricsDialog__head {
  border-color: rgba(86, 60, 133, 0.13);
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.97), rgba(250, 244, 255, 0.82));
}

body.theme-light .lyricsDialog__body {
  background:
    radial-gradient(circle at 92% 4%, rgba(151, 112, 229, 0.15), transparent 30%),
    radial-gradient(circle at 4% 92%, rgba(255, 222, 40, 0.13), transparent 28%);
}

body.theme-light .dialogCloseButton {
  color: #5e3f8f;
  border-color: rgba(86, 60, 133, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(217, 199, 244, 0.5));
  box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(72, 45, 112, 0.16);
}

body.theme-light .detailRow {
  color: #291e48;
  border-color: rgba(86, 60, 133, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(151, 112, 229, 0.08));
}

body.theme-light .detailRow span,

body.theme-light .detailLinkGroup h3 {
  color: rgba(63, 42, 102, 0.65);
}

body.theme-light .lyricsDialog__body pre {
  color: rgba(41, 30, 72, 0.74);
}

body.theme-light .lyricsDialog__body h3 {
  color: #5e3f8f;
}

@media (max-width: 920px) {

  .archive {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .globalSearchPanel {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenGrid,

  .globalSearchResults,

  .profileLayout {
    grid-template-columns: 1fr;
  }

  .merchGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .officialShelf {
    --official-card-size: 142px;
  }
}

@media (max-width: 640px) {
  body {
    background: #060914;
  }

  body.theme-light {
    background: #fffdf7;
  }

  body::before {
    background:
      linear-gradient(180deg, rgba(5, 8, 16, 0.12), rgba(5, 8, 16, 0.42)),
      var(--uaena-bg-dark-mobile) center 42% / cover no-repeat;
    animation: none;
    transform: none;
  }

  body.theme-light::before {
    background:
      linear-gradient(180deg, rgba(255, 253, 247, 0.04), rgba(255, 253, 247, 0.24)),
      var(--uaena-bg-light-mobile) center 42% / cover no-repeat;
    animation: none;
    transform: none;
  }

  .shell {
    width: min(430px, calc(100vw - 22px));
    padding-top: 12px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .grid,

  .globalSearchPanel {
    grid-template-columns: 1fr;
  }

  .merchGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .merchCard {
    grid-template-rows: auto minmax(88px, auto);
    min-height: 0;
  }

  .globalResult {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .globalResult__cover {
    min-height: 142px;
  }

  .catalog__head {
    align-items: start;
    display: grid;
  }

  body[data-active-view="music"] .sectionTabs {
    margin-top: 0;
  }

  .bottomNav {
    bottom: 10px;
  }

  .archive {
    padding: 22px;
  }

  .detailGrid {
    grid-template-columns: 1fr;
  }

  .lyricsDialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 18px;
  }

  .lyricsDialog__head {
    min-height: 80px;
    padding: 16px 64px 14px 17px;
  }

  .lyricsDialog__body {
    max-height: calc(100dvh - 98px);
    padding: 14px;
  }

  .dialogCloseButton {
    width: 38px;
    height: 38px;
    top: 14px;
    right: 14px;
  }

  .detailHero {
    min-height: 205px;
    padding: 16px;
  }

  .detailHero strong {
    max-width: 82%;
  }
}

.searchGlassShell {
  padding: 8px;
  border-radius: 28px;
}

.searchGlassShell::after {
  content: "";
  position: absolute;
  inset: 1px 12% auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  opacity: 0.72;
}

.globalSearchPanel {
  gap: 7px;
}

.globalSearchPanel input,

.globalSearchPanel select {
  min-height: 50px;
  border-radius: 22px;
  background-color: rgba(7, 11, 21, 0.42);
}

.globalSearchPanel input::placeholder {
  color: rgba(247, 234, 210, 0.52);
}

.globalSearchBox:focus-within .globalSearchIcon {
  transform: scale(1.12) rotate(-6deg);
  filter: drop-shadow(0 0 7px rgba(121, 185, 255, 0.44));
}

.bottomNav {
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 6px;
  border-color: rgba(247, 234, 210, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.32), 0 0 38px var(--theme-glow-b, rgba(217, 164, 65, 0.13));
}

.bottomNav__indicator {
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: calc((100% - 12px) / 5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 7px 20px rgba(0, 0, 0, 0.2), 0 0 26px rgba(121, 185, 255, 0.15);
}

.bottomNav button {
  min-height: 60px;
  gap: 4px;
  transition: color 240ms ease, transform 180ms ease, opacity 240ms ease;
}

.bottomNav button:active {
  transform: translateY(1px) scale(0.94);
}

.bottomNav button:focus-visible {
  outline: 2px solid rgba(140, 200, 255, 0.74);
  outline-offset: -4px;
}

.bottomNav button:not(.is-active) {
  opacity: 0.82;
}

.bottomNav button.is-active {
  opacity: 1;
  text-shadow: 0 0 14px rgba(121, 185, 255, 0.34);
}

.bottomNav button.is-active .navIcon {
  filter: drop-shadow(0 0 7px rgba(121, 185, 255, 0.42));
}

body.theme-light .globalSearchPanel input,

body.theme-light .globalSearchPanel select {
  color: #241a39;
  border-color: rgba(83, 64, 126, 0.2);
  background-color: rgba(255, 255, 255, 0.64);
}

body.theme-light .globalSearchPanel input:focus,

body.theme-light .globalSearchPanel select:focus {
  border-color: rgba(111, 75, 166, 0.48);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(111, 75, 166, 0.08), 0 9px 22px rgba(91, 70, 125, 0.1);
}

body.theme-light .globalSearchPanel input::placeholder {
  color: rgba(71, 51, 103, 0.52);
}

@media (max-width: 720px) {

  .searchGlassShell {
    padding: 7px;
    border-radius: 23px;
  }

  .searchGlassShell:focus-within,

  .searchPage.has-search .searchGlassShell {
    border-radius: 18px;
    transform: translateY(-1px);
  }

  .globalSearchPanel {
    grid-template-columns: 1fr;
  }

  .globalSearchPanel input,

  .globalSearchPanel select {
    min-height: 48px;
    border-radius: 17px;
  }

  .bottomNav {
    width: min(430px, calc(100% - 14px));
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 5px;
  }

  .bottomNav__indicator {
    left: 5px;
    top: 5px;
    bottom: 5px;
    width: calc((100% - 10px) / 5);
  }

  .bottomNav button {
    min-height: 55px;
    padding-inline: 2px;
    font-size: clamp(0.56rem, 2.55vw, 0.66rem);
  }

  .navIcon {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 350px) {

  .bottomNav button {
    min-height: 52px;
    font-size: 0.55rem;
  }

  .navIcon {
    width: 20px;
    height: 20px;
  }
}

.musicAppView { position: fixed; inset: 0; z-index: 20; background: #121218; }
.musicAppView iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
body[data-active-view="music"] { overflow: hidden; }
body[data-active-view="music"] [data-view="music"]:not(.musicAppView),

body[data-active-view="music"] #sectionTabs,

body[data-active-view="music"] #toTopButton,

body[data-active-view="music"] #bottomNav { display: none !important; }
body:not([data-active-view="music"]) .musicAppView {
  display: block !important;
  inset: auto 0 88px;
  height: 76px;
  background: transparent;
  pointer-events: none;
  z-index: 55;
}
body:not([data-active-view="music"]) .musicAppView iframe { background: transparent; pointer-events: auto; }
#bottomNav {
  box-sizing: border-box;
  width: min(720px, calc(100% - 28px)) !important;
  height: 82px !important;
  min-height: 82px !important;
  bottom: 20px !important;
  padding: 8px !important;
  border: 0 !important;
  gap: 0 !important;
}
#bottomNav button { min-height: 0 !important; padding: 0 !important; gap: 0 !important; }
#bottomNav .navIcon { width: 27px !important; height: 27px !important; }
#bottomNav .bottomNav__indicator { top: 8px; bottom: 8px; left: 8px; width: calc((100% - 16px) / 5); }
@media (max-width: 740px) {
  body:not([data-active-view="music"]) .musicAppView { bottom: 79px; height: 72px; }
  #bottomNav { width: calc(100% - 18px) !important; height: 76px !important; min-height: 76px !important; bottom: 12px !important; padding: 6px !important; }
  #bottomNav .navIcon { width: 25px !important; height: 25px !important; }
  #bottomNav .bottomNav__indicator { top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); }
}
.screenGrid { align-items:start; }
/* Match Music cards: natural cover ratio, then text directly on the page. */
.screenCard,.officialVideoCard { display:block!important;min-height:0!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important; }
.screenCard__cover,.officialVideoCard__cover { display:block!important;aspect-ratio:auto!important;height:auto!important;padding:0!important;background:transparent!important;border-radius:1rem;overflow:hidden; }
.screenCard__cover img,.officialVideoCard__cover img { display:block;width:100%;height:auto!important;object-fit:contain; }
.screenCard__cover::after { display:none; }
.screenCard__cover.isMissingCover { min-height:10rem;background:var(--sheet)!important; }
.screenCard__body,.officialVideoCard__body { padding:.75rem 0 0;background:transparent!important; }
.screenCard__body p { color:var(--muted); }
.officialVideoCard__body strong { display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere; }
.officialVideoCard__cover:has(img[src="assets/icons/tv.svg"]) { aspect-ratio:16/9!important;background:var(--sheet)!important; }
