:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --teal-900: #134e4a;
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.22);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--stone-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.32);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.main-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: #fbbf24;
}

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

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-carousel {
  position: relative;
  height: 540px;
  min-height: 540px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: min(var(--container), calc(100% - 32px));
  color: #fff;
}

.hero-kicker,
.feature-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.94);
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

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

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(245, 245, 244, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.card-tags span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-style: normal;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.btn-primary {
  min-height: 50px;
  padding: 0 26px;
  background: var(--amber-600);
  color: #fff;
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

.btn-ghost {
  min-height: 50px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.58);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--amber-500);
}

.section {
  padding: 70px 0;
}

.dark-section {
  background: linear-gradient(180deg, var(--slate-800), var(--slate-700));
  color: #fff;
}

.deep-gradient {
  background: linear-gradient(110deg, var(--teal-900), var(--slate-900), var(--slate-800));
  color: #fff;
}

.stone-section {
  background: var(--stone-100);
}

.white-section {
  background: #fff;
}

.amber-section {
  background: #fffbeb;
}

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

.section-head.center {
  display: block;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--stone-600);
}

.section-head.light h2,
.section-head.light p {
  color: #fff;
}

.section-head.light p {
  color: rgba(245, 245, 244, 0.75);
}

.section-more,
.text-link {
  color: var(--amber-600);
}

.section-more:hover,
.text-link:hover {
  color: var(--amber-700);
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.poster-img,
.poster-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.38s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-img,
.movie-card:hover .poster-wrap img,
.wide-card:hover img,
.category-card:hover img,
.side-feature:hover img,
.rank-row:hover img,
.detail-cover:hover img {
  transform: scale(1.06);
}

img.image-missing {
  opacity: 0;
}

.poster-shade,
.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.76));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 12px;
}

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

.movie-card-body .card-tags span,
.rank-info .card-tags span,
.detail-tags span {
  background: #f1f5f9;
  color: var(--slate-700);
}

.movie-card h3,
.wide-card h3,
.rank-info h3 {
  margin: 10px 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover,
.rank-info h3 a:hover {
  color: var(--amber-700);
}

.movie-card p,
.wide-card p,
.rank-info p {
  margin: 0;
  color: var(--stone-600);
  font-size: 14px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-card);
}

.category-card img,
.category-overview-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-card strong {
  bottom: 70px;
  font-size: 22px;
}

.category-card em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
}

.timeline-list {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding: 0 0 30px 38px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: -4px;
  width: 2px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.8), transparent);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
}

.timeline-item a {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.72);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.timeline-item a:hover {
  background: rgba(51, 65, 85, 0.88);
  transform: translateX(4px);
}

.timeline-item img {
  width: 150px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.timeline-item h3 {
  margin: 0 0 8px;
  color: #fff;
}

.timeline-item p {
  margin: 0;
  color: rgba(245, 245, 244, 0.75);
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.feature-cover {
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
}

.feature-cover img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.feature-copy h2 {
  margin: 18px 0 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.feature-copy p {
  color: var(--stone-600);
  font-size: 18px;
}

.feature-copy blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--amber-600);
  color: var(--stone-600);
}

.mixed-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 26px;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.wide-poster,
.wide-poster img {
  height: 180px;
  border-radius: 14px;
}

.side-feature {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--teal-900), var(--slate-800));
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.side-feature img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.side-feature span,
.side-feature strong,
.side-feature em {
  margin-left: 26px;
  margin-right: 26px;
}

.side-feature span {
  width: fit-content;
  margin-top: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amber-600);
  font-size: 12px;
  font-weight: 700;
}

.side-feature strong {
  margin-top: 14px;
  font-size: 28px;
  line-height: 1.18;
}

.side-feature em {
  margin-top: 14px;
  margin-bottom: 26px;
  color: rgba(245, 245, 244, 0.78);
  font-style: normal;
}

.page-hero,
.detail-hero {
  padding: 84px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(120deg, var(--slate-900), var(--slate-800));
  color: #fff;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(245, 245, 244, 0.76);
  font-size: 18px;
}

.category-page-hero .chip-row {
  margin-top: 26px;
}

.chip {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.chip.is-current,
.chip:hover {
  background: var(--amber-600);
  color: #fff;
}

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

.category-overview-card {
  min-height: 280px;
}

.category-overview-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.22));
}

.category-overview-card div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 2;
}

.category-overview-card strong {
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
}

.category-overview-card em {
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
}

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

.rank-hero-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.rank-hero-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.rank-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.86));
}

.rank-hero-card b,
.rank-hero-card strong,
.rank-hero-card em {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.rank-hero-card b {
  top: 22px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber-600);
}

.rank-hero-card strong {
  bottom: 66px;
  font-size: 28px;
}

.rank-hero-card em {
  bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 120px minmax(0, 1fr) 86px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  color: var(--amber-600);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-poster,
.rank-poster img {
  width: 120px;
  height: 84px;
  border-radius: 12px;
}

.rank-link {
  height: 42px;
  background: var(--amber-600);
  color: #fff;
}

.rank-link:hover {
  background: var(--amber-700);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 110px;
  gap: 12px;
  max-width: 920px;
  margin-top: 28px;
}

.search-panel input,
.search-panel select,
.search-panel button {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.search-panel select option {
  color: var(--slate-900);
}

.search-panel button {
  cursor: pointer;
  background: var(--amber-600);
  border: 0;
  font-weight: 700;
}

.search-result-note {
  margin-bottom: 24px;
  color: var(--stone-600);
}

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  padding: 46px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
}

.detail-cover img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
}

.detail-one-line {
  color: rgba(245, 245, 244, 0.82);
  font-size: 19px;
}

.detail-main {
  max-width: 1060px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-xl);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: translate(-50%, -50%);
  font-size: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-center.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.content-panel,
.related-section {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.content-panel h2,
.related-section h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 28px;
}

.content-panel p {
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 16px;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.related-section .section-head {
  margin-bottom: 24px;
}

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

.site-footer {
  padding: 42px 0;
  background: var(--slate-950);
  color: rgba(255, 255, 255, 0.76);
}

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

.footer-inner strong {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: #fbbf24;
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

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

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

@media (max-width: 900px) {
  .hero-carousel {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

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

  .feature-split,
  .mixed-layout,
  .detail-grid,
  .overview-grid,
  .rank-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover img {
    height: 460px;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero-carousel {
    height: 620px;
  }

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

  .hero-actions,
  .detail-actions {
    width: 100%;
  }

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

  .section-head,
  .footer-inner {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

  .movie-grid,
  .category-movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .poster-img,
  .poster-wrap img {
    height: 230px;
  }

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

  .wide-poster,
  .wide-poster img {
    height: 230px;
  }

  .timeline-item {
    padding-left: 26px;
  }

  .timeline-item a {
    display: block;
  }

  .timeline-item img {
    width: 100%;
    height: 170px;
    margin-bottom: 14px;
  }

  .rank-row {
    grid-template-columns: 44px 92px minmax(0, 1fr);
  }

  .rank-link {
    grid-column: 2 / -1;
  }

  .rank-poster,
  .rank-poster img {
    width: 92px;
    height: 70px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-cover img,
  .feature-cover img {
    height: 430px;
  }

  .content-panel,
  .related-section {
    padding: 22px;
  }

  .footer-links {
    margin-top: 18px;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 18px;
  }

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

  .poster-img,
  .poster-wrap img {
    height: 320px;
  }
}
