@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Archivo+Black&display=swap');

:root {
  --bg: #111111;
  --card: #181818;
  --card-hover: #1F1F1F;
  --poster-empty: #2D2D2D;
  --text: #F2F2F2;
  --text-dim: #9A9A9A;
  --text-faint: #6B6B6B;
  --line: #2A2A2A;
  --accent: #D4FF3D;
  --accent-ink: #26330A;
  --radius: 6px;
  --max-w: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.wordmark {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.wordmark span { color: var(--accent); }

.last-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 60px) clamp(16px, 4vw, 40px) 20px;
}

.hero .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.15;
  max-width: 720px;
  letter-spacing: -0.5px;
}

.hero p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 540px;
}

/* ---------- Filters ---------- */

.filters {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.platform-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.tab-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
}

.tab-btn:hover { border-color: var(--text-dim); }

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pill-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  min-height: 36px;
  transition: all 0.15s ease;
}

.pill-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212,255,61,0.08);
}

.grid-subheading {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  margin-top: 8px;
}

.heading-new {
  color: var(--accent);
  display: flex;
}

.heading-new span {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.heading-other {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.heading-other::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.empty-new-note {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-faint);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
}

.tag-status {
  color: var(--accent);
  background: rgba(212,255,61,0.08);
  border-color: rgba(212,255,61,0.25);
}

.tag-schedule {
  color: var(--text-dim);
  background: transparent;
  border-color: var(--line);
}

/* ---------- Cards grid ---------- */

.release-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.release-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.release-card:hover {
  transform: translateY(-3px);
  border-color: var(--text-faint);
  background: var(--card-hover);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
  background: var(--poster-empty);
  position: relative;
  overflow: hidden;
}

.poster-wrap img { width: 100%; height: 100%; object-fit: cover; }

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 3px;
  font-weight: 700;
}

.info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(242,242,242,0.35);
  background: rgba(17,17,17,0.7);
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.info-btn span {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
}

.info-btn:hover {
  background: rgba(17,17,17,0.95);
  border-color: var(--text);
}

/* ---------- Plot modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 14px;
  text-align: center;
}

.modal-poster {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.modal-content {
  padding: 18px 20px 22px;
}

.modal-title {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
}

.modal-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.card-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.platform-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.platform-netflix   { color: #E5484D; }
.platform-primevideo { color: #5AA9E6; }
/* .platform-disneyplus { color: #6C7BF0; }
.platform-hulu       { color: #3ECF8E; } */
.platform-jiohotstar { color: #A78BFA; }

.card-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: auto;
  padding-top: 6px;
}

.empty-state {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px);
  text-align: center;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

/* ---------- Signup ---------- */

.signup-section {
  border-top: 1px solid var(--line);
  background: #0B0B0B;
  padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 40px);
}

.signup-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.signup-inner h2 {
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 10px;
  color: var(--text);
}

.signup-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  min-height: 44px;
}

.signup-form input[type="email"]::placeholder { color: var(--text-faint); }

.signup-form button {
  padding: 12px 22px;
  border-radius: 4px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  min-height: 44px;
  transition: opacity 0.15s ease;
}

.signup-form button:hover { opacity: 0.85; }

.signup-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */

footer.site-footer {
  padding: 24px clamp(16px, 4vw, 40px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Focus states ---------- */

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Mobile: smaller cards so 2+ fit per row instead of 1 ---------- */

@media (max-width: 640px) {
  .release-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 8px 10px 10px;
  }

  .card-title {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .platform-badge {
    font-size: 9.5px;
    margin-bottom: 4px;
  }

  .card-date {
    font-size: 10px;
  }

  .tag {
    font-size: 9.5px;
    padding: 3px 6px;
  }

  .info-btn {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .category-badge {
    font-size: 9px;
    padding: 3px 6px;
  }
}
