:root {
  --bg: #fff7ed;
  --bg-soft: #fff1e6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.25);
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #facc15;
  --green: #16a34a;
  --cyan: #06b6d4;
  --purple: #9333ea;
  --shadow: 0 20px 60px rgba(127, 29, 29, 0.12);
  --radius: 24px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 34rem),
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.15), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #ecfdf5 48%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.26);
  transition: transform 0.3s ease;
}

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

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

.brand-text strong {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #dc2626, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: normal;
}

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

.nav-link {
  padding: 9px 14px;
  color: #374151;
  border-radius: 999px;
  font-weight: 650;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #16a34a;
  background: #ecfdf5;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 30vw);
}

.header-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.header-search input {
  width: 100%;
  padding: 11px 14px;
}

.header-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(22, 163, 74, 0.7);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
  background: #ffffff;
}

.header-search button,
.big-search button {
  border: 0;
  color: #ffffff;
  font-weight: 750;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  padding: 11px 18px;
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.22);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #111827;
  background: #f3f4f6;
}

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

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

.mobile-panel nav,
.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-panel a,
.mobile-cats a {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: #374151;
  font-weight: 700;
}

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 46%, #db2777 100%);
}

.hero-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.28;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero-glow-one {
  top: 60px;
  left: 8%;
  background: #fde047;
}

.hero-glow-two {
  right: 6%;
  bottom: 40px;
  background: #fb7185;
  animation-delay: 1.5s;
}

@keyframes pulseGlow {
  from {
    transform: scale(0.96);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: center;
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 34px;
  overflow: hidden;
  opacity: 0.28;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.16));
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.2);
}

.hero-content {
  max-width: 680px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-summary {
  max-width: 620px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.detail-tags a {
  background: #fff7ed;
  color: #c2410c;
}

.hero-actions,
.detail-actions,
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 26px;
  color: #dc2626;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(127, 29, 29, 0.2);
}

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

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.small-btn {
  min-height: 42px;
  padding: 0 20px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06));
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.36);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-link img,
.detail-poster img,
.rank-poster img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-missing {
  opacity: 0;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 850;
  background: linear-gradient(135deg, #ef4444, #f97316, #22c55e);
}

.hero-poster span:last-child {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.52);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  border: 0;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 1.6rem;
}

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

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

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

.hero-side {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 58px rgba(127, 29, 29, 0.18);
}

.hero-side h2 {
  margin: 0 0 18px;
  font-size: 1.75rem;
}

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

.hero-mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-mini-card:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}

.hero-mini-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.hero-mini-card span {
  display: grid;
  gap: 6px;
}

.hero-mini-card strong {
  color: #ffffff;
}

.hero-mini-card em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 0.84rem;
}

.quick-search-panel,
.section-block,
.category-strip,
.split-section,
.filter-bar,
.rank-list,
.search-page-panel,
.category-overview-grid,
.detail-layout {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 24px;
  align-items: center;
  margin-top: -54px;
  padding: 28px;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.ranking-panel h2,
.content-card h2,
.info-panel h2 {
  margin: 0;
  color: #111827;
  line-height: 1.15;
}

.big-search {
  display: flex;
  gap: 12px;
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
}

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

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.category-tile {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--tile-color), color-mix(in srgb, var(--tile-color), #000 16%));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--tile-color), transparent 70%);
}

.category-tile::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.category-tile strong,
.category-tile span {
  position: relative;
  display: block;
}

.category-tile strong {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.section-block {
  margin-top: 58px;
  margin-bottom: 58px;
}

.no-margin {
  margin: 0;
}

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

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading > a {
  color: #dc2626;
  font-weight: 850;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  backdrop-filter: blur(12px);
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 24px 54px rgba(127, 29, 29, 0.14);
}

.movie-card-large {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ef4444, #f97316, #22c55e);
}

.movie-card-large .poster-link {
  height: 100%;
  min-height: 310px;
}

.poster-link img {
  position: relative;
  z-index: 2;
  transition: transform 0.38s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.5));
}

.badge,
.score-badge {
  position: absolute;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.badge-hot {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.score-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.62);
}

.movie-info {
  padding: 17px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.movie-info h3 {
  margin: 9px 0 8px;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-content h2 a:hover,
.content-card a:hover {
  color: #dc2626;
}

.movie-info p {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 0.92rem;
}

.card-actions {
  justify-content: space-between;
  margin-top: 16px;
  color: #9ca3af;
  font-size: 0.83rem;
}

.watch-link {
  padding: 8px 13px;
  color: #dc2626;
  background: #fff7ed;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(160deg, #111827, #7f1d1d);
  color: #ffffff;
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.18);
}

.ranking-panel h2 {
  color: #ffffff;
}

.ranking-panel ol {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ranking-panel li a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.ranking-panel li a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ranking-panel li span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  font-weight: 900;
}

.ranking-panel li strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-panel li em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  font-size: 0.78rem;
}

.page-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316, #db2777);
  overflow: hidden;
  position: relative;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(28px);
}

.page-hero::before {
  width: 220px;
  height: 220px;
  top: -60px;
  left: 8%;
}

.page-hero::after {
  width: 300px;
  height: 300px;
  right: 9%;
  bottom: -90px;
}

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

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.06em;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.category-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--hero-color), #ffffff 18%), var(--hero-color));
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.filter-bar {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 14px;
}

.filter-bar span {
  color: #6b7280;
  font-weight: 800;
  white-space: nowrap;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
  margin-bottom: 60px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

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

.category-cover-stack img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tile-color), #f97316);
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.category-overview-card p:not(.eyebrow) {
  color: var(--muted);
}

.rank-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 60px;
}

.rank-row {
  display: grid;
  grid-template-columns: 60px 82px minmax(0, 1fr) 130px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.rank-index {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 1.2rem;
  font-weight: 950;
}

.rank-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.rank-content h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rank-content p {
  margin: 0 0 8px;
  color: #6b7280;
}

.rank-score {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.rank-score strong {
  color: #dc2626;
  font-size: 1.8rem;
}

.rank-score span {
  color: #6b7280;
  font-size: 0.84rem;
}

.search-page-panel {
  margin-top: 32px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.search-page-form {
  max-width: 860px;
}

.search-summary {
  margin-top: 14px;
  color: #6b7280;
  font-weight: 700;
}

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

.detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.38;
}

.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.5)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 45%);
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.12);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

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

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

.breadcrumb em {
  color: #ffffff;
  font-style: normal;
}

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

.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32);
}

.detail-headline h1 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-headline p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 36px;
  margin-bottom: 40px;
}

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-overlay span {
  display: inline-flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.36);
  font-size: 2rem;
}

.play-overlay strong {
  font-size: 1.2rem;
}

.player-message {
  margin: 0;
  padding: 12px 18px 16px;
  color: rgba(255, 255, 255, 0.72);
  background: #000000;
}

.content-card,
.info-panel {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.content-card p {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 1.02rem;
}

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.info-panel dt {
  color: #9ca3af;
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
  color: #374151;
  font-weight: 700;
}

.related-section {
  margin-bottom: 72px;
}

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

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

.site-footer {
  margin-top: 60px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.site-footer p {
  color: #9ca3af;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: #facc15;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

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

  .header-search {
    margin-left: auto;
    width: min(360px, 44vw);
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-shell,
  .hero-slide,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .hero-shell {
    min-height: 820px;
  }

  .hero-side {
    display: none;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-poster {
    max-width: 300px;
    justify-self: center;
  }

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

  .ranking-panel {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-text em {
    display: none;
  }

  .header-search {
    display: none;
  }

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

  .hero-slider {
    min-height: 700px;
  }

  .hero-slide {
    gap: 20px;
  }

  .hero-content {
    padding: 16px 0;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .hero-controls {
    left: 0;
    bottom: 8px;
  }

  .quick-search-panel,
  .big-search,
  .section-heading,
  .filter-bar,
  .rank-row,
  .detail-headline,
  .movie-card-large,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .quick-search-panel {
    margin-top: 24px;
  }

  .big-search {
    display: grid;
  }

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

  .filter-bar {
    position: static;
  }

  .rank-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-score {
    grid-column: 2 / -1;
    justify-items: start;
  }

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

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

@media (max-width: 520px) {
  .category-strip,
  .movie-grid,
  .compact-grid,
  .two-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .hero-shell {
    min-height: 820px;
  }

  .hero-slider {
    min-height: 760px;
  }

  .page-hero {
    min-height: 260px;
  }

  .content-card,
  .info-panel,
  .quick-search-panel {
    padding: 18px;
  }
}
