:root {
  --panel: rgba(9, 18, 34, 0.72);
  --panel-border: rgba(147, 183, 255, 0.18);
  --text: #f3f7ff;
  --muted: #a5b4ce;
  --accent: #ff7a18;
  --accent-strong: #ff4d6d;
  --accent-soft: rgba(255, 122, 24, 0.12);
  --success: #71f6c9;
  --shadow: 0 22px 80px rgba(3, 10, 20, 0.42);
  --danger: #ff8a8a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 24, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(113, 246, 201, 0.08), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #091425 42%, #07111f 100%);
}

a { color: inherit; }
button, input, select, video { font: inherit; }

.hidden { display: none !important; }

.page-shell { position: relative; overflow: hidden; }
.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.24;
  pointer-events: none;
}
.orb-left { top: -180px; left: -140px; background: #ff7a18; }
.orb-right { top: 120px; right: -220px; background: #3f7dff; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 10px 0 26px;
}

.compact-header { padding-bottom: 14px; }

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand span { color: var(--accent); }

.top-nav,
.footer-nav,
.auth-panel,
.user-chip,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-nav { justify-content: center; }

.top-nav a,
.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease;
}
.top-nav a:hover,
.footer-nav a:hover { color: var(--text); }

.user-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.chip-button,
.text-button,
.icon-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.chip-button { color: var(--muted); }
.text-button {
  padding: 0;
  color: var(--success);
}
.icon-button {
  font-size: 1.6rem;
  color: var(--muted);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 500px);
  gap: 32px;
  align-items: stretch;
  padding: 28px 0 36px;
}

.hero-copy,
.hero-panel,
.feature-card,
.faq-card,
.legal-card,
.player-panel,
.player-sidebar,
.library-card,
.modal-card {
  background: var(--panel);
  backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.player-panel,
.player-sidebar,
.feature-card,
.faq-card,
.legal-card,
.library-card,
.modal-card { border-radius: 32px; }

.hero-copy,
.player-sidebar,
.feature-card,
.faq-card,
.legal-card,
.library-card,
.modal-card { padding: 28px; }

.hero-panel,
.player-panel { padding: 16px; }

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.eyebrow,
.screen-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}
.compact-lead { font-size: 0.98rem; }

.hero-actions,
.player-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-actions.compact { margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 18px 40px rgba(255, 88, 78, 0.26);
}

.btn-secondary,
.btn-ghost,
.search-input {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-ghost { color: var(--muted); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.45rem;
}
.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-screen,
.main-player {
  border-radius: 26px;
  overflow: hidden;
  background: #02060c;
}

.hero-screen {
  position: relative;
  min-height: 560px;
}

.hero-video,
.main-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-player { min-height: 480px; }

.screen-card {
  position: absolute;
  inset: auto 18px 18px 18px;
  border-radius: 24px;
  padding: 24px;
  background: rgba(6, 12, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-card h2,
.player-sidebar h3,
.library-header h3,
.modal-head h3 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.02;
}

#spotlight-meta,
.card-meta,
.legal-card p,
.faq-card p,
.feature-card p,
.helper-note,
.empty-state,
.library-item-meta,
.form-error { color: var(--muted); }

#spotlight-description {
  margin-top: 14px;
  color: #e3ebfb;
  line-height: 1.7;
}

.chip-row,
.genre-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip-row { margin-top: 18px; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
button.chip { cursor: pointer; }
.chip.active {
  background: var(--accent-soft);
  border-color: rgba(255, 122, 24, 0.28);
  color: #fff;
}

.section {
  margin-top: 28px;
  padding-top: 18px;
}

.section-heading { margin-bottom: 18px; }
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.search-shell { width: min(100%, 360px); }
.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-layout,
.library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.helper-note {
  margin: 18px 0 0;
  line-height: 1.7;
  font-size: 0.92rem;
}

.feature-grid,
.faq-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card h3,
.faq-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}
.feature-card p,
.faq-card p,
.legal-card p {
  margin: 0;
  line-height: 1.7;
}
.legal-card p + p { margin-top: 16px; }

.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 380px;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.1), rgba(4, 8, 14, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-bg, linear-gradient(135deg, #203a43, #2c5364));
  z-index: -2;
}
.catalog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.06), rgba(7, 17, 31, 0.95)),
    var(--thumb, none) center/cover no-repeat;
  z-index: -1;
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1;
}

.card-meta {
  margin-top: 10px;
  font-size: 0.94rem;
}
.card-description {
  margin-top: 14px;
  min-height: 96px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  cursor: pointer;
}
.mini-link.alt { color: var(--muted); }

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

.library-header span {
  color: var(--success);
  font-weight: 700;
}

.library-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.library-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.library-item strong {
  display: block;
  margin-bottom: 4px;
}

.library-item button {
  align-self: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
}

.site-footer p {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 20, 0.72);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  margin: 10vh auto 0;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.field input {
  min-height: 50px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
}

.empty-state {
  margin: 0;
  line-height: 1.7;
}

.inner-page .wrap { max-width: 980px; }
.legal-layout { padding-top: 12px; }

@media (max-width: 1080px) {
  .hero-section,
  .player-layout,
  .library-grid,
  .feature-grid,
  .faq-grid,
  .catalog-grid { grid-template-columns: 1fr; }

  .hero-copy h1 { max-width: none; }
  .hero-screen { min-height: 460px; }
  .main-player { min-height: 360px; }
  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .top-nav { justify-content: start; }
}

@media (max-width: 720px) {
  .wrap { padding: 20px 16px 46px; }

  .section-heading.split,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .player-sidebar,
  .feature-card,
  .faq-card,
  .legal-card,
  .library-card,
  .modal-card { padding: 22px; }

  .hero-copy h1 { font-size: clamp(2.2rem, 12vw, 3.6rem); }
  .hero-screen { min-height: 420px; }
  .catalog-card { min-height: 340px; }
}
