:root {
  --bg: #0b0c0f;
  --surface: rgba(22, 24, 30, 0.82);
  --surface-2: #15171d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f4f7;
  --muted: #9298a5;
  --accent: #d7ff63;
  --accent-soft: rgba(215, 255, 99, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, rgba(131, 102, 255, 0.19), transparent 34rem),
    radial-gradient(circle at 95% 15%, rgba(215, 255, 99, 0.08), transparent 26rem),
    var(--bg);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar,
.shell,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #11140a;
  background: var(--accent);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(215, 255, 99, 0.9);
}

.shell {
  padding: 72px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: end;
  margin-bottom: 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 850;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: var(--shadow);
}

.hero-card span,
.hero-card small {
  display: block;
  color: var(--muted);
}

.hero-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card strong {
  display: block;
  margin: 10px 0 22px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.hero-card small {
  line-height: 1.55;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.tab {
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: 160ms ease;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.tab.is-active {
  color: #11140a;
  background: var(--accent);
  font-weight: 800;
}

.tab-view {
  display: none;
}

.tab-view.is-active {
  display: block;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.movie-table {
  width: 100%;
  border-collapse: collapse;
}

.movie-table th {
  padding: 17px 24px;
  color: var(--muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.movie-table td {
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  color: #cdd1d9;
  font-size: 14px;
}

.movie-table tbody tr {
  cursor: pointer;
  transition: 160ms ease;
}

.movie-table tbody tr:last-child td {
  border-bottom: 0;
}

.movie-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.movie-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.poster-mini {
  display: grid;
  place-items: center;
  width: 42px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}

.movie-title strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.movie-title small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  padding: 6px 9px;
  border: 1px solid rgba(215,255,99,.24);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 850;
}

.open-arrow {
  color: var(--muted);
  font-size: 18px;
}

.empty-state {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 50px;
  text-align: center;
}

.empty-state span {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}

.empty-state h2 {
  margin: 14px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -.04em;
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.about-grid {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 54px;
}

.about-grid h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -.05em;
}

.about-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 44px;
  color: #686e79;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: 180ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.review-card {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  background: #121419;
  box-shadow: 0 40px 130px rgba(0,0,0,.65);
  transform: translateY(14px) scale(.985);
  transition: 180ms ease;
}

.modal.is-open .review-card {
  transform: translateY(0) scale(1);
}

.review-cover {
  min-height: 440px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #7357ff, #15171d 70%);
}

.review-cover span {
  font-size: 54px;
  font-weight: 950;
  letter-spacing: -.09em;
  opacity: .88;
}

.review-content {
  padding: 42px 38px 34px;
}

.review-meta {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.review-content h2 {
  margin: 12px 0 14px;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.045em;
}

.verdict {
  display: inline-flex;
  margin-bottom: 25px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #11140a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.review-content p {
  margin: 0;
  color: #b4bac5;
  line-height: 1.8;
  font-size: 15px;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.review-footer span {
  color: var(--muted);
  font-size: 12px;
}

.review-footer strong {
  color: var(--accent);
  font-size: 34px;
  letter-spacing: -.04em;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.28);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 760px) {
  .topbar,
  .shell,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .status {
    display: none;
  }

  .shell {
    padding-top: 46px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-card {
    max-width: 100%;
  }

  .movie-table th:nth-child(2),
  .movie-table td:nth-child(2) {
    display: none;
  }

  .movie-table th,
  .movie-table td {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 26px;
  }

  .review-card {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .review-cover {
    min-height: 170px;
  }

  .review-content {
    padding: 30px 24px 26px;
  }

  .review-content h2 {
    font-size: 32px;
  }

  footer {
    flex-direction: column;
  }
}
