:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius-xl: 1rem;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.nav-shell {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand {
  font-size: clamp(20px, 2vw, 26px);
}

.brand:hover {
  opacity: 0.88;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
}

.desktop-nav a,
.nav-drop button {
  color: #fff;
  border: 0;
  background: transparent;
  padding: 8px 0;
}

.desktop-nav a:hover,
.nav-drop button:hover,
.desktop-nav .is-active {
  color: #cffafe;
}

.nav-drop {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  padding: 8px;
  color: var(--gray-800);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  color: var(--gray-800);
  padding: 9px 12px;
  border-radius: 10px;
}

.nav-drop-panel a:hover {
  color: var(--cyan-600);
  background: #eff6ff;
}

.nav-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input {
  width: 230px;
  padding: 10px 42px 10px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.nav-search button {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.mobile-toggle {
  display: none;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel {
  display: none;
  padding: 0 24px 20px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
}

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

.mobile-panel a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
}

.mobile-search {
  gap: 8px;
  padding: 12px 0;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.mobile-search button {
  border: 0;
  color: var(--blue-700);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding-top: 6px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-bg.image-hidden,
.poster-frame img.image-hidden,
.compact-img img.image-hidden,
.detail-poster img.image-hidden {
  opacity: 0;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.hero-content > * {
  max-width: 720px;
}

.hero-pill,
.page-hero span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-meta,
.hero-tags,
.detail-meta,
.detail-genres,
.detail-tags,
.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.small-btn,
.category-overview-head a,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 52px;
  padding: 0 30px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

.ghost-btn {
  min-height: 52px;
  padding: 0 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover,
.category-overview-head a:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: 36px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.content-section {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}

.content-section.tight {
  padding: 46px 0;
}

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

.section-head h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-link,
.category-overview-head a,
.small-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  padding: 10px 18px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.poster-frame,
.compact-img,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.35), transparent 34%), linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.poster-frame {
  aspect-ratio: 16 / 9;
}

.poster-frame img,
.compact-img img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: 0.25s ease;
}

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

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  opacity: 0;
  transform: scale(0.9);
  transition: 0.25s ease;
}

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

.poster-year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row span,
.tag-row span,
.detail-meta span,
.detail-genres span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: #eff6ff;
  color: var(--blue-600);
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  color: var(--cyan-600);
  background: #ecfeff;
}

.category-band {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.category-tile {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: var(--shadow-card);
  transition: 0.25s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, var(--cyan-500));
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-tile span {
  font-size: 22px;
  font-weight: 800;
}

.category-tile strong {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 88px;
  padding: 24px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
  box-shadow: var(--shadow-soft);
}

.rank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rank-head h2 {
  margin: 0;
  font-size: 24px;
}

.rank-head a {
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
}

.rank-panel ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-panel li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-panel li a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
}

.rank-panel span {
  color: #67e8f9;
  font-weight: 900;
}

.rank-panel strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-panel em {
  color: rgba(255, 255, 255, 0.65);
  font-style: normal;
}

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

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.92)), radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.28), transparent 38%);
}

.small-hero {
  padding: 72px 24px;
}

.small-hero > div {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.small-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-bar.wide-filter {
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px 120px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--gray-700);
  background: var(--gray-50);
  outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-bar button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  font-weight: 800;
}

.filter-empty {
  padding: 24px;
  border-radius: 16px;
  color: var(--gray-600);
  background: #fff;
  box-shadow: var(--shadow-card);
}

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

.category-overview-card {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.category-overview-head p {
  margin: 0;
  color: var(--gray-500);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  background: var(--gray-50);
  transition: 0.2s ease;
}

.compact-card:hover {
  border-color: #bae6fd;
  transform: translateY(-2px);
}

.compact-img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.compact-text strong,
.compact-text em {
  display: block;
}

.compact-text strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-text em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px minmax(260px, 360px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

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

.ranking-row p {
  display: -webkit-box;
  margin: 0;
  color: var(--gray-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumb {
  width: min(1280px, calc(100% - 48px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-hero {
  width: min(1280px, calc(100% - 48px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(37, 99, 235, 0.84));
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  min-height: 220px;
  border-radius: 18px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
}

.detail-one-line {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta span,
.detail-genres span,
.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-genres,
.detail-tags {
  margin-top: 12px;
}

.player-section {
  width: min(1280px, calc(100% - 48px));
  margin: 32px auto 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.32);
  font-size: 30px;
}

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

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

.article-card {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 16px;
}

.site-footer {
  margin-top: 30px;
  color: #d1d5db;
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
}

.footer-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-shell p {
  margin: 14px 0 0;
  color: #cbd5e1;
}

.footer-shell h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.footer-shell li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  padding: 18px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .two-column,
  .detail-hero,
  .footer-shell,
  .overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

  .ranking-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .ranking-row p {
    grid-column: 2 / -1;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    height: 60px;
    padding: 0 16px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-layer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.52));
  }

  .hero-content {
    padding: 0 18px;
  }

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

  .hero-actions {
    width: 100%;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-dots {
    right: 18px;
    bottom: 20px;
  }

  .content-section,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .footer-shell {
    width: calc(100% - 32px);
  }

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

  .section-head {
    display: block;
  }

  .section-link {
    margin-top: 12px;
  }

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

  .filter-bar,
  .filter-bar.wide-filter {
    grid-template-columns: 1fr;
  }

  .filter-bar button {
    min-height: 46px;
  }

  .small-hero {
    padding: 52px 18px;
  }

  .detail-hero {
    padding: 18px;
  }

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

  .ranking-row {
    grid-template-columns: 44px 1fr;
  }

  .ranking-row .small-btn,
  .ranking-row p {
    grid-column: 2 / -1;
  }
}
