/* ===== 2000s Blockbuster Aesthetic ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: #e8eef5;
  color: #222;
  line-height: 1.4;
}

a {
  color: #003399;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #c60;
}

/* Top bar */
.top-bar {
  background: #00205b;
  color: #fff;
  font-size: 11px;
  padding: 4px 0;
}

.top-bar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.top-links a {
  color: #ffcc00;
  margin: 0 2px;
}

.top-links a:hover {
  color: #fff;
}

/* Header */
.main-header {
  background: linear-gradient(to bottom, #003399 0%, #001a4d 100%);
  padding: 12px 0;
  border-bottom: 4px solid #ffcc00;
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Classic ticket logo */
.bb-logo .ticket {
  background: #003399;
  border: 3px solid #ffcc00;
  border-radius: 6px;
  padding: 8px 18px;
  display: inline-block;
  position: relative;
  box-shadow: 2px 2px 0 #001a4d;
  transform: rotate(-2deg);
}

.bb-logo .ticket::before,
.bb-logo .ticket::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #e8eef5;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.bb-logo .ticket::before { left: -7px; }
.bb-logo .ticket::after { right: -7px; }

.bb-text {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: 28px;
  color: #ffcc00;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #001a4d;
}

.tagline {
  color: #ffcc00;
  font-size: 12px;
  font-style: italic;
  margin-top: 4px;
  margin-left: 4px;
}

.search-box form {
  display: flex;
}

.search-box input {
  padding: 5px 8px;
  border: 2px solid #ffcc00;
  font-size: 13px;
  width: 180px;
}

.search-box button {
  background: #ffcc00;
  border: 2px solid #ffcc00;
  color: #00205b;
  font-weight: bold;
  padding: 5px 12px;
  cursor: pointer;
}

.search-box button:hover {
  background: #ffe066;
}

/* Main nav */
.main-nav {
  background: #00205b;
  border-bottom: 2px solid #ffcc00;
}

.main-nav ul {
  max-width: 980px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.main-nav li a {
  display: block;
  padding: 8px 14px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  border-right: 1px solid #003399;
}

.main-nav li a:hover,
.main-nav li.active a {
  background: #ffcc00;
  color: #00205b;
  text-decoration: none;
}

/* Sub nav */
.sub-nav {
  background: #d6e0f0;
  border-bottom: 1px solid #99aacc;
  padding: 6px 10px;
  text-align: center;
  font-size: 12px;
  color: #445;
}

.sub-nav a {
  color: #003399;
  margin: 0 3px;
}

/* Page layout */
.page-wrap {
  max-width: 980px;
  margin: 12px auto;
  padding: 0 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* Sidebar */
.sidebar {
  width: 180px;
  flex-shrink: 0;
}

.side-box {
  background: #fff;
  border: 1px solid #99aacc;
  margin-bottom: 12px;
  padding: 8px;
}

.side-box h3 {
  background: #003399;
  color: #ffcc00;
  font-size: 12px;
  padding: 4px 6px;
  margin: -8px -8px 8px -8px;
}

.side-box ul {
  list-style: none;
}

.side-box li {
  margin-bottom: 3px;
}

.side-box li a {
  font-size: 12px;
}

.side-box.promo {
  background: #fff8e0;
  border-color: #ffcc00;
}

.side-box.promo h3 {
  background: #cc9900;
  color: #fff;
}

.side-box p {
  font-size: 11px;
  margin-bottom: 8px;
}

.side-btn {
  display: inline-block;
  background: #003399;
  color: #ffcc00 !important;
  font-weight: bold;
  font-size: 11px;
  padding: 4px 10px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.side-btn:hover {
  background: #00205b;
}

.zip-input {
  width: 100%;
  padding: 4px;
  margin-bottom: 6px;
  border: 1px solid #99aacc;
  font-size: 12px;
}

/* Main content */
.content {
  flex: 1;
  min-width: 0;
}

/* Hero banner */
.hero-banner {
  background: linear-gradient(135deg, #001a4d 0%, #003399 50%, #00205b 100%);
  border: 3px solid #ffcc00;
  padding: 16px;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  color: #fff;
  align-items: center;
}

.banner-content {
  flex: 1;
}

.banner-content h1 {
  font-size: 14px;
  color: #ffcc00;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.banner-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 6px;
  text-shadow: 1px 1px 2px #000;
}

.banner-desc {
  font-size: 13px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.banner-meta {
  font-size: 12px;
  margin-bottom: 12px;
}

.rating {
  background: #ffcc00;
  color: #00205b;
  font-weight: bold;
  padding: 1px 6px;
  margin-right: 8px;
}

.banner-btn {
  display: inline-block;
  background: #ffcc00;
  color: #00205b !important;
  font-weight: bold;
  padding: 6px 14px;
  text-decoration: none !important;
  border: 2px solid #cc9900;
}

.banner-btn:hover {
  background: #ffe066;
}

.banner-poster {
  width: 120px;
  height: 170px;
  background: #111;
  border: 2px solid #ffcc00;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #ffcc00;
  flex-shrink: 0;
}

.banner-poster.bond {
  background: linear-gradient(160deg, #1a1a2e, #0f0f1a);
}

/* Sections */
.section {
  background: #fff;
  border: 1px solid #99aacc;
  margin-bottom: 14px;
  padding: 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #003399;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 16px;
  color: #003399;
}

.see-all {
  font-size: 12px;
  font-weight: bold;
}

/* Movie grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.movie-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.movie-card:hover {
  transform: scale(1.04);
}

.movie-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: #1a1a2e;
  border: 2px solid #003399;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-size: 11px;
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 4px;
  line-height: 1.2;
}

.movie-card:hover .movie-poster {
  border-color: #ffcc00;
}

.movie-title {
  font-size: 11px;
  font-weight: bold;
  color: #003399;
  line-height: 1.25;
}

.movie-format {
  font-size: 10px;
  color: #666;
}

/* Top 10 list */
.top10-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top10-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: #f4f7fb;
  border: 1px solid #cce;
  cursor: pointer;
}

.top10-item:hover {
  background: #e8eef8;
  border-color: #ffcc00;
}

.top10-rank {
  font-size: 20px;
  font-weight: bold;
  color: #003399;
  width: 28px;
  text-align: center;
}

.top10-poster {
  width: 40px;
  height: 56px;
  background: #1a1a2e;
  border: 1px solid #003399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #ffcc00;
  text-align: center;
  flex-shrink: 0;
}

.top10-info {
  flex: 1;
}

.top10-info strong {
  display: block;
  color: #003399;
  font-size: 13px;
}

.top10-info span {
  font-size: 11px;
  color: #666;
}

/* Promos */
.promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.promo-card {
  background: linear-gradient(to bottom, #003399, #001a4d);
  color: #fff;
  padding: 14px;
  text-align: center;
  border: 2px solid #ffcc00;
}

.promo-card h3 {
  color: #ffcc00;
  font-size: 18px;
  margin-bottom: 6px;
}

.promo-card p {
  font-size: 12px;
  margin-bottom: 10px;
}

.promo-card a {
  display: inline-block;
  background: #ffcc00;
  color: #00205b !important;
  font-weight: bold;
  padding: 4px 12px;
  text-decoration: none !important;
  font-size: 12px;
}

/* Coming soon */
.coming-soon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coming-item {
  display: flex;
  gap: 8px;
  width: calc(50% - 6px);
  background: #f4f7fb;
  border: 1px solid #cce;
  padding: 8px;
  cursor: pointer;
}

.coming-item:hover {
  border-color: #ffcc00;
}

.coming-poster {
  width: 50px;
  height: 70px;
  background: #1a1a2e;
  border: 1px solid #003399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #ffcc00;
  text-align: center;
  flex-shrink: 0;
}

.coming-info strong {
  display: block;
  color: #003399;
  font-size: 13px;
  margin-bottom: 2px;
}

.coming-info span {
  font-size: 11px;
  color: #666;
}

/* Footer */
.footer {
  background: #00205b;
  color: #ccc;
  margin-top: 20px;
  padding: 20px 0 12px;
  border-top: 4px solid #ffcc00;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.footer-cols h4 {
  color: #ffcc00;
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-cols a {
  display: block;
  color: #aac;
  font-size: 12px;
  margin-bottom: 3px;
}

.footer-cols a:hover {
  color: #ffcc00;
}

.footer-bottom {
  border-top: 1px solid #003399;
  padding-top: 12px;
  text-align: center;
}

.bb-logo-small .ticket.small {
  background: #003399;
  border: 2px solid #ffcc00;
  border-radius: 4px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 8px;
}

.bb-logo-small .bb-text {
  font-size: 16px;
}

.footer-bottom p {
  font-size: 11px;
  margin-bottom: 4px;
}

.disclaimer {
  color: #778;
  font-size: 10px !important;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border: 4px solid #003399;
  max-width: 420px;
  width: 92%;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.modal-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  color: #003399;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px;
  display: flex;
  gap: 14px;
}

.modal-poster {
  width: 100px;
  height: 150px;
  background: #1a1a2e;
  border: 2px solid #003399;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #ffcc00;
  flex-shrink: 0;
}

.modal-info h3 {
  color: #003399;
  font-size: 18px;
  margin-bottom: 6px;
}

.modal-info .meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.modal-info p {
  font-size: 13px;
  margin-bottom: 12px;
}

.modal-info .avail {
  background: #e0f0e0;
  border: 1px solid #6a6;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #060;
}

/* Responsive */
@media (max-width: 780px) {
  .page-wrap {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .promo-row {
    grid-template-columns: 1fr;
  }
  .coming-item {
    width: 100%;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .hero-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sidebar {
    grid-template-columns: 1fr;
  }
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
