:root {
  --yellow-50: #fefce8;
  --yellow-100: #fef9c3;
  --yellow-300: #fde047;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;
  --green-50: #f0fdf4;
  --green-300: #86efac;
  --green-500: #22c55e;
  --rose-500: #f43f5e;
  --cyan-500: #06b6d4;
  --purple-600: #9333ea;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-strong: 0 25px 70px rgba(17, 24, 39, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--yellow-50), #ffffff 48%, var(--green-50));
  color: var(--gray-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: var(--gray-100);
}

body::-webkit-scrollbar-thumb {
  background: var(--yellow-400);
  border-radius: 999px;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--yellow-400), var(--yellow-300), var(--green-300));
  box-shadow: 0 10px 25px rgba(202, 138, 4, 0.18);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-800);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--yellow-600);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.25);
  animation: logoPulse 2.4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

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

.nav-link,
.mobile-nav-link {
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 700;
  transition: 0.25s ease;
}

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

.nav-link:hover,
.nav-link-active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--yellow-600);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
}

.header-search input,
.page-search input,
.search-page-form input,
.filter-panel input {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 11px 16px;
  color: var(--gray-800);
  outline: none;
  transition: 0.25s ease;
}

.header-search input:focus,
.page-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.25);
}

.header-search button,
.page-search button,
.search-page-form button,
.filter-buttons button {
  border: 0;
  border-radius: 999px;
  background: var(--gray-900);
  color: #ffffff;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.25s ease;
}

.header-search button:hover,
.page-search button:hover,
.search-page-form button:hover {
  transform: translateY(-1px);
  background: var(--gray-800);
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(12px);
}

.mobile-nav-link {
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.45) 52%, rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: min(100% - 32px, var(--container));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--gray-900);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 900;
}

.hero-content h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.detail-meta,
.tag-row,
.card-meta,
.filter-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.ghost-button,
.ranking-button,
.panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  background: var(--yellow-400);
  color: var(--gray-900);
  padding: 15px 28px;
  box-shadow: 0 18px 35px rgba(250, 204, 21, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--yellow-300);
}

.ghost-button {
  padding: 13px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.42);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot-active {
  width: 34px;
  background: var(--yellow-400);
}

.page-wrap {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.page-top {
  padding-top: 42px;
}

.content-section {
  margin: 64px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-bar {
  width: 8px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow-400), var(--yellow-600));
}

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-500);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.28s ease;
}

.category-tile {
  min-height: 148px;
  padding: 24px;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 0.28s ease;
}

.category-tile-1::before { background: linear-gradient(135deg, #ef4444, #f97316); }
.category-tile-2::before { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.category-tile-3::before { background: linear-gradient(135deg, #64748b, #111827); }
.category-tile-4::before { background: linear-gradient(135deg, #f59e0b, #facc15); }
.category-tile-5::before { background: linear-gradient(135deg, #ec4899, #fb7185); }
.category-tile-6::before { background: linear-gradient(135deg, #8b5cf6, #4f46e5); }

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

.category-tile:hover::before {
  opacity: 0.12;
}

.category-tile span,
.category-tile strong {
  position: relative;
  display: block;
}

.category-tile span {
  margin-bottom: 12px;
  color: var(--gray-800);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
}

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

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

.all-movie-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 28px 0 72px;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.28s ease;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--yellow-100), var(--green-50));
}

.movie-card-large .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: 0.28s ease;
}

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

.duration-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.duration-badge {
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  padding: 5px 9px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-600));
  color: #ffffff;
}

.play-chip {
  left: 50%;
  bottom: 18px;
  opacity: 0;
  background: var(--yellow-400);
  color: var(--gray-900);
  padding: 10px 16px;
  transform: translate(-50%, 16px);
  transition: 0.28s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card:hover h3 {
  color: var(--yellow-600);
}

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

.card-meta span,
.detail-meta span,
.tag-row a,
.card-tags {
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.card-tags {
  display: inline-block;
  margin-top: 10px;
  background: var(--yellow-50);
  color: var(--yellow-600);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.category-overview-card,
.filter-panel,
.page-hero,
.detail-content article,
.player-section,
.home-cta,
.search-results {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

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

.ranking-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.mini-card {
  display: grid;
  grid-template-columns: 34px 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  transition: 0.25s ease;
}

.mini-card:hover {
  background: var(--yellow-50);
}

.mini-card img {
  width: 72px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.35;
}

.mini-card em {
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.mini-rank,
.mini-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-600));
  color: #ffffff;
  font-weight: 900;
}

.mini-dot {
  width: 10px;
  height: 10px;
  background: var(--yellow-400);
}

.panel-more {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--gray-900);
  color: #ffffff;
}

.home-cta {
  margin: 76px 0;
  padding: 48px;
  text-align: center;
  background: linear-gradient(90deg, var(--yellow-400), var(--yellow-300), var(--green-300));
}

.home-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.home-cta p {
  max-width: 660px;
  margin: 0 auto 24px;
  color: var(--gray-700);
  line-height: 1.8;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  padding: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 252, 232, 0.92));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-500);
  font-size: 17px;
  line-height: 1.8;
}

.page-search,
.search-page-form {
  display: flex;
  gap: 10px;
  width: min(100%, 460px);
}

.category-overview-card {
  padding: 24px;
}

.category-overview-title {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gray-800);
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card p {
  min-height: 54px;
  margin: 0 0 16px;
  color: var(--gray-500);
  line-height: 1.7;
}

.category-preview-list {
  display: grid;
  gap: 8px;
}

.category-preview-list a {
  overflow: hidden;
  color: var(--yellow-600);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.filter-panel input {
  max-width: 420px;
  border-color: var(--gray-200);
  background: #ffffff;
}

.filter-buttons button {
  background: var(--gray-100);
  color: var(--gray-700);
}

.filter-buttons button:hover,
.filter-buttons .filter-active {
  background: var(--yellow-400);
  color: var(--gray-900);
}

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

.breadcrumb a {
  color: var(--yellow-600);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 34px;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  color: var(--gray-900);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 20px;
  line-height: 1.75;
}

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

.tag-row a {
  background: var(--yellow-50);
  color: var(--yellow-600);
}

.player-section {
  margin: 36px 0;
  padding: 24px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  color: #ffffff;
  cursor: pointer;
  transition: 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--yellow-400);
  color: var(--gray-900);
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(250, 204, 21, 0.25);
}

.play-overlay strong {
  font-size: 18px;
}

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

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

.detail-content article {
  padding: 28px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 108px 1fr auto;
  gap: 20px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

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

.ranking-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-600));
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.ranking-poster img {
  width: 108px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

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

.ranking-info p {
  margin: 0 0 10px;
  color: var(--gray-500);
  line-height: 1.65;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.ranking-button {
  padding: 12px 18px;
  background: var(--yellow-400);
  color: var(--gray-900);
}

.search-page-hero {
  display: block;
}

.search-page-form {
  margin-top: 22px;
}

.search-results {
  min-height: 260px;
  padding: 24px;
  margin-bottom: 70px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  color: var(--gray-500);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 80px;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: #ffffff;
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand h2,
.footer-links h3 {
  margin: 0 0 14px;
  color: var(--yellow-400);
}

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow-400);
}

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

.is-hidden {
  display: none !important;
}

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  .header-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .hero-slider {
    min-height: 560px;
    height: 72vh;
  }

  .hero-control {
    display: none;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .compact-grid,
  .all-movie-grid,
  .large-card-row,
  .search-results-grid,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero,
  .filter-panel,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .filter-panel {
    display: grid;
  }

  .detail-hero {
    display: grid;
  }

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

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

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

@media (max-width: 560px) {
  .site-logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .page-wrap {
    width: min(100% - 24px, var(--container));
  }

  .hero-content {
    width: min(100% - 24px, var(--container));
    bottom: 10%;
  }

  .hero-content h1 {
    font-size: 34px;
  }

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

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .compact-grid,
  .all-movie-grid,
  .large-card-row,
  .search-results-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .player-section,
  .detail-content article,
  .home-cta {
    padding: 24px;
  }

  .page-search,
  .search-page-form {
    flex-direction: column;
  }

  .ranking-row {
    grid-template-columns: 42px 72px 1fr;
    gap: 12px;
  }

  .ranking-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .ranking-poster img {
    width: 72px;
    height: 54px;
  }
}
