:root {
  --blue-950: #0b1f55;
  --blue-900: #12317a;
  --blue-800: #1746a2;
  --blue-700: #1d5fd1;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --orange-500: #f97316;
  --rose-500: #f43f5e;
  --yellow-400: #facc15;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--slate-50);
  min-width: 320px;
}

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

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

button,
input {
  font: inherit;
}

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

.narrow-container {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-700), var(--blue-800) 52%, var(--blue-950));
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.2);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

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

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

.brand-text strong {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: var(--white);
  color: var(--slate-800);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.nav-dropdown-panel a:hover {
  color: var(--blue-700);
  background: var(--blue-100);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-search input,
.large-search input {
  border: 1px solid rgba(255, 255, 255, 0.24);
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 11px 16px;
  min-width: 230px;
  transition: all 0.2s ease;
}

.header-search input::placeholder,
.large-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-search input:focus,
.large-search input:focus {
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.2);
}

.header-search button,
.large-search button {
  border: 0;
  color: var(--blue-800);
  background: var(--white);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.large-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800) 60%, var(--blue-700));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px), radial-gradient(circle at 80% 0%, rgba(250, 204, 21, 0.4), transparent 28%), radial-gradient(circle at 20% 90%, rgba(244, 63, 94, 0.28), transparent 30%);
  background-size: 48px 48px, 720px 720px, 680px 680px;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.1) contrast(1.08);
}

.image-hidden {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.16)), linear-gradient(0deg, var(--slate-50) 0, rgba(248, 250, 252, 0) 18%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 140px;
  display: grid;
  align-content: center;
  min-height: 620px;
  max-width: 1180px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--yellow-400);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 850px;
  margin: 26px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.65;
}

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

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

.hero .hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.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 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--blue-800);
  background: var(--white);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.22);
}

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

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

.button.ghost-dark {
  color: var(--blue-800);
  background: var(--blue-100);
}

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

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

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

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

.soft-bg {
  background: linear-gradient(135deg, #fff7ed, #fff1f2 55%, #eff6ff);
}

.rank-section {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

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

.section-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 17px;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  box-shadow: var(--soft-shadow);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--rose-500);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.32);
}

.rank-badge {
  left: 12px;
  right: auto;
  min-width: 34px;
  text-align: center;
  background: var(--orange-500);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-body strong {
  font-size: 17px;
  line-height: 1.35;
  color: var(--slate-900);
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
  color: var(--blue-700);
}

.movie-card-body em {
  min-height: 42px;
  font-style: normal;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--slate-300);
}

.wide-card .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 24px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 15px;
  color: var(--blue-800);
  background: var(--white);
  font-weight: 900;
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card em {
  position: relative;
  z-index: 2;
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
}

.tone-02,
.tone-07,
.tone-12,
.tone-17 {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.tone-03,
.tone-08,
.tone-13,
.tone-18 {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.tone-04,
.tone-09,
.tone-14,
.tone-19 {
  background: linear-gradient(135deg, #0f766e, #06b6d4);
}

.tone-05,
.tone-10,
.tone-15,
.tone-20 {
  background: linear-gradient(135deg, #be123c, #7c2d12);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tag-cloud a:hover {
  transform: translateY(-3px);
  color: var(--rose-500);
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
  padding: 86px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -50%;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 22px 0 14px;
  max-width: 860px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.compact-actions {
  margin-top: 26px;
}

.page-switcher {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}

.page-switcher a {
  flex: 1;
  padding: 18px 20px;
  border-radius: 16px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-weight: 800;
  text-align: center;
}

.large-search {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  max-width: 720px;
}

.large-search input {
  flex: 1;
}

.search-summary {
  margin: 0 0 22px;
  color: var(--slate-600);
  font-weight: 700;
}

.search-results:empty {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(4px);
  transform: scale(1.04);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78) 55%, rgba(15, 23, 42, 0.32));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 76px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 16px;
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.player-section {
  padding: 68px 0;
  background: var(--slate-950);
  color: var(--white);
}

.player-heading {
  margin-bottom: 22px;
}

.player-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.player-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 32px;
  text-indent: 4px;
}

.play-layer strong {
  font-size: 20px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.detail-article,
.info-card,
.article-content {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.detail-article,
.article-content {
  padding: 34px;
}

.detail-article h2,
.article-content h2,
.info-card h2 {
  margin: 0 0 18px;
  color: var(--slate-900);
  font-size: 26px;
}

.detail-article h2:not(:first-child),
.article-content h2:not(:first-child) {
  margin-top: 34px;
}

.detail-article p,
.article-content p {
  margin: 0 0 16px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.95;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.info-card {
  padding: 24px;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-card dt {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.info-card dd {
  margin: -8px 0 0;
  color: var(--slate-900);
  line-height: 1.65;
}

.wrap-tags {
  gap: 10px;
}

.site-footer {
  color: var(--slate-200);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-logo .brand-mark {
  color: var(--white);
  background: var(--blue-600);
}

.footer-brand p {
  max-width: 360px;
  color: var(--slate-200);
  line-height: 1.8;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

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

.footer-group a {
  color: var(--slate-200);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-group a:hover {
  color: var(--blue-100);
  transform: translateX(4px);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--slate-200);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 14px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 4px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    height: auto;
    padding: 12px 0;
  }

  .nav-link::after,
  .nav-dropdown-panel {
    display: none;
  }

  .header-search {
    width: 100%;
    order: 6;
  }

  .header-search input {
    flex: 1;
    min-width: 0;
  }

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

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

  .detail-poster {
    width: min(280px, 75vw);
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .brand-text strong {
    font-size: 19px;
  }

  .brand-text em {
    font-size: 11px;
  }

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

  .hero-content {
    padding: 90px 0 110px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .content-section {
    padding: 52px 0;
  }

  .movie-grid,
  .ranking-grid,
  .ranking-page-grid,
  .category-grid,
  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .movie-card-body em {
    display: none;
  }

  .category-card {
    min-height: 170px;
    padding: 20px;
  }

  .page-switcher,
  .large-search,
  .footer-bottom {
    flex-direction: column;
  }

  .detail-layout {
    padding: 52px 0;
    gap: 26px;
  }

  .detail-article,
  .article-content {
    padding: 24px;
  }

  .video-shell {
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .ranking-grid,
  .ranking-page-grid,
  .category-grid,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions,
  .detail-actions {
    display: grid;
  }
}
