* {
  box-sizing: border-box;
}

:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --emerald-700: #047857;
  --yellow-400: #facc15;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 10px 20px rgba(28, 25, 23, 0.12);
  --shadow-xl: 0 22px 45px rgba(28, 25, 23, 0.18);
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), #ffffff 420px);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(231, 229, 228, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-600), var(--emerald-700));
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  color: var(--stone-800);
}

.brand-text small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--stone-500);
}

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

.nav-link {
  color: var(--stone-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--green-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
  padding: 6px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--stone-50);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 6px 8px 6px 12px;
  color: var(--stone-800);
}

.header-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--green-600);
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.large-search button:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--stone-700);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--stone-700);
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--green-600);
  background: var(--green-50);
}

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

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(34, 197, 94, 0.28), transparent 36%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.94) 0%, rgba(28, 25, 23, 0.78) 42%, rgba(28, 25, 23, 0.35) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.75), rgba(28, 25, 23, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 90px 0;
  color: var(--white);
}

.hero-chip,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-chip {
  color: var(--white);
  background: rgba(22, 163, 74, 0.9);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.28);
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.hero-tags {
  margin: 28px 0 34px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-actions,
.detail-copy .primary-button {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: var(--green-600);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.28);
}

.primary-button:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(22, 163, 74, 0.34);
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.ghost-link {
  min-height: 42px;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
}

.ghost-link:hover {
  color: var(--white);
  background: var(--green-600);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.quick-search-section {
  position: relative;
  z-index: 6;
  width: min(100% - 32px, var(--container));
  margin: -68px auto 0;
}

.quick-search-card,
.section-block,
.ranking-panel,
.filter-panel,
.category-card,
.detail-article,
.player-section {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-3xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.quick-search-card {
  padding: 30px;
}

.quick-search-card h2,
.section-heading h2,
.panel-title h2,
.sub-hero h1,
.detail-copy h1,
.detail-article h2 {
  margin: 0;
  color: var(--stone-800);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.quick-search-card h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.quick-search-card p,
.section-heading p,
.sub-hero p {
  color: var(--stone-600);
}

.large-search {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 8px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--stone-50);
}

.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
}

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

.home-layout {
  padding: 72px 0 90px;
  display: grid;
  gap: 56px;
}

.section-block {
  padding: clamp(22px, 4vw, 40px);
}

.highlight-block {
  background: linear-gradient(135deg, var(--green-50), #ecfdf5);
}

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

.section-heading h2,
.panel-title h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.panel-title p {
  margin: 8px 0 0;
}

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

.featured-grid .movie-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: var(--shadow-xl);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--stone-900);
}

.featured-grid .movie-card:first-child .card-media {
  aspect-ratio: 16 / 9;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.25s ease;
}

.movie-card:hover .card-media img {
  transform: scale(1.08);
  opacity: 0.92;
}

.type-badge,
.score-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  left: 12px;
  top: 12px;
  background: var(--green-600);
}

.score-badge {
  right: 12px;
  top: 12px;
  color: var(--stone-900);
  background: var(--yellow-400);
}

.rank-no {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  justify-content: center;
  border-radius: 14px;
  background: rgba(28, 25, 23, 0.86);
  backdrop-filter: blur(8px);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-content strong {
  color: var(--stone-800);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .card-content strong {
  color: var(--green-600);
}

.card-content em {
  min-height: 42px;
  color: var(--stone-600);
  font-style: normal;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  gap: 8px;
  color: var(--stone-500);
  font-size: 13px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--stone-400);
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 26px;
  padding: 4px 9px;
  color: var(--green-700);
  background: var(--green-50);
  font-size: 12px;
}

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

.ranking-panel {
  padding: 26px;
  background: linear-gradient(160deg, var(--stone-800), var(--stone-900));
  color: var(--stone-200);
}

.ranking-panel h2,
.ranking-panel .panel-title h2 {
  color: var(--white);
}

.ranking-panel .eyebrow {
  color: var(--green-700);
}

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

.mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(3px);
}

.mini-card img {
  width: 74px;
  height: 94px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mini-card strong {
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card em {
  color: var(--stone-300);
  font-size: 13px;
  font-style: normal;
}

.mini-rank {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-900);
  background: var(--yellow-400);
  font-size: 12px;
  font-weight: 900;
}

.category-grid,
.category-card-grid {
  display: grid;
  gap: 20px;
}

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

.category-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 70px 0 90px;
}

.category-tile,
.category-card {
  display: grid;
  gap: 10px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--stone-200);
  background: linear-gradient(180deg, var(--white), var(--stone-50));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile {
  padding: 22px;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: var(--shadow-lg);
}

.category-tile strong,
.category-copy strong {
  color: var(--stone-800);
  font-size: 20px;
  font-weight: 950;
}

.category-tile span,
.category-copy em {
  color: var(--stone-600);
  font-style: normal;
}

.category-card {
  overflow: hidden;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  background: var(--stone-900);
}

.category-thumbs img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.category-copy {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 197, 94, 0.26), transparent 30%),
    linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.sub-hero-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 86px 0;
  color: var(--white);
}

.sub-hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(36px, 5vw, 62px);
}

.sub-hero p {
  max-width: 760px;
  color: var(--stone-200);
  font-size: 18px;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--stone-500);
  font-weight: 700;
}

.crumbs a {
  color: var(--green-600);
}

.crumbs.light {
  color: rgba(255, 255, 255, 0.65);
}

.crumbs.light a {
  color: var(--green-400);
}

.listing-page {
  padding: 46px 0 90px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-2xl);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  outline: 0;
  background: var(--stone-50);
  color: var(--stone-800);
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 28px;
  border-radius: 24px;
  color: var(--stone-600);
  background: var(--stone-100);
  text-align: center;
  font-weight: 800;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  background: var(--stone-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-top {
  position: relative;
  z-index: 2;
  padding: 42px 0 60px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 34px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xl);
}

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

.detail-copy {
  color: var(--white);
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(38px, 5vw, 70px);
}

.detail-one-line {
  max-width: 780px;
  margin: 20px 0 24px;
  color: var(--stone-200);
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.detail-main {
  padding: 52px 0 90px;
  display: grid;
  gap: 34px;
}

.player-section {
  padding: clamp(18px, 3vw, 34px);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: var(--stone-900);
  box-shadow: var(--shadow-xl);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--stone-900);
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.58), rgba(28, 25, 23, 0.2));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-cover:hover .play-icon {
  transform: scale(1.08);
}

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--stone-900);
  background: var(--white);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}

.play-cover strong {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.94);
}

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

.detail-article {
  padding: clamp(22px, 4vw, 42px);
}

.detail-article h2 {
  margin-top: 0;
  font-size: 30px;
}

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p {
  color: var(--stone-700);
  font-size: 18px;
}

.related-section {
  box-shadow: none;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(135deg, var(--stone-800), var(--stone-900));
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 54px 0 36px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 20px;
}

.footer-brand p,
.footer-block p,
.footer-block a {
  color: var(--stone-400);
}

.footer-block h3 {
  margin: 0 0 14px;
  color: var(--white);
}

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

.footer-block a:hover {
  color: var(--green-400);
}

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--stone-400);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .header-search {
    width: 250px;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .brand-text small {
    display: none;
  }

  .hero-slider,
  .hero-content {
    min-height: 590px;
  }

  .hero-content {
    padding: 72px 0;
  }

  .hero-arrow {
    display: none;
  }

  .large-search,
  .filter-panel {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .large-search {
    display: grid;
  }

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

  .featured-grid .movie-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .category-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 24px, var(--container));
  }

  .brand-mark,
  .footer-logo span {
    width: 38px;
    height: 38px;
  }

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

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

  .hero-content p,
  .detail-one-line {
    font-size: 17px;
  }

  .quick-search-section,
  .page-container,
  .sub-hero-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, var(--container));
  }

  .quick-search-card,
  .section-block,
  .ranking-panel,
  .detail-article,
  .player-section {
    border-radius: 22px;
    padding: 20px;
  }

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

  .movie-grid,
  .compact-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid .movie-card:first-child {
    grid-column: auto;
  }

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

  .category-thumbs img {
    height: 135px;
  }

  .detail-copy h1,
  .sub-hero h1 {
    font-size: 36px;
  }

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