:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-deep: 0 30px 80px rgba(2, 6, 23, 0.32);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 48%, #f8fafc 100%);
}

body.menu-open {
  overflow: hidden;
}

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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.36);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: rgba(249, 115, 22, 0.16);
}

.top-search {
  display: flex;
  align-items: center;
  width: 286px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.top-search input,
.hero-search input,
.filter-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.top-search input {
  padding: 11px 14px;
  color: #fff;
}

.top-search input::placeholder {
  color: #94a3b8;
}

.top-search button,
.hero-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  font-weight: 800;
  cursor: pointer;
}

.top-search button {
  padding: 11px 16px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #fff;
}

.mobile-menu {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--slate-900);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  display: block;
  padding: 13px 14px;
  color: #cbd5e1;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--slate-950), #431407, var(--slate-900));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.24), transparent 28%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 22%), linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.06) 75%, transparent 75%, transparent);
  background-size: auto, auto, 72px 72px;
  opacity: 0.88;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  filter: saturate(1.08) contrast(1.08);
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(67, 20, 7, 0.58) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 4;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fed7aa;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 850;
}

.eyebrow.dark {
  color: var(--orange-600);
}

.hero-title,
.hero-copy .like-heading {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 18px 0 16px;
  color: var(--orange-400);
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p:not(.eyebrow):not(.hero-title) {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags {
  margin: 28px 0 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 750;
}

.hero-tags span {
  padding: 8px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.34);
}

.primary-button:hover,
.secondary-button:hover,
.movie-card:hover,
.category-card:hover,
.category-overview:hover,
.rank-item:hover {
  transform: translateY(-3px);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-poster-card {
  position: relative;
}

.hero-poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4.15;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.hero-poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 55%);
}

.hero-poster-link span,
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.38);
}

.hero-poster-link span {
  width: 76px;
  height: 76px;
  font-size: 28px;
  padding-left: 5px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.hero-quick {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 20px;
  align-items: center;
  margin-top: -42px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-search {
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #fed7aa;
}

.hero-search input {
  padding: 16px 18px;
  color: var(--slate-900);
}

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

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a,
.text-link,
.tag-links a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-category-links a {
  padding: 11px 15px;
  color: var(--slate-700);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.section {
  padding: 76px 0;
}

.slim-section {
  padding-top: 42px;
}

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

.section-head h2,
.category-block h2,
.category-feature h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.compact-head {
  margin-bottom: 18px;
}

.text-link {
  padding: 11px 16px;
  color: var(--orange-600);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.light-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: #fed7aa;
  box-shadow: var(--shadow-soft);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--slate-100), #fff7ed);
}

.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.movie-card:hover .poster {
  transform: scale(1.07);
  filter: brightness(0.78);
}

.play-badge {
  width: 54px;
  height: 54px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

.meta-line em,
.meta-line i {
  font-style: normal;
}

.meta-line em {
  padding: 4px 8px;
  color: var(--orange-600);
  border-radius: 8px;
  background: #fff7ed;
  font-weight: 800;
}

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

.movie-card:hover strong {
  color: var(--orange-600);
}

.movie-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  padding: 6px 8px;
  color: var(--slate-500);
  background: var(--slate-50);
  font-size: 12px;
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 16 / 9;
}

.movie-card.compact .movie-card-body {
  padding: 15px;
}

.movie-card.compact strong {
  font-size: 16px;
}

.split-section {
  background: #fff;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 38px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border-radius: 18px;
  color: var(--slate-900);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  border-color: #fed7aa;
  box-shadow: var(--shadow-soft);
}

.rank-num {
  color: var(--orange-500);
  font-size: 24px;
  font-weight: 950;
}

.rank-item img {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-100);
}

.rank-item strong,
.rank-item small {
  display: block;
}

.rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.rank-item small {
  overflow: hidden;
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: var(--orange-600);
  font-style: normal;
  font-weight: 950;
}

.category-block {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow-soft);
}

.category-grid.small,
.category-overview-grid {
  display: grid;
  gap: 14px;
}

.category-grid.small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.category-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card span {
  color: var(--orange-400);
  font-weight: 900;
}

.category-card strong {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.dark-section {
  color: #fff;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.dark-section .movie-card {
  color: #fff;
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
}

.dark-section .movie-card strong {
  color: #fff;
}

.dark-section .movie-card small,
.dark-section .meta-line,
.dark-section .rank-item small {
  color: #cbd5e1;
}

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

.page-hero,
.detail-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(90deg, var(--slate-950), #7c2d12, var(--slate-900));
  overflow: hidden;
}

.page-hero {
  padding: 70px 0 64px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 30%, rgba(251, 146, 60, 0.26), transparent 28%), radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.1), transparent 24%);
}

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

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

.breadcrumbs a:hover {
  color: var(--orange-400);
}

.breadcrumbs strong {
  color: #fff;
}

.page-hero h1,
.detail-head h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-head p {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.75;
}

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

.category-overview {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-overview:hover {
  border-color: #fed7aa;
  box-shadow: var(--shadow-soft);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-100);
}

.category-copy {
  display: grid;
  gap: 10px;
}

.category-copy em {
  color: var(--orange-600);
  font-style: normal;
  font-size: 24px;
  font-weight: 950;
}

.category-copy strong {
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.7;
}

.category-feature {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  margin-bottom: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: var(--shadow-soft);
}

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

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.filter-search {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--slate-50);
  border: 1px solid #e2e8f0;
}

.filter-input {
  color: var(--slate-900);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  color: var(--slate-600);
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #fff;
  border-color: var(--orange-500);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

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

.detail-backdrop {
  filter: blur(2px) saturate(1.1);
  transform: scale(1.02);
}

.detail-head {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
}

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

.detail-cover {
  width: 260px;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-deep);
}

.detail-main-section {
  padding-top: 48px;
}

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

.detail-primary {
  display: grid;
  gap: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow-deep);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.3));
  cursor: pointer;
  z-index: 2;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.play-ring {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
  font-size: 32px;
}

.player-overlay strong {
  max-width: min(86%, 620px);
  font-size: 22px;
  line-height: 1.4;
}

.content-card,
.side-card {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.side-card h2,
.related-block h2 {
  margin: 0 0 18px;
  color: var(--slate-900);
  font-size: 26px;
  line-height: 1.2;
}

.content-card h2:not(:first-child) {
  margin-top: 30px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 2;
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.tag-links a {
  padding: 9px 12px;
  color: var(--orange-600);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 13px;
}

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

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

.side-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.side-card dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--slate-800);
  line-height: 1.6;
}

.primary-button.full {
  width: 100%;
}

.side-rank .rank-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.side-rank .rank-item img {
  display: none;
}

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

.rankings-wrap .filter-panel {
  margin-bottom: 24px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 40px;
  padding: 54px 0;
}

.footer-brand p {
  max-width: 480px;
  margin: 18px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  padding: 22px 16px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.no-results {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--slate-500);
  text-align: center;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

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

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

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

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

  .detail-sidebar {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .header-inner {
    min-height: 66px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 92px;
  }

  .hero-poster-card {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

  .hero-quick {
    grid-template-columns: 1fr;
  }

  .split-layout,
  .category-feature,
  .category-overview-grid,
  .footer-grid,
  .detail-title-row {
    grid-template-columns: 1fr;
  }

  .category-overview {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: 210px;
  }

  .rank-page-list,
  .mini-ranks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

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

  .hero-copy p:not(.eyebrow):not(.hero-title),
  .page-hero p,
  .detail-head p {
    font-size: 16px;
  }

  .hero-quick {
    margin-top: -28px;
    padding: 16px;
    border-radius: 20px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 18px;
  }

  .hero-search button {
    min-height: 48px;
  }

  .section {
    padding: 52px 0;
  }

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

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

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

  .movie-card strong {
    font-size: 15px;
  }

  .movie-card small {
    font-size: 13px;
  }

  .rank-item {
    grid-template-columns: 34px 64px minmax(0, 1fr);
  }

  .rank-item em {
    display: none;
  }

  .rank-item img {
    width: 64px;
    height: 48px;
  }

  .category-grid.small {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 48px 0;
  }

  .detail-hero,
  .detail-head {
    min-height: auto;
  }

  .detail-head {
    padding: 42px 0;
  }

  .detail-cover {
    display: none;
  }

  .content-card,
  .side-card {
    padding: 20px;
    border-radius: 20px;
  }

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

  .play-ring {
    width: 70px;
    height: 70px;
  }

  .footer-grid {
    padding: 38px 0;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .featured-grid,
  .latest-grid,
  .catalog-grid,
  .related-grid,
  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags span {
    font-size: 12px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
