:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #0891b2;
  --cyan-light: #22d3ee;
  --blue: #2563eb;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --red: #dc2626;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan-light), var(--blue));
  color: #fff;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.12);
  font-size: 14px;
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: #dbeafe;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(34, 211, 238, 0.13);
  color: #67e8f9;
}

.site-search {
  position: relative;
  margin-left: auto;
  width: min(310px, 33vw);
}

.search-input,
.page-filter input,
.hero-search-card input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 12px 16px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-search .search-input {
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  border-color: rgba(103, 232, 249, 0.22);
}

.search-input::placeholder,
.page-filter input::placeholder,
.hero-search-card input::placeholder {
  color: #94a3b8;
}

.search-input:focus,
.page-filter input:focus,
.hero-search-card input:focus {
  border-color: var(--cyan-light);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(460px, 90vw);
  max-height: 430px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
}

.search-panel.is-open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #ecfeff;
}

.search-result img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.search-empty {
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(148, 163, 184, 0.16);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 10px 16px 18px;
  background: #111827;
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #e2e8f0;
  font-weight: 700;
}

.mobile-link.is-sub {
  padding-left: 28px;
  color: #bae6fd;
  font-weight: 600;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 26%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.72) 43%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding-right: min(48vw, 520px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #cffafe;
  color: #155e75;
  font-size: 13px;
  font-weight: 800;
}

.hero-pills span {
  color: #ecfeff;
  background: rgba(8, 145, 178, 0.62);
  border: 1px solid rgba(103, 232, 249, 0.28);
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 14px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 740px;
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 32px rgba(8, 145, 178, 0.32);
}

.btn-ghost {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-search-card {
  position: absolute;
  z-index: 5;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 96px;
  width: min(360px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.hero-search-card span {
  display: block;
  color: #cffafe;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-search-card .search-panel {
  left: 0;
  right: auto;
  top: calc(100% + 10px);
  width: 100%;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: #67e8f9;
}

.section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading > span,
.page-hero span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.inline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-more {
  flex-shrink: 0;
  color: var(--cyan);
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.feature-card {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.feature-large:first-child {
  grid-row: span 2;
  min-height: 544px;
}

.feature-cover,
.feature-cover img,
.feature-shade {
  position: absolute;
  inset: 0;
}

.feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.feature-card:hover .feature-cover img {
  transform: scale(1.07);
}

.feature-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.14) 66%);
}

.feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #fff;
}

.feature-copy h3 {
  margin: 16px 0 8px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 900;
}

.feature-copy p {
  color: #cbd5e1;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: #67e8f9;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.compact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.full-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.78);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(34, 211, 238, 0.42);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #cbd5e1;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body h3 a:hover {
  color: var(--cyan);
}

.card-line {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.dark-panel {
  width: min(1220px, calc(100% - 32px));
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 46px 34px;
  border-radius: 32px;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: var(--shadow);
}

.light-heading h2,
.light-heading p {
  color: #fff;
}

.light-heading > span,
.light-more {
  color: #67e8f9;
}

.dark-panel .movie-card {
  background: rgba(255, 255, 255, 0.96);
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 166px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.category-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  right: -24px;
  top: -24px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.24);
  filter: blur(4px);
}

.category-card strong,
.category-card em {
  position: relative;
  display: block;
}

.category-card strong {
  font-size: 22px;
  font-weight: 900;
}

.category-card em {
  margin-top: 12px;
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.65;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 58px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 145, 178, 0.4);
}

.rank-index {
  color: var(--cyan);
  font-weight: 900;
  font-size: 18px;
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  font-weight: 900;
}

.rank-copy em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #155e75;
  font-weight: 900;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 54px;
  border-radius: 32px;
  background: radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.24), transparent 28%), linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-hero p {
  color: #cbd5e1;
}

.page-filter {
  width: min(360px, 100%);
}

.category-overview-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-soft);
}

.category-overview-card img,
.category-cover-shade {
  position: absolute;
  inset: 0;
}

.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-overview-card:hover img {
  transform: scale(1.08);
}

.category-cover-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18));
}

.category-overview-card strong,
.category-overview-card em {
  position: relative;
  display: block;
}

.category-overview-card strong {
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card em {
  margin-top: 8px;
  font-style: normal;
  color: #dbeafe;
  line-height: 1.55;
}

.empty-state {
  display: none;
  padding: 44px;
  text-align: center;
  color: var(--muted);
}

.empty-state.is-visible {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 70px 82px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 145, 178, 0.4);
}

.ranking-number {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
}

.ranking-card img {
  width: 82px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-info strong,
.ranking-info em,
.ranking-info small {
  display: block;
}

.ranking-info strong {
  font-size: 18px;
  font-weight: 900;
}

.ranking-info em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-info small {
  margin-top: 8px;
  color: #64748b;
  font-weight: 700;
}

.ranking-score {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfeff;
  color: #155e75;
  font-weight: 900;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan);
  font-weight: 800;
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.watch-player {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #020617;
  color: #fff;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.player-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 28%), rgba(2, 6, 23, 0.58);
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.14), 0 20px 50px rgba(8, 145, 178, 0.34);
}

.detail-copy {
  padding: 34px;
}

.detail-pills {
  margin-bottom: 18px;
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.detail-lead {
  margin: 0 0 20px;
  color: #334155;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tag-cloud span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.detail-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.related-wrap {
  padding-top: 38px;
}

.site-footer {
  margin-top: 40px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
  max-width: 560px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #67e8f9;
}

@media (max-width: 1100px) {
  .movie-grid,
  .full-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-large:first-child {
    min-height: 420px;
  }
}

@media (max-width: 840px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-search {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding: 96px 0 220px;
  }

  .hero-search-card {
    left: 16px;
    right: 16px;
    bottom: 88px;
    width: auto;
  }

  .movie-grid,
  .compact-grid,
  .full-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-list,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-card {
    grid-template-columns: 52px 72px 1fr;
  }

  .ranking-score {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

  .section-wrap {
    padding: 38px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .full-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 36px 52px 1fr;
  }

  .rank-score {
    display: none;
  }

  .detail-copy {
    padding: 24px;
  }

  .play-ring {
    width: 72px;
    height: 72px;
  }
}
