:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --cyan: #22d3ee;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 36rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo {
  font-size: 24px;
  background: linear-gradient(90deg, var(--emerald-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #02110d;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.36);
  font-size: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.nav-dropdown > button {
  color: var(--muted-strong);
  padding: 8px 0;
  border: 0;
  background: transparent;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
  color: var(--emerald-bright);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 260px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.24s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a,
.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  transition: all 0.2s ease;
}

.dropdown-panel a:hover,
.mobile-panel a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-panel input {
  width: 220px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.78);
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-panel input:focus {
  border-color: rgba(52, 211, 153, 0.7);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.top-search button,
.mobile-search button {
  border: 0;
  color: #02110d;
  background: var(--emerald-bright);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(30, 41, 59, 0.8);
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
}

.mobile-search input {
  width: 100%;
  flex: 1;
}

.hero {
  position: relative;
  height: min(780px, 82vh);
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

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

.hero-layer,
.detail-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.2) 72%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.35) 48%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding-top: 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-bright);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--emerald-bright);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-info p {
  margin: 20px 0 0;
  max-width: 760px;
  color: var(--muted-strong);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.category-links a,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.22s ease;
}

.btn-primary {
  color: #02110d;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 20px 42px rgba(16, 185, 129, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(16, 185, 129, 0.3);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--emerald-bright);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--emerald-bright);
}

.hero-rail {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 76px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: none;
}

.hero-mini-card {
  width: 150px;
  height: 92px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.hero-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.3s ease;
}

.hero-mini-card:hover img {
  transform: scale(1.08);
}

.hero-mini-card span {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 8px #000;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-block {
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: var(--emerald-bright);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(15, 23, 42, 0.96);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(52, 211, 153, 0.24), transparent 34%),
    linear-gradient(135deg, #1e293b, #020617);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #052e22;
  background: rgba(52, 211, 153, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #02110d;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 52px;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--emerald-bright);
}

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

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.category-tile,
.category-overview-card,
.content-panel,
.search-panel,
.player-card,
.rank-card,
.wide-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.55));
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 170px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.3), transparent 70%);
}

.category-tile span,
.category-overview-card h2 {
  position: relative;
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-tile small,
.category-overview-card p {
  position: relative;
  color: var(--muted);
  line-height: 1.65;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  transition: all 0.22s ease;
}

.rank-row:hover {
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateX(4px);
}

.rank-num,
.rank-card-num {
  color: var(--emerald-bright);
  font-weight: 900;
  font-size: 20px;
}

.rank-title {
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  position: relative;
  padding: 96px 0 82px;
  background:
    radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.16), transparent 32rem),
    radial-gradient(circle at 78% 0%, rgba(34, 211, 238, 0.12), transparent 28rem),
    linear-gradient(135deg, #020617, #0f172a 60%, #020617);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  padding: 72px 0 64px;
}

.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.42);
}

.category-covers {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 8px;
  height: 146px;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: #1e293b;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.42);
}

.wide-card img {
  width: 150px;
  height: 104px;
  object-fit: cover;
  border-radius: 16px;
  background: #1e293b;
}

.wide-card span {
  color: var(--emerald-bright);
  font-size: 13px;
  font-weight: 800;
}

.wide-card h3 {
  margin: 8px 0;
  font-size: 20px;
}

.wide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rank-card-list {
  display: grid;
  gap: 16px;
}

.rank-card {
  display: grid;
  grid-template-columns: 58px 160px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.42);
}

.rank-card img {
  width: 160px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: #1e293b;
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.search-panel {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
}

.search-panel input {
  width: 100%;
  border-radius: 18px;
  font-size: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-bar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.8);
  padding: 9px 15px;
  transition: all 0.2s ease;
}

.filter-bar button:hover,
.filter-bar button.is-active {
  color: #02110d;
  border-color: transparent;
  background: var(--emerald-bright);
}

.search-state {
  min-height: 26px;
  color: var(--muted);
  margin-bottom: 16px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.03);
  opacity: 0.58;
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 46px;
  align-items: center;
  padding: 76px 0;
}

.detail-poster {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1e293b;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info p {
  max-width: 860px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.14), transparent 30%),
    rgba(2, 6, 23, 0.38);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #02110d;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 0 42px rgba(16, 185, 129, 0.38);
  font-size: 34px;
}

.player-cover strong {
  max-width: min(90%, 760px);
  font-size: clamp(24px, 4vw, 46px);
  text-align: center;
  text-shadow: 0 3px 18px #000;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--muted-strong);
  background: rgba(2, 6, 23, 0.72);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-message.is-visible {
  opacity: 1;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-panel {
  padding: 28px;
  border-radius: 24px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-logo {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--emerald-bright);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .top-search {
    display: none;
  }

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

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero {
    height: 720px;
    min-height: 640px;
  }

  .hero-layer {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.75) 55%, rgba(2, 6, 23, 0.35) 100%);
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 130px;
  }

  .hero-rail {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .wide-grid,
  .two-column,
  .detail-columns,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: 220px 1fr;
    gap: 26px;
  }

  .rank-card {
    grid-template-columns: 42px 110px 1fr;
  }

  .rank-card img {
    width: 110px;
    height: 80px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .hero {
    min-height: 660px;
    height: 74vh;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p,
  .detail-info p {
    font-size: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .wide-grid,
  .two-column,
  .detail-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-meta {
    grid-column: 2;
  }

  .wide-card,
  .rank-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .wide-card img,
  .rank-card img {
    width: 100%;
    height: 190px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-layout {
    padding: 36px 0 54px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .player-icon {
    width: 70px;
    height: 70px;
  }

  .mobile-panel nav {
    grid-template-columns: 1fr;
  }
}
