:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #ecfeff;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --accent: #059669;
  --accent-soft: #d1fae5;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 16px 40px rgba(8, 145, 178, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-nav {
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-size: 1.12rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: #cffafe;
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  width: 285px;
  padding: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.top-search input {
  min-width: 0;
  width: 100%;
  padding: 9px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.top-search button,
.catalog-search button,
.hero-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-search button {
  padding: 8px 14px;
}

.top-search button:hover,
.catalog-search button:hover,
.hero-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-dark);
  border-radius: 999px;
}

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

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.06);
  filter: blur(18px) saturate(1.25);
  opacity: 0.38;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(34, 211, 238, 0.34), transparent 34%),
    linear-gradient(110deg, rgba(8, 145, 178, 0.92), rgba(15, 23, 42, 0.78) 52%, rgba(5, 150, 105, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 670px;
  margin: 0 auto;
  padding: 84px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 62px;
  align-items: center;
}

.hero-text h1 {
  margin: 10px 0 18px;
  max-width: 780px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e0f2fe;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
  color: #cffafe;
}

.hero-tags span {
  color: #e0f2fe;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.primary-btn {
  min-height: 46px;
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn.full {
  width: 100%;
}

.ghost-btn {
  min-height: 46px;
  padding: 11px 21px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.ghost-btn.small {
  min-height: 38px;
  color: var(--primary-dark);
  border-color: #bae6fd;
  background: #ecfeff;
}

.text-link {
  color: var(--primary-dark);
}

.hero-text .text-link {
  color: #ffffff;
}

.hero-poster {
  display: block;
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(1.5deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.56));
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  width: min(1240px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 1.8rem;
}

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

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

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

.hero-search {
  position: absolute;
  z-index: 4;
  right: max(16px, calc((100vw - 1240px) / 2));
  bottom: 28px;
  width: min(420px, calc(100% - 32px));
  padding: 6px;
  display: flex;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.hero-search input {
  width: 100%;
  padding: 12px 16px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button,
.catalog-search button {
  padding: 12px 18px;
  white-space: nowrap;
}

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

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

.section-heading h2,
.panel-heading h2,
.content-card h2,
.info-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading.align-left,
.panel-heading {
  align-items: start;
  flex-direction: column;
  gap: 2px;
}

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

.category-tile,
.category-card-large,
.content-card,
.ranking-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.category-tile {
  min-height: 172px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 145, 178, 0.14), transparent 36%),
    #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
  color: var(--primary-dark);
  font-weight: 900;
}

.category-tile strong {
  margin-top: 18px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  gap: 30px;
  align-items: start;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(15, 23, 42, 0.72));
  opacity: 0.82;
}

.movie-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-play {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.26);
}

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

.movie-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.movie-title {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.movie-title a:hover,
.ranking-copy a:hover,
.category-card-copy a:hover {
  color: var(--primary-dark);
}

.movie-summary {
  min-height: 3em;
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.92rem;
  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 {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: #0f766e;
  background: #ecfeff;
  border: 1px solid #cffafe;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.ranking-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #f0fdfa;
  transform: translateX(2px);
}

.rank-number {
  color: var(--primary-dark);
  font-size: 1.18rem;
  font-weight: 900;
}

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

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  line-height: 1.25;
}

.rank-copy em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 34%),
    linear-gradient(135deg, #0891b2, #0f766e 58%, #0f172a);
}

.slim-hero {
  padding: 74px 0 58px;
}

.page-hero-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e0f2fe;
  font-size: 1.08rem;
}

.catalog-search {
  width: min(720px, 100%);
  margin-top: 26px;
  padding: 7px;
  display: flex;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.catalog-search input {
  width: 100%;
  padding: 13px 16px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.catalog-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip {
  padding: 9px 14px;
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 800;
}

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

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}

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

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

.category-card-large {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: #e2e8f0;
}

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

.category-card-copy {
  padding: 22px;
}

.category-card-copy h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.category-card-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.ranking-poster img {
  width: 94px;
  height: 124px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-copy h2 {
  margin: 2px 0 6px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ranking-copy p {
  margin: 0 0 10px;
  color: #475569;
}

.detail-hero {
  padding: 50px 0 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgba(16, 185, 129, 0.24), transparent 30%),
    linear-gradient(135deg, #0f172a, #0e7490 52%, #0f766e);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 26px;
  color: #cffafe;
  font-size: 0.94rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
  margin: 8px 0 18px;
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 840px;
  margin: 0 0 22px;
  color: #e0f2fe;
  font-size: 1.16rem;
}

.player-section {
  padding-bottom: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 30px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.25), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 999px;
  font-size: 2.4rem;
  box-shadow: 0 24px 50px rgba(8, 145, 178, 0.32);
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
  padding-top: 24px;
}

.content-card {
  padding: 26px;
}

.content-card p {
  margin: 12px 0 22px;
  color: #475569;
  font-size: 1.02rem;
}

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

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: -8px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.site-footer {
  margin-top: 28px;
  padding: 42px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 34px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.2rem;
}

.footer-inner p {
  margin: 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

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

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

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-nav {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
    background: #f8fafc;
  }

  .hero-carousel {
    min-height: 780px;
  }

  .hero-content {
    min-height: 700px;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
  }

  .hero-poster {
    max-width: 270px;
    margin: 0 auto;
  }

  .hero-search {
    left: 16px;
    right: 16px;
    bottom: 86px;
    width: auto;
  }

  .hero-controls {
    bottom: 26px;
  }

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

  .catalog-grid,
  .movie-grid,
  .home-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .ranking-poster img {
    width: 76px;
    height: 102px;
  }

  .ranking-row .ghost-btn {
    grid-column: 1 / -1;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 1rem;
  }

  .hero-carousel {
    min-height: 750px;
  }

  .hero-text h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.045em;
  }

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

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

  .hero-search,
  .catalog-search {
    border-radius: 24px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search button,
  .catalog-search button {
    width: 100%;
  }

  .section-wrap {
    padding: 46px 0;
  }

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

  .category-grid,
  .category-list-grid,
  .catalog-grid,
  .movie-grid,
  .home-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
  }
}
