:root {
  --canvas: #0e0d14;
  --paper: #191722;
  --ink: #f7f4ff;
  --muted: #b1aabd;
  --line: #373240;
  --accent: #d99cff;
  --accent-ink: #1b0925;
  --danger: #ff7b7b;
  --success: #8fe3b7;
  --warning: #ffd17c;
  --content: 78rem;
  --radius: 1.35rem;
  --radius-sm: .8rem;
  --shadow: 0 25px 70px rgb(0 0 0 / .35);
  --space-3: 1rem;
  --space-5: 2rem;
  --space-6: 3.5rem;
  color-scheme: dark;
}

body {
  background: radial-gradient(circle at 80% -10%, rgb(131 71 173 / .35), transparent 35rem), var(--canvas);
}

main {
  padding-top: clamp(2rem, 6vw, 5rem);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: end;
  min-height: 23rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3rem;
}

.hero h1 {
  margin-bottom: 0;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: .83;
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-aside {
  max-width: 28rem;
  justify-self: end;
}

.hero-aside p {
  font-size: 1.15rem;
  line-height: 1.5;
}

.demo-stamp {
  display: inline-flex;
  border: 1px solid var(--accent);
  border-radius: 99rem;
  padding: .5rem .8rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
}

/* Stats counter bar */
.stats-container {
  margin-top: 2rem;
}

.release-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.stat-badge {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}

.stat-num.stat-confirmed { color: var(--success); }
.stat-num.stat-ott { color: #38bdf8; }
.stat-num.stat-theatre { color: var(--warning); }

.stat-lbl {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
}

/* Quick Filter Chips */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
}

.chips-label {
  font-size: .82rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  margin-right: .25rem;
}

.filter-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 99rem;
  padding: .5rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  touch-action: manipulation;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.city-chips-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: .4rem;
  flex-wrap: nowrap;
}

.city-chips-bar .filter-chip {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Search Box */
.search-and-filters {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.search-box-row {
  width: 100%;
}

.movie-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: .85rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
  outline: none;
  transition: border-color .15s ease;
}

.movie-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(217 156 255 / .2);
}

.radar {
  padding-block: 2rem 4rem;
}

.filter-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(6, minmax(6.5rem, 1fr));
  gap: .75rem;
  align-items: end;
}

.filter-row h2 {
  margin-bottom: 0;
}

.filter-row select {
  background: var(--paper);
  color: var(--ink);
  min-height: 44px;
  font-size: 16px;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  touch-action: manipulation;
}

.watch-filter {
  grid-column: 2 / -1;
  display: flex;
  justify-self: end;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
}

.watch-filter input {
  width: 1.25rem;
  min-height: 1.25rem;
  accent-color: var(--accent);
}

.legend, .results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: 1.25rem;
}

.legend {
  justify-content: flex-start;
}

.legend span, .status-pill {
  border: 1px solid currentColor;
  border-radius: 99rem;
  padding: .3rem .65rem;
  font-size: .75rem;
  font-weight: 800;
}

[data-status="confirmed"] { color: var(--success); }
[data-status="tentative"] { color: var(--warning); }
[data-status="rumoured"] { color: #d3a5ff; }

.results-head p {
  margin: 0;
  font-weight: 600;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.release-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.release-card:hover {
  border-color: rgba(217, 156, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.6);
}

.release-art {
  position: relative;
  width: 100%;
  height: 350px;
  min-height: 350px;
  overflow: hidden;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.release-art::before {
  content: '';
  width: 5rem;
  aspect-ratio: 1;
  border: 1rem solid rgb(255 255 255 / .12);
  border-radius: 50%;
}

.release-art:has(.release-poster-img)::before {
  display: none;
}

.release-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.release-card:hover .release-poster-img {
  transform: scale(1.03);
}

.release-art-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .75rem;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.5) 65%, transparent 100%);
  z-index: 2;
  gap: .5rem;
}

.release-art-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .75rem;
  background: linear-gradient(0deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.5) 65%, transparent 100%);
  z-index: 2;
  gap: .5rem;
}

.art-initials {
  position: absolute;
  color: white;
  font-size: 2.4rem;
  font-weight: 950;
  letter-spacing: -.08em;
  text-shadow: 0 3px 18px rgb(0 0 0 / .45);
}

.art-cbfc-badge {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: .35rem;
  padding: .2rem .5rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.release-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 1.15rem;
  gap: .85rem;
  flex: 1;
}

.release-body-top {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.release-body-bottom {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: auto;
  padding-top: .65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.release-top, .card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.date-label {
  color: #e4e4e7;
  font-weight: 700;
  font-size: .84rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: .2rem .5rem;
  border-radius: 99rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.release-card h3.release-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.28;
  font-weight: 800;
  color: var(--ink);
}

/* Meta Pills Bar */
.meta-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin-bottom: .2rem;
}

.badge-platform {
  border: 1px solid;
  border-radius: .4rem;
  padding: .15rem .5rem;
  font-size: .75rem;
  font-weight: 750;
}

.badge-lang, .badge-type {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  border-radius: .4rem;
  padding: .15rem .45rem;
  font-size: .72rem;
  font-weight: 600;
}

.badge-imdb {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
  border-radius: .4rem;
  padding: .15rem .5rem;
  font-size: .75rem;
  font-weight: 800;
}

.badge-anticipated {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.cast-line {
  margin: 0;
  font-size: .82rem;
  color: #d1d5db;
  line-height: 1.35;
}

.cast-line strong {
  color: var(--muted);
  font-weight: 600;
}

.facts {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

.logline-text {
  margin: 0;
  font-size: .86rem;
  line-height: 1.45;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

details.theatre-guide-section {
  background: rgba(14, 13, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  margin-top: .25rem;
}

details.theatre-guide-section summary.theatre-guide-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--warning);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

details.theatre-guide-section summary.theatre-guide-head::-webkit-details-marker {
  display: none;
}

details.theatre-guide-section[open] summary.theatre-guide-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: .35rem;
  margin-bottom: .5rem;
}

/* Theatre Guide & Showtimes */
.theatre-guide-section {
  background: rgba(14, 13, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem;
  margin-block: .65rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.theatre-guide-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--warning);
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theatre-fmt-hint {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.theatre-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.theatre-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: .4rem;
  padding: .5rem .65rem;
}

.theatre-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem;
}

.theatre-name {
  font-size: .85rem;
  font-weight: 750;
  color: var(--ink);
}

.theatre-area {
  font-size: .72rem;
  color: var(--muted);
}

.theatre-formats-row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .3rem;
}

.format-badge {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .4rem;
}

.theatre-showtimes-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  margin-top: .35rem;
}

.showtimes-label {
  font-size: .7rem;
  color: var(--muted);
  font-weight: 700;
}

.showtime-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .4rem;
}

.theatre-empty-note {
  font-size: .78rem;
  color: var(--muted);
  margin: .25rem 0;
}

.playing-cities-summary {
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.4;
  padding-top: .4rem;
  border-top: 1px dashed var(--line);
}

.playing-cities-summary strong {
  color: var(--ink);
}

.verification {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: .8rem;
  font-size: .75rem;
  color: var(--muted);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.source-link {
  color: var(--accent);
  font-weight: 750;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}

.watch-toggle {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  border-radius: .5rem;
  padding: .5rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
  transition: all .15s ease;
}

.watch-toggle.is-saved {
  border-color: var(--success);
  background: transparent;
  color: var(--success);
}

.empty {
  margin-top: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.method-note {
  display: grid;
  grid-template-columns: .6fr 1fr auto;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}

.method-note div:last-child {
  display: grid;
  gap: .5rem;
}

.method-note a {
  color: var(--accent);
  font-weight: 800;
}

/* Media Queries */
@media (max-width: 64rem) {
  .filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-row > div {
    grid-column: 1 / -1;
  }
  .watch-filter {
    grid-column: 1 / -1;
  }
  .release-card {
    grid-template-columns: 9rem 1fr;
  }
  .method-note {
    grid-template-columns: 1fr 1fr;
  }
  .method-note > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 48rem) {
  .hero, .release-grid, .method-note {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
  }
  .hero-aside {
    justify-self: start;
  }
  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .method-note > div:first-child {
    grid-column: auto;
  }
  .release-card {
    grid-template-columns: 7.5rem 1fr;
  }
  .release-art {
    min-height: 20rem;
  }
  .release-art::before {
    width: 4rem;
    border-width: .8rem;
  }
  .art-initials {
    font-size: 1.7rem;
  }
}

@media (max-width: 25rem) {
  .filter-row {
    grid-template-columns: 1fr;
  }
  .filter-row > div, .watch-filter {
    grid-column: auto;
  }
  .watch-filter {
    justify-self: start;
  }
  .release-card {
    grid-template-columns: 1fr;
  }
  .release-art {
    min-height: 9rem;
  }
  .release-content {
    padding: 1rem;
  }
}

/* Free to Watch (AVOD) Tier Styles */
.badge-free-highlight {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border-color: #10b981 !important;
  font-weight: 850 !important;
}

.stat-free {
  color: #10b981 !important;
}

.source-link-free {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.source-link-free:hover, .source-link-free:focus-visible {
  background: linear-gradient(135deg, #059669, #047857) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}


/* ==========================================================================
   Category Blocks & 15-Item Pagination
   ========================================================================== */
.category-block {
  margin-top: 1.5rem;
}

.category-block:first-of-type {
  margin-top: 0.5rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-title-wrap h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.category-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-pill--theatre {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
}

.category-pill--ott {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.category-count {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.btn-pagination {
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-pagination:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.affiliate-disclosure-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 1.15rem 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(217, 156, 255, 0.25);
  border-radius: var(--radius-sm, 0.75rem);
  background: rgba(255, 255, 255, 0.03);
}

.affiliate-disclosure-banner p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted, #94a3b8);
}

.disclosure-pill {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-link-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.source-link-affiliate {
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.14);
  color: #fef08a !important;
  text-decoration: none;
  font-weight: 800;
}

.source-link-affiliate:hover,
.source-link-affiliate:focus-visible {
  background: rgba(250, 204, 21, 0.24);
  border-color: #facc15;
}

.affiliate-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.1);
  color: #fde047;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-affiliate-disclosure {
  margin: 0.35rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted, #94a3b8);
}

@media (max-width: 48rem) {
  .affiliate-disclosure-banner {
    flex-direction: column;
    padding: 1rem;
  }
}
