* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
}

.brand-text {
  font-size: 24px;
  white-space: nowrap;
}

.header-search {
  width: min(360px, 44vw);
  position: relative;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: #334155;
  padding: 11px 48px 11px 18px;
  border-radius: 999px;
}

.header-search input:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.36);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  background: #f59e0b;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.desktop-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 10px;
  transition: 0.25s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #fbbf24;
  background: rgba(51, 65, 85, 0.88);
}

.mobile-nav {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: #1e293b;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta span,
.detail-meta span,
.tag-cloud span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span,
.detail-meta span {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.95);
  padding: 7px 12px;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0;
  line-height: 1.08;
}

.hero-content h1 {
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 52px);
}

.hero-content p {
  max-width: 680px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-cloud span {
  color: #fde68a;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.28);
  padding: 7px 11px;
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: #f59e0b;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.primary-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.secondary-btn {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.24);
}

.secondary-btn:hover {
  background: rgba(71, 85, 105, 0.92);
  transform: translateY(-2px);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.58);
  transition: 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #f59e0b;
}

.quick-search-panel,
.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 0;
}

.quick-search-panel {
  margin-top: -54px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.quick-search-panel form,
.filter-panel {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.quick-search-panel form {
  padding: 22px;
}

.quick-search-panel label {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

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

.quick-search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  outline: 0;
  padding: 13px 15px;
  color: #0f172a;
  background: #f8fafc;
}

.quick-search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.quick-search-panel button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #ffffff;
  background: #f59e0b;
  padding: 0 24px;
  font-weight: 800;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-links a {
  color: #ffffff;
  background: #1e293b;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading span {
  color: #f59e0b;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading a {
  margin-left: auto;
  color: #f59e0b;
  font-weight: 800;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.featured-large {
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.featured-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.featured-large:hover img,
.movie-card:hover img,
.compact-card:hover img,
.poster-item:hover img,
.detail-poster:hover img {
  transform: scale(1.08);
}

.featured-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.16));
}

.featured-large div {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #ffffff;
}

.featured-large span,
.compact-card span,
.poster-item span {
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
}

.featured-large h3 {
  margin: 8px 0;
  font-size: 32px;
}

.featured-large p {
  max-width: 760px;
  color: #e2e8f0;
  line-height: 1.7;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 34px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.compact-card img {
  width: 128px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  transition: 0.5s ease;
}

.compact-card strong {
  display: block;
  margin: 7px 0;
  color: #0f172a;
}

.compact-card em {
  display: block;
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
}

.category-tile {
  min-height: 220px;
  color: #ffffff;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.42;
  transition: 0.5s ease;
}

.category-tile::after,
.category-hero::after,
.ranking-hero::after,
.slim-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.94;
}

.category-tile div {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
}

.category-tile span {
  display: block;
  color: #fde68a;
  font-weight: 800;
  margin-bottom: 8px;
}

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

.category-tile p {
  margin: 0;
  color: #f8fafc;
  line-height: 1.55;
  font-size: 14px;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.62;
}

.tone-red::after { background: linear-gradient(135deg, rgba(239, 68, 68, 0.84), rgba(249, 115, 22, 0.84)); }
.tone-blue::after { background: linear-gradient(135deg, rgba(37, 99, 235, 0.84), rgba(6, 182, 212, 0.84)); }
.tone-pink::after { background: linear-gradient(135deg, rgba(236, 72, 153, 0.84), rgba(244, 63, 94, 0.84)); }
.tone-amber::after { background: linear-gradient(135deg, rgba(245, 158, 11, 0.86), rgba(234, 179, 8, 0.86)); }
.tone-rose::after { background: linear-gradient(135deg, rgba(225, 29, 72, 0.84), rgba(251, 113, 133, 0.84)); }
.tone-cyan::after { background: linear-gradient(135deg, rgba(8, 145, 178, 0.84), rgba(14, 165, 233, 0.84)); }
.tone-green::after { background: linear-gradient(135deg, rgba(22, 163, 74, 0.84), rgba(20, 184, 166, 0.84)); }
.tone-orange::after { background: linear-gradient(135deg, rgba(234, 88, 12, 0.84), rgba(245, 158, 11, 0.84)); }
.tone-indigo::after { background: linear-gradient(135deg, rgba(79, 70, 229, 0.84), rgba(124, 58, 237, 0.84)); }
.tone-yellow::after { background: linear-gradient(135deg, rgba(202, 138, 4, 0.86), rgba(245, 158, 11, 0.86)); }

.poster-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.poster-item {
  width: 190px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  background: #1e293b;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
  scroll-snap-align: start;
}

.poster-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.poster-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.12));
}

.poster-item span,
.poster-item strong {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
}

.poster-item span {
  bottom: 56px;
}

.poster-item strong {
  bottom: 18px;
  color: #ffffff;
  line-height: 1.35;
}

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

.movie-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.15);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1e293b;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.04));
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .card-shade {
  opacity: 1;
}

.year-badge,
.region-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  padding: 6px 10px;
}

.region-badge {
  left: 12px;
  bottom: 12px;
  background: #f59e0b;
  padding: 6px 10px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: #ef4444;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  color: #1e293b;
  font-size: 17px;
  line-height: 1.4;
  transition: 0.25s ease;
}

.card-link:hover h3 {
  color: #d97706;
}

.card-body p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 70px 24px;
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.page-hero span {
  color: #fde68a;
  font-weight: 900;
}

.page-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
  max-width: 760px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.slim-hero::after,
.ranking-hero::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(245, 158, 11, 0.72));
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(140px, 1fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  padding: 26px;
  background: #ffffff;
}

.category-overview-card::after {
  opacity: 0.08;
}

.category-overview-title {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 18px;
}

.category-overview-title span {
  display: block;
  color: #f59e0b;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-title strong {
  display: block;
  margin-top: 8px;
  color: #475569;
  line-height: 1.7;
}

.mini-card-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.ranking-row {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.ranking-row a {
  display: grid;
  grid-template-columns: 72px 142px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
}

.ranking-number {
  color: #f59e0b;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 142px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-info h3 {
  margin: 0 0 8px;
  color: #0f172a;
}

.ranking-info p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.6;
}

.ranking-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-info span {
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.detail-hero {
  min-height: 680px;
}

.detail-hero > img,
.detail-hero-shade {
  position: absolute;
  inset: 0;
}

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

.detail-hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.24));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 36px;
}

.breadcrumbs a:hover {
  color: #fbbf24;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 32px 72px rgba(2, 6, 23, 0.46);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  max-width: 860px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.08;
}

.detail-info p {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.85;
}

.detail-info .primary-btn {
  margin-top: 28px;
}

.watch-section {
  scroll-margin-top: 110px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.16), rgba(2, 6, 23, 0.45));
  transition: 0.25s ease;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #f59e0b;
  font-size: 36px;
  box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.2), 0 22px 44px rgba(2, 6, 23, 0.32);
  padding-left: 5px;
}

.play-layer:hover span {
  transform: scale(1.06);
}

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

.detail-text {
  display: grid;
  gap: 16px;
}

.detail-text h2 {
  margin: 0;
  color: #1e293b;
  font-size: 28px;
}

.detail-text p {
  margin: 0;
  color: #334155;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  line-height: 1.95;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-brand span {
  color: #f59e0b;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 14px;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .category-grid,
  .movie-grid,
  .mini-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.42));
  }

  .quick-search-panel {
    grid-template-columns: 1fr;
    margin-top: -38px;
  }

  .quick-links {
    justify-content: flex-start;
  }

  .quick-search-panel form div,
  .filter-panel,
  .ranking-row a {
    grid-template-columns: 1fr;
  }

  .featured-large {
    min-height: 320px;
  }

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

  .ranking-number {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-content,
  .quick-search-panel,
  .section-shell,
  .detail-hero-inner,
  .page-hero,
  .footer-grid,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-carousel {
    height: 610px;
  }

  .hero-content p,
  .page-hero p,
  .detail-info p {
    font-size: 16px;
  }

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

  .compact-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .compact-card img {
    width: 108px;
    height: 78px;
  }

  .poster-item {
    width: 160px;
  }

  .detail-layout {
    gap: 24px;
  }

  .play-layer span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
