:root {
  color-scheme: light;
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf2;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: #f3e3cf;
  --accent: #f97316;
  --accent-deep: #ea580c;
  --accent-soft: #ffedd5;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(124, 45, 18, 0.14);
  --shadow-soft: 0 12px 32px rgba(124, 45, 18, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
  min-height: 100vh;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: 0 8px 30px rgba(124, 45, 18, 0.06);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.brand-text,
.footer-brand {
  font-size: 25px;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link,
.nav-cats a,
.mobile-link {
  color: #4b5563;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-cats a:hover,
.mobile-link:hover,
.mobile-link.active {
  color: var(--accent);
}

.nav-cats {
  display: flex;
  gap: 14px;
  padding-left: 8px;
}

.header-search,
.mobile-search,
.inline-filter,
.quick-search-card form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.inline-filter input,
.quick-search-card input {
  width: 240px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: #ffffff;
  padding: 11px 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.inline-filter input:focus,
.quick-search-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.header-search button,
.mobile-search button,
.inline-filter button,
.quick-search-card button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  padding: 11px 20px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.inline-filter button:hover,
.quick-search-card button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.32);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #fed7aa;
}

.mobile-panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: grid;
  gap: 14px;
}

.page-main {
  padding: 32px 0 70px;
}

.hero-wrap {
  padding-top: 8px;
}

.hero-carousel {
  position: relative;
  height: min(64vw, 540px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: #111827;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(249, 115, 22, 0.45), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 48%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(28px, 6vw, 70px);
  width: min(680px, calc(100% - 48px));
  color: #ffffff;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.9);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 20px;
  max-width: 700px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  padding: 11px 20px;
  font-weight: 750;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

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

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

.quick-search-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--shadow-soft);
}

.quick-search-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.quick-search-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.content-section {
  margin-top: 38px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

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

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

.play-tip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  height: 38px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.movie-card:hover .play-tip {
  transform: translateY(0);
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 34px;
  padding: 0 8px;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, var(--accent));
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.32);
}

.movie-info {
  padding: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 750;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h2 a:hover {
  color: var(--accent);
}

.movie-info p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.compact .movie-info p {
  -webkit-line-clamp: 2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

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

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

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

.category-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 138px;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-body {
  padding: 18px;
}

.category-body h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.category-body span {
  color: var(--accent);
  font-weight: 800;
}

.page-hero {
  padding: 46px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.28), transparent 34%),
    linear-gradient(135deg, #7c2d12, #fb923c 54%, #f59e0b);
  color: #ffffff;
  box-shadow: var(--shadow);
}

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

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

.page-hero .inline-filter {
  margin-top: 24px;
  max-width: 720px;
}

.inline-filter input {
  flex: 1;
  width: auto;
}

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

.filter-chips button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 750;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 40px;
  text-align: center;
  border: 1px dashed #fdba74;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: #fffaf2;
}

.empty-state.show {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: stretch;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--shadow-soft);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0 0 18px;
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.detail-info .primary-btn {
  width: fit-content;
}

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

.player-section h2,
.story-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0f172a;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.44), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
  font-size: 30px;
  padding-left: 4px;
}

.player-overlay span:last-child {
  font-size: 18px;
  font-weight: 800;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}

.story-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--shadow-soft);
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.95;
  font-size: 16px;
}

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

.site-footer {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border-top: 1px solid #fed7aa;
  padding: 46px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
  margin: 14px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-links a {
  color: var(--muted);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid #fed7aa;
  text-align: center;
  font-size: 14px;
}

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

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

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

@media (max-width: 820px) {
  .site-nav {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

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

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

  .mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

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

  .hero-carousel {
    min-height: 500px;
    height: 76vh;
    border-radius: 24px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18)),
      radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.4), transparent 42%);
  }

  .hero-content {
    left: 22px;
    bottom: 34px;
    width: calc(100% - 44px);
  }

  .hero-actions,
  .inline-filter,
  .quick-search-card form {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .quick-search-card input,
  .inline-filter input {
    width: 100%;
  }

  .movie-grid,
  .feature-grid,
  .category-grid,
  .category-grid.large,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .page-hero {
    padding: 30px;
    border-radius: 24px;
  }

  .detail-hero,
  .detail-body,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover img {
    min-height: 0;
    aspect-ratio: 2 / 3;
  }
}

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

  .brand-text {
    font-size: 21px;
  }

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

  .movie-grid,
  .feature-grid,
  .category-grid,
  .category-grid.large,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card .poster {
    height: 100%;
    aspect-ratio: auto;
  }

  .movie-card.compact {
    display: block;
  }

  .movie-card.compact .poster {
    aspect-ratio: 2 / 3;
  }

  .category-covers {
    height: 112px;
  }

  .hero-dots {
    right: 20px;
    bottom: 18px;
  }

  .player-section h2,
  .story-card h2 {
    font-size: 24px;
  }
}
