:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #1e293b;
  --panel-strong: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #06b6d4;
  --cyan-strong: #0891b2;
  --blue: #2563eb;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.16), transparent 32rem), var(--bg);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.26);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

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

.desktop-nav > a,
.nav-dropdown > a {
  color: var(--soft);
  font-weight: 650;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > a {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
  padding: 26px 0;
}

.dropdown-panel {
  position: absolute;
  top: 66px;
  left: 0;
  width: 210px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--soft);
}

.dropdown-panel a:hover {
  background: rgba(148, 163, 184, 0.1);
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 290px;
}

.quick-search input,
.mobile-nav input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
  outline: none;
  padding: 11px 13px;
}

.quick-search input:focus,
.mobile-nav input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.quick-search button,
.mobile-nav button {
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--cyan-strong);
  padding: 11px 14px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 20px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  padding-top: 16px;
}

.mobile-nav a {
  color: var(--soft);
  padding: 10px 0;
}

.mobile-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.74) 46%, rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-top: 40px;
}

.hero-kicker,
.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-desc {
  margin: 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.22);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--text);
  border: 1px solid rgba(203, 213, 225, 0.24);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(12px);
}

.hero-rating {
  color: var(--yellow);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 38px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button,
.rail-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(203, 213, 225, 0.18);
  border-radius: 50%;
  color: white;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-controls button:hover,
.rail-button:hover {
  background: rgba(6, 182, 212, 0.72);
  transform: scale(1.05);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 20px !important;
  height: 5px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: rgba(148, 163, 184, 0.55) !important;
}

.hero-dot.is-active {
  width: 42px !important;
  background: var(--cyan) !important;
}

.hero-category-bar {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 3;
  width: min(720px, calc(100% - 360px));
  display: flex;
  gap: 10px;
  overflow-x: auto;
  transform: translateX(-50%);
  scrollbar-width: none;
}

.hero-category-bar::-webkit-scrollbar,
.rail::-webkit-scrollbar {
  display: none;
}

.hero-category-bar a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(203, 213, 225, 0.12);
  backdrop-filter: blur(10px);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-intro,
.page-hero p,
.detail-one-line,
.detail-content p,
.watch-panel p,
.footer-brand p {
  color: var(--soft);
  line-height: 1.8;
}

.text-link {
  color: var(--cyan);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.62);
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.14);
}

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 54%);
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-score,
.movie-duration {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 9px;
  color: white;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.movie-score {
  top: 10px;
  right: 10px;
  color: var(--yellow);
}

.movie-duration {
  right: 10px;
  bottom: 10px;
}

.movie-card-body {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-weight: 850;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover .movie-title {
  color: var(--cyan);
}

.movie-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.movie-tags,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.movie-tags span,
.detail-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.18);
  font-size: 12px;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2px 2px 18px;
  scrollbar-width: none;
}

.rail .movie-card {
  flex: 0 0 306px;
}

.rail-actions {
  display: flex;
  gap: 10px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  background: rgba(30, 41, 59, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.category-card::before,
.category-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  transition: opacity 0.2s ease;
}

.category-card:hover::before,
.category-overview-card:hover::before {
  opacity: 0.32;
}

.gradient-1::before { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.gradient-2::before { background: linear-gradient(135deg, #22c55e, #0f766e); }
.gradient-3::before { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.gradient-4::before { background: linear-gradient(135deg, #f97316, #dc2626); }
.gradient-5::before { background: linear-gradient(135deg, #ec4899, #be123c); }
.gradient-6::before { background: linear-gradient(135deg, #6366f1, #1d4ed8); }
.gradient-7::before { background: linear-gradient(135deg, #10b981, #047857); }
.gradient-8::before { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.category-card > *,
.category-overview-card > * {
  position: relative;
  z-index: 2;
}

.category-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-size: 24px;
  font-weight: 900;
}

.category-card h3,
.category-overview-card h2 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.category-card p,
.category-overview-card p {
  color: var(--soft);
  line-height: 1.7;
}

.category-card strong {
  display: block;
  margin-top: 18px;
  color: #e0f2fe;
}

.category-samples {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.category-samples a {
  color: var(--soft);
}

.category-samples a:hover {
  color: var(--cyan);
}

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

.featured-main {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.featured-main img,
.featured-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-main:hover img,
.featured-side-card:hover img {
  transform: scale(1.06);
}

.featured-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.12));
}

.featured-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 12px;
}

.featured-copy em,
.featured-side-card em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 800;
}

.featured-copy strong {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.featured-copy span {
  color: var(--soft);
  line-height: 1.7;
}

.featured-side {
  display: grid;
  gap: 18px;
}

.featured-side-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  overflow: hidden;
  min-height: 116px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.featured-side-card span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-right: 18px;
}

.featured-side-card strong {
  font-size: 17px;
  line-height: 1.4;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(30, 41, 59, 0.2)), #020617;
}

.compact-hero {
  padding: 88px 24px 78px;
}

.page-hero-inner,
.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero-inner {
  max-width: 900px;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
}

.page-hero p {
  margin: 18px 0 0;
  font-size: 18px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 74px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.74);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(6, 182, 212, 0.62);
}

.rank-number {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 96px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 4px;
}

.rank-info strong {
  color: var(--text);
}

.rank-info em,
.rank-score {
  color: var(--muted);
  font-style: normal;
}

.rank-score {
  color: var(--yellow);
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.72);
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 700;
}

.search-panel select option {
  background: #0f172a;
}

.search-status {
  margin: 22px 0;
  color: var(--muted);
}

.detail-hero {
  padding: 38px 24px 82px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(12px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.58));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.detail-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(6, 182, 212, 0.82);
  font-weight: 850;
}

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.detail-one-line {
  max-width: 860px;
  font-size: 18px;
}

.detail-facts span:first-child {
  color: var(--yellow);
}

.player-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.player-card,
.watch-panel,
.detail-content article {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 32px;
  box-shadow: 0 18px 46px rgba(6, 182, 212, 0.35);
}

.play-overlay strong {
  max-width: 80%;
  font-size: 22px;
  text-align: center;
}

.watch-panel {
  padding: 24px;
}

.watch-panel h2 {
  margin: 0;
  line-height: 1.3;
}

.primary-button.wide {
  width: 100%;
  margin-top: 18px;
}

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

.detail-content article {
  padding: 28px;
}

.detail-content h2 {
  font-size: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 540px;
}

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

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

.footer-links a {
  display: block;
  margin: 10px 0;
  color: var(--muted);
}

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

.footer-bottom {
  padding: 20px 24px 28px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

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

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

  .player-layout,
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .watch-panel {
    order: -1;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 82vh;
    min-height: 560px;
  }

  .hero-content {
    margin: 0 24px;
    width: calc(100% - 48px);
  }

  .hero-category-bar {
    left: 24px;
    right: 24px;
    width: auto;
    transform: none;
    bottom: 96px;
  }

  .hero-controls {
    left: 24px;
    right: auto;
    bottom: 32px;
  }

  .section,
  .compact-hero,
  .detail-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .detail-grid,
  .detail-content,
  .search-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .logo-sub {
    display: none;
  }

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

  .hero-desc {
    font-size: 16px;
  }

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

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .rail .movie-card {
    flex-basis: 82vw;
  }

  .featured-side-card {
    grid-template-columns: 120px 1fr;
  }

  .featured-main {
    min-height: 420px;
  }

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

  .rank-row img {
    width: 68px;
    height: 48px;
  }
}
