:root {
  --bg: #030309;
  --bg-2: #080b12;
  --panel: rgba(12, 14, 22, 0.86);
  --panel-2: rgba(18, 21, 31, 0.95);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f8ff;
  --muted: #a7adc2;
  --cyan: #21f7ff;
  --pink: #ff2bd6;
  --green: #25ff8a;
  --violet: #8b5cff;
  --gold: #ffd166;
  --danger: #ff4d6d;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow: 0 0 22px rgba(33, 247, 255, 0.34), 0 0 42px rgba(255, 43, 214, 0.16);
  --font-display: Impact, Haettenschweiler, "Arial Black", sans-serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(9, 15, 24, 0.92), rgba(3, 3, 9, 0.98) 28rem),
    linear-gradient(135deg, rgba(33, 247, 255, 0.12), transparent 26rem),
    linear-gradient(240deg, rgba(255, 43, 214, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 104px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(3, 3, 9, 0.98), rgba(3, 3, 9, 0.68));
  border-bottom: 1px solid rgba(33, 247, 255, 0.2);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--cyan);
  color: var(--green);
  font-weight: 1000;
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.9), rgba(255, 43, 214, 0.7));
  box-shadow: var(--glow);
}

.brand-word {
  color: var(--pink);
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(255, 43, 214, 0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar,
.rail-track::-webkit-scrollbar,
.slot-track::-webkit-scrollbar,
.filter-row::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(247, 248, 255, 0.82);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 8px 0;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(33, 247, 255, 0.8);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ghost-button,
.create-button,
.primary-button,
.round-button,
.icon-button,
.mini-action,
.mini-play,
.create-tile,
.smart-filter,
.mobile-nav button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ghost-button {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
}

.ghost-button.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.ghost-button.is-active,
.ghost-button:hover,
.smart-filter:hover,
.mobile-nav button.is-active {
  border-color: rgba(33, 247, 255, 0.58);
  background: rgba(33, 247, 255, 0.12);
  box-shadow: 0 0 18px rgba(33, 247, 255, 0.18);
}

.create-button {
  min-height: 36px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: #030309;
  font-weight: 1000;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--pink));
  box-shadow: var(--glow);
}

.main-area {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
}

.app-screen {
  width: min(1180px, 100%);
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  padding: 42px 24px 150px;
}

.screen-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.screen-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.screen-actions {
  display: flex;
  gap: 10px;
}

.avatar-chip {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #05050a;
  background: linear-gradient(135deg, var(--cyan), var(--pink), var(--green));
  box-shadow: var(--glow);
  font-weight: 1000;
}

.mobile-searchbox,
.playlist-search {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: #11131a;
}

.mobile-searchbox span::before,
.playlist-search span::before {
  content: "/";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #11131a;
  border: 2px solid currentColor;
  font-weight: 1000;
}

.mobile-searchbox input,
.playlist-search input,
.quick-create-form input,
.quick-create-form select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font-weight: 900;
}

.search-screen h2,
.library-screen h2,
.local-files-screen h2,
.settings-screen h2 {
  margin: 32px 0 16px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

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

.browse-tile {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 128px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--tile-color) 55%, white), transparent 25%),
    linear-gradient(135deg, color-mix(in srgb, var(--tile-color) 82%, black), rgba(8, 9, 15, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  text-align: left;
}

.browse-tile strong {
  font-size: 1.45rem;
  line-height: 1;
}

.browse-tile span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.discover-block {
  margin-top: 32px;
}

.discover-head,
.library-sort-row,
.playlist-title-row,
.playlist-topbar,
.playlist-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.discover-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.discover-rail::-webkit-scrollbar {
  display: none;
}

.library-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.library-chips::-webkit-scrollbar {
  display: none;
}

.library-chips button,
.sort-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.library-chips button.is-active,
.sort-button:hover {
  border-color: rgba(37, 255, 138, 0.54);
  background: rgba(37, 255, 138, 0.13);
}

.library-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.library-list.is-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.library-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 8px;
  border: 0;
  border-radius: var(--radius);
  color: white;
  background: transparent;
  text-align: left;
}

.library-item:hover,
.library-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.library-cover {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  color: #030309;
  background:
    radial-gradient(circle at 72% 18%, white, transparent 18%),
    linear-gradient(135deg, var(--item-color), rgba(255, 255, 255, 0.72));
  box-shadow: 0 0 22px color-mix(in srgb, var(--item-color) 44%, transparent);
  font-size: 0.72rem;
  font-weight: 1000;
}

.library-item strong,
.library-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-item strong {
  font-size: 1.08rem;
}

.library-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.playlist-hero {
  margin: -42px -24px 0;
  padding: 28px 24px 34px;
  background:
    linear-gradient(180deg, rgba(37, 255, 138, 0.35), rgba(12, 24, 21, 0.78) 42%, rgba(3, 3, 9, 0.98)),
    radial-gradient(circle at 80% 12%, rgba(33, 247, 255, 0.22), transparent 26rem);
}

.playlist-topbar {
  min-height: 48px;
}

.playlist-topbar strong {
  font-size: 1.15rem;
}

.playlist-tools {
  margin: 36px 0 76px;
}

.playlist-search {
  flex: 1 1 auto;
  min-height: 54px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  backdrop-filter: blur(16px);
}

.playlist-search span::before {
  color: white;
}

.playlist-title-row h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.8rem);
  line-height: 0.95;
}

.playlist-title-row p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.floating-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: #030309;
  background: var(--green);
  box-shadow: 0 12px 38px rgba(37, 255, 138, 0.35);
  font-size: 0;
}

.floating-play::before {
  content: "";
  margin-left: 6px;
  border-left: 24px solid #030309;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.track-list {
  display: grid;
  gap: 6px;
  padding-top: 18px;
}

.track-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 8px;
  border-radius: var(--radius);
}

.track-row:hover,
.track-row:focus-visible,
.track-row.is-current {
  background: rgba(255, 255, 255, 0.08);
}

.track-row.is-current strong {
  color: var(--green);
}

.track-art {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  color: #030309;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.85), transparent 18%),
    linear-gradient(135deg, var(--accent, var(--cyan)), rgba(255, 255, 255, 0.32));
  font-size: 0.68rem;
  font-weight: 1000;
}

.track-copy {
  min-width: 0;
}

.track-copy strong,
.track-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy strong {
  font-size: 1.05rem;
}

.track-copy small {
  margin-top: 5px;
  color: var(--green);
}

.track-menu {
  width: 38px;
  height: 38px;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 1.25rem;
}

.settings-hero {
  min-height: 340px;
  display: grid;
  align-content: end;
  gap: 14px;
  margin: -42px -24px 32px;
  padding: 54px 24px 34px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(3, 3, 9, 0.92)),
    radial-gradient(circle at 22% 5%, rgba(255, 43, 214, 0.58), transparent 15rem),
    radial-gradient(circle at 72% 4%, rgba(33, 247, 255, 0.36), transparent 18rem),
    linear-gradient(135deg, #22283a, #08090f);
}

.settings-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.96;
}

.settings-hero p {
  max-width: 620px;
  margin: 0;
  color: #d7dbe9;
  line-height: 1.45;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.settings-status-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.settings-status-grid {
  grid-template-columns: repeat(2, minmax(0, 220px));
  margin-top: 12px;
}

.settings-status-grid > div,
.settings-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.settings-status-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.settings-status-grid strong {
  font-size: 1.05rem;
}

.settings-status-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 210px;
  padding: 18px;
}

.settings-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.switch-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row span {
  position: relative;
  width: 56px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.switch-row span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  transition: transform 160ms ease, background 160ms ease;
}

.switch-row input:checked + span {
  border-color: rgba(37, 255, 138, 0.65);
  background: rgba(37, 255, 138, 0.18);
}

.switch-row input:checked + span::before {
  background: var(--green);
  transform: translateX(24px);
}

.plan-card,
.why-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.plan-card {
  display: grid;
  gap: 12px;
}

.plan-card h3 {
  margin: 0;
  color: var(--plan-accent);
  font-size: 1.35rem;
}

.plan-card strong {
  font-size: 1.05rem;
}

.plan-card ul {
  display: grid;
  gap: 7px;
  min-height: 116px;
  margin: 0;
  padding-left: 18px;
  color: #e2e6f4;
}

.plan-card .ghost-button {
  background: var(--plan-accent);
  color: #030309;
}

.why-card {
  margin-top: 18px;
}

.why-card h2 {
  margin-top: 0;
}

.honest-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 620px;
  margin: 26px auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.honest-empty p {
  margin: 0;
  line-height: 1.45;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-bottom: 1px solid rgba(33, 247, 255, 0.28);
  background: #030309;
}

.hero-media,
.hero-glow,
.hero-scanline {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(3, 3, 9, 1) 0%, rgba(3, 3, 9, 0.76) 38%, rgba(3, 3, 9, 0.88) 100%),
    linear-gradient(115deg, rgba(33, 247, 255, 0.18), transparent 34rem),
    linear-gradient(245deg, color-mix(in srgb, var(--hero-accent, var(--pink)) 34%, transparent), transparent 28rem),
    linear-gradient(135deg, #101927, #141020 52%, #05060a);
}

.hero-media::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 62%;
  background:
    linear-gradient(90deg, rgba(3, 3, 9, 0), rgba(3, 3, 9, 0.36)),
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 28px),
    linear-gradient(135deg, rgba(33, 247, 255, 0.08), rgba(255, 43, 214, 0.22), rgba(37, 255, 138, 0.08));
  transform: skewX(-6deg);
  transform-origin: top right;
}

.hero[data-section-hero="mix"] .hero-media::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 9, 0), rgba(3, 3, 9, 0.42)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(33, 247, 255, 0.18) 18px 20px, transparent 20px 36px),
    linear-gradient(180deg, rgba(255, 43, 214, 0.06), rgba(33, 247, 255, 0.22), rgba(37, 255, 138, 0.08));
}

.hero[data-section-hero="podcast"] .hero-media::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 9, 0), rgba(3, 3, 9, 0.45)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, rgba(37, 255, 138, 0.18), rgba(33, 247, 255, 0.08), rgba(255, 43, 214, 0.14));
}

.hero[data-section-hero="software"] .hero-media::before,
.hero[data-section-hero="vault"] .hero-media::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 9, 0), rgba(3, 3, 9, 0.44)),
    repeating-linear-gradient(135deg, rgba(139, 92, 255, 0.12) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, rgba(139, 92, 255, 0.18), rgba(255, 77, 109, 0.14), rgba(33, 247, 255, 0.08));
}

.hero-scanline {
  pointer-events: none;
  opacity: 0.24;
  background: repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 255, 255, 0.04) 8px 9px);
}

.hero-glow {
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(0deg, #030309, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(580px, calc(100% - 40px));
  padding: 108px 0 74px 52px;
}

.eyebrow,
.status-chip,
.meta-line {
  color: var(--green);
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-chip {
  margin: 0 0 10px;
}

.hero h1 {
  display: grid;
  gap: 2px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.78), 0 0 18px rgba(255, 255, 255, 0.14);
}

.hero h1 span {
  font-size: 1.8rem;
}

.hero h1 strong {
  font-size: 7.2rem;
  font-weight: 1000;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--hero-accent, var(--cyan));
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  margin: 0;
  max-width: 34rem;
  color: #dbe0f4;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.primary-button {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius);
  color: white;
  text-align: left;
  font-weight: 1000;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 43, 214, 0.22), rgba(33, 247, 255, 0.16));
  box-shadow: var(--glow);
}

.primary-button small {
  color: #e7ebff;
  font-weight: 700;
}

.round-button,
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 900;
}

.hero-focus {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.38);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dots span:first-child {
  background: white;
  box-shadow: 0 0 12px white;
}

.command-strip {
  position: sticky;
  top: 54px;
  z-index: 28;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(340px, auto) auto;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(3, 3, 9, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
}

.searchbox.compact {
  min-height: 38px;
}

.searchbox span {
  color: var(--cyan);
  font-weight: 1000;
}

.searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-head,
.vault-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 24px 10px;
}

.travel-dashboard {
  display: grid;
  gap: 16px;
  padding: 18px 24px 8px;
}

.dashboard-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(33, 247, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(33, 247, 255, 0.12), rgba(255, 43, 214, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.dashboard-setup h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1.02;
}

.dashboard-setup p {
  max-width: 58rem;
  margin: 8px 0 0;
  color: #d7ddef;
  line-height: 1.5;
}

.setup-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-metrics,
.dashboard-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-metric,
.dashboard-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: white;
  background:
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--tone, var(--cyan)) 22%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.05);
}

.dashboard-metric {
  display: grid;
  gap: 5px;
}

.dashboard-metric strong {
  font-size: 1.6rem;
  line-height: 1;
}

.dashboard-metric span,
.dashboard-section span {
  color: color-mix(in srgb, var(--tone, var(--cyan)) 76%, white);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.dashboard-metric p,
.dashboard-section p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.dashboard-section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 130px;
  text-align: left;
}

.dashboard-section strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.tone-cyan { --tone: var(--cyan); }
.tone-pink { --tone: var(--pink); }
.tone-green { --tone: var(--green); }
.tone-violet { --tone: var(--violet); }
.tone-gold { --tone: var(--gold); }

.dashboard-recent {
  display: grid;
  gap: 10px;
}

.dashboard-recent h3 {
  margin: 6px 0 0;
}

.dashboard-recent > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-recent button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: white;
  background: var(--card-bg, rgba(255, 255, 255, 0.06));
  text-align: left;
}

.dashboard-recent button span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: #030309;
  background: var(--green);
  font-size: 0.66rem;
  font-weight: 1000;
}

.dashboard-recent button strong,
.dashboard-recent button small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-recent button small {
  color: rgba(255, 255, 255, 0.72);
}

.section-head h2,
.vault-board h2,
.category-panels h2 {
  margin: 0;
  font-size: 2rem;
}

.section-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
}

.view-toggle,
.vault-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rails {
  padding: 2px 0 18px;
}

.rail {
  margin: 18px 0 32px;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
}

.rail-head h2,
.insert-slot h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.38);
}

.rail-head span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.rail-wrap {
  position: relative;
}

.rail-track,
.slot-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 152px;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 44px 12px;
  scroll-padding-inline: 44px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rail.layout-dense .rail-track {
  grid-auto-columns: 132px;
}

.rail.layout-compact .rail-track {
  grid-auto-columns: 190px;
}

.rail-track.wave-track {
  grid-auto-columns: 28rem;
}

.rail.layout-dense .rail-track.wave-track {
  grid-auto-columns: 24rem;
}

.rail.layout-compact .rail-track.wave-track {
  grid-auto-columns: 20rem;
}

.rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 38px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.56);
  transform: translateY(-50%);
  font-size: 0;
}

.rail-arrow::before {
  font-size: 1.5rem;
  font-weight: 900;
}

.rail-arrow.prev {
  left: 8px;
}

.rail-arrow.next {
  right: 8px;
}

.rail-arrow.prev::before {
  content: "<";
}

.rail-arrow.next::before {
  content: ">";
}

.media-card {
  position: relative;
  scroll-snap-align: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: var(--card-bg, linear-gradient(135deg, #121624, #030309));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  isolation: isolate;
}

.media-card:hover,
.media-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent, var(--cyan)) 72%, white);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent, var(--cyan)) 42%, transparent), 0 18px 38px rgba(0, 0, 0, 0.72);
  transform: translateY(-3px);
}

.poster-card {
  aspect-ratio: 2 / 3;
  min-height: 228px;
}

.poster-card::after,
.card-thumb + .poster-sheen {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 58%);
}

.card-thumb {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  color: #030309;
  background: var(--green);
  font-size: 0.64rem;
  font-weight: 1000;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-copy {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.card-copy strong {
  overflow: hidden;
  color: white;
  font-size: 0.92rem;
  font-weight: 1000;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.card-copy span {
  overflow: hidden;
  color: #c9cfe0;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-menu {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.45);
}

.waveform-card {
  aspect-ratio: 16 / 5;
  min-height: 138px;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18)),
    var(--card-bg);
}

.waveform-field,
.player-wave {
  position: absolute;
  inset: 18px 18px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.waveform-field span,
.player-wave span {
  display: block;
  width: 4px;
  height: var(--h, 40%);
  min-height: 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), white, var(--pink));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, var(--cyan)) 65%, transparent);
}

.wave-glow {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--cyan)), white, var(--pink), transparent);
  box-shadow: 0 0 22px var(--accent, var(--cyan));
}

.waveform-card .card-chips,
.asset-tile .card-chips,
.app-card .card-chips {
  position: absolute;
  left: 10px;
  top: 10px;
  right: 46px;
  z-index: 3;
}

.card-chips,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.chip {
  max-width: 100%;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 210px;
  padding: 14px;
}

.app-icon,
.asset-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  color: #030309;
  background: linear-gradient(135deg, var(--cyan), var(--green), var(--pink));
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.22), 0 0 20px rgba(33, 247, 255, 0.2);
  font-weight: 1000;
  font-size: 0.72rem;
}

.app-card .card-copy,
.asset-tile .card-copy {
  position: static;
}

.app-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-actions span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e8edff;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.76rem;
  font-weight: 800;
}

.episode-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  width: 24rem;
  min-height: 132px;
  padding: 12px;
}

.episode-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 255, 138, 0.26), rgba(255, 43, 214, 0.18)), #0a0d15;
  font-weight: 1000;
}

.episode-body {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.episode-body strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-body span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-progress,
.mini-progress,
.progress-line {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.episode-progress span,
.mini-progress span,
.progress-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--pink));
}

.asset-tile {
  display: grid;
  gap: 12px;
  min-height: 184px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--card-bg);
}

.asset-tile-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.asset-tile-head strong,
.asset-tile-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-tile-head span,
.asset-tile p {
  color: var(--muted);
  font-size: 0.78rem;
}

.asset-tile p {
  margin: 0;
  line-height: 1.45;
}

.insert-slot {
  padding: 6px 0 24px;
}

.slot-track {
  grid-auto-columns: 128px;
}

.slot-pill {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: white;
  text-align: center;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(33, 247, 255, 0.055)),
    #0a0d15;
}

.vault-board {
  padding: 12px 20px 34px;
}

.vault-board[hidden] {
  display: none;
}

.vault-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 8px 4px 16px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.asset-grid.is-list {
  grid-template-columns: 1fr;
}

.asset-grid.is-waveform {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.asset-grid.is-soundboard {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.vault-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(120px, 0.4fr) minmax(100px, 0.32fr);
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.vault-row strong,
.vault-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vault-row span {
  color: var(--muted);
}

.sound-pad {
  display: grid;
  gap: 8px;
  align-content: end;
  min-height: 124px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: white;
  text-align: left;
  background: var(--card-bg);
}

.sound-pad span {
  width: max-content;
  padding: 5px 7px;
  border-radius: 999px;
  color: #030309;
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 1000;
}

.category-panels {
  padding: 16px 24px 84px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 12px 0 28px;
}

.category-tile {
  display: flex;
  align-items: end;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 43, 214, 0.05)),
    radial-gradient(circle at 0 100%, var(--tile-color, rgba(33, 247, 255, 0.22)), transparent 50%),
    #0b0d14;
  font-weight: 900;
  text-align: left;
}

.spaced {
  margin-top: 28px;
  color: var(--text);
}

.vault-drawer,
.studio-panel {
  position: fixed;
  z-index: 60;
  top: 0;
  bottom: 0;
  width: min(440px, 94vw);
  padding: 18px;
  overflow: auto;
  border-right: 1px solid rgba(33, 247, 255, 0.26);
  background: rgba(8, 9, 15, 0.96);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  transform: translateX(-105%);
  transition: transform 220ms ease;
}

.vault-drawer.is-open {
  transform: translateX(0);
}

.studio-panel {
  right: 0;
  left: auto;
  border-right: 0;
  border-left: 1px solid rgba(255, 43, 214, 0.32);
  transform: translateX(105%);
}

.studio-panel.is-open {
  transform: translateX(0);
}

.drawer-head,
.studio-head,
.modal-head,
.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head h2,
.studio-head h2,
.modal-head h2,
.player-top h2 {
  margin: 0;
}

.drawer-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.tree {
  display: grid;
  gap: 7px;
}

.tree-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  margin-left: calc(var(--depth, 0) * 14px);
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: white;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.tree-item.is-active,
.tree-item.is-drop-target {
  border-color: rgba(33, 247, 255, 0.58);
  background: rgba(33, 247, 255, 0.12);
}

.tree-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: #030309;
  background: var(--folder-color, var(--cyan));
  font-size: 0.62rem;
  font-weight: 1000;
}

.tree-name {
  font-weight: 900;
}

.tree-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.tree-pin {
  color: var(--green);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.drawer-card,
.studio-block,
.empty-state {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.smart-filter {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-align: left;
}

.studio-content {
  display: grid;
  gap: 12px;
  color: #dbe0ff;
}

.studio-block h3 {
  margin: 0 0 8px;
}

.studio-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mini-player {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 46px 46px 64px;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(11, 13, 19, 0.94);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.62), var(--glow);
  backdrop-filter: blur(18px);
}

.mini-art {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  color: #030309;
  background: linear-gradient(135deg, var(--accent, var(--cyan)), var(--green), var(--pink));
  font-size: 0.72rem;
  font-weight: 1000;
}

.mini-copy {
  min-width: 0;
}

.mini-copy strong,
.mini-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-copy span {
  color: var(--green);
  font-size: 0.82rem;
}

.mini-progress {
  margin-top: 7px;
}

.mini-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--green);
  font-weight: 1000;
}

.mini-play {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #030309;
  background: white;
  font-weight: 1000;
}

.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
}

.player-overlay.is-open {
  display: grid;
}

.player-card {
  width: min(920px, 100%);
  max-height: 94vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(29, 33, 44, 0.96), rgba(7, 7, 13, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.78);
}

.player-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: center;
  margin: 22px 0;
}

.player-art-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16)),
    var(--card-bg, linear-gradient(135deg, #131829, #030309));
}

.player-video,
.game-frame {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player-video {
  object-fit: contain;
}

.player-notice {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  color: #f6f7ff;
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(12px);
  line-height: 1.35;
}

.player-notice.is-visible {
  display: block;
}

.player-art-title {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.14);
  font-family: var(--font-display);
  font-size: 5rem;
  letter-spacing: 0;
}

.player-wave {
  inset: 26px;
  z-index: 1;
  opacity: 0.86;
}

.player-info h1 {
  margin: 0 0 8px;
  font-size: 2.8rem;
  line-height: 1.02;
}

.player-info p,
.time-row {
  color: #c7cada;
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.progress-line {
  height: 5px;
}

.player-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.player-controls button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.player-controls button.is-active {
  border-color: rgba(37, 255, 138, 0.62);
  color: var(--green);
  background: rgba(37, 255, 138, 0.12);
}

.player-controls .big-play {
  min-height: 64px;
  color: #030309;
  background: white;
}

.player-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.player-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.player-tabs button.is-active {
  border-color: rgba(33, 247, 255, 0.56);
  background: rgba(33, 247, 255, 0.12);
}

.player-tab-panel {
  min-height: 92px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #dce2f7;
  background: rgba(255, 255, 255, 0.055);
}

.create-modal {
  width: min(740px, 94vw);
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
}

.create-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.modal-card {
  padding: 18px;
  border: 1px solid rgba(33, 247, 255, 0.25);
  border-radius: 12px;
  background: rgba(9, 10, 17, 0.98);
  box-shadow: var(--glow);
}

.sheet-grip {
  width: 52px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.create-actions {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.create-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius);
  color: white;
  background: transparent;
  text-align: left;
}

.create-row:hover,
.create-row:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.create-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #030309;
  background: linear-gradient(135deg, var(--cyan), var(--green), var(--pink));
  font-size: 0.78rem;
  font-weight: 1000;
}

.create-row strong,
.create-row small {
  display: block;
}

.create-row strong {
  font-size: 1.08rem;
}

.create-row small {
  margin-top: 5px;
  color: var(--muted);
}

.quick-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-create-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.quick-create-form label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-create-form input,
.quick-create-form select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.quick-create-form .primary-button {
  align-self: end;
  min-height: 46px;
}

.create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.create-tile {
  min-height: 82px;
  border-radius: var(--radius);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(33, 247, 255, 0.16), rgba(255, 43, 214, 0.14));
}

.file-drop {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 154px;
  padding: 18px;
  border: 1px dashed rgba(33, 247, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(33, 247, 255, 0.055);
  text-align: center;
}

.file-drop.is-hot {
  border-color: var(--green);
  background: rgba(37, 255, 138, 0.08);
}

.file-drop input {
  display: none;
}

.import-picker-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.file-drop span,
.intake-log {
  color: var(--muted);
}

.intake-log {
  display: grid;
  gap: 8px;
  max-height: 190px;
  margin-top: 14px;
  overflow: auto;
}

.log-line {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.empty-state {
  color: var(--muted);
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.mobile-nav {
  display: none;
}

.toast-host {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 108px;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  color: white;
  background: rgba(10, 12, 20, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.toast.is-success {
  border-left-color: var(--green);
}

.toast.is-warn {
  border-left-color: var(--gold);
}

.is-travel-mode .hero {
  min-height: 470px;
}

.is-travel-mode .media-card,
.is-travel-mode .library-item,
.is-travel-mode .track-row,
.is-travel-mode .ghost-button,
.is-travel-mode .primary-button {
  min-height: 52px;
}

.is-travel-mode .rail-track {
  grid-auto-columns: 180px;
  gap: 18px;
}

.is-travel-mode .rail-track.wave-track {
  grid-auto-columns: 32rem;
}

.is-travel-mode .track-row {
  min-height: 88px;
}

.is-travel-mode .mobile-nav button {
  min-height: 58px;
}

.is-focus-mode .command-strip,
.is-focus-mode .section-head,
.is-focus-mode .insert-slot,
.is-focus-mode .category-panels {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1040px) {
  .command-strip,
  .vault-toolbar {
    grid-template-columns: 1fr;
  }

  .browse-grid,
  .plan-grid,
  .settings-grid,
  .dashboard-metrics,
  .dashboard-sections,
  .dashboard-recent > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-setup {
    grid-template-columns: 1fr;
  }

  .setup-actions {
    justify-content: flex-start;
  }

  .quick-create-form {
    grid-template-columns: 1fr 1fr;
  }

  .quick-create-form .primary-button {
    grid-column: 1 / -1;
  }

  .rail-track.wave-track {
    grid-auto-columns: 24rem;
  }

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

@media (max-width: 820px) {
  .app-shell {
    padding-bottom: 184px;
  }

  body:not([data-active-view="browse"]) .topbar {
    display: none;
  }

  .app-screen {
    min-height: 100vh;
    padding: 28px 26px 158px;
  }

  .screen-head {
    margin-bottom: 28px;
  }

  .mobile-searchbox {
    min-height: 58px;
  }

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

  .browse-tile {
    min-height: 116px;
    padding: 16px;
  }

  .discover-rail {
    grid-auto-columns: 190px;
  }

  .library-list.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-list.is-grid .library-item {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .playlist-hero,
  .settings-hero {
    margin: -28px -26px 0;
    padding-inline: 26px;
  }

  .playlist-tools {
    margin: 28px 0 72px;
  }

  .plan-grid,
  .settings-grid,
  .settings-status-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: 58px;
    padding: 9px 12px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
  }

  .top-actions {
    margin-left: auto;
  }

  .hide-sm {
    display: none;
  }

  .command-strip {
    top: 98px;
  }

  .hero {
    min-height: 390px;
  }

  .hero-content {
    padding: 78px 20px 74px;
  }

  .hero h1 strong {
    font-size: 5.2rem;
  }

  .hero-media::before {
    width: 74%;
    opacity: 0.72;
  }

  .section-head,
  .vault-board-head {
    align-items: start;
    flex-direction: column;
  }

  .travel-dashboard {
    padding-inline: 18px;
  }

  .rail-track {
    grid-auto-columns: 132px;
    padding-inline: 36px;
  }

  .poster-card {
    min-height: 198px;
  }

  .rail-track.wave-track {
    grid-auto-columns: 21rem;
  }

  .episode-card {
    width: 21rem;
  }

  .mini-player {
    bottom: 96px;
    left: 10px;
    right: 10px;
    grid-template-columns: 48px minmax(0, 1fr) 40px 40px 56px;
    min-height: 66px;
  }

  .mini-art {
    width: 44px;
    height: 44px;
  }

  .mini-action {
    width: 38px;
    height: 38px;
  }

  .mini-play {
    min-width: 52px;
    height: 42px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 55;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 9, 15, 0.94);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 48px;
    border-radius: var(--radius);
    font-size: 0.74rem;
    font-weight: 900;
  }

  .mobile-nav button span {
    position: relative;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.84);
    background: transparent;
    font-size: 0;
    line-height: 1;
  }

  .mobile-nav button.is-active span {
    color: var(--green);
  }

  .mobile-nav button span::before,
  .mobile-nav button span::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
  }

  .mobile-nav button[data-section="home"] span::before {
    left: 5px;
    bottom: 4px;
    width: 14px;
    height: 12px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px;
  }

  .mobile-nav button[data-section="home"] span::after {
    left: 6px;
    top: 4px;
    width: 13px;
    height: 13px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .mobile-nav button[data-view="search"] span::before {
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    border: 3px solid currentColor;
    border-radius: 50%;
  }

  .mobile-nav button[data-view="search"] span::after {
    right: 2px;
    bottom: 3px;
    width: 9px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .mobile-nav button[data-view="library"] span::before {
    left: 4px;
    top: 3px;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 7px 0 0 currentColor, 14px 0 0 currentColor;
  }

  #mobileVaultBtn span::before {
    left: 3px;
    top: 8px;
    width: 18px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 3px;
  }

  #mobileVaultBtn span::after {
    left: 4px;
    top: 5px;
    width: 10px;
    height: 6px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
  }

  #mobileCreateBtn span::before,
  #mobileCreateBtn span::after {
    left: 4px;
    top: 11px;
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
  }

  #mobileCreateBtn span::after {
    transform: rotate(90deg);
  }

  .toast-host {
    left: 12px;
    right: 12px;
    bottom: 146px;
    width: auto;
  }

  .create-sheet {
    position: fixed;
    inset: auto 0 0 0;
    width: 100vw;
    max-width: none;
    margin: 0;
  }

  .create-sheet .modal-card {
    max-height: 88vh;
    overflow: auto;
    border-radius: 22px 22px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .brand-word {
    display: none;
  }

  .hero h1 span {
    font-size: 1.4rem;
  }

  .hero h1 strong {
    font-size: 4.2rem;
  }

  .screen-head {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .avatar-chip {
    width: 44px;
    height: 44px;
  }

  .screen-head h1 {
    font-size: 2.3rem;
  }

  .app-screen {
    padding-inline: 18px;
  }

  .playlist-hero,
  .settings-hero {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .browse-grid {
    gap: 12px;
  }

  .dashboard-metrics,
  .dashboard-sections,
  .dashboard-recent > div {
    grid-template-columns: 1fr;
  }

  .dashboard-setup,
  .dashboard-metric,
  .dashboard-section {
    padding: 14px;
  }

  .browse-tile {
    min-height: 94px;
    padding: 14px;
  }

  .browse-tile strong {
    font-size: 1.16rem;
  }

  .playlist-tools {
    align-items: stretch;
  }

  .playlist-tools .ghost-button {
    min-width: 82px;
    padding-inline: 10px;
  }

  .playlist-title-row {
    align-items: end;
  }

  .floating-play {
    width: 74px;
    height: 74px;
  }

  .track-row {
    grid-template-columns: 54px minmax(0, 1fr) 34px;
  }

  .track-art {
    width: 54px;
    height: 54px;
  }

  .quick-create-form {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .primary-button {
    width: min(100%, 240px);
  }

  .section-head h2,
  .vault-board h2,
  .category-panels h2 {
    font-size: 1.55rem;
  }

  .rail-head {
    justify-content: space-between;
  }

  .rail-head h2,
  .insert-slot h2 {
    font-size: 1.2rem;
  }

  .rail-track {
    grid-auto-columns: 124px;
    gap: 10px;
  }

  .poster-card {
    min-height: 186px;
  }

  .rail-track.wave-track,
  .asset-grid.is-waveform {
    grid-auto-columns: 18rem;
  }

  .waveform-card {
    min-height: 118px;
  }

  .episode-card {
    grid-template-columns: 76px 1fr;
    width: 18rem;
  }

  .asset-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .vault-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .vault-row span:nth-of-type(n + 2) {
    display: none;
  }

  .player-card {
    padding: 14px;
    border-radius: 10px;
  }

  .player-art-shell {
    min-height: 260px;
  }

  .player-art-title {
    font-size: 3.2rem;
  }

  .player-info h1 {
    font-size: 2rem;
  }

  .player-controls {
    grid-template-columns: repeat(3, 1fr);
  }

  .player-controls button:first-child,
  .player-controls button:last-child {
    display: none;
  }
}
