* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.25);
  --orange: #f97316;
  --amber: #f59e0b;
  --red: #ef4444;
  --dark: #0f172a;
  --shadow: 0 18px 48px rgba(124, 45, 18, 0.15);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

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

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

img,
video {
  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: 50;
  background: rgba(255, 251, 235, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #7c2d12;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--red));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.36);
}

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

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #c2410c;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #7c2d12;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 12px 8px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
  background-image: linear-gradient(135deg, rgba(146, 64, 14, 0.92), rgba(249, 115, 22, 0.78), rgba(239, 68, 68, 0.68)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.55));
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 48px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow.dark {
  color: #ea580c;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row,
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags,
.detail-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.detail-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.compact-actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button-primary {
  color: #c2410c;
  background: white;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.button-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: white;
}

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

.quick-search-card,
.search-page-card,
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.22);
  backdrop-filter: blur(16px);
}

.quick-search-card h2,
.search-page-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.search-strip,
.search-page-form {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid var(--line);
}

.search-strip input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 0 14px;
}

.search-strip button,
.search-page-form button,
.search-chips button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 0 22px;
  font-weight: 900;
}

.stat-section {
  padding: 64px 0 30px;
  background: white;
}

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

.stat-grid article {
  min-height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.stat-grid article:nth-child(2) {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.stat-grid article:nth-child(3) {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.stat-grid article:nth-child(4) {
  background: linear-gradient(135deg, #fff1f2, #fce7f3);
}

.stat-grid strong {
  display: block;
  color: #7c2d12;
  font-size: 34px;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 84px 0;
}

.warm-section {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.dark-section {
  color: white;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.28), transparent 34%), linear-gradient(135deg, #111827, #0f172a);
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading.light p,
.section-heading.light h2 {
  color: white;
}

.section-heading h2,
.player-info h2,
.content-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-heading p,
.player-info p,
.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

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

.movie-card,
.related-card,
.overview-card,
.category-card,
.content-card,
.ranking-panel {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 14px 38px rgba(124, 45, 18, 0.1);
}

.movie-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(124, 45, 18, 0.18);
}

.card-cover,
.related-cover,
.compact-cover,
.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.card-cover img,
.related-cover img,
.compact-cover img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-cover {
  aspect-ratio: 16 / 10;
}

.movie-card:hover img,
.related-card:hover img,
.compact-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
}

.badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-weight: 900;
}

.badge {
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  background: rgba(249, 115, 22, 0.92);
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  padding: 22px;
}

.card-body h2,
.related-card h2,
.compact-card h2,
.rank-content h2,
.overview-content h2,
.category-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.28;
}

.card-body h2 a:hover,
.related-card h2 a:hover,
.compact-card h2 a:hover,
.rank-content h2 a:hover {
  color: #ea580c;
}

.card-meta,
.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-text {
  margin-top: 10px;
}

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

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.category-grid,
.overview-grid,
.related-grid {
  display: grid;
  gap: 24px;
}

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

.category-card a {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  overflow: hidden;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.9));
}

.category-card:hover img {
  opacity: 0.5;
  transform: scale(1.08);
}

.category-card h2,
.category-card p,
.category-icon {
  position: relative;
  z-index: 2;
  color: white;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.category-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--red));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: start;
}

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

.compact-card,
.ranking-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(251, 146, 60, 0.14);
  box-shadow: 0 10px 26px rgba(124, 45, 18, 0.08);
}

.compact-cover {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.compact-card p,
.compact-card span,
.rank-content p,
.rank-content span,
.related-card p {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ranking-panel {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.compact-title {
  margin-bottom: 22px;
}

.ranking-item {
  grid-template-columns: 54px 90px minmax(0, 1fr);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-cover {
  width: 90px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

.page-hero,
.detail-hero {
  position: relative;
  color: white;
  overflow: hidden;
  background: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 26%), linear-gradient(135deg, #92400e, #f97316, #ef4444);
}

.page-hero {
  padding: 98px 0;
}

.small-hero {
  padding: 86px 0;
}

.page-hero p {
  max-width: 760px;
}

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

.overview-card a {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  min-height: 220px;
  padding: 22px;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.overview-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  border-radius: 18px;
}

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

.overview-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.filter-bar {
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 28px;
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  min-height: 50px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.page-ranking {
  max-width: 980px;
}

.search-page-card {
  display: block;
  margin-bottom: 28px;
}

.search-page-form {
  margin-bottom: 18px;
}

.search-chips button {
  min-height: 40px;
  background: white;
  color: #9a3412;
  border: 1px solid var(--line);
}

.search-results:empty::before {
  content: "输入关键词后浏览匹配影片";
  display: block;
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: white;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 146, 60, 0.15);
}

.detail-hero {
  min-height: 620px;
  background-image: linear-gradient(110deg, rgba(15, 23, 42, 0.92), rgba(124, 45, 18, 0.72), rgba(249, 115, 22, 0.48)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.84));
}

.detail-layout {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.player-section {
  background: #0f172a;
}

.player-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
}

.player-area {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.34);
  font-size: 34px;
  transform: translateX(4px);
}

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

.player-info {
  color: white;
}

.player-info p {
  color: rgba(255, 255, 255, 0.76);
}

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

.content-card {
  padding: 28px;
}

.content-card p {
  color: #4b5563;
}

.meta-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.meta-card div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.14);
}

.meta-card dt {
  color: #9a3412;
  font-weight: 900;
}

.meta-card dd {
  margin: 0;
  color: #4b5563;
}

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

.related-card {
  padding-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(124, 45, 18, 0.16);
}

.related-cover {
  aspect-ratio: 3 / 4;
}

.related-card h2,
.related-card p {
  padding: 0 14px;
}

.related-card h2 {
  margin-top: 14px;
  font-size: 17px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  color: #fbbf24;
  font-size: 24px;
}

.site-footer p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fbbf24;
  font-size: 20px;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.54);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: flex;
  }

  .hero-layout,
  .detail-layout {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 86px;
  }

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

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

  .stat-grid,
  .movie-grid,
  .category-movie-grid,
  .overview-grid,
  .category-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .overview-card a {
    grid-template-columns: 1fr;
  }

  .player-shell {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-carousel,
  .hero-layout,
  .detail-hero,
  .detail-layout {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

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

  .hero-controls {
    bottom: 18px;
  }

  .search-strip,
  .search-page-form {
    flex-direction: column;
    border-radius: 22px;
  }

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

  .stat-grid,
  .movie-grid,
  .category-movie-grid,
  .overview-grid,
  .category-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 46px 74px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
  }

  .rank-cover {
    width: 74px;
  }

  .page-hero {
    padding: 66px 0;
  }

  .detail-layout {
    padding-top: 34px;
  }
}
