/* =========================================================
   QUICKSHOW — PREMIUM DARK CINEMATIC THEME
   ========================================================= */

:root {
  --bg-base: #0b0c10;
  --bg-elevated: #15171c;
  --bg-card: #1a1c22;
  --red: #e63946;
  --red-dark: #b3202d;
  --gold: #f4c542;
  --text-main: #f1f1f3;
  --text-muted: #9a9ca3;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --radius: 14px;
  --transition: 0.3s ease;
  font-size: 16px;
}

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

body {
  background: var(--bg-base);
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }

a { text-decoration:none; color: inherit; }
ul { list-style:none; }
button { cursor:pointer; font-family:inherit; border:none; }

/* ===================== LOADER ===================== */
.loader {
  position: fixed; inset:0; background: var(--bg-base);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 18px; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity:0; visibility:hidden; }
.loader-reel { display:flex; gap:10px; }
.reel-circle {
  width: 22px; height:22px; border-radius:50%;
  border: 3px solid var(--red); border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.reel-circle:nth-child(2) { animation-delay: 0.2s; border-color: var(--gold); border-top-color:transparent;}
@keyframes spin { to { transform: rotate(360deg); } }
.loader p { font-family:'Bebas Neue'; letter-spacing:4px; color:var(--text-muted); }

/* ===================== TOAST ===================== */
.toast-container {
  position: fixed; top: 90px; right: 20px; z-index: 6000;
  display:flex; flex-direction:column; gap:10px;
}
.toast {
  background: var(--bg-card); border-left: 4px solid var(--red);
  padding: 14px 20px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 0.9rem; animation: slideIn 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
  min-width: 220px;
}
.toast.success { border-left-color: #2ecc71; }
@keyframes slideIn { from { transform: translateX(120%); opacity:0;} to { transform: translateX(0); opacity:1; } }
@keyframes fadeOut { to { opacity:0; transform: translateX(40px); } }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top:0; left:0; width:100%; z-index: 1000;
  background: rgba(11,12,16,0.75); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition);
}
.nav-container {
  max-width: 1300px; margin:0 auto; padding: 16px 24px;
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
}
.logo { font-family:'Bebas Neue'; font-size: 1.7rem; letter-spacing:1px; }
.logo span { color: var(--red); }
.nav-links { display:flex; gap: 28px; }
.nav-links a {
  font-size: 0.95rem; font-weight:500; color: var(--text-muted);
  position:relative; transition: color var(--transition);
}
.nav-links a::after {
  content:''; position:absolute; bottom:-6px; left:0; width:0; height:2px;
  background: var(--red); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }

.nav-actions { display:flex; align-items:center; gap: 14px; }
.search-box {
  display:flex; align-items:center; background: var(--glass);
  border: 1px solid var(--glass-border); border-radius: 30px; padding: 6px 6px 6px 16px;
}
.search-box input {
  background:transparent; border:none; outline:none; color: var(--text-main);
  width: 160px; font-size: 0.85rem;
}
.search-box button { background:transparent; padding: 6px 10px; border-radius:50%; }
.login-btn {
  background: var(--red); color:#fff; padding: 10px 22px; border-radius: 30px;
  font-weight:600; font-size:0.9rem; transition: transform var(--transition), box-shadow var(--transition);
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(230,57,70,0.4); }

.hamburger { display:none; flex-direction:column; gap:5px; background:none; }
.hamburger span { width:24px; height:2px; background:var(--text-main); }

.search-results {
  display:none; max-width:1300px; margin: 0 auto; background: var(--bg-elevated);
  border-radius: 0 0 14px 14px; max-height: 0; overflow:hidden; transition: max-height var(--transition);
}
.search-results.active { display:block; max-height: 400px; overflow-y:auto; }
.search-result-item {
  display:flex; gap:14px; padding: 12px 24px; align-items:center; border-bottom:1px solid var(--glass-border);
  transition: background var(--transition); cursor:pointer;
}
.search-result-item:hover { background: var(--glass); }
.search-result-item img { width:45px; height:60px; object-fit:cover; border-radius:6px; }
.search-result-item .sr-info p { font-size:0.8rem; color:var(--text-muted); }

/* ===================== HERO ===================== */
.hero {
  position: relative; height: 100vh; min-height: 600px; display:flex; align-items:center;
  overflow:hidden;
}
.hero-slides { position:absolute; inset:0; }
.hero-slide {
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition: opacity 1s ease;
}
.hero-slide.active { opacity:1; }
.hero-overlay {
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(11,12,16,0.95) 10%, rgba(11,12,16,0.55) 60%, rgba(11,12,16,0.85) 100%);
}
.hero-content { position:relative; z-index:2; max-width: 1300px; margin: 0 auto; padding: 0 24px; max-width:600px; }
.hero-tag {
  display:inline-block; background: var(--glass); border:1px solid var(--glass-border);
  padding: 6px 16px; border-radius: 30px; font-size:0.8rem; margin-bottom: 16px;
}
.hero-content h1 { font-size: 4rem; margin-bottom: 14px; line-height:1.1; }
.hero-content p {
  color: var(--text-muted); font-size:1rem; margin-bottom: 18px; line-height:1.6;
  max-width: 520px;
}
.hero-meta { display:flex; gap:16px; font-size:0.9rem; color: var(--gold); margin-bottom:26px; }
.hero-meta span:not(:first-child) { color: var(--text-muted); }
.hero-buttons { display:flex; gap: 16px; }

.btn {
  padding: 14px 30px; border-radius: 10px; font-weight:600; font-size:0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary { background: var(--red); color:#fff; }
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 10px 25px rgba(230,57,70,0.45); }
.btn-outline { background: var(--glass); border:1px solid var(--glass-border); color:#fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform:translateY(-3px); }
.btn-full { width:100%; }

.hero-dots { position:absolute; bottom: 30px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:2; }
.hero-dot { width:10px; height:10px; border-radius:50%; background: var(--glass-border); cursor:pointer; transition: background var(--transition), width var(--transition); }
.hero-dot.active { background: var(--red); width:26px; border-radius:6px; }

/* ===================== SECTIONS ===================== */
.section { padding: 90px 24px; max-width: 1300px; margin:0 auto; }
.section-alt { background: var(--bg-elevated); max-width:100%; }
.section-alt > * { max-width:1300px; margin-left:auto; margin-right:auto; }
.section-header { text-align:center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.6rem; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); }

/* ===================== MOVIE CARDS ===================== */
.movie-grid {
  display:grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 28px;
}
.movie-card {
  background: var(--bg-card); border-radius: var(--radius); overflow:hidden;
  border: 1px solid var(--glass-border); cursor:pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display:flex; flex-direction:column;
}
.movie-card:hover { transform: translateY(-10px); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.movie-poster { position:relative; height: 320px; overflow:hidden; }
.movie-poster img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s ease; }
.movie-card:hover .movie-poster img { transform: scale(1.08); }
.movie-rating-badge {
  position:absolute; top:10px; right:10px; background: rgba(0,0,0,0.7);
  color: var(--gold); padding: 4px 10px; border-radius: 20px; font-size:0.8rem; font-weight:600;
}
.movie-info { padding: 16px; flex:1; display:flex; flex-direction:column; gap:6px; }
.movie-info h3 { font-size:1.15rem; }
.movie-info .meta-row { display:flex; gap:8px; flex-wrap:wrap; font-size:0.78rem; color: var(--text-muted); }
.movie-info .meta-row span { background: var(--glass); padding:3px 9px; border-radius: 20px; }
.book-btn {
  margin-top: 10px; background: var(--red); color:#fff; padding: 10px; border-radius:8px;
  font-weight:600; font-size:0.85rem; transition: background var(--transition);
}
.book-btn:hover { background: var(--red-dark); }
.remind-btn {
  margin-top:10px; background: var(--glass); border:1px solid var(--glass-border);
  color:#fff; padding:10px; border-radius:8px; font-weight:600; font-size:0.85rem;
}
.remind-btn.active { background: var(--gold); color:#111; border-color: var(--gold); }
.release-date { color: var(--gold); font-size:0.82rem; font-weight:600; }

/* ===================== OFFERS ===================== */
.offers-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.offer-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 26px;
  position:relative; overflow:hidden; transition: transform var(--transition);
}
.offer-card:hover { transform: translateY(-6px); }
.offer-card::before {
  content:''; position:absolute; top:-40px; right:-40px; width:120px; height:120px;
  background: var(--red); opacity:0.15; border-radius:50%;
}
.offer-card h3 { font-size:1.3rem; margin-bottom:8px; color: var(--gold); }
.offer-card p { color: var(--text-muted); font-size:0.9rem; }

/* ===================== REVIEWS ===================== */
.reviews-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.review-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--glass-border);
}
.review-stars { color: var(--gold); margin-bottom: 10px; }
.review-card p.review-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom:14px; line-height:1.6; }
.review-user { display:flex; align-items:center; gap:10px; }
.review-avatar {
  width:38px; height:38px; border-radius:50%; background: var(--red);
  display:flex; align-items:center; justify-content:center; font-weight:700;
}

/* ===================== FOOTER ===================== */
.footer { background: #08090c; padding: 70px 24px 30px; }
.footer-grid {
  max-width:1300px; margin:0 auto; display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-col p { color: var(--text-muted); font-size: 0.88rem; margin: 10px 0; line-height:1.6; }
.footer-col h4 { margin-bottom: 16px; font-size:1.05rem; }
.footer-col a { display:block; color: var(--text-muted); font-size:0.88rem; margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--red); }
.social-links { display:flex; gap:12px; margin-top:14px; font-size:1.2rem; }
.footer-bottom {
  max-width:1300px; margin: 50px auto 0; padding-top:20px; border-top:1px solid var(--glass-border);
  text-align:center; color: var(--text-muted); font-size:0.82rem;
}

/* ===================== MODALS (GLASSMORPHISM) ===================== */
.modal-overlay {
  position: fixed; inset:0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display:none; align-items:center; justify-content:center; z-index: 5000; padding: 20px;
}
.modal-overlay.active { display:flex; animation: fadeBg 0.3s ease; }
@keyframes fadeBg { from{opacity:0;} to{opacity:1;} }
.modal {
  background: rgba(26,28,34,0.9); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 30px; max-width: 600px; width:100%;
  max-height: 88vh; overflow-y:auto; position:relative; animation: popIn 0.3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
@keyframes popIn { from { transform: scale(0.92); opacity:0; } to { transform:scale(1); opacity:1; } }
.modal-close {
  position:absolute; top: 16px; right: 16px; background: var(--glass); color:#fff;
  width:34px; height:34px; border-radius:50%; font-size:1rem;
}
.modal-movie { max-width: 700px; }
.modal-movie-body .modal-poster { width:100%; height: 280px; object-fit:cover; border-radius: 10px; margin-bottom: 18px; }
.modal-movie-body h2 { font-size: 1.8rem; margin-bottom: 6px; }
.modal-movie-body .modal-meta { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 14px; }
.modal-movie-body .modal-meta span { background: var(--glass); padding:4px 12px; border-radius:20px; font-size:0.8rem; }
.modal-movie-body p.overview { color: var(--text-muted); line-height:1.7; margin-bottom:16px; font-size:0.92rem; }
.modal-movie-body .cast-row { margin-bottom: 18px; font-size:0.88rem; }
.modal-movie-body .cast-row b { color: var(--gold); }
.modal-movie-actions { display:flex; gap:14px; }

/* Seat booking modal */
.modal-seats { max-width: 720px; }
.show-selectors { display:flex; gap: 14px; margin: 20px 0; flex-wrap:wrap; }
.selector-group { flex:1; min-width:140px; }
.selector-group label { display:block; font-size:0.78rem; color:var(--text-muted); margin-bottom:6px; }
.selector-group select {
  width:100%; background: var(--glass); border:1px solid var(--glass-border); color:#fff;
  padding: 10px; border-radius: 8px; outline:none;
}
.screen-wrap { text-align:center; margin: 30px 0 20px; }
.screen-curve {
  height: 8px; background: linear-gradient(90deg, transparent, var(--red), transparent);
  border-radius: 50%; margin: 0 auto 8px; width: 80%; box-shadow: 0 10px 30px rgba(230,57,70,0.4);
}
.screen-label { font-size:0.7rem; letter-spacing:3px; color: var(--text-muted); }
.seat-map { display:flex; flex-direction:column; gap:8px; align-items:center; margin: 20px 0; }
.seat-row { display:flex; gap:8px; align-items:center; }
.seat-row .row-label { width:20px; color:var(--text-muted); font-size:0.8rem; }
.seat {
  width: 28px; height: 28px; border-radius: 6px 6px 10px 10px; cursor:pointer;
  background: var(--glass); border: 1px solid var(--glass-border);
  display:flex; align-items:center; justify-content:center; font-size:0.65rem;
  transition: transform var(--transition), background var(--transition);
}
.seat:hover:not(.occupied) { transform: scale(1.15); }
.seat.occupied { background: #333; cursor:not-allowed; opacity:0.5; }
.seat.selected { background: var(--red); border-color: var(--red); }
.seat.premium { border-color: var(--gold); }
.seat.premium.selected { background: var(--gold); color:#111; }
.seat.vip { border-color: #9b59b6; }
.seat.vip.selected { background: #9b59b6; }
.seat-legend { display:flex; gap: 18px; flex-wrap:wrap; justify-content:center; font-size:0.78rem; color:var(--text-muted); margin: 16px 0; }
.dot { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:middle; }
.dot.available { background: var(--glass); border:1px solid var(--glass-border); }
.dot.selected { background: var(--red); }
.dot.occupied { background:#333; }
.dot.premium { background: transparent; border:2px solid var(--gold); }
.dot.vip { background: #9b59b6; }
.seat-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; margin-top: 16px; border-top:1px solid var(--glass-border); padding-top:18px; }
.seat-summary p { font-size:0.88rem; margin-bottom:4px; color: var(--text-muted); }
.seat-summary span { color:#fff; font-weight:600; }

/* Summary modal */
.summary-card { background: var(--glass); border-radius: 10px; padding: 18px; margin: 18px 0; }
.summary-row { display:flex; justify-content:space-between; padding: 8px 0; border-bottom: 1px solid var(--glass-border); font-size:0.9rem; }
.summary-row:last-child { border-bottom:none; font-weight:700; color: var(--gold); }

/* Payment modal */
.payment-methods { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.payment-option {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 14px; display:flex; align-items:center; gap:10px; cursor:pointer; transition: border-color var(--transition);
}
.payment-option input { accent-color: var(--red); }
.payment-option:has(input:checked) { border-color: var(--red); background: rgba(230,57,70,0.1); }
.payment-form input {
  width:100%; background: var(--glass); border:1px solid var(--glass-border); color:#fff;
  padding: 12px; border-radius:8px; margin-bottom:12px; outline:none;
}
.payment-form { margin-top: 10px; }
.payment-total { display:flex; justify-content:space-between; font-size:1.1rem; font-weight:700; margin: 18px 0; color: var(--gold); }

/* Login modal */
.modal-login form label { display:block; font-size:0.85rem; color:var(--text-muted); margin: 14px 0 6px; }
.modal-login form input {
  width:100%; background: var(--glass); border:1px solid var(--glass-border); color:#fff;
  padding: 12px; border-radius: 8px; outline:none;
}
.error-text { color: var(--red); font-size:0.78rem; display:block; min-height:18px; margin-top:4px; }

/* Confirmation modal */
.modal-confirm { text-align:center; max-width:420px; }
.confirm-tick {
  width:70px; height:70px; border-radius:50%; background: #2ecc71; color:#fff;
  font-size:2rem; display:flex; align-items:center; justify-content:center; margin: 0 auto 18px;
  animation: popIn 0.4s ease;
}
.confirm-id { color: var(--gold); font-weight:600; margin: 14px 0; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { position:fixed; top:74px; left:0; width:100%; background: var(--bg-elevated);
    flex-direction:column; padding: 20px 24px; gap:18px; transform: translateY(-120%);
    transition: transform var(--transition); border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { transform: translateY(0); }
  .search-box { display:none; }
  .hamburger { display:flex; }
  .hero-content h1 { font-size: 2.3rem; }
  .hero-content { max-width: 90%; }
  .footer-grid { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .show-selectors { flex-direction:column; }
}

@media (max-width: 480px) {
  .section { padding: 60px 16px; }
  .section-header h2 { font-size: 2rem; }
  .seat { width:22px; height:22px; }
}
