:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #fbbf24;
  --amber-dark: #d97706;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 2%, rgba(251, 191, 36, 0.12), transparent 30rem),
    radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0f172a;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #fde68a);
  box-shadow: 0 12px 34px rgba(251, 191, 36, 0.35);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.nav-link {
  position: relative;
  padding: 22px 0;
  transition: color 0.24s ease;
}

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

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

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

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

.header-search input,
.mobile-search input,
.search-panel input {
  min-width: 0;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.62);
  outline: none;
  transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.header-search input {
  width: 245px;
  padding: 10px 15px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus {
  border-color: rgba(251, 191, 36, 0.74);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12);
}

.header-search button,
.mobile-search button,
.search-panel button,
.hero-cta,
.outline-cta,
.player-start,
.section-more,
.pager a,
.link-pill {
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.hero-cta:hover,
.player-start:hover,
.section-more:hover,
.pager a:hover,
.link-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.24);
  filter: brightness(1.04);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-panel nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 8px;
  padding: 18px 0 10px;
}

.mobile-link {
  color: var(--muted-strong);
  padding: 10px 12px;
  border-radius: 14px;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
}

.mobile-search {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 15px;
}

main {
  min-height: 58vh;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 68px);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-slide.active .hero-bg {
  animation: heroDrift 9s ease forwards;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.86) 42%, rgba(15, 23, 42, 0.38) 72%, rgba(2, 6, 23, 0.9) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 45%, rgba(2, 6, 23, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 58px;
  padding: 58px 0 120px;
}

.hero-text {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: var(--amber);
}

.hero-summary {
  max-width: 690px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-meta,
.detail-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
}

.hero-meta span,
.detail-meta span,
.page-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.hero-cta,
.outline-cta,
.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.outline-cta {
  color: var(--text);
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.outline-cta:hover {
  color: var(--amber);
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.62);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.hero-card {
  position: relative;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-5deg) rotateX(3deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.hero-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.hero-card-caption strong {
  display: block;
  color: var(--amber);
  margin-bottom: 5px;
}

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

.hero-dot {
  width: 42px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--amber);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 56px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.64)),
    radial-gradient(circle at 78% 8%, rgba(251, 191, 36, 0.14), transparent 26rem);
}

.page-hero-inner,
.content-section,
.detail-layout,
.breadcrumb,
.search-panel,
.player-section {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1,
.detail-title h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.page-hero p,
.detail-title p {
  max-width: 780px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.06rem;
}

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

.content-section.panel {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.section-head h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.86));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 191, 36, 0.44);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.42s ease, filter 0.42s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.05);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--amber);
}

.movie-meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.movie-line {
  display: -webkit-box;
  min-height: 3.9em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.filter-links a,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.8rem;
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.filter-links a {
  min-height: 36px;
  font-weight: 750;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.filter-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.16);
}

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

.category-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.13), rgba(30, 41, 59, 0.82)),
    var(--panel-soft);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.46);
}

.category-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.36rem;
}

.category-card span {
  color: var(--muted-strong);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(251, 191, 36, 0.38);
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.rank-main {
  min-width: 0;
}

.rank-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.rank-heading strong {
  min-width: 42px;
  color: var(--amber);
  font-size: 1.3rem;
}

.rank-heading a {
  font-weight: 850;
  font-size: 1.08rem;
}

.rank-heading a:hover {
  color: var(--amber);
}

.rank-main p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.rank-main span {
  display: block;
  color: var(--muted-strong);
}

.search-panel {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-panel input {
  width: 100%;
  padding: 14px 18px;
}

.search-panel button {
  padding: 0 24px;
}

.search-empty {
  display: none;
  margin-top: 18px;
  color: var(--muted-strong);
}

.search-empty.show {
  display: block;
}

.breadcrumb {
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-hero {
  padding-top: 38px;
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.72)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.26));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
  padding: 44px 0 58px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.detail-title {
  min-width: 0;
}

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

.player-section {
  padding: 48px 0 20px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(251, 191, 36, 0.18), rgba(2, 6, 23, 0.34) 38%, rgba(2, 6, 23, 0.7));
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-start {
  min-width: 152px;
  min-height: 52px;
  padding: 0 28px;
  font-size: 1.05rem;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.detail-content {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.article-box,
.sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.article-box {
  padding: 30px;
}

.article-box + .article-box {
  margin-top: 22px;
}

.article-box h2,
.sidebar-box h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
  color: var(--amber);
}

.article-box p {
  margin: 0 0 18px;
  color: var(--muted-strong);
}

.sidebar-box {
  padding: 22px;
}

.sidebar-list {
  display: grid;
  gap: 12px;
}

.sidebar-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.46);
  transition: background 0.24s ease, transform 0.24s ease;
}

.sidebar-list a:hover {
  background: rgba(251, 191, 36, 0.1);
  transform: translateX(3px);
}

.sidebar-list img {
  width: 58px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.sidebar-list strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.94rem;
}

.sidebar-list span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px 0 0;
}

.pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
}

.pager a.current {
  color: var(--amber);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.site-footer {
  margin-top: 58px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), #020617);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 1fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-brand p,
.footer-col a,
.footer-tags div a {
  color: var(--muted);
}

.footer-brand p {
  max-width: 420px;
  margin: 16px 0 0;
}

.footer-col h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1rem;
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags div a {
  display: inline-flex;
  margin: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .desktop-nav {
    gap: 15px;
  }

  .header-search input {
    width: 200px;
  }
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 42px;
  }

  .hero-card {
    max-width: 320px;
    transform: none;
  }

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

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

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

@media (max-width: 740px) {
  .header-inner,
  .page-hero-inner,
  .content-section,
  .detail-layout,
  .breadcrumb,
  .search-panel,
  .player-section,
  .detail-content,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .hero-content {
    width: min(100% - 24px, 1280px);
    min-height: calc(100vh - 68px);
    padding-bottom: 90px;
  }

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

  .hero-actions,
  .section-head,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-cta,
  .outline-cta,
  .section-more,
  .link-pill {
    width: 100%;
  }

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

  .movie-line {
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .category-grid {
    gap: 14px;
  }

  .content-section.panel,
  .article-box,
  .sidebar-box,
  .search-panel {
    padding: 18px;
  }

  .rank-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

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