:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --green: #22c55e;
  --red: #f87171;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(59, 130, 246, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.14), transparent 26rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(2, 6, 23, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 25px;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #dbeafe;
  font-size: 15px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(34, 211, 238, 0.82));
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: #cbd5e1;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.78) 40%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 42%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p,
.page-hero p {
  color: #cbd5e1;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.8;
  margin: 0;
}

.hero-tags,
.detail-meta,
.tag-row,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 28px 0;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.filter-chips button {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.hero-actions,
.category-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.32);
}

.btn-soft {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.24);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.hero-search-wrap {
  position: absolute;
  z-index: 30;
  left: 50%;
  right: auto;
  bottom: 76px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-search {
  width: min(720px, 100%);
  margin-left: auto;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.hero-search label {
  display: block;
  color: #e2e8f0;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.8);
  color: #ffffff;
  outline: none;
  padding: 0 16px;
}

.search-box input:focus {
  border-color: rgba(96, 165, 250, 0.86);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.search-box button,
.filter-chips button {
  height: 44px;
  border: 0;
  color: #ffffff;
  background: rgba(59, 130, 246, 0.9);
  border-radius: 13px;
  padding: 0 15px;
}

.search-results {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  max-height: 360px;
  overflow-y: auto;
}

.search-results.active {
  display: grid;
}

.search-result {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.search-result img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
}

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

.search-result strong {
  color: #ffffff;
  margin-bottom: 6px;
}

.search-result span {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.section {
  padding: 78px 0 0;
}

.last-section {
  padding-bottom: 90px;
}

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.04em;
}

.section-head a,
.ranking-title a {
  color: #67e8f9;
  font-weight: 700;
}

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

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

.movie-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  background: rgba(30, 41, 59, 0.84);
  border-color: rgba(96, 165, 250, 0.35);
}

.poster-wrap {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-fade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(59, 130, 246, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-meta,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.movie-info {
  display: block;
  padding: 15px;
}

.movie-info strong,
.movie-info em,
.movie-line {
  display: block;
}

.movie-info strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.movie-line b,
.movie-line i {
  font-weight: 600;
  font-style: normal;
}

.panel-section {
  background: rgba(15, 23, 42, 0.42);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  padding-bottom: 78px;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  background: rgba(30, 41, 59, 0.86);
}

.wide-cover {
  overflow: hidden;
}

.wide-cover img {
  width: 128px;
  height: 160px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.wide-body {
  padding: 16px 14px 16px 0;
}

.wide-body strong,
.wide-body em,
.wide-body span {
  display: block;
}

.wide-body strong {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.wide-body em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.wide-body span {
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 28px;
  align-items: start;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  opacity: 0.46;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.category-card:hover img {
  opacity: 0.62;
}

.category-card span {
  position: absolute;
  inset: auto 0 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent);
}

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

.category-card strong {
  font-size: 19px;
  margin-bottom: 8px;
}

.category-card em {
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.ranking-card,
.ranking-table,
.content-card {
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow);
}

.ranking-card {
  padding: 20px;
  position: sticky;
  top: 92px;
}

.ranking-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 900;
  font-size: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid transparent;
  transition: background 0.2s ease, border 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(96, 165, 250, 0.28);
}

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

.rank-num {
  color: #60a5fa;
  font-weight: 900;
  font-size: 18px;
}

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

.rank-copy strong {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.rank-copy em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.rank-score {
  color: #fbbf24;
  font-weight: 900;
}

.page-hero {
  position: relative;
  padding: 150px 0 72px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.86), rgba(6, 182, 212, 0.68)),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.24), transparent 26rem);
}

.small-hero,
.category-hero,
.ranking-hero {
  min-height: 390px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #dbeafe;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 700;
}

.category-actions {
  margin-top: 28px;
  align-items: start;
}

.inline-search {
  width: min(520px, 100%);
}

.filter-chips button {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.filter-chips button.active,
.filter-chips button:hover {
  background: #ffffff;
  color: #0f172a;
}

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

.collection-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.25s ease, border 0.25s ease;
}

.collection-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.35);
}

.collection-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  height: 230px;
  overflow: hidden;
}

.collection-thumbs img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.collection-copy {
  display: block;
  padding: 18px;
}

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

.collection-copy strong {
  font-size: 20px;
  margin-bottom: 8px;
}

.collection-copy em {
  color: #94a3b8;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.top-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ranking-table {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.player-section {
  padding: 112px 0 36px;
  background: #020617;
}

.movie-breadcrumb {
  margin-bottom: 18px;
  color: #94a3b8;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.34));
}

.player-overlay[hidden] {
  display: none;
}

.player-start-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.48);
  font-size: 28px;
  padding-left: 4px;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.detail-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.detail-heading img {
  width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.detail-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-heading p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
  margin: 0 0 18px;
}

.detail-meta {
  margin-bottom: 16px;
}

.tag-row {
  margin-bottom: 20px;
}

.detail-play {
  border: 0;
}

.content-card {
  padding: 24px;
  margin-bottom: 20px;
}

.content-card h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.content-card p {
  color: #cbd5e1;
  line-height: 1.9;
  margin: 0;
}

.content-card p + p {
  margin-top: 14px;
}

.lead-text {
  color: #ffffff !important;
  font-weight: 700;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-side .wide-card {
  grid-template-columns: 112px 1fr;
}

.detail-side .wide-cover img {
  width: 112px;
  height: 136px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.prev-next a {
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
  padding: 48px 0;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.7;
}

.footer-grid h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

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

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

.footer-bottom {
  text-align: center;
  padding: 22px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 14px;
}

.hidden-by-filter {
  display: none !important;
}

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

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

  .split-layout,
  .detail-section {
    grid-template-columns: 1fr;
  }

  .ranking-card,
  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    align-items: start;
    padding-top: 130px;
  }

  .hero-search-wrap {
    bottom: 80px;
  }

  .search-results {
    grid-template-columns: 1fr;
  }

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

  .movie-grid,
  .category-movie-grid,
  .top-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .wide-grid,
  .category-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-heading img {
    width: min(260px, 100%);
  }

  .prev-next,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-tags span,
  .detail-meta span,
  .tag-row span {
    font-size: 12px;
  }

  .hero-actions,
  .search-box,
  .category-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    padding: 12px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info strong {
    font-size: 14px;
  }

  .movie-info em {
    display: none;
  }

  .wide-card,
  .detail-side .wide-card {
    grid-template-columns: 96px 1fr;
  }

  .wide-cover img,
  .detail-side .wide-cover img {
    width: 96px;
    height: 124px;
  }

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

  .rank-score {
    display: none;
  }

  .player-section {
    padding-top: 94px;
  }

  .player-shell {
    border-radius: 16px;
  }
}
