/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg: #0d0d0d;
  --bg2: #161616;
  --bg3: #1f1f1f;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #e63030;
  --accent-hover: #cc2020;
  --success: #27ae60;
  --radius: 10px;
  --font: 'Segoe UI', system-ui, sans-serif;
  --font-title: 'Bebas Neue', cursive;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ─────────────────────────────────────────── */
.container { max-width: 77%; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 30px; height: 75px; overflow: hidden;
}
.navbar-brand { display: flex; justify-content: center; align-items: center; }
.navbar-brand img { height: 65px; }
.navbar-links { display: flex; align-items: center; gap: 24px; justify-content: flex-end; align-self: center; }
.navbar-links a { color: var(--text-muted); font-size: 0.95rem; transition: color .2s; }
.navbar-links a:hover { color: var(--text); }
.admin-link { color: var(--accent) !important; }
.nav-left { display: flex; align-items: center; gap: 24px; align-self: center; }
.nav-left a { color: var(--text-muted); font-size: 0.95rem; transition: color .2s; }
.nav-left a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; border: none;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text); background: var(--bg3); }
.btn-google { background: #fff; color: #333; border: 1px solid #ddd; justify-content: center; }
.btn-google:hover { background: #f5f5f5; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-large { padding: 13px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }

/* ── Flash messages ────────────────────────────────────── */
.flash {
  padding: 12px 20px; text-align: center; font-weight: 500;
  position: sticky; top: 65px; z-index: 99;
}
.flash-error { background: #c0392b22; color: #e74c3c; border-bottom: 1px solid #c0392b44; }
.flash-success { background: #27ae6022; color: #2ecc71; border-bottom: 1px solid #27ae6044; }
.flash-info { background: #2980b922; color: #3498db; border-bottom: 1px solid #2980b944; }

/* ── Hero (legacy) ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 500px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #1a0000 0%, #0d0d0d 60%);
  overflow: hidden;
  padding: 80px 30px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.hero-content { position: relative; max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-family: var(--font-title); font-weight: 400; line-height: 1.05; margin-bottom: 16px; letter-spacing: 1px; }
.accent { color: var(--accent); }
.hero-sub { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Hero V2 ───────────────────────────────────────────── */
.hero-v2 {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  background: #0a0a0a;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-v2-bg-text {
  position: absolute;
  font-family: var(--font-title);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 400;
  letter-spacing: -4px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #1f1f1f;
  right: -3vw; bottom: -2rem;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.hero-v2-bg-text span { -webkit-text-stroke: 1px #3a0808; }
.hero-v2-inner {
  position: relative; z-index: 2;
  padding-top: 80px; padding-bottom: 80px;
}
.hero-v2-tag {
  font-size: 0.72rem; letter-spacing: 4px; color: var(--accent);
  font-weight: 600; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero-v2-tag::after {
  content: '';
  display: inline-block; width: 40px; height: 1px; background: var(--accent);
}
.hero-v2-title {
  font-family: var(--font-title);
  font-size: clamp(3.8rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-v2-accent { color: var(--accent); }
.hero-v2-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-v2-sub strong { color: var(--text); }
.hero-v2-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-v2-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Why Section ───────────────────────────────────────── */
.section-why { padding: 80px 0; border-bottom: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.why-item {
  padding: 40px;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.why-item:last-child { border-right: none; }
.why-item:hover { background: var(--bg2); }
.why-num {
  font-family: var(--font-title);
  font-size: 3rem; color: var(--accent); opacity: 0.5;
  display: block; margin-bottom: 14px; line-height: 1;
}
.why-bar {
  width: 32px; height: 2px; background: var(--accent);
  margin-bottom: 18px;
}
.why-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.why-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Recent V2 ─────────────────────────────────────────── */
.section-recent-v2 { padding: 70px 0 60px; }
.section-recent-header {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-recent-label {
  font-size: 0.7rem; letter-spacing: 3px; color: var(--accent);
  font-weight: 600;
  background: #e6303015; border: 1px solid #e6303040;
  padding: 4px 10px; border-radius: 4px;
}
.section-recent-title {
  font-family: var(--font-title); font-size: 2rem; font-weight: 400;
  letter-spacing: 1px; flex: 1;
}
.section-recent-link {
  color: var(--text-muted); font-size: 0.9rem;
  transition: color .2s;
  white-space: nowrap;
}
.section-recent-link:hover { color: var(--accent); }

/* ── CTA Band ──────────────────────────────────────────── */
.section-cta-band {
  background: linear-gradient(135deg, #1a0404 0%, #0d0d0d 100%);
  border-top: 1px solid #3a0808;
  padding: 60px 0;
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-band-title {
  font-family: var(--font-title); font-size: 2.4rem; font-weight: 400;
  letter-spacing: 1px; margin-bottom: 6px;
}
.cta-band-sub { color: var(--text-muted); font-size: 0.9rem; }

/* ── Features ──────────────────────────────────────────── */
.section-features { padding: 70px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Sections ──────────────────────────────────────────── */
.section-recent { padding: 40px 20px 70px; }
.section-title { font-size: 2rem; font-family: var(--font-title); font-weight: 400; letter-spacing: 1px; margin-bottom: 28px; }
.section-cta { text-align: center; margin-top: 36px; }

/* ── Spectacle Grid ────────────────────────────────────── */
.spectacles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.spectacle-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: block;
}
.spectacle-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(230,48,48,.2); border-color: var(--accent); }
.card-thumb { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--bg3); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.spectacle-card:hover .card-thumb img { transform: scale(1.08); }

.card-trailer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .4s; z-index: 1;
}
.spectacle-card:hover .card-trailer { opacity: 1; }

.card-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; opacity: 0; transition: opacity .3s;
}
.spectacle-card:hover .card-overlay { opacity: 1; }
.card-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(230,48,48,0.9); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; padding-left: 3px;
  transition: transform .2s, background .2s;
}
.spectacle-card:hover .card-play-btn { transform: translate(-50%, -50%) scale(1.1); }
.card-overlay-comedian { color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 600; letter-spacing: .03em; }

.card-free-badge {
  position: absolute; top: 10px; left: -1px; z-index: 4;
  background: var(--success); color: #fff;
  font-family: var(--font-title); font-size: 0.8rem; letter-spacing: 1px;
  padding: 3px 10px 3px 8px;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
}
.card-duration {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  background: rgba(0,0,0,0.8); color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 0.75rem;
}
.card-info { padding: 14px; }
.card-title { font-size: 1rem; font-family: var(--font-title); font-weight: 400; letter-spacing: .5px; margin-bottom: 4px; line-height: 1.2; }
.card-comedian { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 10px; }
.card-rating { display: flex; align-items: center; gap: 3px; }
.rating-count { color: var(--text-muted); font-size: 0.8rem; margin-left: 4px; }

/* ── Tendances Top 10 ──────────────────────────────────────── */
.trends-section { padding: 0 0 48px; }
.trends-header { margin-bottom: 8px; }
.trends-row {
  padding-right: 40px;
}
.trends-header h2 { font-family: var(--font-title); font-size: 1.8rem; font-weight: 400; letter-spacing: 1px; }
.trends-row {
  display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none; align-items: flex-end;
}
.trends-row::-webkit-scrollbar { display: none; }
.trend-item { display: flex; align-items: flex-end; flex-shrink: 0; margin-right: 4px; }
.trend-item:first-child { margin-left: auto; }
.trend-item:last-child { margin-right: auto; }
.trend-number {
  font-family: var(--font-title); font-size: 7.5rem; font-weight: 400;
  line-height: 0.85; color: #2a0505;
  -webkit-text-stroke: 2px #6a1515;
  margin-right: -10px; z-index: 20; user-select: none; flex-shrink: 0;
}
.trend-item:nth-child(1) .trend-number,
.trend-item:nth-child(2) .trend-number { font-size: 8.5rem; }
.trend-card { width: 220px; flex-shrink: 0; position: relative; z-index: 1; }
.trend-card .card-info { display: none; }
.trend-card .card-duration { display: none; }

/* ── Stars ─────────────────────────────────────────────── */
.star { color: var(--border); font-size: 1rem; }
.star.filled { color: #f39c12; }

/* ── Catalogue ─────────────────────────────────────────── */
.catalogue-page { padding: 40px 0 70px; }
.catalogue-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.catalogue-header h1 { font-size: 2.2rem; font-family: var(--font-title); font-weight: 400; letter-spacing: 1px; }
.search-input {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius); width: 300px; font-size: 0.9rem;
  transition: border-color .2s;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.empty-state { color: var(--text-muted); text-align: center; padding: 60px 0; font-size: 1rem; }

/* ── Spectacle Page ────────────────────────────────────── */
.spectacle-page { padding: 30px 0 60px; display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.spectacle-player-wrap { position: sticky; top: 80px; }
.player-container { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-container iframe { width: 100%; height: 100%; border: none; }
.preview-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius);
}
.preview-overlay.hidden { display: none; }
.overlay-content { padding: 30px; }
.overlay-content h2 { font-size: 1.5rem; margin-bottom: 12px; }
.overlay-content p { color: var(--text-muted); margin-bottom: 20px; }
.overlay-content .btn { margin: 6px; }
.spectacle-meta { padding-top: 10px; }
.spectacle-info h1 { font-size: 1.6rem; margin-bottom: 8px; }
.comedian-name { color: var(--accent); font-weight: 600; font-size: 1rem; margin-bottom: 12px; }
.spectacle-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.meta-row { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.badge {
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; display: inline-block;
}
.badge-success { background: #27ae6022; color: #2ecc71; border: 1px solid #27ae6044; }
.badge-grey { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }
.badge-danger { background: #c0392b22; color: #e74c3c; border: 1px solid #c0392b44; }
.spectacle-actions { margin-bottom: 28px; }
.rating-section { border-top: 1px solid var(--border); padding-top: 24px; }
.rating-section h3 { margin-bottom: 14px; font-size: 1rem; }
.star-rating { display: flex; gap: 6px; margin-bottom: 8px; }
.star-input {
  font-size: 2rem; color: var(--border); cursor: pointer;
  transition: color .15s, transform .1s;
}
.star-input:hover, .star-input.active { color: #f39c12; }
.star-input:hover { transform: scale(1.15); }
.rating-message { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.avg-rating-display { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.avg-stars { font-size: 1.8rem; font-weight: 700; color: #f39c12; }
.stars-display { display: flex; gap: 2px; }

/* ── Auth Pages ────────────────────────────────────────── */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; width: 100%; max-width: 420px;
}
.auth-logo { margin: 0 auto 24px; }
.auth-card h2 { text-align: center; margin-bottom: 24px; font-size: 1.4rem; }
.divider { text-align: center; margin: 20px 0; color: var(--text-muted); position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.divider::before { left: 0; }
.divider::after { right: 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: 8px; font-size: 0.95rem;
  transition: border-color .2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group small { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; display: block; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.auth-switch a { color: var(--accent); }

/* ── Profil ────────────────────────────────────────────── */
.profil-page { padding: 40px 0 70px; }
.profil-header { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.profil-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.profil-header h1 { font-size: 1.8rem; }
.profil-email { color: var(--text-muted); margin: 4px 0 10px; }
.profil-actions { margin-bottom: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.profil-sections { display: grid; gap: 50px; }
.profil-section h2 { font-size: 1.2rem; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.ratings-list { display: grid; gap: 12px; }
.rating-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px;
  transition: border-color .2s;
}
.rating-row:hover { border-color: var(--accent); }
.rating-row img { border-radius: 4px; width: 60px; height: 40px; object-fit: cover; flex-shrink: 0; }
.rating-row > div { flex: 1; }
.comedian-sm { color: var(--text-muted); font-size: 0.8rem; display: block; }
.stars-sm { display: flex; gap: 2px; }
.stars-sm .star { font-size: 0.9rem; }

/* ── Abonnement ────────────────────────────────────────── */
.abonnement-page { padding: 60px 20px; max-width: 600px; margin: 0 auto; text-align: center; }
.abonnement-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.abonnement-hero .sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.pricing-card {
  background: var(--bg2); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 40px; margin-bottom: 30px;
  position: relative;
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 4px 18px;
  border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}
.price { font-size: 3.5rem; font-weight: 800; color: var(--accent); margin: 10px 0 24px; }
.price span { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; display: grid; gap: 10px; }
.pricing-features li { color: var(--text-muted); font-size: 0.95rem; }
.pricing-features li::before { content: ''; }
.stripe-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 14px; }
.free-offer { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.free-offer p { color: var(--text-muted); margin-bottom: 14px; }
.already-subscribed { padding: 40px; }
.success-icon { font-size: 3rem; margin-bottom: 14px; display: block; }
.success-icon.big { font-size: 4rem; }

/* ── Admin ─────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 65px); }
.admin-sidebar { background: var(--bg2); border-right: 1px solid var(--border); padding: 30px 20px; }
.admin-logo { font-size: 1.1rem; font-weight: 700; margin-bottom: 28px; color: var(--accent); }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.admin-sidebar nav a {
  padding: 9px 14px; border-radius: 8px; color: var(--text-muted);
  font-size: 0.9rem; transition: all .2s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--bg3); color: var(--text); }
.admin-main { padding: 36px 40px; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 40px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat-card.accent { border-color: var(--accent); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }
.admin-section { margin-bottom: 40px; }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-section-header h2, .admin-section-header h1 { font-size: 1.3rem; margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 10px 14px; font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .05em; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.actions-cell { display: flex; gap: 8px; align-items: center; }
.admin-form { max-width: 800px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: auto; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }
.duration-inputs { display: flex; gap: 10px; align-items: center; }
.duration-field { display: flex; align-items: center; gap: 6px; }
.duration-field input { width: 65px; text-align: center; }
.duration-field span { color: var(--text-muted); font-size: 0.9rem; }

/* ── Footer ────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 30px 20px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── Loading ────────────────────────────────────────────── */
.loading-spinner {
  width: 40px; height: 40px; margin: 60px auto;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .spectacle-page { grid-template-columns: 1fr; }
  .spectacle-player-wrap { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navbar-links { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 20px; gap: 14px; }
  .navbar-links.open { display: flex; }
  .nav-toggle { display: block; }
  .catalogue-header { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
  .hero { padding: 50px 20px; }
  .hero-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; border-bottom: 1px solid var(--border); padding: 30px 20px; }
  .why-item:last-child { border-bottom: none; }
  .hero-v2-title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-v2-bg-text { font-size: 40vw; bottom: 0; right: -5vw; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .section-recent-header { flex-direction: column; gap: 8px; }
}
