:root {
  --bg: #f8fafc;
  --bg-soft: #eff6ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbeafe;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-soft: #dbeafe;
  --accent: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(37, 99, 235, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 45%, #f1f5f9 100%);
  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: linear-gradient(90deg, rgba(248, 250, 252, 0.94), rgba(239, 246, 255, 0.94), rgba(248, 250, 252, 0.94));
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #2563eb, #334155);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 10px 12px;
  color: #475569;
  border-radius: 12px;
  font-size: 14px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #1d4ed8;
  background: #dbeafe;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 9px 6px 9px 14px;
  color: #0f172a;
  background: transparent;
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.filter-button,
.play-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.22s ease;
}

.header-search button,
.mobile-search button,
.primary-button,
.filter-button,
.play-button {
  color: #ffffff;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.header-search button,
.mobile-search button {
  padding: 9px 16px;
  white-space: nowrap;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 700;
}

.secondary-button {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.primary-button:hover,
.secondary-button:hover,
.filter-button:hover,
.play-button:hover,
.header-search button:hover,
.mobile-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #334155;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-panel {
  display: none;
  border-top: 1px solid #dbeafe;
  background: #ffffff;
}

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

.mobile-panel > * {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.mobile-search {
  margin-top: 14px;
  margin-bottom: 10px;
}

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

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: -18px;
  background-size: cover;
  background-position: center;
  filter: blur(9px);
  transform: scale(1.08);
}

.hero-cover-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.78), rgba(30, 58, 138, 0.74));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 54px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(191, 219, 254, 0.4);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
}

.hero-title {
  max-width: 760px;
  margin: 22px 0 20px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 680px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.hero-meta span,
.detail-badge,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #1e3a8a;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-poster-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 35px 90px rgba(2, 6, 23, 0.45);
  transform: rotate(1.2deg);
}

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

.hero-poster-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0));
}

.hero-poster-info strong {
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

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

.section-block {
  margin-bottom: 64px;
}

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

.section-title {
  margin: 0;
  color: #1e293b;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-desc {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  color: #2563eb;
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(219, 234, 254, 0.85);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

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

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

.poster-link img,
.wide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.06) 58%, rgba(2, 6, 23, 0.08));
}

.duration-badge,
.score-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
}

.duration-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.76);
}

.score-badge {
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.poster-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: 0.24s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h3,
.wide-content h3 {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
}

.card-body h3 a:hover,
.wide-content h3 a:hover {
  color: #2563eb;
}

.card-body p,
.wide-content p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
}

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

.rank-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
  background: #0f172a;
}

.rank-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow);
}

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

.rank-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.06));
}

.rank-overlay h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.rank-number {
  top: 14px;
  left: 14px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #facc15, #f97316);
  font-size: 18px;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.36);
}

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

.category-tile,
.category-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
}

.category-tile:hover,
.category-summary-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow);
}

.category-tile-content,
.category-summary-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile strong,
.category-summary-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile span,
.category-summary-card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.cat-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.cat-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.cat-indigo { background: linear-gradient(135deg, #4f46e5, #2563eb); }
.cat-cyan { background: linear-gradient(135deg, #0284c7, #0891b2); }
.cat-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.cat-rose { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.cat-violet { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.cat-slate { background: linear-gradient(135deg, #475569, #0f172a); }
.cat-emerald { background: linear-gradient(135deg, #059669, #14b8a6); }
.cat-orange { background: linear-gradient(135deg, #ea580c, #fb7185); }

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.wide-cover {
  position: relative;
  display: block;
  min-height: 130px;
  overflow: hidden;
  background: #e2e8f0;
}

.wide-content {
  padding: 18px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #1e3a8a, #0f172a 58%, #1d4ed8);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.38), transparent 32%), radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.3), transparent 28%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 180px) 110px;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  color: #0f172a;
  background: #ffffff;
}

.filter-button {
  height: 46px;
  font-weight: 800;
}

.result-count {
  margin: -12px 0 24px;
  color: var(--muted);
  font-weight: 700;
}

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

.category-preview {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.2);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 68px 94px minmax(0, 1fr) 120px 100px;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: 0.22s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.ranking-row-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

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

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.player-card,
.detail-card,
.sidebar-card {
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #020617;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.12));
}

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

.play-button {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.player-info {
  padding: 24px;
}

.player-info h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.detail-card p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.9;
}

.sidebar-card {
  padding: 18px;
  margin-bottom: 24px;
}

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

.sidebar-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.sidebar-item img {
  width: 72px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.sidebar-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.35;
}

.sidebar-item span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 48px;
  color: #cbd5e1;
  background: linear-gradient(90deg, #0f172a, #1e3a8a, #0f172a);
}

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

.footer-logo {
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-column li {
  margin-bottom: 9px;
}

.footer-column a:hover {
  color: #93c5fd;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 18px 0;
  text-align: center;
  color: #94a3b8;
}

.empty-message {
  display: none;
  padding: 34px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid #dbeafe;
  text-align: center;
}

.empty-message.is-visible {
  display: block;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

@media (max-width: 960px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    max-width: 420px;
    min-height: 360px;
    transform: none;
  }

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

  .latest-grid,
  .card-grid,
  .card-grid.five,
  .card-grid.four,
  .rank-grid,
  .category-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .ranking-row > span:last-child,
  .ranking-row > .meta-pill {
    display: none;
  }

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

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

  .brand-text strong {
    font-size: 18px;
  }

  .header-search {
    display: none;
  }

  .hero-section,
  .hero-inner {
    min-height: 560px;
  }

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

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

  .hero-poster-card {
    display: none;
  }

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

  .card-grid,
  .card-grid.five,
  .card-grid.four,
  .latest-grid,
  .rank-grid,
  .category-grid,
  .category-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-row img {
    width: 64px;
  }

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

@media (max-width: 440px) {
  .card-grid,
  .card-grid.five,
  .card-grid.four,
  .latest-grid,
  .rank-grid,
  .category-grid,
  .category-summary-grid,
  .mobile-links {
    grid-template-columns: 1fr;
  }
}
