:root {
  --site-bg: #f9fafb;
  --site-card: #ffffff;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-line: #e5e7eb;
  --site-orange: #ea580c;
  --site-red: #dc2626;
  --site-dark: #111827;
  --site-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #1f2937, #f97316);
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.line-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--site-line);
  backdrop-filter: blur(14px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--site-orange);
}

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

.header-search input,
.local-search-panel input {
  border: 1px solid var(--site-line);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  background: #ffffff;
  min-width: 220px;
}

.header-search input:focus,
.local-search-panel input:focus {
  border-color: var(--site-orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.header-search button,
.local-search-panel button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.22);
}

.primary-button.full {
  display: block;
  text-align: center;
  width: 100%;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.40);
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  color: #111827;
  background: #f3f4f6;
}

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.hero-slider {
  position: relative;
  min-height: 560px;
  height: min(74vh, 650px);
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: -22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: blur(8px);
  opacity: 0.34;
  transform: scale(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(249, 115, 22, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.70) 52%, rgba(17, 24, 39, 0.45) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.98) 0%, transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 780px;
  padding-top: 20px;
}

.hero-kicker,
.detail-channel {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.20);
  font-size: 14px;
  font-weight: 800;
}

.hero-text h1,
.subpage-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text p,
.subpage-hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-list span,
.movie-tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d1d5db;
  font-size: 14px;
}

.hero-stats span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
}

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

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

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

.intro-strip,
.page-section,
.content-page,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -52px;
  position: relative;
  z-index: 8;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.intro-strip h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.intro-strip p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.7;
}

.page-section {
  padding: 54px 0 10px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.movie-card a,
.movie-card-media,
.movie-card-body {
  display: block;
}

.movie-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #f97316);
}

.movie-card-media img,
.related-thumb img,
.poster-card img,
.category-preview-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.movie-hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--site-orange);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-year,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.70);
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--site-orange);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-title {
  min-height: 44px;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card-desc {
  margin: 8px 0 12px;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.65;
}

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

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

.category-tile,
.category-overview-card a {
  overflow: hidden;
  display: block;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-cover {
  display: block;
  min-height: 150px;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
}

.category-copy,
.category-overview-body {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.category-copy strong,
.category-overview-body strong {
  font-size: 19px;
}

.category-copy small,
.category-overview-body small,
.category-overview-body span {
  color: var(--site-muted);
  line-height: 1.65;
}

.category-preview-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
}

.subpage-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.44), transparent 32%),
    linear-gradient(135deg, #111827, #1f2937);
}

.subpage-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

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

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

.local-search-panel {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.local-search-panel label {
  display: grid;
  gap: 8px;
  flex: 1;
  color: #374151;
  font-weight: 800;
}

.local-search-panel input {
  width: 100%;
  border-radius: 16px;
}

.local-search-panel button {
  color: #ffffff;
  background: #111827;
}

.no-results {
  margin: 20px 0;
  padding: 16px;
  border-radius: 16px;
  color: #92400e;
  background: #fffbeb;
}

.detail-wrap {
  padding: 34px 0 70px;
}

.detail-breadcrumb {
  color: var(--site-muted);
}

.detail-breadcrumb a:hover {
  color: var(--site-orange);
}

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

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(234, 88, 12, 0.38), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.20));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--site-orange);
  background: rgba(255, 255, 255, 0.94);
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 700;
}

.detail-card,
.poster-card,
.related-panel,
.content-page {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-title-row h1 {
  margin: 14px 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.16;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--site-muted);
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3f4f6;
}

.detail-card h2,
.related-panel h2,
.content-page h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-card p,
.content-page p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

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

.poster-card,
.related-panel {
  padding: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.poster-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 18px;
}

.poster-card p {
  color: var(--site-muted);
  line-height: 1.7;
}

.related-panel h2 {
  margin-top: 0;
}

.related-card {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--site-line);
}

.related-card:last-child {
  border-bottom: 0;
}

.related-thumb {
  position: relative;
  width: 128px;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827, #f97316);
}

.related-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 8px;
  padding: 3px 6px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 11px;
}

.related-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.related-body strong {
  font-size: 14px;
  line-height: 1.45;
}

.related-body small {
  color: var(--site-muted);
}

.content-page {
  width: min(900px, calc(100% - 32px));
  margin: 48px auto 70px;
  padding: 34px;
}

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

.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
  justify-content: flex-end;
}

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

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

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

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .intro-strip,
  .site-footer-inner,
  .detail-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-slider {
    min-height: 620px;
  }

  .hero-text h1,
  .subpage-hero h1 {
    font-size: 40px;
  }

  .hero-actions,
  .local-search-panel {
    display: grid;
  }

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

  .section-heading {
    display: grid;
  }

  .content-page,
  .detail-card {
    padding: 22px;
  }
}
