:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.88);
  --text: #1f2937;
  --muted: #6b7280;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --rose: #fb7185;
  --blue: #38bdf8;
  --dark: #111827;
  --shadow: 0 24px 60px rgba(249, 115, 22, 0.16);
  --shadow-strong: 0 28px 72px rgba(17, 24, 39, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 42%, var(--bg-soft) 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 146, 60, 0.26);
  background: rgba(255, 247, 237, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.3);
}

.logo-text {
  font-size: 21px;
  color: transparent;
  background: linear-gradient(90deg, var(--orange-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 15px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 58%, #111827 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px);
  background-size: 56px 56px, 42px 42px;
}

.hero-slides,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  padding-top: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) 360px;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #ffedd5;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.3vw, 23px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.tag-row span {
  color: var(--orange-dark);
  background: #ffedd5;
}

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

.primary-button,
.ghost-button,
.filter-panel button,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  min-height: 48px;
  padding: 12px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.primary-button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.34);
}

.ghost-button {
  min-height: 48px;
  padding: 11px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #f9a8d4);
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 52px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

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

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

.slim-section {
  padding-top: 18px;
}

.band-section {
  background: linear-gradient(90deg, #fff1f2 0%, #ffedd5 100%);
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-panel h2,
.side-panel h2,
.category-card h2 {
  margin: 0;
  color: var(--dark);
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-more,
.text-link {
  color: var(--orange-dark);
}

.intro-search {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: stretch;
  gap: 28px;
}

.intro-card,
.filter-panel,
.text-panel,
.side-panel,
.category-card,
.movie-card {
  border: 1px solid rgba(251, 146, 60, 0.18);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.intro-card {
  border-radius: var(--radius);
  padding: 34px;
}

.intro-card h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}

.intro-card p {
  margin: 0;
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  gap: 14px;
  align-items: end;
  border-radius: var(--radius);
  padding: 24px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 15px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-panel button {
  min-height: 46px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  cursor: pointer;
}

.empty-tip {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

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

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

.movie-card {
  border-radius: 23px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 72px rgba(236, 72, 153, 0.22);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa 0%, #f9a8d4 100%);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.72) 100%);
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.76);
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.card-topline,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 8px 0 8px;
  color: var(--dark);
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h2 a:hover,
.category-card h2 a:hover,
.category-card li a:hover {
  color: var(--orange-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-top: 14px;
  justify-content: space-between;
}

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

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

.category-grid,
.category-list-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile {
  display: grid;
  min-height: 172px;
  align-content: end;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(236, 72, 153, 0.28);
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

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

.category-tile em {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-style: normal;
}

.page-main {
  padding-top: 28px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 34px;
  padding: 76px 48px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-strong);
}

.page-hero h1 {
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.small-hero,
.search-hero,
.ranking-hero {
  background: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, var(--orange), var(--pink));
}

.compact-actions {
  margin-top: 24px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
}

.category-cover {
  display: flex;
  align-items: end;
  min-height: 100%;
  padding: 24px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.category-cover span {
  font-size: 26px;
  font-weight: 900;
}

.category-card-body {
  padding: 26px;
}

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

.category-card ul {
  margin: 16px 0;
  padding-left: 18px;
  color: var(--muted);
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  border-radius: 34px;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827 0%, #7c2d12 45%, #be185d 100%);
  box-shadow: var(--shadow-strong);
}

.detail-poster {
  min-height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #f9a8d4);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(34px, 6vw, 66px);
  letter-spacing: -0.05em;
}

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

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

.detail-tags {
  margin-top: 18px;
}

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

.player-heading {
  margin-bottom: 18px;
}

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

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.32);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.player-start.is-hidden {
  display: none;
}

.play-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--pink);
  background: #ffffff;
}

.player-message {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border-radius: 16px;
  padding: 14px 16px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.text-panel,
.side-panel {
  border-radius: 28px;
  padding: 30px;
}

.text-panel p,
.side-panel p {
  color: var(--muted);
}

.side-panel dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

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

.side-panel dd {
  margin: 0;
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 36px;
}

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

.footer-grid p,
.footer-grid a {
  color: #9ca3af;
}

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

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

@media (max-width: 1040px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster {
    display: none;
  }

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

  .intro-search,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 70px;
  }

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

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

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

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

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

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

  .category-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

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

  .side-panel dl {
    grid-template-columns: 1fr;
  }
}
