@font-face {
  font-family: 'Antonio';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/antonio-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-800.ttf') format('truetype');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-condensed-800.ttf') format('truetype');
}

/* MultiPlayer / Soda Player v3 — Authentic macOS Media Player Landing Stylesheet
   Faithfully reproduces the real Soda Player UI (Home, Player, History) + Light/Dark Themes */

:root, [data-theme="dark"] {
  --bg: #09090e;
  --fmt-bg-rgb: 9, 9, 14;
  --bg-elevated: #13131b;
  --bg-card: rgba(255, 255, 255, 0.038);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(124, 92, 255, 0.45);
  --border-cyan: rgba(0, 229, 255, 0.4);
  --border-emerald: rgba(16, 185, 129, 0.4);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --header-bg: rgba(9, 9, 14, 0.85);
  --mac-titlebar: #161620;
  --mac-sidebar: #0e0e15;
  --accent: #7c5cff;
  --accent-light: #9d85ff;
  --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #00e5ff 100%);
  --accent-glow: rgba(124, 92, 255, 0.28);
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.3);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --amber: #f59e0b;
  --pink: #ec4899;
  --shadow-window: 0 35px 90px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --fmt-bg-rgb: 248, 250, 252;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(15, 23, 42, 0.18);
  --border-accent: rgba(124, 92, 255, 0.35);
  --border-cyan: rgba(2, 132, 199, 0.35);
  --border-emerald: rgba(5, 150, 105, 0.35);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --header-bg: rgba(248, 250, 252, 0.88);
  --mac-titlebar: #e2e8f0;
  --mac-sidebar: #f1f5f9;
  --accent: #6d28d9;
  --accent-light: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #6d28d9 0%, #0284c7 100%);
  --accent-glow: rgba(109, 40, 217, 0.2);
  --cyan: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.22);
  --emerald: #059669;
  --emerald-glow: rgba(5, 150, 105, 0.2);
  --amber: #d97706;
  --pink: #db2777;
  --shadow-window: 0 25px 70px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);
}

:root {
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  /* Halve the outer margins compared with the former 1140px container. */
  --container-max: calc(50% + 570px);
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Atmosphere Blobs */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1500px;
  height: 750px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.ambient-blob--violet {
  top: -50px;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35) 0%, transparent 70%);
}
.ambient-blob--cyan {
  top: 60px;
  right: 15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.28) 0%, transparent 70%);
}
.ambient-blob--pink {
  top: 200px;
  left: 45%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
}

[data-theme="light"] .ambient-blob {
  opacity: 0.35;
  filter: blur(90px);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 20px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 550;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}
.theme-toggle-btn svg { width: 19px; height: 19px; }
[data-theme="light"] .theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 15px; font-size: 0.85rem; border-radius: 7px; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--radius-md); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 60px;
  padding-bottom: 76px;
  text-align: center;
  z-index: 1;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-specs span.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-hover);
}


/* Clean, Non-overlapping Buttons Bar spanning full 100% width */
.player__buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.9rem;
  width: 100%;
  gap: 16px;
}
.player__icon-btn.active {
  background: rgba(124, 92, 255, 0.25);
  color: #c084fc;
}

/* Real Soda Frameless Speed Indicator (No border, pure clean typography) */
.player__torrent-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.35rem;
  padding: 0 0.2rem;
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.player__gemini-meta:hover, .player__gemini-meta.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 14px var(--accent-glow);
}

/* Inactive lines: clean, dimmed text without heavy frames */
.player__dialogue-line {
  display: grid;
  gap: 0.16rem;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.player__dialogue-line:hover {
  opacity: 0.8;
  border-color: rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.06);
}
.player__dialogue-source {
  color: rgba(240, 238, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 380;
  line-height: 1.32;
}
.player__dialogue-translation {
  color: rgba(0, 229, 255, 0.85);
  font-size: 0.76rem;
  font-weight: 380;
  line-height: 1.3;
}

/* Active playing line: lifted with cyan rounded border and soft gradient */
.player__dialogue-line--active {
  opacity: 1 !important;
  border-color: rgba(0, 229, 255, 0.55) !important;
  background: linear-gradient(90deg, rgba(102, 0, 255, 0.22), rgba(0, 229, 255, 0.08)) !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.15);
}
.player__dialogue-line--active .player__dialogue-source {
  color: #fff;
  font-weight: 500;
}
.player__dialogue-line--active .player__dialogue-translation {
  color: #00e5ff;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}
@keyframes status-dot-fade {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  80%, 100% { opacity: 0; }
}
.history__chip.active {
  background: rgba(124, 92, 255, 0.2);
  border-color: rgba(124, 92, 255, 0.5);
  color: #fff;
}

/* ==========================================================================
   FEATURE SECTIONS & BENTO GRID
   ========================================================================== */
.section {
  padding-top: 88px;
  padding-bottom: 88px;
  position: relative;
}
.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-block;
}
.section-tag--cyan { color: var(--cyan); }
.section-tag--violet { color: var(--accent-light); }
.section-tag--emerald { color: var(--emerald); }

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

/* Feature Split (50/50) */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.list-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.list-icon--cyan { background: rgba(0, 229, 255, 0.15); color: var(--cyan); }
.list-icon--violet { background: rgba(124, 92, 255, 0.15); color: var(--accent-light); }

.list-text h4 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 3px;
}
.list-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-card-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

/* Bento Grid */
/* Pricing Section */
.pricing-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 52px;
}
.pricing-header .section-desc { margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: none;
  margin: 0 auto 36px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.price-card:hover { border-color: var(--border-hover); }
.price-card.featured {
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 50px var(--accent-glow);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08) 0%, var(--bg-card) 45%);
}
.featured-pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.5);
}
.price-tier {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.price-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.price-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}
.price-amount {
  font-size: 3.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-period {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex: 1;
}
.price-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text);
}
.price-feature-item svg { color: var(--emerald); flex-shrink: 0; }
.price-feature-item.highlight { font-weight: 650; color: var(--text); }
.price-feature-item.highlight svg { color: var(--cyan); }

.pricing-fineprint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* Lead Box */
.lead-box {
  margin-top: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-card);
}
.lead-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.lead-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 20px;
}
.lead-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.lead-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}
.lead-input:focus { border-color: var(--accent); }
.lead-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--emerald);
  display: none;
}

/* FAQ Accordion */
.faq-section { max-width: var(--container-max); }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: var(--border-accent); }
.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  transition: transform var(--transition);
  color: var(--text-dim);
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 90px;
}
.final-cta-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(124, 92, 255, 0.12) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  max-width: none;
  margin: 0 auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}
.final-cta p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  padding-bottom: 48px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 980px) {
  .player__cluster--center { display: none; }
  .player__dialogue, .player__playlist-anchor {
    width: min(350px, calc(100% - 32px));
    bottom: 74px;
    max-height: 350px;
  }
  .soda-continue__row { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.reverse { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .header-actions .btn { display: none; }
  .hero-cta .btn { width: 100%; }
}


/* Video frame: pure CSS scene (no images) — dark cabin, one lit strip on the left, soft cool haze */
.player-video-canvas--expanse {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(90deg, transparent 10%, rgba(210, 225, 240, 0.85) 12.5%, rgba(210, 225, 240, 0.85) 14%, transparent 16.5%),
    radial-gradient(60% 80% at 30% 40%, rgba(70, 60, 55, 0.55), transparent 70%),
    radial-gradient(45% 70% at 72% 45%, rgba(40, 45, 60, 0.7), transparent 70%),
    radial-gradient(120% 60% at 50% 110%, rgba(10, 12, 20, 0.9), transparent 60%),
    linear-gradient(180deg, #0b0c10 0%, #121319 50%, #07080c 100%);
}

/* PAUSED box: ~50% × 46% of the frame, translucent, 22px radius (real: .player__status-box) */
.player__status-box {
  min-width: 50%;
  min-height: 46%;
  padding: 2.3rem 3.8rem 2.5rem;
  gap: 0.6rem;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Subtitle: rendered by mpv — bold white with a dark outline, no background box */
.player__subtitle {
  bottom: 21%;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 2px #000, 0 0 2px #000, 0 0 2px #000,
    1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    0 3px 8px rgba(0, 0, 0, 0.9);
}

/* Playlist panel sits above the timeline, flush with the right edge */
.player__playlist-anchor {
  right: 14px;
  bottom: 62px;
}

/* Controls bar: thin gradient rising from the bottom, like the real .player__controls */
.player__controls {
  padding: 6px 22px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.6) 70%, transparent);
}

/* Toolbar sizing closer to the real 44px bar; sparkle is a plain glyph, only the playlist toggle is a pill */
.player__cluster--left .player__icon-btn { width: 34px; height: 34px; }
.player__icon-btn--playlist.active {
  background: rgba(124, 92, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.5), 0 0 14px rgba(124, 92, 255, 0.35);
}

/* ==========================================================================
   HERO — product-packaging layout (copy + window stack + features + CTA)
   ========================================================================== */
.hero { padding-bottom: 56px; }

.pack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "art" "features" "cta";
  gap: 32px;
  text-align: left;
  margin-bottom: 56px;
}
.pack__copy { grid-area: copy; min-width: 0; container-type: inline-size; }
.pack__art { grid-area: art; width: 90%; justify-self: center; }
.pack__features { grid-area: features; }
.pack__cta { grid-area: cta; }

/* Always-visible dots, with a separate pointer-revealed dot layer. */
.hero { isolation: isolate; }
.hero .pack { z-index: 1; }
.hero-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid--base {
  background-image: radial-gradient(circle, #9d85ff 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .08;
}
[data-theme="light"] .hero-grid--base { background-image: radial-gradient(circle, #6d28d9 1px, transparent 1px); opacity: .12; }
.hero-grid--active {
  opacity: 0;
  transition: opacity 180ms ease;
  -webkit-mask-image: radial-gradient(circle 220px at var(--mouse-x, -300px) var(--mouse-y, -300px), #000 0%, rgba(0,0,0,.7) 35%, transparent 100%);
  mask-image: radial-gradient(circle 220px at var(--mouse-x, -300px) var(--mouse-y, -300px), #000 0%, rgba(0,0,0,.7) 35%, transparent 100%);
}
.hero-grid--active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 100px at var(--mouse-x) var(--mouse-y), #22d3ee, #9d85ff 80%, #8b7aac 100%);
  -webkit-mask-image: radial-gradient(circle, #000 1px, transparent 1px);
  mask-image: radial-gradient(circle, #000 1px, transparent 1px);
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}
[data-theme="light"] .hero-grid--active::before { background: radial-gradient(circle 100px at var(--mouse-x) var(--mouse-y), #0891b2, #7c3aed 80%, #857095 100%); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero[data-grid-active] .hero-grid--active { opacity: .65; }
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .hero-grid--active { display: none; transition: none; }
}

.pack__title {
  margin: 0;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: min(3rem, 9.25cqw);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--text);
}
.pack__title-line, .pack__title-main { display: block; }
.pack__title-line > span, .pack__title-main > span { display: block; }
.pack__title-main {
  font-family: 'Antonio', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: min(6.7625rem, 18.95cqw);
  width: max-content;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-block: 12px 25px;
  white-space: nowrap;
}
@media (max-width: 999px) {
  .pack__title-main { font-size: min(6.7625rem, 15.1cqw); margin-inline: auto; }
}
.pack__title .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pack__lead {
  margin: 36px 0 0;
  width: 680px;
  max-width: calc(100% + 50px);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.pack__lead > span { display: block; }
.pack__lead-highlight { color: var(--text); font-size: 20px; font-weight: 500; margin-bottom: 8px; }

/* ── window stack ─────────────────────────────────────────────── */
/* View from the front-right: the right edge is closer to the viewer. */
.pack-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  isolation: isolate;
  transform: perspective(1100px) rotateX(6deg) rotateY(-24deg) rotateZ(-6deg) scale(.92);
  transform-origin: 50% 50%;
}

.pack-win {
  position: absolute;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #14101f, #0a0711);
  box-shadow: var(--shadow-window);
}

.pack-win--history { top: 4%; right: -5%; width: 84%; height: 66%; z-index: 0; container-type: inline-size; }
.pack-win--back { top: 30%; right: 8%; width: 84%; height: 59%; z-index: 1; opacity: .88; }
.pack-win--front { left: 0; bottom: 0; width: 76%; z-index: 2; opacity: .88; container-type: inline-size; }

.pack-win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 10px;
  background: var(--mac-titlebar);
  border-bottom: 1px solid var(--border);
}
.pack-win__lights { display: inline-flex; gap: 5px; }
.pack-win__lights i { width: 7px; height: 7px; border-radius: 50%; }
.pack-win__lights i:nth-child(1) { background: #ff5f57; }
.pack-win__lights i:nth-child(2) { background: #febc2e; }
.pack-win__lights i:nth-child(3) { background: #28c840; }
.pack-win__name {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.pack-win__menu {
  margin-left: auto;
  width: 16px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--border-hover);
}
/* The app content stays dark; only the native titlebar follows the site theme. */
.pack-win__body {
  color-scheme: dark;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #7c5cff;
  --accent-light: #9d85ff;
  --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #00e5ff 100%);
  padding: 14px;
  height: calc(100% - 26px);
  background: radial-gradient(130% 90% at 50% -20%, #15121f, #070510 62%);
}

/* History screen at the rear of the three-window stack. */
.pack-history { height: calc(100% - 26px); overflow: hidden; padding: 2.4cqw 3cqw; text-align: left; background: radial-gradient(ellipse at 10% 0%, #30234855, transparent 70%), #100d19; color: #eae6f3; font-size: 1.7cqw; line-height: 1.5; }
.pack-history__back { color: #9c90b5; font-size: 1.5cqw; }
.pack-history__head { display: flex; align-items: center; justify-content: space-between; margin: .5cqw 0 1.6cqw; }
.pack-history__head strong { font-size: 4.2cqw; line-height: 1.2; letter-spacing: -.1cqw; }
.pack-history__head > span { color: #9e95ae; font-size: 1.4cqw; }
.pack-history__toolbar { display: flex; align-items: center; gap: 1cqw; margin-bottom: 1.5cqw; }
.pack-history__search { flex: 1; padding: 1cqw 1.4cqw; border: 1px solid #ffffff16; border-radius: 1.2cqw; color: #847b98; background: #ffffff04; }
.pack-history__filter { padding: .8cqw 1.2cqw; border: 1px solid #ffffff16; border-radius: 1.1cqw; color: #a99dbb; font-size: 1.4cqw; }
.pack-history__filter--active { color: #cdbaff; border-color: #a582ff66; background: #8655e82b; }
.pack-history__row { display: flex; gap: 1.7cqw; align-items: center; padding: 1.4cqw 0; border-top: 1px solid #ffffff0d; }
.pack-history__poster { flex: 0 0 10cqw; height: 8cqw; border-radius: .8cqw; background: linear-gradient(145deg, var(--poster-color), #171222); border: 1px solid #ffffff12; }
.pack-history__text { flex: 1; min-width: 0; }
.pack-history__text b, .pack-history__text small { display: block; }
.pack-history__text b { font-size: 1.8cqw; font-weight: 600; }
.pack-history__text small { font-size: 1.35cqw; color: #92869f; }
.pack-history__time { color: #9d91ac; font-size: 1.3cqw; }
.pack-history__actions { color: #a78bcf; font-size: 1.7cqw; }

/* Miniature of the app's info screen; isolated from the foreground window. */
.pack-win--back { container-type: inline-size; }
.pack-details { height: calc(100% - 26px); overflow: hidden; background: #0d0b16; color: #f4f2fa; font-size: 1.7cqw; line-height: 1.5; }
.pack-details__hero { padding: 2.4cqw 3.2cqw 3cqw; background: radial-gradient(ellipse at 90% 0%, #20415288, transparent 65%), radial-gradient(ellipse at 20% 30%, #583c6c66, transparent 70%), #12101e; }
.pack-details__back { display: block; margin-bottom: 2cqw; color: #b6aec8; font-size: 1.6cqw; }
.pack-details__head { display: grid; grid-template-columns: 20cqw 1fr; gap: 3cqw; align-items: start; }
.pack-details__poster { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 27cqw; padding: 3cqw 1.6cqw 1.4cqw; border: 1px solid #ffffff24; border-radius: 1.3cqw; background: radial-gradient(ellipse at 68% 70%, #c8956277, transparent 38%), linear-gradient(150deg, #3e7280, #182738 45%, #0b0a17 75%); box-shadow: 0 1cqw 3cqw #0005; }
.pack-details__poster > span { font-size: 2.8cqw; font-weight: 800; letter-spacing: .25cqw; line-height: 1.2; }
.pack-details__poster small { font-size: 1.2cqw; letter-spacing: .12cqw; color: #d5cedf; }
.pack-details__title { font-size: 4.5cqw; line-height: 1.15; font-weight: 800; letter-spacing: -.12cqw; }
.pack-details__subtitle { color: #a7a1b8; margin: .8cqw 0 1.4cqw; }
.pack-details__stats, .pack-details__genres, .pack-details__tracks { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4cqw; margin-bottom: 1.4cqw; }
.pack-details__stats b { color: #69d6b2; font-size: 1.4cqw; margin-right: .7cqw; }
.pack-details__stats small { color: #8c849d; }
.pack-details__genres { gap: .8cqw; }
.pack-details__genres span, .pack-details__tracks b { padding: .4cqw 1.1cqw; border: 1px solid #a58bff30; border-radius: 1cqw; background: #a58bff10; color: #c9bddf; font-size: 1.45cqw; font-weight: 500; }
.pack-details__tracks { color: #9890a8; font-size: 1.4cqw; margin: 1.8cqw 0; }
.pack-details__tracks b { margin-left: .6cqw; }
.pack-details__play { display: inline-block; padding: 1cqw 2cqw; border-radius: 1.2cqw; background: linear-gradient(110deg, #7458ed, #974bfb); font-size: 1.6cqw; font-weight: 650; }
.pack-details__body { display: grid; grid-template-columns: 1fr 26%; gap: 3cqw; padding: 3cqw; color: #a7a1b8; }
.pack-details__body strong { color: #e6e1f1; font-size: 2cqw; }
.pack-details__body p { margin-top: 1cqw; }
.pack-details__facts span { display: flex; flex-direction: column; margin-bottom: 1.4cqw; font-size: 1.4cqw; }
.pack-details__facts b { color: #d3ccdf; font-weight: 500; }
.pack-details__seasons { grid-column: 1 / -1; }
.pack-details__seasons > div { display: flex; gap: 2cqw; margin-top: 1cqw; }
.pack-details__seasons span { flex: 1; padding: 5cqw 1cqw 1cqw; border-radius: 1cqw; background: linear-gradient(145deg, #354759, #20182e); }

/* drop zone inside the mock windows */
.pack-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 14px 22px;
  border-radius: 12px;
  border: 1px dashed rgba(170, 150, 225, 0.28);
  background: linear-gradient(180deg, rgba(48, 37, 76, 0.5), rgba(20, 14, 34, 0.45));
  text-align: center;
}
.pack-drop__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  border-radius: 9px;
  background: linear-gradient(140deg, #7c5cff, #22d3ee);
  color: #0a0714;
  box-shadow: 0 8px 18px rgba(124, 92, 255, 0.4);
}
.pack-drop__icon svg { width: 15px; height: 15px; }
.pack-drop__title { font-size: 11.5px; font-weight: 750; color: var(--text); letter-spacing: -0.01em; }
.pack-drop__sub { font-size: 8.5px; color: var(--text-dim); }
.pack-drop__field {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 88%;
  margin-top: 7px;
}
.pack-drop__input {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(170, 150, 225, 0.22);
  background: rgba(7, 5, 14, 0.7);
}
.pack-drop__placeholder { display: flex; flex: 1; min-width: 0; align-items: center; gap: 3px; padding-left: 3px; color: var(--text-dim); font-size: clamp(5px, 1.8cqw, 7px); white-space: nowrap; }
.pack-drop__placeholder > span { overflow: hidden; text-overflow: ellipsis; }
.pack-drop__field svg { flex: none; width: 9px; height: 9px; }
.pack-drop__placeholder svg { color: var(--accent-light); }
.pack-drop__chip, .pack-drop__go { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 3px; white-space: nowrap; font-size: clamp(6px, 2cqw, 8px); font-weight: 650; }
.pack-drop__chip { padding: 4px 5px; border-radius: 4px; color: var(--accent-light); background: rgba(124, 92, 255, 0.2); }
.pack-drop__go { padding: 0 9px; height: 26px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #7c5cff, #9a4dff); }
.pack-drop--sm { padding: 12px 10px 14px; gap: 3px; }
.pack-drop--sm .pack-drop__icon { width: 24px; height: 24px; border-radius: 7px; }
.pack-drop--sm .pack-drop__icon svg { width: 12px; height: 12px; }
.pack-drop--sm .pack-drop__title { font-size: 9.5px; }
.pack-drop--sm .pack-drop__sub { font-size: 7px; }
.pack-drop--sm .pack-drop__field { width: 96%; margin-top: 5px; }

/* poster rail in the front window */
.pack-rail { margin-top: 11px; }
.pack-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--text);
}
.pack-rail__all { font-size: 7.5px; font-weight: 600; color: var(--accent-light); }
.pack-rail__row { display: flex; gap: 7px; overflow: hidden; }
.pack-poster { flex: none; width: 15%; display: flex; flex-direction: column; gap: 3px; }
.pack-poster__art {
  display: block;
  width: 100%;
  aspect-ratio: 17 / 24;
  border-radius: 5px;
  border: 1px solid rgba(170, 150, 225, 0.16);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.8);
}
.pack-poster__line { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.pack-poster__line--short { width: 58%; background: rgba(255, 255, 255, 0.08); }

/* ── feature row ──────────────────────────────────────────────── */
.pack__features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: flex-start;
}
.pack-feat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pack-feat:nth-child(1) { --feature-color: #9d85ff; }
.pack-feat:nth-child(2) { --feature-color: #60a5fa; }
.pack-feat:nth-child(3) { --feature-color: #22d3ee; }
.pack-feat:nth-child(4) { --feature-color: #f472b6; }
[data-theme="light"] .pack-feat:nth-child(1) { --feature-color: #7c3aed; }
[data-theme="light"] .pack-feat:nth-child(2) { --feature-color: #2563eb; }
[data-theme="light"] .pack-feat:nth-child(3) { --feature-color: #0891b2; }
[data-theme="light"] .pack-feat:nth-child(4) { --feature-color: #db2777; }
.pack-feat__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--feature-color);
  transition: transform 180ms ease, filter 180ms ease;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pack-feat:hover .pack-feat__icon { transform: translateY(-2px); filter: saturate(1.12) drop-shadow(0 0 7px var(--feature-color)); }
}
@media (prefers-reduced-motion: reduce) {
  .pack-feat__icon { transition: none; }
}
.pack-feat__icon svg { width: 34px; height: 34px; }
.pack-feat__icon--text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 2.4px solid currentColor;
  border-radius: 8px;
}
.pack-feat__label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

/* ── CTA ──────────────────────────────────────────────────────── */
.pack__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 44px;
  border-radius: 16px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(100deg, #3b82f6 0%, #7c5cff 52%, #b14dff 100%);
  box-shadow: 0 0 44px -12px rgba(124, 92, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: box-shadow var(--transition);
}
.pack-btn:hover {
  box-shadow: 0 0 54px -6px rgba(124, 92, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pack-note { margin: 0; font-size: 0.95rem; color: var(--text-muted); text-align: center; }
.pack-note--dim { margin-top: -6px; font-size: 0.84rem; color: var(--text-dim); }
@media (min-width: 1000px) {
  .pack {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas:
      "copy art"
      "features cta";
    gap: 44px 52px;
    align-items: center;
  }
  .pack__features { align-self: start; }
  .pack__cta { align-items: center; }
}

@media (max-width: 999px) {
  .pack { text-align: center; justify-items: center; }
  .pack__lead { max-width: 100%; margin-inline: auto; }
  .pack__features { justify-content: center; gap: 28px; flex-wrap: wrap; }
  .pack-stack { max-width: 560px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .pack__features { gap: 20px; }
  .pack-feat__label { font-size: 0.72rem; }
  .pack-btn { padding: 17px 26px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pack-btn { transition: none; }
}


/* hero packaging — light theme + narrow-screen fixes */
@media (max-width: 999px) {
  .pack__copy, .pack__cta { width: 100%; }
  .pack-stack { width: 100%; }
}

@media (max-width: 620px) {
  .pack-stack { aspect-ratio: 16 / 20; }
  .pack-win--back { top: 26%; }
  .pack-drop__sub { display: none; }
  .pack-rail__row { gap: 5px; }
}


/* ==========================================================================
   SUPPORTED FORMATS — theme-aware plasma band with glass format tiles
   ========================================================================== */
.fmt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* radiating light rays converging behind the tile grid */
.fmt__rays {
  position: absolute;
  inset: -10% -5%;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg at 74% 50%,
      transparent 0deg 2.4deg, rgba(124, 92, 255, 0.55) 2.4deg 2.75deg, transparent 2.75deg 5.2deg),
    repeating-conic-gradient(from 1.4deg at 74% 50%,
      transparent 0deg 4.1deg, rgba(16, 185, 129, 0.42) 4.1deg 4.4deg, transparent 4.4deg 8.4deg),
    repeating-conic-gradient(from 3.1deg at 74% 50%,
      transparent 0deg 7.3deg, rgba(0, 229, 255, 0.32) 7.3deg 7.6deg, transparent 7.6deg 14.9deg);
  -webkit-mask-image: radial-gradient(42% 52% at 74% 50%, transparent 6%, #000 34%, #000 58%, transparent 90%);
  mask-image: radial-gradient(42% 52% at 74% 50%, transparent 6%, #000 34%, #000 58%, transparent 90%);
  opacity: 0.55;
}
.fmt__core {
  position: absolute;
  top: 50%;
  left: 74%;
  z-index: -2;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(0, 229, 255, 0.25) 32%, transparent 68%);
  filter: blur(26px);
  opacity: 0.5;
  pointer-events: none;
}
.fmt__glow {
  position: absolute;
  z-index: -3;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.fmt__glow--a { top: -12%; left: -8%; width: 46%; height: 78%; background: rgba(16, 185, 129, 0.3); }
.fmt__glow--b { bottom: -24%; right: -6%; width: 44%; height: 84%; background: rgba(124, 92, 255, 0.32); }

.fmt__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

/* ── copy ─────────────────────────────────────────────────────── */
.fmt__title {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.fmt__title span { display: block; }
.fmt__title-a {
  background: linear-gradient(100deg, #34d399 0%, #a7f3d0 45%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fmt__title-b {
  background: linear-gradient(100deg, #67e8f9 0%, #a78bfa 60%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fmt__lead {
  margin: 0 0 28px;
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  color: #b6c2d4;
}
.fmt__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(100deg, #2563eb 0%, #7c5cff 55%, #a855f7 100%);
  box-shadow: 0 16px 38px -14px rgba(124, 92, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fmt__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -14px rgba(124, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.fmt__note { margin: 14px 0 0; font-size: 0.85rem; color: #7f8ca3; }

/* ── tile grid ────────────────────────────────────────────────── */
.fmt__stage { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.fmt__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 14px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7fd8c8;
}
.fmt__cols span:nth-child(2) { color: #8ad7ea; }
.fmt__cols span:nth-child(3) { color: #b4a3f5; }

.fmt__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.fmt__web {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  z-index: 0;
  opacity: 0.5;
  overflow: visible;
}

.fmt-tile {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  font-size: clamp(0.82rem, 1.7vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -20px 34px -22px rgba(124, 92, 255, 0.85),
    0 18px 40px -18px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fmt-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.24) 0%, transparent 36%, transparent 64%, rgba(124, 92, 255, 0.22) 100%);
  pointer-events: none;
}
.fmt-tile:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(0, 229, 255, 0.28),
    0 26px 50px -18px rgba(0, 0, 0, 0.95);
}
.fmt-tile--hero {
  border-color: rgba(0, 229, 255, 0.5);
  background: linear-gradient(150deg, rgba(0, 229, 255, 0.24) 0%, rgba(124, 92, 255, 0.14) 58%, rgba(255, 255, 255, 0.09) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(0, 229, 255, 0.25),
    0 0 46px rgba(0, 229, 255, 0.35),
    0 18px 40px -18px rgba(0, 0, 0, 0.95);
}

.fmt__more {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #6f7d93;
}
@media (min-width: 1000px) {
  .fmt__inner {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 64px;
  }
  .fmt__stage { margin-inline: 0 auto; }
}

@media (max-width: 999px) {
  .fmt__inner { text-align: center; justify-items: center; }
  .fmt__lead { margin-inline: auto; }
  .fmt__rays, .fmt__core { left: 50%; }
  .fmt__rays {
    -webkit-mask-image: radial-gradient(56% 44% at 50% 62%, transparent 8%, #000 36%, #000 60%, transparent 92%);
    mask-image: radial-gradient(56% 44% at 50% 62%, transparent 8%, #000 36%, #000 60%, transparent 92%);
    background:
      repeating-conic-gradient(from 0deg at 50% 62%,
        transparent 0deg 2.4deg, rgba(124, 92, 255, 0.5) 2.4deg 2.75deg, transparent 2.75deg 5.2deg),
      repeating-conic-gradient(from 1.4deg at 50% 62%,
        transparent 0deg 4.1deg, rgba(16, 185, 129, 0.38) 4.1deg 4.4deg, transparent 4.4deg 8.4deg);
  }
  .fmt__core { top: 62%; }
}

@media (max-width: 560px) {
  .fmt__grid, .fmt__cols { gap: 11px; }
  .fmt-tile { border-radius: 14px; }
  .fmt__cols { font-size: 0.6rem; letter-spacing: 0.08em; }
  .fmt__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fmt__btn, .fmt-tile { transition: none; }
  .fmt__btn:hover, .fmt-tile:hover { transform: none; }
}


/* formats section — photographic plasma backdrop replaces the CSS ray field */
.fmt { background: var(--bg); }
.fmt__rays {
  inset: 0;
  opacity: 0.9;
  background: url("Изображение Codex 13 сент. 2026 г., 00_43_50.png") center center / cover no-repeat;
  -webkit-mask-image: none;
  mask-image: none;
}
.fmt__core,
.fmt__glow { display: none; }
.fmt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--fmt-bg-rgb), 0.93) 0%, rgba(var(--fmt-bg-rgb), 0.74) 34%, rgba(var(--fmt-bg-rgb), 0.42) 60%, rgba(var(--fmt-bg-rgb), 0.66) 100%),
    linear-gradient(180deg, rgba(var(--fmt-bg-rgb), 0.7) 0%, rgba(var(--fmt-bg-rgb), 0.12) 28%, rgba(var(--fmt-bg-rgb), 0.12) 70%, rgba(var(--fmt-bg-rgb), 0.8) 100%);
}
@media (max-width: 999px) {
  .fmt__rays { opacity: 0.8; }
  .fmt::before {
    background:
      linear-gradient(180deg, rgba(var(--fmt-bg-rgb), 0.88) 0%, rgba(var(--fmt-bg-rgb), 0.62) 40%, rgba(var(--fmt-bg-rgb), 0.5) 65%, rgba(var(--fmt-bg-rgb), 0.88) 100%);
  }
}


/* formats backdrop — let the plasma show through */
.fmt__rays { opacity: 1; }
.fmt::before {
  background:
    linear-gradient(90deg, rgba(var(--fmt-bg-rgb), 0.88) 0%, rgba(var(--fmt-bg-rgb), 0.5) 26%, rgba(var(--fmt-bg-rgb), 0.12) 52%, rgba(var(--fmt-bg-rgb), 0.2) 78%, rgba(var(--fmt-bg-rgb), 0.5) 100%),
    linear-gradient(180deg, rgba(var(--fmt-bg-rgb), 0.55) 0%, rgba(var(--fmt-bg-rgb), 0) 26%, rgba(var(--fmt-bg-rgb), 0) 72%, rgba(var(--fmt-bg-rgb), 0.62) 100%);
}
@media (max-width: 999px) {
  .fmt__rays { opacity: 0.95; }
  .fmt::before {
    background:
      linear-gradient(180deg, rgba(var(--fmt-bg-rgb), 0.8) 0%, rgba(var(--fmt-bg-rgb), 0.4) 35%, rgba(var(--fmt-bg-rgb), 0.3) 65%, rgba(var(--fmt-bg-rgb), 0.82) 100%);
  }
}


/* formats — local scrim so copy stays readable over the plasma */
.fmt__copy { position: relative; }
.fmt__copy::before {
  content: "";
  position: absolute;
  inset: -40px -70px -40px -80px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(78% 72% at 38% 50%, rgba(var(--fmt-bg-rgb), 0.92) 0%, rgba(var(--fmt-bg-rgb), 0.66) 52%, rgba(var(--fmt-bg-rgb), 0) 86%);
}
.fmt__lead,
.fmt__note { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.fmt__cols span { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.fmt__more { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }

/* formats — soften the plume behind the column labels */
@media (min-width: 1000px) {
  .fmt::before {
    background:
      radial-gradient(58% 22% at 68% 7%, rgba(var(--fmt-bg-rgb), 0.72) 0%, rgba(var(--fmt-bg-rgb), 0) 74%),
      linear-gradient(90deg, rgba(var(--fmt-bg-rgb), 0.88) 0%, rgba(var(--fmt-bg-rgb), 0.5) 26%, rgba(var(--fmt-bg-rgb), 0.12) 52%, rgba(var(--fmt-bg-rgb), 0.2) 78%, rgba(var(--fmt-bg-rgb), 0.5) 100%),
      linear-gradient(180deg, rgba(var(--fmt-bg-rgb), 0.55) 0%, rgba(var(--fmt-bg-rgb), 0) 26%, rgba(var(--fmt-bg-rgb), 0) 72%, rgba(var(--fmt-bg-rgb), 0.62) 100%);
  }
}

/* Keep copy and glass labels readable on the light plasma backdrop. */
[data-theme="light"] .fmt__title-a {
  background-image: linear-gradient(100deg, #047857 0%, #0f766e 60%, #334155 100%);
}
[data-theme="light"] .fmt__title-b {
  background-image: linear-gradient(100deg, #0e7490 0%, #6d28d9 60%, #a21caf 100%);
}
[data-theme="light"] .fmt__lead,
[data-theme="light"] .fmt__note,
[data-theme="light"] .fmt__more {
  color: var(--text-muted);
  text-shadow: none;
}
[data-theme="light"] .fmt__cols span { color: var(--emerald); text-shadow: none; }
[data-theme="light"] .fmt__cols span:nth-child(2) { color: var(--cyan); }
[data-theme="light"] .fmt__cols span:nth-child(3) { color: var(--accent); }
[data-theme="light"] .fmt-tile {
  color: var(--text);
  text-shadow: none;
  border-color: var(--border);
}
[data-theme="light"] .fmt-tile--hero { border-color: var(--border-cyan); }

/* ==========================================================================
   LIBRARY & RESUME — "Less setup. More watching."
   OPEN → ORGANIZE → COME BACK as one asymmetric product composition.
   01 / 03 reuse the hero's product components (pack-drop, pack-rail);
   02 is a real playlist screenshot (assets/screenshots/A2-playlist.png).
   ========================================================================== */
.lib { isolation: isolate; overflow: hidden; }

/* ambient background — same language as the hero: dot grid + one soft glow */
.lib__dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, #9d85ff 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .08;
  -webkit-mask-image: radial-gradient(75% 80% at 45% 60%, #000 20%, transparent 100%);
  mask-image: radial-gradient(75% 80% at 45% 60%, #000 20%, transparent 100%);
}
[data-theme="light"] .lib__dots { background-image: radial-gradient(circle, #6d28d9 1px, transparent 1px); opacity: .12; }
.lib__glow {
  position: absolute; z-index: 0; pointer-events: none;
  left: 38%; top: 34%; width: 62%; height: 66%;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 70%);
  filter: blur(30px);
  opacity: .9;
}
.lib__inner { position: relative; z-index: 1; }

/* header */
.lib__head { max-width: 760px; margin-bottom: 44px; }
.lib__eyebrow {
  margin: 0 0 10px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: .98;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--text);
}
.lib__eyebrow .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 55%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lib__title { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--text); margin: 0 0 12px; }
.lib__lead { font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); max-width: 640px; }

/* ── stage: 12-col bento, 02 dominant on the right, 01/03 stacked left and overlapping ── */
.lib__stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "o o o o q q q q q q q q"
    "r r r r r r r r r r r r";
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: 0;
  align-items: start;
}
.lib-frag { margin: 0; min-width: 0; position: relative; }
.lib-frag--open     { grid-area: o; z-index: 3; padding-right: 20px; }
.lib-frag--organize { grid-area: q; z-index: 1; }
/* 03 slides in under the playlist's faded bottom edge: rail left, annotation right */
.lib-frag--resume   {
  grid-area: r; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: end;
  margin-top: -36px; padding-left: 40px;
}

/* annotations — plain text sitting on the background, not a card */
.lib-note { display: block; margin: 0; }
.lib-note__kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--step-color, var(--accent-light)); margin-bottom: 6px; }
.lib-note__kicker b { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 1.05rem; letter-spacing: .02em; margin-right: 8px; }
.lib-note__title { display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; color: var(--text); margin-bottom: 4px; }
.lib-note__text { display: block; font-size: .95rem; line-height: 1.55; color: var(--text-muted); max-width: 34ch; }
.lib-frag--open { --step-color: var(--accent-light); }
.lib-frag--organize { --step-color: var(--cyan); }
.lib-frag--resume { --step-color: var(--pink); }

.lib-frag--open .lib-note { margin-top: 18px; }
.lib-frag--resume .lib-note { padding-bottom: 6px; }
.lib-frag--open .lib-note { padding-left: 4px; }
.lib-note--lead { margin: 0 0 18px 44px; }
.lib-note--lead .lib-note__text { max-width: 48ch; }

/* UI fragments: hero components, scaled up; app content stays dark in both themes */
.lib-frag__ui { container-type: inline-size; }
.lib-frag__app {
  height: auto;
  padding: 0;
  background: transparent;
  zoom: 1.7;
}
.lib-frag--open .lib-frag__app { width: 84%; }
.lib-frag--open .pack-drop {
  border-radius: 12px;
  box-shadow: var(--shadow-window);
  background: linear-gradient(180deg, rgba(38, 29, 64, .96), rgba(16, 11, 28, .96));
}
.pack-drop__placeholder--filled { flex: 1 1 auto; min-width: 46%; color: var(--text); font-weight: 600; }
.lib-frag--open .pack-drop__chip { padding: 4px 4px; }
.pack-drop__placeholder--filled svg { color: var(--accent-light); }

.lib-frag--resume .lib-frag__app { width: 100%; zoom: 1.3; }
.lib-frag--resume .pack-rail {
  margin: 0;
  padding: 12px 14px 13px;
  border-radius: 12px;
  border: 1px solid rgba(170, 150, 225, 0.16);
  background: radial-gradient(130% 90% at 50% -20%, #15121f, #070510 62%);
  box-shadow: var(--shadow-window);
}
.lib-frag--resume .pack-rail__row { gap: 8px; }
.lib-frag--resume .pack-poster { width: 16.5%; }
.pack-poster--current .pack-poster__art { outline: 1.5px solid #9d85ff; outline-offset: 1.5px; box-shadow: 0 0 0 4px rgba(124, 92, 255, .22), 0 6px 14px -6px rgba(0,0,0,.8); }
.pack-poster__name { display: block; font-size: 7.5px; font-weight: 650; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 02: the real screenshot, no window chrome, bottom edge fading into the section */
.lib-shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-window);
  background: #100d19;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.lib-shot__img { display: block; width: 100%; height: auto; }

/* ── responsive ── */
@media (max-width: 1339px) {
  .lib-frag--open .pack-drop__chip:last-of-type { display: none; }
}
@media (max-width: 1099px) {
  .lib-frag--resume { padding-left: 16px; margin-top: -40px; }
  .lib-note--lead { margin-left: 24px; }
}
@media (max-width: 899px) {
  .lib__stage {
    grid-template-columns: 1fr;
    grid-template-areas: "o" "q" "r";
    row-gap: 40px;
  }
  .lib-frag--organize { margin: 0; }
  .lib-frag--resume { grid-template-columns: 1fr; margin: 0; padding: 0; row-gap: 18px; }
  .lib-frag--open .lib-frag__app { width: 62%; }
  .lib-note--lead { margin-left: 0; }
}
@media (max-width: 559px) {
  .lib-frag--open .lib-frag__app { width: 100%; zoom: 1.5; }
  .lib-frag--resume .lib-frag__app { zoom: 1.4; }
  .lib-frag--resume .pack-poster { width: 30%; }
  .lib-frag--resume .pack-poster:nth-child(n+4) { display: none; }
}
