:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --rose: #e11d48;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.96), rgba(249, 250, 251, 0.96));
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--rose));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.26);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

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

.brand-name {
  color: #1f2937;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
}

.header-search {
  position: relative;
  width: min(280px, 28vw);
}

.header-search input,
.mobile-search input,
.quick-search input,
.filter-search,
.search-page-form input {
  width: 100%;
  border: 1px solid #d1d5db;
  outline: none;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  height: 40px;
  padding: 0 42px 0 18px;
  border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search input:focus,
.filter-search:focus,
.search-page-form input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.header-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  border: 0;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel-inner {
  padding: 16px 0 20px;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-search input {
  height: 42px;
  border-radius: 999px;
  padding: 0 16px;
}

.mobile-search button,
.quick-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  padding: 0 18px;
  cursor: pointer;
}

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

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f9fafb;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 46%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-eyebrow,
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f87171;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-eyebrow::before,
.eyebrow-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 16px 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.ghost-button {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 24px;
}

.primary-button {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 38px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-search-section {
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quick-search-card h2 {
  margin: 8px 0 8px;
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.quick-search-card p {
  margin: 0;
  color: #6b7280;
}

.quick-search {
  display: flex;
  gap: 10px;
}

.quick-search input {
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
}

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

.soft-bg {
  background: rgba(249, 250, 251, 0.74);
}

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

.section-heading span {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

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

.section-more:hover,
.text-link:hover {
  color: var(--primary-dark);
}

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

.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff7f7);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.compact-card:hover,
.wide-card:hover,
.category-directory-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: var(--shadow);
}

.category-card span {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.65;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 360px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

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

.featured-grid {
  align-items: stretch;
}

.movie-card,
.compact-card,
.wide-card,
.category-directory-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card.is-hidden {
  display: none;
}

.large-card {
  scroll-snap-align: start;
}

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

.poster-link img,
.compact-cover img,
.wide-cover img,
.detail-cover,
.category-directory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.4s ease, opacity 0.3s ease;
}

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

.poster-year {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span,
.detail-tags span {
  border-radius: 999px;
  color: #b91c1c;
  background: #fee2e2;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3,
.compact-card h3,
.wide-card h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover,
.wide-card h3 a:hover,
.sidebar-links a:hover {
  color: var(--primary-dark);
}

.movie-card p,
.compact-card p,
.wide-card p {
  color: #6b7280;
  line-height: 1.65;
}

.movie-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: #6b7280;
  font-size: 13px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.category-preview-card {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.category-preview-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.category-preview-head h3 span {
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
}

.category-preview-head a {
  color: var(--primary);
  font-weight: 800;
}

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

.mini-movie-card .movie-card-body {
  padding: 10px;
}

.mini-movie-card h3 {
  font-size: 14px;
}

.mini-movie-card p,
.mini-movie-card .card-tags,
.mini-movie-card .card-meta {
  display: none;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 48px 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  border-color: rgba(220, 38, 38, 0.28);
}

.rank-number {
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}

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

.rank-copy {
  display: grid;
  gap: 6px;
}

.rank-copy strong {
  color: #111827;
  font-size: 17px;
}

.rank-copy span {
  color: #6b7280;
  font-size: 13px;
}

.wide-list,
.ranking-page-grid {
  display: grid;
  gap: 16px;
}

.wide-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.wide-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.wide-content h3 {
  margin-top: 8px;
}

.wide-content p {
  margin: 0 0 10px;
}

.inner-hero {
  padding: 74px 0 58px;
  color: #ffffff;
  background: radial-gradient(circle at 14% 20%, rgba(248, 113, 113, 0.40), transparent 32%), linear-gradient(135deg, #111827, #1f2937 48%, #7f1d1d);
}

.inner-hero h1 {
  max-width: 840px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.inner-hero p {
  max-width: 760px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

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

.category-directory-card {
  padding: 24px;
}

.category-directory-main {
  display: grid;
  gap: 10px;
}

.category-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--rose));
}

.category-directory-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-directory-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.category-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-directory-links a {
  border-radius: 999px;
  color: #991b1b;
  background: #fee2e2;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
}

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

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-search {
  height: 48px;
  border-radius: 999px;
  padding: 0 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #b91c1c;
  background: #fff5f5;
  padding: 8px 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--primary);
}

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

.detail-wrap {
  padding: 34px 0 70px;
  background: linear-gradient(180deg, #111827 0, #1f2937 360px, #f8fafc 360px, #f8fafc 100%);
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 9;
}

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 20px 45px rgba(220, 38, 38, 0.35);
  font-size: 28px;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(185, 28, 28, 0.92);
  padding: 8px 13px;
  font-weight: 700;
}

.movie-detail-copy {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.movie-detail-copy h1 {
  margin: 12px 0 14px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.movie-detail-copy h2 {
  margin: 26px 0 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.movie-detail-copy p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

.detail-meta span {
  color: #374151;
  background: #f3f4f6;
}

.detail-tags {
  margin-top: 22px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.sidebar-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

.sidebar-links a {
  color: #374151;
  line-height: 1.5;
  font-weight: 800;
}

.search-page-form {
  display: flex;
  max-width: 660px;
  gap: 12px;
  margin-top: 28px;
}

.search-page-form input {
  height: 52px;
  border-radius: 999px;
  padding: 0 20px;
}

.site-footer {
  padding: 36px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-footer strong {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #9ca3af;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

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

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

  .mobile-menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-card,
  .two-column-section,
  .detail-layout,
  .category-preview-grid,
  .category-directory-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }

  .sidebar-card {
    margin-top: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .brand-name {
    font-size: 17px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-meta span {
    padding: 6px 9px;
    font-size: 13px;
  }

  .quick-search-card {
    padding: 20px;
  }

  .quick-search,
  .search-page-form {
    flex-direction: column;
  }

  .quick-search button,
  .search-page-form button {
    height: 48px;
  }

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

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

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

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

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

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

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

  .detail-wrap {
    padding-top: 24px;
  }

  .movie-detail-copy {
    padding: 20px;
  }

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

  .detail-cover {
    max-width: 240px;
  }
}

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

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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