/* ============================================
   SONOPLASTIA 2026 — Design Tokens & Global CSS
   ============================================ */

:root {
  /* Backgrounds */
  --bg-primary: #0d3952;
  --bg-secondary: #1b647a;
  --bg-card: #288ea8;

  /* Brand */
  --primary: #4bcadb;
  --primary-hover: #5fe6f0;
  --secondary: #56ddc0;
  --accent: #72f0ca;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #D9C9F0;
  --text-muted: #BBA5DA;

  /* Borders */
  --border: rgb(0, 0, 0);

  /* Buttons */
  --btn-primary-bg: #1088FF;
  --btn-primary-text: #FFFFFF;
  --btn-secondary-bg: #72D9F0;
  --btn-secondary-text: #2D0D52;

  /* States */
  --success: #2ECC71;
  --warning: #F39C12;
  --danger: #FF6B6B;

  /* Complement (hover) */
  --complement: #52260d;
  --complement-soft: rgba(82, 38, 13, 0.35);

  /* Utilities */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--bg-primary);
}

/* Container */
.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

/* Section base */
section {
  padding: 1.5rem 0;
}

@media (min-width: 720px) {
  section {
    padding: 2rem 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 2.4rem 0;
  }
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px var(--accent); }
  50% { box-shadow: 0 0 12px var(--accent), 0 0 20px var(--accent); }
}

/* Section Title */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Section Description */
.section-desc {
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   HEADER (Sticky)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 57, 82, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.header-brand:hover {
  color: var(--text-primary);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 8px var(--primary);
}

.header-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.18s;
}

.header-link:hover {
  background: var(--complement);
  border-color: var(--complement);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--complement-soft);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 2rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-content {
  order: 2;
}

@media (min-width: 720px) {
  .hero-content {
    order: 1;
  }
}

.hero-title {
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-desc a:hover {
  color: var(--primary-hover);
}

.hero-image-wrap {
  order: 1;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 720px) {
  .hero-image-wrap {
    order: 2;
  }
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08) brightness(0.95);
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 57, 82, 0.3), transparent 60%);
  pointer-events: none;
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #1088FF, #0070E0);
  color: var(--btn-primary-text);
  padding: 0.95rem 1.2rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 136, 255, 0.35);
  transition: all 0.18s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #10ffff;
  color: #000000;
  box-shadow: 0 12px 28px rgba(16, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 2rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-text p strong {
  color: var(--text-primary);
}

/* Contact Pills */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.18s;
}

.contact-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--complement);
  box-shadow: 0 0 0 1px var(--complement);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ============================================
   TEAM (Coletivo)
   ============================================ */
.team {
  padding: 2rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.team-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--complement);
  box-shadow: 0 8px 24px var(--complement-soft);
  background: linear-gradient(145deg, rgba(82, 38, 13, 0.12), rgba(255, 255, 255, 0.04));
}

.team-card-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 0 16px rgba(75, 202, 219, 0.25);
}

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

.team-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.team-card-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: all 0.25s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: all 0.25s;
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px var(--complement);
}

.gallery-item:hover img {
  filter: grayscale(0%) contrast(1.05);
}

/* ============================================
   TECH SPECS (Ficha Técnica)
   ============================================ */
.tech-specs {
  padding: 2rem 0;
}

.tech-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 720px) {
  .tech-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.tech-column h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  transition: all 0.18s;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.09);
}

.tech-item-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.tech-item-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-item-details strong {
  color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0;
  background: rgba(45, 13, 82, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col p strong {
  color: var(--text-secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.18s;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--complement);
  text-underline-offset: 3px;
}

/* Footer Developer Card */
.footer-dev-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  margin-top: 0.8rem;
}

.btn-secondary:hover {
  background: var(--btn-secondary-text);
  color: var(--btn-secondary-bg);
  border-color: var(--btn-secondary-text);
  transform: translateY(-2px);
}

/* Back to Top */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s;
  margin-top: 0.8rem;
}

.back-to-top:hover {
  background: #1010ff;
  border-color: #1010ff;
  color: var(--text-primary);
}

.back-to-top svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ============================================
   AUDIO PLAYER MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.player-card {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(90vw, 480px);
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: transform 0.3s;
  position: relative;
}

.modal-overlay.active .player-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.modal-close:hover {
  background: var(--complement);
  border-color: var(--complement);
  transform: rotate(90deg);
}

/* Player Album Art */
.player-album {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(114, 240, 202, 0.3);
}

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

.player-track-info {
  text-align: center;
  margin-bottom: 1.2rem;
}

.player-track-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.player-track-artist {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Progress */
.player-progress {
  margin-bottom: 0.8rem;
}

.progress-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  cursor: pointer;
}

.progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  border: none;
  cursor: pointer;
}

.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 0.3rem;
}

/* Controls Row */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1088FF, #0070E0);
  border: none;
  color: var(--btn-primary-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(16, 136, 255, 0.35);
  transition: all 0.18s;
}

.play-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--complement), #2f1508);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Volume */
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.icon-btn:hover {
  background: var(--complement);
  border-color: var(--complement);
  color: var(--text-primary);
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* Lyrics Toggle */
.lyrics-toggle {
  display: block;
  width: 100%;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: 0.5rem;
}

.lyrics-toggle:hover {
  background: var(--complement);
  border-color: var(--complement);
  color: var(--text-primary);
}

.lyrics-toggle[aria-expanded="true"] {
  background: var(--complement);
  border-color: var(--complement);
  color: var(--text-primary);
}

/* Lyrics Panel */
.lyrics-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
}

.lyrics-panel.open {
  max-height: 220px;
}

.lyrics-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, var(--bg-primary));
  pointer-events: none;
}

.lyrics-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  white-space: pre-line;
  padding: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 202, 219, 0.4) transparent;
}

.lyrics-text::-webkit-scrollbar {
  width: 4px;
}

.lyrics-text::-webkit-scrollbar-track {
  background: transparent;
}

.lyrics-text::-webkit-scrollbar-thumb {
  background: rgba(75, 202, 219, 0.4);
  border-radius: 999px;
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 5, 27, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-height: 70vh;
  max-width: 90vw;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.lightbox-overlay.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-caption {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
  transition: all 0.18s;
}

.lightbox-close:hover {
  background: var(--complement);
  border-color: var(--complement);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
  transition: all 0.18s;
}

.lightbox-nav:hover {
  background: var(--complement);
  border-color: var(--complement);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 720px) {
  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
  .lightbox-prev {
    left: calc(50% - 3rem);
  }
  .lightbox-next {
    right: calc(50% - 3rem);
  }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  padding: 3rem 0;
  min-height: 70vh;
}

.legal-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.legal-card h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-card .legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
}

.legal-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-card ul {
  color: var(--text-secondary);
  margin: 0.5rem 0 1rem 1.5rem;
  line-height: 1.7;
}

.legal-card li {
  margin-bottom: 0.4rem;
}

.legal-card strong {
  color: var(--text-primary);
}

.legal-card code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .player-card {
    padding: 1.5rem;
  }

  .legal-card {
    padding: 1.5rem;
  }
}
