* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #f7f7fb;
  color: #1f2937;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.brand-text {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.15;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: #ea580c;
  transition: right 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ea580c;
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

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

.header-search input,
.mobile-search input,
.inline-filter input {
  width: 240px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 11px 16px;
  color: #111827;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.inline-filter input:focus {
  border-color: #fb923c;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search input {
  width: 100%;
}

.mobile-nav,
.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav-link,
.category-chip {
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 9px 14px;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 48%, #be185d 100%);
  color: #ffffff;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.32;
}

.hero-glow.one {
  left: -140px;
  top: -110px;
  background: #fde68a;
}

.hero-glow.two {
  right: -120px;
  bottom: -100px;
  background: #7c3aed;
}

.hero-inner {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 52px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-kicker {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
}

.hero-copy h1 {
  max-width: 860px;
  margin: 22px 0 12px;
  font-size: clamp(42px, 6.3vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  color: #ffedd5;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.hero-poster {
  position: relative;
  display: block;
  width: min(360px, 100%);
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 74px rgba(15, 23, 42, 0.34);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  z-index: 1;
  pointer-events: none;
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img {
  transform: scale(1.07);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  padding: 8px 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

main {
  min-height: 70vh;
}

.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.warm-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1200px) / 2));
  padding-right: max(16px, calc((100% - 1200px) / 2));
  background: linear-gradient(180deg, #fff7ed, rgba(255, 247, 237, 0));
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #6b7280;
}

.section-more {
  display: inline-flex;
  min-width: max-content;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 800;
}

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

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

.search-grid {
  align-items: start;
}

.inline-filter {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.inline-filter input {
  width: min(100%, 520px);
  background: #ffffff;
}

.wide-filter input {
  width: min(100%, 720px);
}

.sticky-filter {
  position: sticky;
  top: 92px;
  z-index: 12;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.movie-card {
  min-width: 0;
}

.movie-card.hidden-card,
.rank-card.hidden-card {
  display: none;
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

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

.movie-card-link:hover .poster-wrap img {
  transform: scale(1.07);
}

.year-badge,
.type-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.year-badge {
  left: 12px;
  background: rgba(249, 115, 22, 0.92);
}

.type-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-card-body h2 {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  color: #9ca3af;
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  background: #fff7ed;
  color: #c2410c;
}

.featured .movie-card-link {
  position: relative;
  min-height: 520px;
  color: #ffffff;
  background: #111827;
}

.featured .poster-wrap {
  position: absolute;
  inset: 0;
}

.featured .poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82));
}

.featured .poster-wrap img {
  height: 100%;
  aspect-ratio: auto;
}

.featured .movie-card-body {
  position: relative;
  justify-content: flex-end;
  min-height: 520px;
  padding: 28px;
}

.featured .movie-card-body h2,
.featured .movie-card-body p {
  color: #ffffff;
}

.featured .movie-meta {
  color: rgba(255, 255, 255, 0.78);
}

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

.category-card a,
.category-overview-card a {
  display: block;
  height: 100%;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card a:hover,
.category-overview-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.15);
}

.category-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.category-card h2,
.category-overview-card h2 {
  margin: 18px 0 8px;
  color: #111827;
  font-size: 24px;
}

.category-card p,
.category-overview-card p {
  margin: 0 0 16px;
  color: #6b7280;
}

.category-sample,
.category-title-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-sample a,
.category-title-links a {
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.category-poster-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.category-poster-row img {
  width: 31%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.orange-hero,
.category-hero,
.rank-hero,
.search-hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  padding: 56px max(16px, calc((100% - 1200px) / 2));
}

.search-hero {
  grid-template-columns: minmax(0, 1fr);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 25% 25%, #ffffff 0 2px, transparent 2px), radial-gradient(circle at 75% 75%, #ffffff 0 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.page-hero-inner span,
.detail-category {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 13px;
  font-weight: 800;
}

.page-hero-inner h1 {
  margin: 18px 0 12px;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04;
}

.page-hero-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

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

.page-hero-posters,
.rank-topline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-hero-posters img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.28);
}

.page-hero-posters a:nth-child(2),
.page-hero-posters a:nth-child(4) {
  transform: translateY(24px);
}

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

.ranking-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 20px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-item img {
  width: 68px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-number,
.big-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  font-weight: 900;
}

.ranking-copy {
  display: grid;
  min-width: 0;
}

.ranking-copy strong,
.ranking-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy strong {
  color: #111827;
  font-size: 16px;
}

.ranking-copy em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.rank-topline {
  grid-template-columns: 1fr;
}

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

.rank-card a {
  position: relative;
  display: grid;
  grid-template-columns: 52px 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 22px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.rank-card img {
  width: 112px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
}

.big-rank {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.rank-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 24px;
}

.rank-card p {
  margin: 0 0 10px;
  color: #6b7280;
}

.rank-card span:last-child {
  color: #ea580c;
  font-weight: 800;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(0.9);
  transform: scale(1.12);
  opacity: 0.35;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.84));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
  color: #fed7aa;
}

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

.detail-poster img {
  width: 270px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
}

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

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

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  padding: 7px 12px;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags span {
  background: rgba(251, 146, 60, 0.22);
}

.player-section {
  padding-top: 48px;
  padding-bottom: 24px;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
  color: #ffffff;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.35);
}

.player-cover strong {
  max-width: 90%;
  font-size: clamp(22px, 3vw, 34px);
  text-align: center;
}

.detail-text-section {
  padding-top: 24px;
}

.detail-article {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 26px;
  background: #ffffff;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 26px;
}

.detail-article p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

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

.info-list div {
  border-radius: 16px;
  background: #f9fafb;
  padding: 14px 16px;
}

.info-list dt {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 36px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) minmax(220px, 1fr);
  gap: 34px;
  padding: 46px 0;
}

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.footer-brand p {
  max-width: 480px;
  color: #9ca3af;
}

.footer-group h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  padding: 8px 12px;
}

.footer-links a:hover {
  background: rgba(249, 115, 22, 0.22);
  color: #ffffff;
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

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

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

@media (max-width: 820px) {
  .hero-slider,
  .hero-inner {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
    padding: 38px 0 90px;
  }

  .hero-poster {
    width: min(240px, 70vw);
    margin: 0;
  }

  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .orange-hero,
  .category-hero,
  .rank-hero {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster img {
    width: min(260px, 78vw);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-card a {
    grid-template-columns: 42px 88px minmax(0, 1fr);
  }

  .rank-card img {
    width: 88px;
    height: 118px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 24px, 1200px);
    height: 68px;
  }

  .brand-text {
    max-width: 210px;
    font-size: 16px;
  }

  .content-section {
    width: min(100% - 24px, 1200px);
    padding: 42px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .featured .movie-card-link,
  .featured .movie-card-body {
    min-height: 430px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

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

  .big-rank {
    position: absolute;
    top: 18px;
    left: 18px;
  }

  .rank-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
}
