:root {
  --bg: #f7f9fc;
  --bg-soft: #eef4ff;
  --text: #111827;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --card: #ffffff;
  --nav-1: #0f172a;
  --nav-2: #1e3a8a;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --accent-soft: #fffbeb;
  --blue: #2563eb;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(18px);
}

.nav-container {
  min-height: 68px;
  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;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.42);
  font-size: 17px;
  padding-left: 2px;
}

.brand-text,
.footer-brand span:last-child {
  font-size: 21px;
  line-height: 1;
  background: linear-gradient(90deg, #fde68a, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #d1d5db;
  font-size: 15px;
  font-weight: 700;
  padding: 23px 0 20px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
  border-color: #f59e0b;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  color: #d1d5db;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-bg img,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-scrim {
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 43%, rgba(15, 23, 42, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.08) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 56px;
  padding-top: 52px;
  padding-bottom: 64px;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.96);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

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

.hero-copy p {
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
  margin: 0 0 26px;
}

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

.hero-meta span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.13);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-poster-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-buttons,
.hero-dots {
  pointer-events: auto;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 56px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.search-panel {
  position: relative;
  z-index: 6;
  margin: -36px auto 56px;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
}

.search-card input,
.filter-bar input,
.filter-bar select,
.local-filter input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 15px;
  outline: none;
  background: #fff;
  color: var(--text);
}

.search-card input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.local-filter input:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.main-section {
  padding: 36px 0;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: var(--accent-2);
  font-weight: 900;
}

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

.category-chip,
.category-card {
  display: block;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.category-chip strong,
.category-card strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 18px;
}

.category-chip span,
.category-card span,
.category-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.category-card-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.category-card-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e293b, #334155);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
  opacity: 0.86;
}

.play-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  background: rgba(245, 158, 11, 0.94);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.movie-body {
  padding: 17px;
}

.movie-meta {
  gap: 7px;
  margin-bottom: 10px;
}

.movie-meta span {
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  padding: 5px 8px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-body p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  padding: 62px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.28), transparent 28%),
    linear-gradient(100deg, #0f172a, #1e3a8a 52%, #0f172a);
}

.page-title {
  max-width: 780px;
}

.page-title h1,
.page-title p {
  color: #fff;
}

.page-title p {
  color: #dbeafe;
}

.filter-bar,
.local-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px 160px auto;
  gap: 12px;
  margin: 28px 0 24px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.filter-count {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.empty-result {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 20px;
  background: #fff;
  border: 1px dashed var(--line);
}

.empty-result.show {
  display: block;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 76px 180px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.ranking-number {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

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

.ranking-action {
  color: var(--accent-2);
  font-weight: 900;
  padding-right: 12px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.detail-bg,
.detail-bg img,
.detail-hero::after {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.02);
}

.detail-hero::after {
  content: "";
  background:
    radial-gradient(circle at 74% 18%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.55));
}

.detail-overview {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 54px 0;
  color: #fff;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.detail-copy h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 68px);
  margin-bottom: 18px;
}

.detail-copy .lead {
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.75;
  margin: 0 0 22px;
}

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

.content-block,
.player-panel,
.info-card,
.related-panel {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.content-block,
.info-card,
.related-panel {
  padding: 24px;
}

.content-block + .content-block,
.player-panel + .content-block,
.info-card + .related-panel,
.related-panel + .related-panel {
  margin-top: 22px;
}

.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  font-size: 24px;
  color: #0f172a;
}

.content-block p {
  color: #334155;
  line-height: 1.9;
  margin: 0;
  white-space: pre-line;
}

.player-panel {
  overflow: hidden;
  margin-bottom: 22px;
}

.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(90deg, #0f172a, #1e3a8a);
}

.player-heading h2 {
  margin: 0;
  font-size: 22px;
}

.video-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.32), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.42);
  font-size: 34px;
}

.play-overlay.hidden {
  display: none;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 0;
}

.source-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 800;
}

.source-btn.active,
.source-btn:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.player-status {
  min-height: 42px;
  padding: 10px 18px 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.info-list div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list span:first-child {
  color: var(--muted);
}

.info-list span:last-child {
  color: #0f172a;
  text-align: right;
  font-weight: 800;
}

.related-list {
  display: grid;
  gap: 13px;
}

.related-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 82px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.related-item strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

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

.breadcrumb {
  position: relative;
  z-index: 3;
  padding-top: 22px;
  color: #dbeafe;
  font-size: 14px;
}

.breadcrumb a {
  color: #fde68a;
  font-weight: 800;
}

.site-footer {
  margin-top: 62px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0 34px;
}

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

.footer-grid p,
.footer-small {
  color: #94a3b8;
  line-height: 1.75;
}

.footer-grid a {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
}

.footer-grid a:hover {
  color: #fbbf24;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

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

  .detail-poster {
    max-width: 320px;
  }

  .detail-main {
    gap: 22px;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-content {
    padding-top: 36px;
    padding-bottom: 86px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .search-card,
  .filter-bar,
  .local-filter {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 56px 118px 1fr;
  }

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

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

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

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

  .hero-copy h1,
  .detail-copy h1 {
    font-size: 38px;
  }

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

  .btn {
    width: 100%;
  }

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

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

  .detail-overview {
    gap: 26px;
    padding: 36px 0 48px;
  }

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

  .ranking-item {
    grid-template-columns: 48px 1fr;
  }

  .ranking-thumb {
    grid-column: 1 / -1;
  }

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