* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #D4AF37;
  --dark: #1a1816;
  --light: #f9f7f3;
  --white: #ffffff;
  --gray: #e8e6e1;
  --text: #333333;
  --danger: #c62828;
  --success: #2e7d32;
}
body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background: var(--light); color: var(--text); line-height: 1.6; }
a { color: inherit; }
header { background: var(--white); border-bottom: 1px solid var(--gray); padding: 1.25rem 0; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,.05); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { font-size: 24px; font-weight: 700; color: var(--dark); text-decoration: none; }
.logo span { color: var(--gold); }
.nav { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--gold); }
.hero { background: linear-gradient(135deg, var(--dark), #2a2622); color: var(--white); padding: 3.5rem 2rem; text-align: center; border-bottom: 3px solid var(--gold); }
.hero h1 { font-size: 36px; margin-bottom: .5rem; }
.hero p { opacity: .95; }
.container { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
.booking-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.section { display: flex; flex-direction: column; gap: 1.5rem; }
.section-title { font-size: 16px; font-weight: 600; color: var(--dark); text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--gold); padding-bottom: .75rem; }
.card { background: var(--white); border: 1px solid var(--gray); border-radius: 4px; padding: 1.5rem; }
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.film-card { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; min-height: 178px; }
.film-poster { width: 96px; min-height: 144px; background: linear-gradient(135deg, var(--gold), #c4960f); border-radius: 4px; color: var(--white); display: flex; align-items: center; justify-content: center; text-align: center; padding: .75rem; font-weight: 700; font-size: 12px; overflow-wrap: anywhere; }
.film-poster-image { background-size: contain; background-repeat: no-repeat; background-position: center; position: relative; overflow: hidden; aspect-ratio: 3500 / 5000; }
.film-poster-image::before { content: ""; position: absolute; inset: 0; background: rgba(26,24,22,.35); }
.film-poster-image span { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.film-info h3 { color: var(--dark); font-size: 18px; margin-bottom: .5rem; }
.film-info p { font-size: 13px; color: #666; margin-bottom: .5rem; }
.booking-film-card { grid-template-columns: 200px 1fr; gap: 1.25rem; align-items: stretch; }
.booking-film-card .film-poster { width: 200px; min-height: 0; aspect-ratio: 3500 / 5000; align-self: start; }
.trailer-card { padding: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.trailer-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.home-film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; align-items: start; }
.home-film-card { position: relative; min-height: 420px; border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 8px 24px rgba(26,24,22,.08); }
.home-film-poster { aspect-ratio: 3500 / 5000; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #ddd; }
.home-film-poster-empty { display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; font-weight: 800; color: var(--white); background: linear-gradient(135deg, var(--gold), #c4960f); }
.home-film-rank { position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(26,24,22,.42); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.home-film-hover { position: absolute; left: 0; right: 0; bottom: 4.5rem; padding: 4rem .85rem .85rem; background: linear-gradient(transparent, rgba(255,255,255,.96) 48%, var(--white)); opacity: 0; transform: translateY(16px); transition: opacity .2s ease, transform .2s ease; }
.home-film-card:hover .home-film-hover, .home-film-card:focus-within .home-film-hover { opacity: 1; transform: translateY(0); }
.home-film-actions { display: flex; gap: .5rem; }
.home-film-btn { border: 1px solid var(--dark); border-radius: 999px; padding: .62rem .9rem; font-size: 12px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; cursor: pointer; white-space: nowrap; }
.home-film-btn-light { background: var(--white); color: var(--dark); }
.home-film-btn-dark { background: var(--dark); color: var(--white); }
.home-film-meta { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .75rem; font-size: 12px; color: #777; }
.home-film-meta span { background: var(--light); border-radius: 999px; padding: .22rem .5rem; }
.home-film-info { padding: 1rem; min-height: 80px; }
.home-film-info h3 { color: var(--dark); font-size: 16px; line-height: 1.3; text-transform: uppercase; margin-bottom: .35rem; }
.home-film-info p { color: #666; font-size: 13px; }
.badge { display: inline-block; background: var(--light); border: 1px solid var(--gold); color: var(--dark); padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: 500; }
select, input, textarea { width: 100%; padding: .75rem; border: 1px solid var(--gray); border-radius: 4px; font-size: 14px; background: var(--white); color: var(--text); font-family: inherit; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,.1); }
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.form-label { font-size: 13px; font-weight: 600; color: var(--dark); text-transform: uppercase; letter-spacing: .5px; }
.btn { padding: .75rem 1rem; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; width: 100%; text-align: center; }
.btn-primary { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-primary:hover:not(:disabled) { background: #c4960f; border-color: #c4960f; }
.btn-secondary { background: var(--dark); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.screen { text-align: center; font-weight: bold; font-size: 16px; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .75rem; }
.seat-grid { display: grid; grid-template-columns: repeat(var(--seat-left-columns, 15), 32px) repeat(var(--seat-right-columns, 0), 32px); gap: 6px; justify-content: center; overflow-x: auto; padding-bottom: .25rem; }
.seat-grid.with-aisle { grid-template-columns: repeat(var(--seat-left-columns, 7), 32px) var(--seat-aisle-width, 28px) repeat(var(--seat-right-columns, 8), 32px); }
.seat { width: 32px; height: 32px; border: 1px solid var(--gray); border-radius: 3px; background: #e8f5e9; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #555; }
.seat.selected { background: var(--gold); color: var(--white); border-color: var(--gold); }
.seat.booked { background: #ffebee; cursor: not-allowed; opacity: .65; }
.seat-legend { display: flex; gap: 1.25rem; justify-content: center; font-size: 12px; padding-top: 1rem; border-top: 1px solid var(--gray); margin-top: 1rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: .5rem; }
.legend-box { width: 16px; height: 16px; border-radius: 2px; border: 1px solid #ccc; }
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--gray); font-size: 13px; }
.summary-value { font-weight: 600; color: var(--dark); text-align: right; }
.total-price { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 2px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 18px; margin-top: 1rem; }
.payment-tabs { display: flex; border-bottom: 2px solid var(--gray); margin-bottom: 1.5rem; }
.payment-tab { flex: 1; padding: .75rem; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-weight: 700; color: #888; }
.payment-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.payment-content { display: none; }
.payment-content.active { display: block; }
.ticket-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--gray); border-radius: 4px; margin-bottom: .5rem; cursor: pointer; }
.ticket-option input { width: auto; }
.ticket-option small { display: block; color: #666; font-size: 12px; }
.bank-info { background: var(--light); border-left: 3px solid var(--gold); padding: 1rem; border-radius: 2px; }
.bank-info-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: .5rem; gap: 1rem; }
.bank-value { font-weight: 700; color: var(--dark); font-family: "Courier New", monospace; text-align: right; }
.alert { padding: 1rem; border-radius: 4px; font-size: 13px; border-left: 3px solid; margin-bottom: 1rem; }
.alert-error { background: #ffebee; border-left-color: var(--danger); color: var(--danger); }
.alert-success { background: #e8f5e9; border-left-color: var(--success); color: var(--success); }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--gray); }
.table th, .table td { padding: .75rem; border-bottom: 1px solid var(--gray); text-align: left; font-size: 14px; vertical-align: top; }
.table th { color: var(--dark); background: #f4f1e9; }
.table-wrap { overflow-x: auto; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.actions .btn { width: auto; padding: .5rem .75rem; }
.order-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.order-filter { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.order-filter input { min-width: 220px; }
.order-filter select { min-width: 140px; }
.order-actions { align-items: center; }
.order-table td[data-label="Film"] small { display: block; max-width: 180px; overflow-wrap: anywhere; }
footer { background: var(--dark); color: var(--white); padding: 2rem; margin-top: 3rem; text-align: center; font-size: 13px; }
footer a { color: var(--gold); }
@media (max-width: 768px) {
  .header-container, .nav { flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 28px; }
  .booking-layout { grid-template-columns: 1fr; }
  .film-card { grid-template-columns: 1fr; }
  .film-poster { width: 100%; min-height: 120px; }
  .booking-film-card { grid-template-columns: 1fr; gap: 1rem; }
  .booking-film-card .film-poster { width: 100%; min-height: 0; aspect-ratio: 3500 / 5000; }
  .container { padding: 0 1rem; }
  .hero { padding: 2.25rem 1rem; }
  .card { padding: 1rem; }
  .home-film-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .home-film-card { min-height: 330px; }
  .home-film-hover { position: static; opacity: 1; transform: none; padding: .75rem; background: var(--white); }
  .home-film-actions { flex-direction: column; }
  .home-film-btn { width: 100%; }
  .home-film-info { padding: .75rem; }
  .seat-grid, .seat-grid.with-aisle { justify-content: start; }
  .order-toolbar, .order-filter { align-items: stretch; }
  .order-toolbar > *, .order-filter > * { width: 100%; }
  .order-toolbar .btn, .order-filter .btn { width: 100% !important; }
  .order-filter input, .order-filter select { min-width: 0; }
  .order-table, .order-table tbody, .order-table tr, .order-table td { display: block; width: 100%; }
  .order-table thead { display: none; }
  .order-table { border: 0; background: transparent; }
  .order-table tr { background: var(--white); border: 1px solid var(--gray); border-radius: 4px; margin-bottom: 1rem; padding: .5rem .75rem; }
  .order-table td { display: grid; grid-template-columns: 96px 1fr; gap: .75rem; border: 0; padding: .5rem 0; font-size: 13px; }
  .order-table td::before { content: attr(data-label); color: #666; font-weight: 600; }
  .order-actions, .order-actions .btn { width: 100%; }
  .order-detail-grid { gap: 1rem; }
  .summary-row { align-items: flex-start; }
  .summary-value { overflow-wrap: anywhere; }
}
