
:root {
  --green: #10b981;
  --green-dark: #059669;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --yellow: #fde68a;
  --pink: #fbcfe8;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.35);
}

.brand-text {
  font-size: 19px;
  letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--green-dark);
  background: #ecfdf5;
}

.header-search {
  display: flex;
  align-items: center;
  width: 300px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.header-search input,
.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px;
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  padding: 8px 15px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
  font-size: 24px;
  line-height: 1;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 14px 16px 18px;
}

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

.mobile-menu nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.mobile-search {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.22), transparent 28%), rgba(0, 0, 0, 0.08);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(42px);
  mix-blend-mode: overlay;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-orb-a {
  top: 52px;
  left: 7%;
  width: 260px;
  height: 260px;
}

.hero-orb-b {
  right: 6%;
  bottom: 26px;
  width: 360px;
  height: 360px;
  animation-delay: 1.4s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

.hero-shell {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-slides {
  position: relative;
  min-height: 505px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
  gap: 54px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 780px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  color: var(--yellow);
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
}

.card-tags span {
  color: var(--green-dark);
  background: #ecfdf5;
  padding: 3px 7px;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  min-height: 50px;
  padding: 0 26px;
  color: var(--green-dark);
  background: var(--white);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

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

.ghost-btn {
  min-height: 50px;
  padding: 0 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.32);
  transform: rotate(2deg);
}

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

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

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.hero-nav {
  position: absolute;
  right: 0;
  bottom: 38px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-nav button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero-nav > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.stats-grid div {
  padding: 22px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(135deg, #f9fafb, #ffffff);
  border: 1px solid #f1f5f9;
}

.stats-grid strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

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

.white-section {
  background: var(--white);
}

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

.gradient-section {
  background: linear-gradient(135deg, #ecfdf5, #ecfeff);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title h2 {
  margin: 0 0 7px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.section-title p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-more {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 17px;
  color: var(--green-dark);
  background: #ecfdf5;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.86);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(16, 185, 129, 0.3);
}

.poster-box {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #d1fae5, #cffafe);
}

.poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.66));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  left: 10px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.rank-badge {
  right: 10px;
  background: rgba(17, 24, 39, 0.78);
}

.card-content {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-content strong {
  overflow: hidden;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-content small,
.card-desc {
  color: var(--muted);
}

.card-desc {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 168px;
}

.compact-card .poster-box {
  height: 100%;
  aspect-ratio: auto;
}

.compact-card .card-content strong {
  min-height: auto;
}

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

.category-card,
.category-overview-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-thumbs img,
.overview-collage img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.overview-collage {
  grid-template-columns: repeat(6, 1fr);
}

.category-card strong,
.category-overview-card strong {
  font-size: 22px;
}

.category-card small,
.category-overview-card small,
.category-card span:last-child,
.category-overview-card p {
  color: var(--muted);
  margin: 0;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 60px 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.ranking-number {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-weight: 900;
  font-size: 20px;
}

.ranking-item img {
  width: 86px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-copy {
  display: grid;
  gap: 7px;
}

.ranking-copy strong {
  font-size: 19px;
}

.ranking-copy small,
.ranking-copy span:last-child {
  color: var(--muted);
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--cyan), var(--blue));
}

.sub-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(12px);
}

.sub-hero .container {
  position: relative;
  z-index: 1;
}

.sub-hero span {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.sub-hero h1 {
  max-width: 860px;
  margin: 20px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

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

.filter-head h2 {
  margin: 0;
  font-size: 24px;
}

.filter-head span {
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  outline: 0;
  background: var(--white);
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.sort-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-buttons button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: var(--green-dark);
  background: #ecfdf5;
  font-weight: 900;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: #f9fafb;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #07111f;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.95), rgba(7, 17, 31, 0.76), rgba(7, 17, 31, 0.42));
}

.detail-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 58px 0 70px;
}

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

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

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

.breadcrumb a:hover {
  color: var(--yellow);
}

.detail-copy h1 {
  margin: 0 0 16px;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-line {
  max-width: 820px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  background: #07111f;
  color: var(--white);
}

.player-section .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.36);
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
  cursor: pointer;
}

.player-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-frame.is-playing .player-trigger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
  font-size: 30px;
}

.player-trigger strong {
  font-size: 20px;
}

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

.article-card,
.side-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

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

.article-card p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 17px;
}

.article-card p:last-child {
  margin-bottom: 0;
}

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

.side-card div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.side-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.side-card a {
  color: var(--green-dark);
}

.site-footer {
  color: #d1d5db;
  background: #07111f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #a7b0c0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer a:not(.brand) {
  display: block;
  color: #a7b0c0;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .header-search {
    width: 240px;
  }

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

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

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

  .sort-buttons {
    grid-column: 1 / -1;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-shell {
    min-height: auto;
    padding: 46px 0 86px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: start;
  }

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

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

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

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

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

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

  .nav-shell {
    min-height: 66px;
    gap: 12px;
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero-slides {
    min-height: 735px;
  }

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

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

  .stats-grid,
  .movie-grid,
  .featured-grid,
  .list-grid,
  .category-grid,
  .overview-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .compact-card .poster-box {
    min-height: 148px;
  }

  .ranking-number {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ranking-item img {
    width: 96px;
    height: 138px;
  }

  .sub-hero,
  .page-section {
    padding: 48px 0;
  }

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

  .play-icon {
    width: 66px;
    height: 66px;
  }
}
