:root {
  color-scheme: light;
  --site-orange: #ea580c;
  --site-red: #dc2626;
  --site-dark: #111827;
  --site-muted: #6b7280;
  --site-light: #f8fafc;
  --site-card: #ffffff;
  --site-border: #e5e7eb;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --site-radius: 20px;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: var(--site-dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  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, var(--site-orange), var(--site-red));
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.26);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.brand-copy strong {
  font-size: 21px;
}

.brand-copy small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.86;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #ffffff;
  font-weight: 650;
}

.desktop-nav a,
.nav-dropdown button {
  padding: 8px 0;
  color: #ffffff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown button:hover {
  opacity: 0.78;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 180px;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
  color: #374151;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #374151;
}

.dropdown-panel a:hover {
  background: #fff7ed;
  color: var(--site-orange);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input {
  width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  outline: none;
  padding: 10px 96px 10px 16px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.nav-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--site-orange);
  cursor: pointer;
  font-weight: 750;
  padding: 9px 16px;
}

.nav-search button {
  position: absolute;
  right: 4px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 9px 12px;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 18px;
  background: rgba(154, 52, 18, 0.98);
}

.mobile-nav a {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 10px 12px;
  text-align: center;
}

.mobile-nav.is-open {
  display: grid;
}

.hero-slider {
  position: relative;
  height: 510px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.06));
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 720px;
  margin: 14px 0 14px;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-kicker,
.eyebrow,
.section-title span,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.12);
  color: var(--site-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.hero-kicker {
  background: var(--site-orange);
  color: #ffffff;
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.btn-primary {
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  color: #ffffff;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

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

.intro-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin-top: -52px;
  border-radius: var(--site-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--site-shadow);
  padding: 28px;
  position: relative;
  z-index: 3;
  backdrop-filter: blur(14px);
}

.intro-panel h2,
.section-title h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

.intro-panel h2 {
  font-size: 28px;
}

.intro-panel p,
.page-hero p,
.content-card p,
.detail-one-line {
  margin-top: 10px;
  color: #4b5563;
  line-height: 1.85;
}

.hero-search,
.search-page-form,
.filter-row {
  display: flex;
  gap: 12px;
}

.hero-search input,
.search-page-form input,
.filter-row input,
.filter-row select,
.search-page-form select {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  outline: none;
  padding: 12px 16px;
}

.hero-search button,
.search-page-form button {
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  color: #ffffff;
  padding-inline: 22px;
}

.section-block,
.page-shell .container,
.highlight-band {
  margin-top: 54px;
}

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

.section-title h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 34px);
}

.section-title > a {
  color: var(--site-orange);
  font-weight: 800;
}

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

.category-tile {
  min-height: 154px;
  border-radius: 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  box-shadow: var(--site-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.category-tile span {
  font-size: 34px;
}

.category-tile strong {
  font-size: 19px;
}

.category-tile small {
  opacity: 0.86;
}

.from-orange.to-red,
.category-page-hero.from-orange.to-red {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.from-red.to-pink {
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

.from-blue.to-indigo {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.from-purple.to-violet {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.from-green.to-emerald {
  background: linear-gradient(135deg, #16a34a, #059669);
}

.from-slate.to-gray {
  background: linear-gradient(135deg, #334155, #111827);
}

.from-pink.to-rose {
  background: linear-gradient(135deg, #db2777, #e11d48);
}

.from-cyan.to-sky {
  background: linear-gradient(135deg, #0891b2, #0284c7);
}

.from-amber.to-yellow {
  background: linear-gradient(135deg, #d97706, #eab308);
}

.from-teal.to-lime {
  background: linear-gradient(135deg, #0f766e, #65a30d);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 18px;
  background: var(--site-card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease, opacity 0.2s ease;
}

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

.movie-chip,
.movie-year,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.movie-chip {
  top: 12px;
  left: 12px;
  background: var(--site-orange);
}

.movie-year {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--site-orange);
}

.movie-info p {
  display: -webkit-box;
  min-height: 46px;
  margin: 9px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: #6b7280;
  font-size: 12px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 140px 1fr;
}

.movie-card-compact .movie-poster {
  aspect-ratio: auto;
  min-height: 118px;
}

.highlight-band {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  padding: 54px 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 32px;
  align-items: start;
}

.split-layout h2 {
  margin: 12px 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
}

.split-layout p {
  color: #4b5563;
  line-height: 1.85;
}

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

.two-column,
.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.ranking-card,
.content-card,
.filter-panel,
.category-overview-card a {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.ranking-card,
.content-card,
.filter-panel {
  padding: 24px;
}

.compact-title {
  margin-bottom: 16px;
}

.compact-title h2 {
  font-size: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 74px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  background: #f8fafc;
  padding: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-number {
  color: var(--site-orange);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 74px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

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

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  font-weight: 820;
}

.rank-copy small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.rank-score {
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-weight: 900;
  padding: 5px 8px;
}

.page-shell {
  padding-bottom: 64px;
}

.page-hero {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
  padding: 48px;
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.category-page-hero,
.ranking-hero {
  color: #ffffff;
}

.category-page-hero h1,
.category-page-hero p,
.ranking-hero h1,
.ranking-hero p {
  color: #ffffff;
}

.category-page-hero span,
.ranking-hero span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.ranking-hero {
  background: linear-gradient(135deg, #111827, #dc2626);
}

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

.category-overview-card {
  list-style: none;
}

.category-overview-card a {
  display: block;
  height: 100%;
  color: #ffffff;
  padding: 28px;
  transition: transform 0.2s ease;
}

.category-overview-card a:hover {
  transform: translateY(-4px);
}

.category-icon {
  font-size: 36px;
}

.category-overview-card h2 {
  margin: 16px 0 10px;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-card p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.category-overview-card strong {
  display: inline-block;
  margin-top: 14px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  padding: 6px 10px;
}

.filter-panel {
  margin-top: 28px;
}

.filter-row,
.search-page-form {
  margin-bottom: 24px;
}

.filter-row select,
.search-page-form select {
  max-width: 190px;
}

.empty-result {
  margin: 22px 0 0;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
  padding: 16px;
  text-align: center;
}

.detail-hero {
  background: radial-gradient(circle at top left, rgba(234, 88, 12, 0.25), transparent 34%), linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  padding: 54px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111827;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  margin-bottom: 14px;
}

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

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  padding: 7px 12px;
}

.tag-row span {
  background: rgba(234, 88, 12, 0.28);
}

.player-section {
  margin-top: 44px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-button-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.34);
  font-size: 30px;
  padding-left: 4px;
}

.player-overlay strong {
  font-size: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.content-card h2 {
  font-size: 24px;
}

.content-card p {
  color: #374151;
}

.site-footer {
  margin-top: 72px;
  background: #111827;
  color: #d1d5db;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.site-footer p {
  margin-top: 14px;
  line-height: 1.8;
}

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

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

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

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

  .two-column,
  .ranking-layout,
  .split-layout,
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .ranking-layout {
    gap: 40px;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-copy {
    justify-content: flex-end;
    padding-bottom: 86px;
  }

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

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

  .detail-cover {
    max-width: 340px;
  }
}

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

  .brand-copy small {
    display: none;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .intro-panel,
  .page-hero,
  .ranking-card,
  .content-card,
  .filter-panel {
    padding: 20px;
  }

  .category-grid,
  .movie-grid,
  .small-grid,
  .compact-grid,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 120px 1fr;
  }

  .hero-search,
  .search-page-form,
  .filter-row {
    flex-direction: column;
  }

  .filter-row select,
  .search-page-form select {
    max-width: none;
  }

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

  .rank-row {
    grid-template-columns: 28px 62px 1fr;
  }

  .rank-score {
    display: none;
  }
}
