/* ========================================================
   CineHora - Cartelera, IMDb & Movie End-Time Calculator
   Mobile-First, Ultra-Responsive & Cinematic Theme
   ======================================================== */

:root {
  /* Cinematic Color Palette */
  --bg-black: #080a10;
  --bg-card: rgba(18, 22, 36, 0.75);
  --bg-card-hover: rgba(26, 32, 52, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 197, 24, 0.5);
  
  /* Brand Accents */
  --imdb-yellow: #f5c518;
  --imdb-yellow-glow: rgba(245, 197, 24, 0.25);
  --cinema-crimson: #e50914;
  --cinema-crimson-glow: rgba(229, 9, 20, 0.3);
  --electric-cyan: #00e5ff;
  --neon-green: #00f2a9;
  
  /* Typography */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(245, 197, 24, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.glow-1 {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--cinema-crimson), transparent 70%);
}

.glow-2 {
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, var(--imdb-yellow), transparent 70%);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 10, 16, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #e50914 0%, #ff5252 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.brand-text h1 span {
  color: var(--imdb-yellow);
}

.brand-text .tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
.header-right-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-geo-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--electric-cyan);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.header-geo-btn:hover,
.header-geo-btn:active {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--electric-cyan);
}

.header-imdb-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.btn-geo-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 242, 169, 0.12);
  border: 1.5px solid rgba(0, 242, 169, 0.4);
  color: var(--neon-green);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-geo-action:hover,
.btn-geo-action:active {
  background: rgba(0, 242, 169, 0.25);
  box-shadow: 0 0 12px rgba(0, 242, 169, 0.3);
}

.geo-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 1.5s infinite;
}

.location-banner {
  background: rgba(0, 242, 169, 0.1);
  border-top: 1px solid rgba(0, 242, 169, 0.25);
  border-bottom: 1px solid rgba(0, 242, 169, 0.25);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--neon-green);
  font-weight: 600;
  text-align: center;
  z-index: 50;
  position: relative;
  backdrop-filter: blur(10px);
}

.location-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.loc-reset-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-item-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 229, 255, 0.12);
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  color: var(--electric-cyan);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-item-btn:hover,
.filter-item-btn:active {
  background: rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.imdb-tag {
  background: var(--imdb-yellow);
  color: #000;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.imdb-live-pulse {
  width: 7px;
  height: 7px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.imdb-status-text {
  color: #d1d5db;
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle strong {
  color: var(--imdb-yellow);
}

/* Search Bar & Dropdown */
.search-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(22, 28, 46, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-bar:focus-within {
  border-color: var(--imdb-yellow);
  box-shadow: 0 0 0 3px var(--imdb-yellow-glow), 0 12px 35px rgba(0, 0, 0, 0.5);
  background: rgba(26, 32, 54, 0.95);
}

.search-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  margin-right: 0.65rem;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.search-bar input::placeholder {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.clear-search-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  transition: all 0.2s;
}

.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.search-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--imdb-yellow);
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Quick Search Suggestions Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(18, 24, 40, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  max-height: 420px;
  overflow-y: auto;
  z-index: 90;
  display: none;
  text-align: left;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item:active {
  background: rgba(245, 197, 24, 0.1);
}

.result-poster-thumb {
  width: 42px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}

.result-meta {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-subline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.result-imdb-score {
  color: var(--imdb-yellow);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.result-runtime {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Quick Tags */
.quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.quick-tag-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip:hover,
.quick-chip:active {
  background: rgba(245, 197, 24, 0.15);
  border-color: var(--imdb-yellow);
  color: #fff;
}

/* Main Layout */
.main-layout {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  width: 100%;
  flex: 1;
}

/* ========================================================
   Calculator & VIP Ticket Section (Core Interaction)
   ======================================================== */
.calculator-section {
  margin-bottom: 2.5rem;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.calculator-card {
  background: linear-gradient(135deg, rgba(22, 28, 48, 0.95) 0%, rgba(14, 18, 30, 0.98) 100%);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 197, 24, 0.08);
  backdrop-filter: blur(20px);
}

.calculator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge-step {
  background: var(--imdb-yellow);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.close-calc-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.close-calc-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Calculator 3-column / responsive grid */
.calc-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .calc-body-grid {
    grid-template-columns: 280px 1fr;
  }
  .finish-ticket-column {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .calc-body-grid {
    grid-template-columns: 260px 1.2fr 1fr;
  }
  .finish-ticket-column {
    grid-column: span 1;
  }
}

/* Selected Movie Info Left Column */
.selected-movie-info {
  background: rgba(10, 13, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.calc-movie-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.calc-poster-img {
  width: 85px;
  height: 125px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-movie-titles {
  flex: 1;
  min-width: 0;
}

.calc-movie-name {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.35rem;
}

.calc-movie-year {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.calc-imdb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.imdb-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid var(--imdb-yellow);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--imdb-yellow);
  text-decoration: none;
}

.calc-runtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--electric-cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.calc-movie-synopsis {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calc-movie-genres {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.genre-tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.imdb-official-link {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--imdb-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.imdb-official-link:hover {
  text-decoration: underline;
}

/* Session Picker Center Column */
.session-picker-container {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.picker-group {
  background: rgba(12, 16, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.picker-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.label-with-action .picker-label {
  margin-bottom: 0;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--electric-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.select-styled-wrapper {
  position: relative;
}

.styled-select {
  width: 100%;
  background: rgba(18, 24, 42, 0.9);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  transition: border-color 0.2s;
}

.styled-select:focus {
  border-color: var(--imdb-yellow);
}

.cinema-details-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Showtimes Grid */
.showtimes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.showtime-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.35rem;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
}

.showtime-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.showtime-btn.active {
  background: var(--imdb-yellow);
  border-color: var(--imdb-yellow);
  color: #000;
  box-shadow: 0 4px 15px var(--imdb-yellow-glow);
  transform: scale(1.03);
}

.showtime-btn .time-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.showtime-btn .format-text {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.15rem;
  opacity: 0.8;
}

.showtime-btn.active .format-text {
  color: #111;
  font-weight: 700;
}

/* Custom time input */
.custom-time-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 0.75rem;
}

.custom-time-box label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.custom-time-input-group {
  display: flex;
  gap: 0.5rem;
}

.custom-time-input-group input[type="time"] {
  background: #121626;
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  outline: none;
}

/* Trailer chips */
.trailers-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

@media (min-width: 480px) {
  .trailers-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trailer-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-height: 42px;
}

.trailer-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.trailer-chip.active {
  background: rgba(0, 242, 169, 0.15);
  border-color: var(--neon-green);
  color: var(--neon-green);
  font-weight: 700;
}

/* ========================================================
   VIP Cinema Ticket Result (Right Column)
   ======================================================== */
.finish-ticket-column {
  display: flex;
  flex-direction: column;
}

.cinema-ticket {
  background: linear-gradient(180deg, #181d2e 0%, #0f1320 100%);
  border: 1.5px solid rgba(245, 197, 24, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

/* Ticket Side Cutout Notches */
.ticket-notch {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--bg-card);
  border-radius: 50%;
  left: -13px;
  border-right: 1.5px solid rgba(245, 197, 24, 0.4);
}

.ticket-notch.top {
  top: 95px;
}

.ticket-notch.bottom {
  right: -13px;
  left: auto;
  top: 95px;
  border-right: none;
  border-left: 1.5px solid rgba(245, 197, 24, 0.4);
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.ticket-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.ticket-type {
  background: rgba(245, 197, 24, 0.15);
  color: var(--imdb-yellow);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.ticket-movie-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Big Finish Time Banner */
.ticket-finish-banner {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(245, 197, 24, 0.12) 100%);
  border: 1.5px solid rgba(245, 197, 24, 0.5);
  border-radius: var(--radius-md);
  padding: 1.1rem 0.85rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.1);
}

.finish-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--imdb-yellow);
  margin-bottom: 0.2rem;
}

.finish-time-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 0 25px rgba(245, 197, 24, 0.35);
}

.finish-day-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Ticket Timeline */
.ticket-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.ticket-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.timeline-dot {
  position: absolute;
  left: -1.4rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #374151;
  border: 2px solid #181d2e;
}

.timeline-dot.start {
  background: var(--electric-cyan);
}

.timeline-dot.movie {
  background: var(--imdb-yellow);
}

.timeline-dot.credits {
  background: #a855f7;
}

.timeline-dot.end {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.timeline-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: baseline;
}

.timeline-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.timeline-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.timeline-item.finish .timeline-time {
  color: var(--neon-green);
  font-size: 1rem;
}

.timeline-item.finish .timeline-desc {
  color: #fff;
}

/* Meta Footer */
.ticket-meta-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 0.85rem;
  margin-bottom: 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
}

.meta-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Ticket Actions */
.ticket-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-full {
  width: 100%;
}

.btn-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Generic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  min-height: 46px;
}

.btn-primary {
  background: linear-gradient(135deg, #e50914 0%, #b8000b 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.35);
}

.btn-primary:hover,
.btn-primary:active {
  background: linear-gradient(135deg, #f40612 0%, #cc000c 100%);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover,
.btn-outline:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  min-height: 36px;
}

/* ========================================================
   Cartelera Section & Movies Grid
   ======================================================== */
.cartelera-section {
  position: relative;
  z-index: 10;
  margin-top: 1rem;
}

.section-topbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-topbar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title-wrap .section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title-wrap .section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Filters Bar */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(22, 28, 48, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
}

.filter-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.filter-select option {
  background: #121626;
  color: #fff;
}

/* Movie Cards Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 600px) {
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .movies-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1150px) {
  .movies-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Movie Card */
.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.movie-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111;
}

.movie-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster-wrap img {
  transform: scale(1.05);
}

.poster-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(8, 10, 16, 0.95) 100%);
  pointer-events: none;
}

.card-top-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.card-imdb-badge {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--imdb-yellow);
  color: var(--imdb-yellow);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  backdrop-filter: blur(8px);
}

.card-runtime-badge {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.movie-card-content {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.movie-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.movie-card-btn {
  margin-top: auto;
  width: 100%;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid var(--border-active);
  color: var(--imdb-yellow);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.movie-card:hover .movie-card-btn {
  background: var(--imdb-yellow);
  color: #000;
}

/* Features Banner */
.features-banner {
  position: relative;
  z-index: 10;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .features-banner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.feature-card {
  background: rgba(18, 22, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #181d2e;
  border: 1.5px solid var(--neon-green);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--neon-green);
  font-weight: 800;
  font-size: 1.1rem;
}

.toast-message {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 10, 16, 0.95);
  padding: 2rem 1rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-info .disclaimer {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  max-width: 650px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ========================================================
   Mobile Device Specific Optimizations
   ======================================================== */
@media (max-width: 480px) {
  .site-header {
    padding: 0.6rem 0.85rem;
  }

  .brand-text h1 {
    font-size: 1.2rem;
  }

  .brand-text .tagline {
    display: none;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
  }

  .calculator-card {
    padding: 1.1rem;
  }

  .finish-time-big {
    font-size: 2.35rem;
  }

  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .movie-card-content {
    padding: 0.65rem;
  }

  .movie-card-title {
    font-size: 0.85rem;
  }

  .btn-group-row {
    grid-template-columns: 1fr;
  }
}
