:root {
  --text: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #4f46e5;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
}

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

.brand-copy strong {
  font-size: 20px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 12px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: #eff6ff;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-panel input,
.local-filter input {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  outline: none;
  background: #fff;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.header-search input {
  width: 250px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.local-filter input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button,
.mobile-search button,
.search-panel button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.8s ease,
    transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(2, 6, 23, 0.92) 0%,
    rgba(15, 23, 42, 0.62) 48%,
    rgba(15, 23, 42, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 34px;
  padding: 90px 0 64px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 16px;
  border: 1px solid rgba(191, 219, 254, 0.32);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(14px);
  font-weight: 700;
}

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

.hero h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 3vw, 40px);
}

.hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(241, 245, 249, 0.9);
  font-size: 20px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 34px;
}

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

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
}

.secondary-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.38);
}

.hero-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.hero-mini-list a {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-mini-list a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.hero-mini-list img {
  width: 82px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #334155, #0f172a);
}

.hero-mini-list strong {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-mini-list span {
  display: block;
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 13px;
}

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

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

.hero-dot.active {
  background: #fff;
}

.section,
.page-section {
  padding: 72px 0;
}

.section.alt,
.page-section.alt {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

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

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
}

.section-head h2,
.page-head h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
}

.section-head p,
.page-head p,
.page-title p {
  max-width: 690px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.more-link {
  color: var(--primary);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border 0.28s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}

.movie-grid.compact .card-cover {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .cover-image,
.rank-item:hover .cover-image {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 23, 42, 0.52) 0%,
    rgba(15, 23, 42, 0) 62%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
  transform: scale(0.9);
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

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

.score-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--primary);
}

.card-body p {
  min-height: 48px;
  margin: 10px 0 12px;
  color: #64748b;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #64748b;
  font-size: 13px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.category-pill span {
  color: var(--primary);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0;
  font-size: 28px;
}

.category-card p {
  position: relative;
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  font-weight: 800;
}

.tone-rose {
  background: linear-gradient(135deg, #e11d48, #f97316);
}

.tone-amber,
.tone-yellow {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.tone-indigo,
.tone-violet {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.tone-orange {
  background: linear-gradient(135deg, #ea580c, #ef4444);
}

.tone-cyan,
.tone-sky {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.tone-green,
.tone-teal {
  background: linear-gradient(135deg, #059669, #0d9488);
}

.tone-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

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

.page-title p {
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

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

.local-filter,
.search-panel {
  margin: -28px auto 34px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.local-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
}

.filter-chip.active {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 156px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  width: 156px;
  height: 94px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.rank-info h3 {
  margin: 0;
  font-size: 20px;
}

.rank-info p {
  margin: 8px 0 10px;
  color: #64748b;
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #0f172a);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(2, 6, 23, 0.94),
    rgba(15, 23, 42, 0.56),
    rgba(15, 23, 42, 0.22)
  );
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 44px;
}

.detail-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
}

.detail-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.7;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(
    circle at center,
    rgba(37, 99, 235, 0.18),
    rgba(2, 6, 23, 0.56)
  );
  cursor: pointer;
}

.player-start span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 38px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.45);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  margin-top: 34px;
}

.detail-content,
.side-card {
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.detail-content {
  padding: 30px;
}

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

.detail-content p {
  margin: 0 0 22px;
  color: #475569;
  line-height: 1.95;
  font-size: 16px;
}

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

.detail-data div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-data span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 13px;
}

.detail-data strong {
  color: #0f172a;
}

.side-card {
  padding: 20px;
  align-self: start;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.side-link:hover {
  background: #f8fafc;
}

.side-link img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.side-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  font-size: 20px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #64748b;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  max-width: 540px;
  color: #475569;
  font-weight: 700;
}

.empty-state {
  display: none;
  padding: 38px;
  color: #64748b;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  background: #fff;
}

body.has-empty .empty-state {
  display: block;
}

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

  .hero-content,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .brand-copy strong {
    font-size: 17px;
  }

  .hero,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding: 82px 0 58px;
  }

  .hero-card {
    display: none;
  }

  .section,
  .page-section {
    padding: 52px 0;
  }

  .section-head,
  .page-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-body p {
    min-height: auto;
    font-size: 14px;
  }

  .rank-item {
    grid-template-columns: 42px 92px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .rank-thumb {
    width: 92px;
    height: 64px;
  }

  .rank-info p {
    display: none;
  }

  .local-filter,
  .search-panel form {
    grid-template-columns: 1fr;
  }

  .detail-content,
  .side-card {
    padding: 20px;
  }

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

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

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

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