:root {
  --teal-950: #042f2e;
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-300: #5eead4;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --white: #ffffff;
  --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 28px 80px rgba(15, 23, 42, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
}

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

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

button,
input {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-900), var(--slate-800));
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.22);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--slate-900);
  font-size: 15px;
  font-weight: 900;
  background: var(--amber-400);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
  transition: transform 0.3s ease;
}

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

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  color: var(--teal-300);
  font-size: 12px;
}

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

.desktop-nav > a,
.mobile-nav > a {
  transition: color 0.25s ease;
}

.desktop-nav > a:hover,
.mobile-nav > a:hover {
  color: var(--teal-300);
}

.site-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search-form input,
.inline-filter-form input {
  width: 260px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  outline: 0;
  padding: 11px 44px 11px 16px;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-search-form input::placeholder,
.inline-filter-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.site-search-form input:focus,
.inline-filter-form input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--teal-300);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.22);
}

.site-search-form button {
  position: absolute;
  right: 4px;
  width: 36px;
  height: 36px;
  color: var(--teal-300);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.mobile-nav {
  display: grid;
  gap: 14px;
  padding: 16px 24px 24px;
  background: var(--slate-800);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .site-search-form input {
  width: 100%;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: center;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 1s ease, transform 1s ease;
  transform: scale(1.02);
}

.hero-slide::before {
  position: absolute;
  inset: -20px;
  content: "";
  background: inherit;
  filter: blur(8px);
  transform: scale(1.08);
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(680px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.hero-pill,
.card-region {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  background: var(--amber-500);
  border-radius: 999px;
  padding: 8px 16px;
}

.hero-content h1,
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-content p,
.detail-info p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: #d1d5db;
  font-weight: 600;
  margin-bottom: 32px;
}

.hero-actions,
.detail-tags,
.player-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.panel-link,
.search-page-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  color: var(--white);
  font-weight: 800;
  background: var(--teal-600);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.28);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn:hover,
.panel-link:hover,
.search-page-form button:hover {
  background: var(--teal-700);
  box-shadow: 0 18px 40px rgba(13, 148, 136, 0.36);
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

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

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prev,
.hero-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.04);
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: var(--white);
}

.quick-search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: -42px auto 0;
  padding: 24px;
  position: relative;
  z-index: 5;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-900), var(--slate-800));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.quick-search-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.quick-search-panel p {
  margin: 0;
  color: #d1d5db;
}

.large-search input {
  width: min(420px, 50vw);
}

.large-search button,
.search-page-form button {
  position: static;
  width: auto;
  height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: var(--teal-600);
}

.container,
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  margin-top: 72px;
}

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

.section-head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-700);
  font-weight: 800;
}

.section-link span {
  font-size: 28px;
  transition: transform 0.25s ease;
}

.section-link:hover span {
  transform: translateX(4px);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.movie-cover {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: var(--slate-800);
}

.movie-card-compact .movie-cover {
  height: 150px;
}

.movie-card-feature .movie-cover {
  height: 380px;
}

.movie-cover img,
.horizontal-cover img,
.rank-cover img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-cover img {
  transition: transform 0.45s ease;
}

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

.movie-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .movie-cover::after {
  background: rgba(0, 0, 0, 0.22);
}

.card-region {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 12px;
  padding: 5px 10px;
  background: var(--teal-600);
}

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

.movie-card-body h3 {
  min-height: 2.7em;
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card-compact .movie-card-body h3 {
  min-height: 2.6em;
  font-size: 15px;
}

.movie-card-body h3 a {
  transition: color 0.25s ease;
}

.movie-card:hover h3 a {
  color: var(--teal-700);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card-compact .movie-card-body p {
  display: none;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags a {
  display: inline-flex;
  color: var(--teal-800);
  font-size: 12px;
  font-weight: 700;
  background: #ccfbf1;
  border-radius: 999px;
  padding: 5px 9px;
}

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

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  color: var(--white);
  background-position: center;
  background-size: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.category-tile::before,
.category-panel::before,
.page-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82));
}

.category-tile {
  display: grid;
  align-content: end;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-panel:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.category-tile span,
.category-tile p,
.category-panel > div {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #e5e7eb;
  line-height: 1.6;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-900), var(--slate-900));
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.page-hero span {
  color: var(--teal-300);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0 auto 26px;
  max-width: 760px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.compact-hero {
  min-height: 310px;
}

.inline-filter-form input {
  width: min(560px, 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 28px 0 0;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal-700);
  font-weight: 700;
}

.breadcrumb.dark {
  margin: 0 0 20px;
  color: #cbd5e1;
}

.breadcrumb.dark a {
  color: var(--teal-300);
}

.category-panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
}

.category-panel {
  min-height: 270px;
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel > div {
  display: grid;
  align-content: end;
  min-height: 218px;
}

.category-panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-panel p {
  margin: 0 0 16px;
  color: #e5e7eb;
  line-height: 1.7;
}

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

.category-links a {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
}

.panel-link {
  width: max-content;
  min-height: 40px;
  padding: 0 18px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 56px;
}

.ranking-block {
  min-width: 0;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 42px 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  font-weight: 900;
  background: var(--teal-600);
  border-radius: 999px;
}

.rank-cover {
  height: 88px;
  overflow: hidden;
  background: var(--slate-800);
  border-radius: 12px;
}

.ranking-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.ranking-item p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-item small {
  color: var(--gray-500);
}

.detail-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.detail-hero::before {
  background: inherit;
  filter: blur(8px);
  transform: scale(1.08);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 44px;
  align-items: center;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0;
}

.detail-poster {
  overflow: hidden;
  height: 470px;
  background: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.detail-info h1 {
  margin-top: 16px;
}

.detail-info p {
  font-size: 19px;
}

.detail-tags a {
  background: rgba(204, 251, 241, 0.9);
}

.detail-container {
  margin-top: 56px;
}

.player-card,
.detail-content {
  overflow: hidden;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

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

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: #000000;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
}

.player-cover.is-hidden {
  display: none;
}

.play-ring {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  color: var(--slate-900);
  font-size: 34px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-cover:hover .play-ring {
  background: var(--white);
  transform: scale(1.08);
}

.player-title-row {
  justify-content: space-between;
  padding: 22px 24px;
}

.player-title-row h2 {
  margin: 0;
  font-size: 24px;
}

.player-title-row span {
  color: var(--gray-500);
  font-weight: 700;
}

.detail-content {
  margin-top: 34px;
  padding: 34px;
}

.detail-text-block + .detail-text-block {
  margin-top: 32px;
}

.detail-text-block h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 28px;
}

.detail-text-block p {
  margin: 0 0 16px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  margin-bottom: 72px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.horizontal-cover {
  min-height: 150px;
  background: var(--slate-800);
}

.horizontal-card > div:last-child {
  padding: 16px 18px 16px 0;
}

.horizontal-card span {
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 900;
}

.horizontal-card h3 {
  margin: 8px 0;
  font-size: 20px;
}

.horizontal-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

.search-page-form {
  justify-content: center;
}

.search-page-form input {
  width: min(520px, 70vw);
}

.no-results {
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.site-footer {
  margin-top: 92px;
  color: #d1d5db;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  padding-top: 56px;
  padding-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 36px;
}

.footer-brand strong {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 440px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

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

.site-footer a {
  transition: color 0.25s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav > a:nth-of-type(n+7) {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin-left: 20px;
  }

  .hero-content h1,
  .detail-info h1 {
    font-size: 42px;
  }

  .hero-controls {
    right: 20px;
    bottom: 22px;
  }

  .quick-search-panel {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    border-radius: 0;
  }

  .large-search input {
    width: 100%;
  }

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }

  .detail-poster {
    width: min(330px, 100%);
    height: 440px;
  }

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

@media (max-width: 620px) {
  .nav-inner,
  .container,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-carousel {
    height: 560px;
  }

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

  .hero-meta,
  .detail-meta {
    gap: 10px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(260px, 100%);
  }

  .hero-controls {
    left: 20px;
    right: auto;
  }

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

  .standard-grid,
  .compact-grid,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

  .movie-cover,
  .movie-card-compact .movie-cover {
    height: 220px;
  }

  .page-hero {
    min-height: 320px;
  }

  .ranking-item {
    grid-template-columns: 34px 64px 1fr;
    padding: 10px;
  }

  .rank-cover {
    height: 74px;
  }

  .detail-poster {
    display: none;
  }

  .detail-content {
    padding: 24px 18px;
  }

  .player-title-row {
    align-items: start;
    flex-direction: column;
  }

  .play-ring {
    width: 70px;
    height: 70px;
    font-size: 27px;
  }
}
