:root {
  --page-bg: #fff7ed;
  --card-bg: rgba(255, 255, 255, 0.92);
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(251, 146, 60, 0.22);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --purple: #7c3aed;
  --shadow: 0 18px 45px rgba(124, 58, 237, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(251, 146, 60, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(236, 72, 153, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

img.is-missing {
  opacity: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.94));
  backdrop-filter: blur(16px);
}

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

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

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

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

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

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #374151;
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #374151;
  background: rgba(255, 255, 255, 0.72);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-panel a {
  display: block;
  padding: 15px 22px;
  font-weight: 700;
  color: #374151;
}

.main-offset {
  padding-top: 68px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: linear-gradient(135deg, #111827 0%, #6d28d9 52%, #f97316 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.44), rgba(17, 24, 39, 0.72)),
    radial-gradient(circle at 70% 20%, rgba(251, 146, 60, 0.32), transparent 22rem);
  content: "";
  z-index: 1;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 42px;
  align-items: center;
  min-height: 680px;
  padding: 76px 0;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  font-weight: 750;
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-title {
  margin: 22px 0 14px;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 850;
}

.hero-desc {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.9;
}

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

.hero-tags {
  margin: 22px 0;
}

.tag,
.meta-pill,
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag {
  color: #9a3412;
  background: #ffedd5;
}

.hero .tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
  font-weight: 850;
  transition: 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--orange-dark);
  background: #fff;
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(236, 72, 153, 0.28));
}

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

.hero-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hero-mini-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-mini-item img {
  width: 48px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

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

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

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

.search-strip {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 680px;
  margin-top: 24px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.search-strip input,
.search-control,
.select-control {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
}

.search-strip input {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.78), rgba(253, 242, 248, 0.82));
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card,
.category-card,
.info-card,
.rank-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: 0 22px 55px rgba(236, 72, 153, 0.17);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 10rem),
    linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(236, 72, 153, 0.34));
}

.poster-frame.portrait {
  aspect-ratio: 3 / 4;
}

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

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

.movie-badge,
.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

.movie-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.35;
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-pill {
  color: #9a3412;
  background: #ffedd5;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.4em;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.text-link:hover {
  color: var(--pink);
}

.category-card {
  position: relative;
}

.category-card .poster-frame {
  aspect-ratio: 16 / 7;
}

.category-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-head {
  padding: 72px 0 36px;
}

.page-head-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.94));
  box-shadow: var(--shadow);
}

.page-title {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-description {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}

.search-control,
.select-control {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  border: 1px solid var(--border);
  color: #9a3412;
  background: #fff7ed;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 160px;
}

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

.detail-hero {
  padding: 48px 0 30px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7c2d12 55%, #831843);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(236, 72, 153, 0.34));
}

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

.detail-title {
  margin: 16px 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.9;
}

.player-section {
  padding: 44px 0 70px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 22rem),
    rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.34);
}

.play-circle svg {
  width: 42px;
  height: 42px;
  margin-left: 4px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 28px;
}

.article-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.article-card h2,
.article-card h3 {
  margin: 0 0 14px;
  color: #111827;
  font-weight: 900;
}

.article-card h2 {
  font-size: 1.7rem;
}

.article-card h3 {
  font-size: 1.25rem;
}

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

.side-list {
  display: grid;
  gap: 12px;
}

.side-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.side-item img {
  width: 72px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(236, 72, 153, 0.24));
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 850;
}

.footer-text,
.footer-link {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-link {
  display: block;
  margin: 7px 0;
}

.footer-link:hover {
  color: #fdba74;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.92rem;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

  .nav-toggle {
    display: grid;
    place-items: center;
  }

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

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

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 720px;
  }

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

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

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

  .hero-content {
    min-height: 780px;
    padding-top: 44px;
  }

  .hero-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .search-strip,
  .search-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .section-head {
    display: block;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 104px 1fr;
  }

  .rank-card .movie-desc {
    display: none;
  }
}
