:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --cyan-400: #22d3ee;
  --amber-400: #fbbf24;
  --rose-500: #f43f5e;
  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  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,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.45);
}

.brand-text {
  font-size: 1.2rem;
  background: linear-gradient(90deg, var(--emerald-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.nav-dropdown > button {
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
  color: var(--emerald-400);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  width: 180px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: all 0.2s ease;
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.dropdown-panel a:hover {
  color: var(--emerald-400);
  background: rgba(255, 255, 255, 0.07);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(320px, 28vw);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  overflow: hidden;
}

.header-search input,
.mobile-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.header-search input {
  padding: 10px 76px 10px 16px;
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

.header-search button,
.mobile-panel button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  cursor: pointer;
  padding: 0 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.mobile-panel .nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-panel form {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.mobile-panel input {
  padding: 12px 84px 12px 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-950), #064e3b 52%, var(--slate-900));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 25%, rgba(52, 211, 153, 0.3), transparent 28%), radial-gradient(circle at 75% 10%, rgba(34, 211, 238, 0.22), transparent 32%), linear-gradient(120deg, rgba(2, 6, 23, 0.92), rgba(6, 78, 59, 0.62));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.8s ease;
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
  min-height: 610px;
  padding: 72px 0;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--emerald-100, #d1fae5);
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 18px 0;
  font-size: clamp(2.35rem, 6vw, 5.3rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--emerald-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  color: rgba(226, 232, 240, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.28);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.hero-search {
  position: relative;
  width: min(640px, 100%);
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.22);
  overflow: hidden;
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 20px 132px 20px 22px;
  color: var(--white);
  background: transparent;
  font-size: 1rem;
}

.hero-search input::placeholder {
  color: rgba(226, 232, 240, 0.7);
}

.hero-search button {
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  border-radius: 16px;
}

.hero-panel {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.34);
}

.hero-panel h2 {
  margin: 6px 8px 14px;
  font-size: 1.15rem;
}

.hero-focus {
  display: grid;
  gap: 12px;
}

.focus-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.focus-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.focus-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.focus-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-item p {
  display: -webkit-box;
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-left: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--emerald-400), var(--cyan-400));
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(180deg, #ecfdf5, var(--white));
}

.section.soft {
  background: var(--gray-50);
}

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

.section-head h2 {
  margin: 0;
  color: var(--gray-950);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.section-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-more {
  color: var(--emerald-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.cover-link,
.large-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-900);
}

.cover-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.movie-card:hover .cover-link img,
.movie-card:hover .large-cover img {
  transform: scale(1.055);
}

.cover-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.34);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.cover-layer i,
.play-pill,
.large-play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--white);
  font-style: normal;
  background: var(--emerald-500);
  box-shadow: 0 12px 34px rgba(16, 185, 129, 0.34);
}

.movie-card:hover .cover-layer {
  opacity: 1;
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 9px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 32px;
  padding: 5px 8px;
  text-align: center;
  background: linear-gradient(135deg, var(--rose-500), var(--amber-400));
}

.card-body {
  padding: 16px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--emerald-700);
  background: #d1fae5;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0 0 8px;
  color: var(--gray-950);
  font-size: 1.05rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover {
  color: var(--emerald-700);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.05em;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 0.84rem;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.movie-card-wide .cover-link img {
  height: 100%;
  min-height: 148px;
}

.play-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
}

.movie-card-large .large-cover {
  min-height: 350px;
}

.large-cover img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.82));
}

.large-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--white);
}

.large-copy em {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--emerald-500);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.large-copy strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.7rem;
  line-height: 1.15;
}

.large-copy small {
  display: -webkit-box;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.large-play {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.24s ease;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--emerald-700));
  box-shadow: var(--soft-shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.category-tile p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
}

.category-tile span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: var(--emerald-100, #d1fae5);
  font-weight: 800;
}

.page-hero {
  padding: 72px 0;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(52, 211, 153, 0.28), transparent 30%), linear-gradient(120deg, var(--slate-950), var(--slate-800));
}

.page-hero p {
  max-width: 800px;
  color: rgba(226, 232, 240, 0.85);
  font-size: 1.1rem;
}

.breadcrumb {
  padding: 16px 0;
  color: var(--gray-600);
  background: var(--white);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 36px 0 72px;
}

.detail-main,
.detail-side,
.text-panel {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-main {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-500);
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.38);
}

.play-icon::before {
  content: "▶";
  margin-left: 6px;
  font-size: 2.3rem;
}

.detail-content {
  padding: 28px;
}

.detail-title {
  color: var(--gray-950);
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 0.88rem;
  font-weight: 700;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2,
.detail-side h2,
.text-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-950);
  font-size: 1.45rem;
}

.detail-section p,
.text-panel p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 94px;
  padding: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.side-item:hover {
  background: var(--gray-50);
}

.side-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
}

.side-item strong {
  display: -webkit-box;
  color: var(--gray-950);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-item span {
  color: var(--gray-500);
  font-size: 0.84rem;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.filter-box input {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 13px;
  outline: 0;
}

.filter-box input:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 18px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
}

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

.cta {
  color: var(--white);
  text-align: center;
  background: linear-gradient(120deg, var(--emerald-700), #0891b2);
}

.cta h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.cta p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
}

.text-panel {
  padding: 28px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 54px 0 28px;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
}

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

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.92rem;
}

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

  .menu-toggle {
    display: block;
  }

  body.nav-open .mobile-panel {
    display: block;
  }

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

  .hero-inner {
    min-height: auto;
  }

  .hero-panel,
  .detail-side {
    position: static;
  }

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

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

  .brand-text {
    font-size: 1rem;
  }

  .hero-inner,
  .page-hero {
    padding: 46px 0;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-search input {
    padding: 16px 20px;
  }

  .hero-search button {
    position: static;
    width: calc(100% - 14px);
    margin: 0 7px 7px;
    min-height: 44px;
  }

  .focus-item,
  .movie-card-wide,
  .side-item {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid.three,
  .category-showcase,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

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

  .filter-box {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 22px;
  }
}
