:root {
  --font-body: 'Avenir Next', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-display: 'Avenir Next Condensed', 'DIN Alternate', 'Segoe UI', 'PingFang SC', sans-serif;
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --panel: rgba(12, 25, 42, 0.35);
  --panel-strong: rgba(8, 17, 31, 0.6);
  --line: rgba(148, 181, 220, 0.16);
  --line-strong: rgba(148, 181, 220, 0.28);
  --text: #f3f7fb;
  --muted: #8ea6c4;
  --accent: #4ad0c7;
  --accent-strong: #ff9c52;
  --accent-soft: rgba(74, 208, 199, 0.14);
  --danger: #ff6d6d;
  --success: #3cd17b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 156, 82, 0.18), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(74, 208, 199, 0.18), transparent 24%),
    linear-gradient(160deg, #07111f 0%, #0c1b2d 52%, #09131f 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.03) calc(100% - 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.03) calc(100% - 1px));
  background-size: 100% 48px, 48px 100%;
  opacity: 0.18;
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    calc(24px + var(--safe-top))
    calc(24px + var(--safe-right))
    calc(24px + var(--safe-bottom))
    calc(24px + var(--safe-left));
}

.page-shell::after {
  content: '';
  position: absolute;
  inset: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  pointer-events: none;
}

.page-frame {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 38px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text strong,
.metric-card strong,
.section-title strong,
.hero-copy h1,
.panel-title,
.qr-panel h1,
.manage-header h1 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1.25rem;
}

.brand-text span,
.eyebrow,
.section-hint,
.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

.app-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
}

.panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.2);
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.sidebar {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-button:hover,
.nav-button.is-active {
  transform: translateX(3px);
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(74, 208, 199, 0.18), rgba(255, 156, 82, 0.06));
}

.nav-button small {
  color: var(--muted);
}

.sidebar-card,
.status-card,
.hero-card,
.queue-card,
.lyrics-card,
.auth-card,
.form-card,
.table-card,
.qr-panel,
.login-copy,
.metric-card {
  padding: 24px;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid var(--line);
}

.content-stack {
  display: grid;
  gap: 24px;
}

.hero-card {
  overflow: hidden;
}

.hero-bg-stage {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: blur(48px) saturate(1.4);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 17, 31, 0.86), rgba(7, 17, 31, 0.52));
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -40% -36% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 156, 82, 0.28), transparent 64%);
  pointer-events: none;
}

.hero {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-copy h1,
.manage-header h1,
.qr-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1;
}

.hero-copy p,
.qr-panel p,
.login-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions,
.toolbar,
.stat-row,
.player-buttons,
.page-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.button-ghost,
.button-danger {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button {
  background: linear-gradient(120deg, var(--accent), #68e4dd);
  color: #032329;
  font-weight: 700;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.button-danger {
  background: rgba(255, 109, 109, 0.14);
  color: #ffd4d4;
  border: 1px solid rgba(255, 109, 109, 0.24);
}

.button:hover,
.button-ghost:hover,
.button-danger:hover {
  transform: translateY(-1px);
}

.cover-card {
  position: relative;
  justify-self: end;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 56px rgba(0, 0, 0, 0.42);
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.grid-two {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
}

.queue-card,
.lyrics-card,
.table-card {
  min-height: 0;
}

.queue-header,
.section-title,
.manage-grid,
.login-grid {
  display: grid;
  gap: 18px;
}

.section-title {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 1.1rem;
  margin: 0;
}

.list-shell {
  display: grid;
  gap: 10px;
  max-height: 700px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.list-shell-product {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.list-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.list-item:hover,
.list-item.is-active {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.list-cover {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-meta {
  min-width: 0;
}

.list-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
}

.player-core {
  display: grid;
  gap: 22px;
}

.now-playing {
  display: grid;
  gap: 8px;
}

.now-playing strong {
  font-size: 1.35rem;
}

.progress-shell {
  display: grid;
  gap: 8px;
}

.progress-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
}

.progress-value {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.progress-meta,
.stat-grid,
.manage-stats {
  display: grid;
  gap: 12px;
}

.progress-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-meta span:last-child {
  text-align: right;
}

.player-buttons {
  align-items: center;
}

.player-buttons .button-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player-buttons .button-icon.is-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #03151f;
  border-color: transparent;
}

.lyrics-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.lyrics-shell {
  position: relative;
  max-height: 520px;
  overflow: auto;
  mask-image: linear-gradient(transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(transparent 0%, black 10%, black 90%, transparent 100%);
}

.lyric-line {
  padding: 10px 0;
  color: rgba(243, 247, 251, 0.54);
  transition: transform 0.18s ease, color 0.18s ease;
}

.lyric-line.is-active {
  color: var(--text);
  transform: translateX(6px);
}

.empty-state {
  padding: 26px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.search-bar,
.form-field,
.metric-card,
.status-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid var(--line);
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
}

input,
textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
}

textarea {
  min-height: 144px;
  resize: vertical;
}

.manage-layout,
.login-layout {
  display: grid;
  gap: 24px;
}

.manage-grid {
  align-content: start;
}

.manage-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.manage-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.metric-card strong,
.status-card strong {
  font-size: 1.4rem;
}

.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 500;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.table-cover {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.upload-queue {
  display: grid;
  gap: 10px;
}

.queue-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.queue-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.queue-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.login-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.qr-shell {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.qr-box {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status-list {
  display: grid;
  gap: 10px;
  width: 100%;
}

.status-step {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.status-step.is-active {
  border-color: rgba(74, 208, 199, 0.42);
  background: rgba(74, 208, 199, 0.08);
}

.status-step.is-success {
  border-color: rgba(60, 209, 123, 0.42);
  background: rgba(60, 209, 123, 0.08);
}

.toast-host {
  position: fixed;
  top: calc(18px + var(--safe-top));
  right: calc(18px + var(--safe-right));
  z-index: 40;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: min(260px, calc(100vw - 48px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.92);
  box-shadow: var(--shadow);
}

.toast-info {
  border-color: rgba(74, 208, 199, 0.28);
}

.toast-success {
  border-color: rgba(60, 209, 123, 0.3);
}

.toast-error {
  border-color: rgba(255, 109, 109, 0.32);
}

.toast-leave {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.hidden {
  display: none !important;
}

@media (max-width: 1200px) {
  .app-grid,
  .manage-layout,
  .login-grid,
  .hero,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .cover-card {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding:
      calc(16px + var(--safe-top))
      calc(16px + var(--safe-right))
      calc(16px + var(--safe-bottom))
      calc(16px + var(--safe-left));
  }

  .page-shell::after {
    inset: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-bar {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .list-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .list-item .badge {
    grid-column: 2;
    justify-self: start;
  }
}

.button,
.button-ghost,
.button-danger,
.pill,
.tab-button,
.status-pill,
.section-inline,
.feature-card,
.nav-button,
.metric-inline,
.metric-card-product,
.section-icon,
.metric-icon,
.feature-icon,
.nav-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-product {
  padding: 8px 0 4px;
}

.topbar-player {
  display: grid;
  grid-template-columns: auto minmax(280px, 480px) auto;
  align-items: center;
}

.topbar-search {
  width: 100%;
  margin: 0 auto;
}

.page-actions-product {
  justify-content: flex-end;
  align-items: center;
}

.search-submit,
.install-trigger {
  white-space: nowrap;
}

.status-pill {
  max-width: 320px;
}

.product-grid {
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar-product {
  gap: 24px;
  padding: 28px;
}

.sidebar-hero h2,
.manage-header-copy h1,
.feature-card strong,
.section-inline h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.sidebar-hero h2 {
  font-size: 1.6rem;
  line-height: 1.08;
}

.sidebar-hero p {
  margin: 12px 0 0;
  line-height: 1.72;
}

.nav-product {
  gap: 12px;
}

.nav-button {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
}

.nav-icon,
.feature-icon,
.section-icon,
.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.nav-copy,
.metric-content {
  display: grid;
  gap: 4px;
}

.nav-copy strong {
  font-size: 0.98rem;
}

.nav-copy small {
  line-height: 1.45;
  color: var(--muted);
}

.sidebar-status {
  padding: 18px 20px;
  cursor: help;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sidebar-status:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.section-inline {
  align-items: flex-start;
}

.section-inline h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.section-inline p {
  margin: 0;
}

.hero-card-product {
  min-height: 360px;
}

.hero-product {
  min-height: 360px;
  gap: 32px;
  align-items: stretch;
}

.hero-copy-product {
  gap: 20px;
  padding-top: 6px;
}

.hero-copy-product h1 {
  max-width: 14ch;
}

.mode-spotlight {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 12, 24, 0.44);
  max-width: 620px;
}

.mode-pill {
  justify-self: start;
  background: rgba(255, 255, 255, 0.06);
}

.mode-copy {
  display: grid;
  gap: 6px;
}

.mode-copy strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.mode-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.metric-inline {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 16, 29, 0.42);
  min-width: 210px;
}

.metric-inline strong {
  display: block;
  font-size: 1.02rem;
}

.metric-inline span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.search-bar-product {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 14px;
  background: rgba(4, 11, 22, 0.42);
}

.search-bar-product input {
  background: transparent;
  padding: 0;
}

.search-bar-product > i {
  color: var(--muted);
}

.cover-card-product {
  width: min(330px, 100%);
  justify-self: start;
  align-self: center;
}

.cover-overlay-product {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.cover-overlay-product strong {
  font-size: 1.25rem;
}

.grid-two-product {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.rail-stack {
  display: grid;
  gap: 24px;
}

.player-console,
.lyrics-card-product {
  padding: 24px;
}

.hero-right-product {
  display: grid;
  gap: 24px;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.section-title-compact {
  margin-bottom: 12px;
}

.lyrics-card-product {
  min-height: 0;
}

.lyrics-shell-product {
  max-height: none;
  min-height: 0;
}

.empty-state-plain {
  border: 0;
  padding: 10px;
  background: transparent;
}

.player-console-product {
  margin-top: auto;
}

.player-toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.playback-mode-button {
  justify-self: start;
}

.player-buttons-product {
  justify-content: center;
  gap: 16px;
}

.player-buttons-product .button-icon {
  transition: transform 0.18s ease, border-color 0.18s ease;
  width: 58px;
  height: 58px;
}

.player-buttons-product .button-icon:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.list-shell-product {
  padding-right: 2px;
}

.list-item {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px;
}

.list-cover {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.login-grid-product {
  grid-template-columns: minmax(0, 1.1fr) 430px;
  align-items: stretch;
}

.login-copy-product,
.qr-panel-product {
  display: grid;
  gap: 22px;
}

.login-copy-product {
  padding: 32px;
}

.login-copy-product h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
}

.feature-stack {
  display: grid;
  gap: 14px;
}

.feature-card {
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.feature-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.note-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
}

.qr-panel-product {
  padding: 28px;
}

.qr-shell-product {
  gap: 20px;
}

.qr-box-product {
  width: min(300px, 100%);
  justify-self: center;
}

.pill-wide {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
}

.status-list-product {
  width: 100%;
}

.manage-layout-product {
  grid-template-columns: 280px minmax(0, 1fr);
}

.manage-sidebar-product {
  gap: 18px;
}

.metric-card-product {
  align-items: flex-start;
  padding: 20px 22px;
}

.metric-card-product strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.15;
}

.manage-grid-product {
  gap: 22px;
}

.manage-header-card {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.manage-header-copy {
  display: grid;
  gap: 12px;
}

.manage-header-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 3rem);
  max-width: 18ch;
  line-height: 1;
}

.manage-header-copy p {
  margin: 0;
  color: var(--muted);
}

.manage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-button {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tab-button.is-active,
.tab-button:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 208, 199, 0.42);
  background: linear-gradient(120deg, rgba(74, 208, 199, 0.16), rgba(255, 156, 82, 0.08));
}

.manage-panel-group {
  display: grid;
  gap: 22px;
}

.form-card-product,
.table-card-product,
.note-card {
  padding: 26px;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.input-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-queue-product {
  min-height: 120px;
}

.table-card-product .table td,
.table-card-product .table th {
  vertical-align: middle;
}

.pagination-controls {
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .topbar-player {
    grid-template-columns: auto 1fr;
  }

  .page-actions-product {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .product-grid,
  .grid-two-product,
  .login-grid-product,
  .manage-layout-product,
  .input-grid {
    grid-template-columns: 1fr;
  }

  .cover-card-product {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .toast-host {
    left: calc(16px + var(--safe-left));
    right: calc(16px + var(--safe-right));
  }

  .metric-inline,
  .pill-wide,
  .tab-button {
    width: 100%;
    justify-content: center;
  }

  .product-grid,
  .manage-layout-product {
    gap: 18px;
  }

  .topbar-player {
    grid-template-columns: 1fr;
  }

  .page-actions-product {
    width: 100%;
    justify-content: space-between;
  }

  .status-pill {
    max-width: none;
    flex: 1 1 auto;
    justify-content: center;
  }

  .sidebar-product,
  .manage-sidebar-product {
    padding: 20px;
  }

  .nav-product {
    grid-auto-flow: column;
    grid-auto-columns: minmax(136px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-button {
    min-height: 100%;
  }

  .hero-product,
  .player-toolbar,
  .section-title {
    grid-template-columns: 1fr;
  }

  .section-title {
    justify-items: start;
  }

  .hero-right-product {
    grid-template-rows: auto;
  }

  .list-shell-product {
    grid-template-columns: 1fr;
  }

  .list-item .badge {
    margin-top: 2px;
  }

  .playback-mode-button,
  .player-buttons-product {
    width: 100%;
    justify-content: center;
  }

  .table {
    min-width: 640px;
  }

  .player-console,
  .lyrics-card-product,
  .form-card-product,
  .table-card-product,
  .note-card,
  .login-copy-product,
  .qr-panel-product,
  .manage-header-card {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .brand-text {
    flex: 1 1 auto;
  }

  .search-submit span,
  .install-trigger span {
    display: none;
  }

  .search-submit,
  .install-trigger {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-actions-product {
    gap: 10px;
  }
}
