:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(249, 115, 22, 0.18);
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(249, 115, 22, 0.16);
  --shadow-soft: 0 12px 36px rgba(31, 41, 55, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1200px;
}

* {
  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(--ink);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 38rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.13), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fff7ed 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 74px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: clamp(20px, 3vw, 26px);
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff7ed;
  border-radius: 14px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.8);
}

.hero-section {
  position: relative;
  max-width: var(--max);
  min-height: 620px;
  margin: 26px auto 0;
  padding: 22px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 570px;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(236, 72, 153, 0.88) 52%, rgba(139, 92, 246, 0.86)),
    #f97316;
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.55;
}

.hero-glow.one {
  width: 220px;
  height: 220px;
  top: 10px;
  left: 0;
  background: rgba(249, 115, 22, 0.22);
}

.hero-glow.two {
  width: 260px;
  height: 260px;
  right: 0;
  bottom: 20px;
  background: rgba(236, 72, 153, 0.20);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
  color: white;
  opacity: 0;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 780px;
}

.hero-subtitle {
  margin: 24px 0 0;
  max-width: 710px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.rank-meta,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.30);
}

.hero-actions .primary-button {
  background: white;
  color: var(--orange);
}

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

.pill-button {
  color: var(--orange);
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.pill-button.small {
  min-height: 36px;
  padding: 0 15px;
  font-size: 13px;
}

.primary-button:hover,
.ghost-button:hover,
.pill-button:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-3px);
}

.hero-art {
  position: relative;
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.44), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 34px 80px rgba(31, 41, 55, 0.22);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.30));
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.hero-art:hover img {
  transform: scale(1.05);
}

.hero-art.is-missing::before,
.poster-shell.is-missing::before,
.rank-thumb.is-missing::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.60), transparent 26%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.52), rgba(236, 72, 153, 0.42), rgba(139, 92, 246, 0.36));
}

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

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

.hero-dot.active {
  width: 28px;
  background: white;
}

.panel-wrap,
.content-section,
.category-overview-block,
.filter-panel,
.page-hero,
.detail-main .breadcrumb,
.detail-hero,
.player-section,
.detail-info-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.quick-search-card,
.filter-panel,
.category-overview-block,
.info-panel,
.player-section,
.detail-hero,
.page-hero {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.quick-search-card h2,
.section-heading h2,
.filter-panel h2,
.info-panel h2,
.player-section h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.quick-search-card p,
.section-heading p,
.page-hero p {
  color: var(--muted);
}

.home-search-form {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.home-search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
}

.content-section,
.category-overview-block,
.filter-panel {
  margin-top: 54px;
}

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

.text-link {
  color: var(--orange);
  font-weight: 900;
}

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

.category-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  border: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover {
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.18);
}

.category-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.category-card strong {
  font-size: 20px;
}

.category-card p,
.category-card small {
  margin: 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-poster-link {
  display: block;
}

.poster-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.65), transparent 22%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.60), rgba(236, 72, 153, 0.40), rgba(139, 92, 246, 0.34));
}

.poster-card {
  aspect-ratio: 4 / 5;
}

.poster-detail {
  min-height: 440px;
  border-radius: 28px;
}

.poster-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-meta span:not(:last-child)::after,
.rank-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(107, 114, 128, 0.55);
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-body .tag-row {
  margin-top: 13px;
}

.card-body .tag-row span,
.large-tags span {
  background: #fff7ed;
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.16);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.big-score {
  min-width: 62px;
  min-height: 44px;
  font-size: 18px;
}

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

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

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

.page-main {
  padding-bottom: 70px;
}

.page-hero {
  margin-top: 34px;
  padding: clamp(30px, 5vw, 58px);
  color: white;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 24rem),
    linear-gradient(135deg, var(--orange), var(--pink) 55%, var(--purple));
}

.page-hero p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-panel {
  padding: 24px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 220px;
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(249, 115, 22, 0.20);
  border-radius: 16px;
  padding: 0 14px;
  outline: 0;
  color: var(--ink);
  background: #fffaf5;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.result-count {
  color: var(--orange);
  font-weight: 900;
}

.category-overview-block {
  padding: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 60px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.06);
}

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

.rank-thumb {
  position: relative;
  display: block;
  width: 86px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.42), rgba(236, 72, 153, 0.38));
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  margin-top: 18px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.detail-tags {
  margin: 20px 0;
}

.detail-tags span {
  color: var(--ink);
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.16);
}

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

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.38), transparent 20rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.72));
}

.play-overlay[hidden] {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--orange);
  background: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 20px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.info-panel {
  padding: 28px;
}

.info-panel p {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 16px;
}

.meta-panel {
  grid-column: 1 / -1;
}

.meta-panel dl {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 16px 0 0;
}

.meta-panel dt {
  color: var(--muted);
  font-weight: 900;
}

.meta-panel dd {
  margin: 0;
}

.meta-panel a {
  color: var(--orange);
  font-weight: 900;
}

.related-section {
  margin-top: 48px;
}

.site-footer {
  margin-top: 80px;
  padding: 48px 20px 28px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2, #faf5ff);
  border-top: 1px solid rgba(249, 115, 22, 0.14);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand p {
  max-width: 540px;
  color: var(--muted);
}

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

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: white;
  color: var(--orange);
  font-weight: 800;
  border: 1px solid rgba(249, 115, 22, 0.14);
}

.copyright {
  max-width: var(--max);
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 13px;
}

[hidden],
.is-hidden {
  display: none !important;
}

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

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

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

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

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

  .hero-art img {
    min-height: 260px;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-section {
    min-height: 700px;
    padding: 12px;
  }

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

  .hero-slide {
    padding: 28px;
    align-content: center;
  }

  .quick-search-card,
  .detail-hero,
  .detail-info-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quick-search-card,
  .footer-inner {
    display: grid;
  }

  .home-search-form {
    border-radius: 22px;
    flex-direction: column;
    padding: 12px;
  }

  .home-search-form input {
    min-height: 44px;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-item .pill-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 540px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-section,
  .hero-slider {
    min-height: 720px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .rank-item {
    grid-template-columns: 38px 62px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-info p {
    display: none;
  }

  .poster-detail {
    min-height: 360px;
  }
}
