:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #ea580c;
  --orange-soft: #fed7aa;
  --yellow: #fde047;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 45%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.25);
}

.brand-text {
  font-size: 22px;
  color: transparent;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.22s ease;
}

.nav-link:hover {
  color: var(--red);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
  background: #f9fafb;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 52%, #b91c1c 100%);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(253, 224, 71, 0.28), transparent 28%),
    radial-gradient(circle at 86% 30%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.38));
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: 42px;
  padding: 52px 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  margin-bottom: 24px;
  color: #ffffff;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
}

.hero-main h1 {
  max-width: 740px;
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-main p {
  max-width: 660px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

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

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

.btn.primary {
  color: var(--red);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(127, 29, 29, 0.2);
}

.btn.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.22s ease;
}

.hero-category-links a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-slider {
  position: relative;
  min-height: 445px;
}

.hero-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 20px;
  align-items: stretch;
  padding: 18px;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(127, 29, 29, 0.32);
  backdrop-filter: blur(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-poster {
  min-height: 390px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.28);
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  color: #ffffff;
}

.hero-label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #7f1d1d;
  background: rgba(254, 240, 138, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.hero-copy p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.hero-card-link {
  width: max-content;
  padding: 11px 18px;
  color: #ffffff;
  border-radius: 13px;
  background: rgba(17, 24, 39, 0.32);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.32);
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

main {
  min-height: 55vh;
}

.content-shell,
.section-wrap,
.detail-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-wrap.soft-bg {
  width: 100%;
  max-width: none;
  padding: 54px max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
}

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

.section-heading h2 {
  margin: 0 0 5px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 20px;
  align-items: center;
  margin: 34px 0 0;
  padding: 22px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.filter-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.filter-panel p {
  margin: 0;
  color: var(--muted);
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}

.filter-box input,
.filter-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: #374151;
  background: #ffffff;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.11);
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.card-link {
  display: block;
  height: 100%;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.7) 100%);
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: #ffffff;
  border-radius: 9px;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.play-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--red);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  display: block;
  padding: 13px 13px 15px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body em {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-desc {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-card .card-body strong {
  min-height: 38px;
  font-size: 14px;
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.category-card.tall {
  min-height: 310px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.88));
}

.category-info {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: #ffffff;
}

.category-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 23px;
}

.category-info em,
.category-info small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-info small {
  margin-top: 12px;
  color: rgba(254, 240, 138, 0.95);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 76px minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.32);
}

.rank-num {
  color: transparent;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.rank-row img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.rank-info em,
.rank-info small {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  justify-self: end;
  min-width: 48px;
  padding: 6px 8px;
  color: #7f1d1d;
  border-radius: 999px;
  background: #fef3c7;
  text-align: center;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #991b1b, #ea580c 58%, #111827);
}

.page-hero.compact,
.page-hero.category-hero {
  min-height: 260px;
}

.page-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.detail-main .breadcrumb {
  color: #6b7280;
}

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

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 32px 0 56px;
}

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #030712;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.movie-video,
.player-cover,
.player-cover img,
.player-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  object-fit: contain;
  background: #030712;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #111827;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  object-fit: cover;
}

.player-mask {
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.25), rgba(3, 7, 18, 0.76));
}

.player-button {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s ease;
}

.player-cover:hover .player-button {
  transform: scale(1.08);
}

.detail-card,
.side-panel {
  margin-top: 22px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta a,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.detail-meta a {
  color: var(--red);
  background: #fef2f2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-list span {
  color: #b45309;
  background: #fffbeb;
}

.story-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.story-block.lead {
  border-top: 0;
  padding-top: 0;
}

.story-block h2,
.side-panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.story-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.story-block.lead p {
  padding-left: 16px;
  color: #111827;
  border-left: 4px solid var(--red);
  font-size: 18px;
  font-weight: 650;
}

.story-block.review p {
  padding: 18px;
  border-radius: 18px;
  background: #f9fafb;
}

.detail-side {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.side-grid {
  display: grid;
  gap: 14px;
}

.side-grid .movie-card {
  border-radius: 16px;
}

.side-grid .poster-wrap {
  aspect-ratio: 16 / 9;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(156, 163, 175, 0.22);
  color: #9ca3af;
  font-size: 14px;
}

.searchable-item.is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 12px;
  }

  .nav-link:nth-last-child(-n + 4) {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 430px;
  }

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

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

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

  .side-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 0 34px;
  }

  .hero-main h1 {
    font-size: 36px;
  }

  .hero-main p {
    font-size: 17px;
  }

  .hero-slider {
    min-height: 650px;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
  }

  .filter-panel,
  .filter-box {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-row {
    grid-template-columns: 42px 62px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

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

  .detail-card {
    padding: 20px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .side-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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