/* ─── CSS Variables — Dark (default) & Light ─────────────────────────── */
:root {
  --bg: #0e1117;
  --bg2: #161b27;
  --surface: #1a2035;
  --surface2: #232d45;
  --border: #2a3554;
  --accent: #f5a623;
  --accent2: #e8852a;
  --text: #e8edf5;
  --text2: #8b9bb8;
  --text3: #5a6a8a;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 10px;
}
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg2: #eaeef8;
  --surface: #ffffff;
  --surface2: #f0f3fc;
  --border: #dde3f0;
  --text: #1a2035;
  --text2: #4a5568;
  --text3: #9aa3b5;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background .2s, color .2s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 58px;
}
.site-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: -.3px;
}
.site-logo:hover { text-decoration: none; }
.site-logo span { color: var(--text2); font-weight: 400; font-size: 13px; display: block; line-height: 1; margin-top: -2px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  border-radius: 6px;
  white-space: nowrap;
  transition: all .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: var(--surface2); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Search */
.search-wrap { position: relative; }
.search-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 36px 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: all .15s;
}
.search-input:focus { border-color: var(--accent); width: 260px; }
.search-input::placeholder { color: var(--text3); }
.search-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 14px; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  display: none;
  z-index: 200;
  overflow: hidden;
}
.search-section-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); padding: 8px 12px 4px; }
.search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  transition: background .1s;
  cursor: pointer;
}
.search-item:hover { background: var(--surface2); }
.search-item img { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-item-text { font-size: 14px; font-weight: 500; }
.search-item-sub { font-size: 12px; color: var(--text2); }

/* ─── Live Ticker ────────────────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  overflow: hidden;
}
.ticker-inner { display: flex; align-items: center; gap: 0; }
.ticker-label {
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 16px;
}
.ticker-track {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 13px; color: var(--text2); padding: 0 24px; }
.ticker-item strong { color: var(--accent); }
.ticker-item .sep { color: var(--text3); margin: 0 8px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Page Hero ──────────────────────────────────────────────────────────── */
.page-section { padding: 32px 0; }
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Movie Cards ────────────────────────────────────────────────────────── */
.movies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.movie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.movie-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.movie-card-poster { position: relative; aspect-ratio: 2/3; overflow: hidden; }
.movie-card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.movie-card:hover .movie-card-poster img { transform: scale(1.04); }
.movie-card-poster .card-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: #000;
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase;
}
.movie-card-poster .card-verdict {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  padding: 20px 10px 8px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.movie-card-body { padding: 12px; }
.movie-card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.movie-card-meta { font-size: 12px; color: var(--text2); }
.movie-card-collection { font-size: 15px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.movie-card-industry { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ─── Verdict Colors ──────────────────────────────────────────────────────── */
.v-disaster { color: #ef4444; }
.v-flop { color: #f97316; }
.v-average { color: #f59e0b; }
.v-semi-hit { color: #84cc16; }
.v-hit { color: #22c55e; }
.v-superhit { color: #10b981; }
.v-blockbuster { color: #06b6d4; }
.v-all-time-blockbuster { color: #a855f7; }

/* ─── News Cards ──────────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}
.news-card:hover { transform: translateY(-2px); }
.news-card-img { height: 160px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img .no-img { width: 100%; height: 100%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.news-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.news-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; }
.news-card-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); flex: 1; }
.news-card-title:hover { color: var(--accent); }
.news-card-time { font-size: 12px; color: var(--text3); margin-top: 10px; }

/* ─── Box Office Table ────────────────────────────────────────────────────── */
.bo-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.bo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bo-table th {
  background: var(--surface2);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text2);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.bo-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.bo-table tr:last-child td { border-bottom: none; }
.bo-table tr:hover td { background: var(--surface2); }
.bo-table .total-row td { background: var(--surface2); font-weight: 700; color: var(--accent); }
.bo-table .day-num { color: var(--text3); font-size: 12px; }
.bo-table .week-badge {
  display: inline-block; font-size: 10px; padding: 1px 6px;
  border-radius: 4px; background: var(--surface2); color: var(--text2);
  border: 1px solid var(--border); margin-right: 4px;
}

/* ─── Lang Tabs ──────────────────────────────────────────────────────────── */
.lang-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.lang-tab {
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer; transition: all .15s;
}
.lang-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ─── Stat Boxes ──────────────────────────────────────────────────────────── */
.stat-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-box-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); margin-bottom: 6px; }
.stat-box-value { font-size: 20px; font-weight: 700; color: var(--accent); }
.stat-box-sub { font-size: 12px; color: var(--text2); margin-top: 3px; }

/* ─── Movie Hero ──────────────────────────────────────────────────────────── */
.movie-hero {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.movie-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(8px) brightness(.2);
}
.movie-hero-inner { position: relative; z-index: 1; display: flex; gap: 32px; align-items: flex-start; }
.movie-poster {
  width: 200px; flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  overflow: hidden;
}
.movie-poster img { width: 100%; display: block; }
.movie-hero-info { flex: 1; min-width: 0; }
.movie-hero-title { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.movie-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  font-size: 13px; color: var(--text2);
}
.movie-hero-verdict {
  display: inline-block;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px;
  background: rgba(245,166,35,.15); color: var(--accent);
  border: 1px solid rgba(245,166,35,.3);
  margin-bottom: 16px;
}
.trailer-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: background .15s;
}
.trailer-btn:hover { background: var(--accent2); color: #000; text-decoration: none; }

/* ─── Section Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.card-title-icon { font-size: 16px; }

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  color: var(--text2); border-bottom: 2px solid transparent;
  cursor: pointer; background: none; border-top: none; border-left: none; border-right: none;
  transition: all .15s;
}
.tab-btn.active, .tab-btn:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Homepage Hero Featured ─────────────────────────────────────────────── */
.featured-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 360px; display: flex; align-items: flex-end;
  margin-bottom: 32px;
}
.featured-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
}
.featured-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
}
.featured-hero-content { position: relative; z-index: 1; padding: 28px; width: 100%; }
.featured-hero-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.featured-hero-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.featured-hero-stats { display: flex; gap: 20px; margin-bottom: 16px; }
.featured-stat { font-size: 13px; color: rgba(255,255,255,.7); }
.featured-stat strong { color: #fff; display: block; font-size: 17px; }

/* ─── Industry Tabs (Homepage) ───────────────────────────────────────────── */
.industry-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.industry-tab {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text2);
  cursor: pointer; transition: all .15s;
}
.industry-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ─── OTT Platform Badges ─────────────────────────────────────────────────── */
.ott-badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; text-transform: uppercase;
}
.ott-Netflix { background: #e50914; color: #fff; }
.ott-Prime { background: #00a8e0; color: #fff; }
.ott-Hotstar { background: #1f80e0; color: #fff; }
.ott-Zee5 { background: #7b2fff; color: #fff; }
.ott-SonyLiv { background: #f60; color: #fff; }
.ott-default { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }

/* ─── Records Table ──────────────────────────────────────────────────────── */
.records-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.records-table th { padding: 8px 12px; text-align: left; font-size: 11px; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid var(--border); }
.records-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.records-table tr:last-child td { border-bottom: none; }
.rank-num { font-size: 18px; font-weight: 800; color: var(--border); width: 40px; }
.rank-1 { color: #f5a623; }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #cd7f32; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); padding: 12px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text3); }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.badge-running { background: rgba(34,197,94,.15); color: #22c55e; }
.badge-upcoming { background: rgba(59,130,246,.15); color: #60a5fa; }
.badge-finished { background: rgba(148,163,184,.15); color: #94a3b8; }
.badge-ott { background: rgba(168,85,247,.15); color: #c084fc; }
.badge-live { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }

/* ─── Filter Bar ─────────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.filter-link {
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text2);
  transition: all .15s;
}
.filter-link:hover, .filter-link.active { border-color: var(--accent); color: var(--accent); background: rgba(245,166,35,.08); text-decoration: none; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-link {
  padding: 8px 14px; border-radius: 8px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text2);
  transition: all .15s; cursor: pointer;
}
.page-link:hover, .page-link.active { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-link.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--text3); transition: color .15s; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text3); }

/* ─── Quick Links Grid ───────────────────────────────────────────────────── */
.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.quick-link {
  display: block; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; color: var(--text2);
  transition: all .15s; text-align: center;
}
.quick-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.ad-slot { text-align: center; padding: 16px 0; }

/* ─── Mobile Menu ────────────────────────────────────────────────────────── */
.hamburger { display: none; background: none; border: none; color: var(--text2); font-size: 24px; cursor: pointer; }
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: var(--surface);
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close { align-self: flex-end; background: none; border: none; color: var(--text2); font-size: 28px; cursor: pointer; margin-bottom: 16px; }
.mobile-nav a { font-size: 18px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-nav a:hover { color: var(--accent); text-decoration: none; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .search-wrap { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .movie-hero-inner { flex-direction: column; }
  .movie-poster { width: 140px; }
}
@media (max-width: 600px) {
  .featured-hero-title { font-size: 20px; }
  .movies-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-boxes { grid-template-columns: repeat(2, 1fr); }
  .bo-table { font-size: 13px; }
  .movie-hero-title { font-size: 22px; }
}
