:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --green: #16a34a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-dark);
  background: #fff7ed;
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--orange-dark);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--line);
}

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

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(249, 115, 22, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.62) 42%, rgba(15, 23, 42, 0.24) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 72px 24px 92px;
  color: #ffffff;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 690px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.7;
}

.hero-tags,
.movie-meta,
.tag-row,
.detail-actions,
.hero-actions,
.sub-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.keyword-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-actions {
  margin-top: 30px;
}

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.3);
}

.primary-btn:hover,
.white-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.ghost-btn.dark {
  color: #111827;
  border-color: #e5e7eb;
  background: #ffffff;
}

.white-btn {
  color: var(--orange-dark);
  background: #ffffff;
}

.ghost-light-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.small-btn {
  color: #ffffff;
  background: #111827;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  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.5);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--orange);
}

.search-band,
.content-section,
.rank-section,
.cta-panel,
.breadcrumb,
.detail-hero,
.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  padding-top: 26px;
  padding-bottom: 26px;
  color: #ffffff;
  border-radius: 30px;
  background: linear-gradient(135deg, #fb923c, #ef4444, #ec4899);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 8;
}

.search-band span {
  font-weight: 800;
  opacity: 0.86;
}

.search-band h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
}

.quick-search,
.filter-bar {
  display: flex;
  gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  outline: none;
}

.quick-search input {
  flex: 1;
  height: 54px;
  padding: 0 18px;
  border: 0;
}

.quick-search button {
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: #111827;
  font-weight: 900;
  cursor: pointer;
}

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

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

.section-heading.small {
  align-items: start;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.eyebrow {
  padding: 6px 12px;
  font-size: 12px;
}

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

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

.category-card {
  position: relative;
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  color: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card.large {
  min-height: 230px;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.category-card:after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-icon {
  font-size: 34px;
}

.category-card strong {
  margin-top: 18px;
  font-size: 26px;
}

.category-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.55;
}

.category-card em {
  margin-top: 18px;
  font-style: normal;
  font-weight: 900;
}

.tone-red {
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.tone-pink {
  background: linear-gradient(135deg, #f472b6, #db2777);
}

.tone-blue {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.tone-green {
  background: linear-gradient(135deg, #4ade80, #16a34a);
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #f97316);
}

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

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

.rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.2s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-meta {
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span:not(:last-child):after {
  content: "·";
  margin-left: 8px;
  color: #cbd5e1;
}

.movie-info h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.ranking-info h2 a:hover {
  color: var(--orange-dark);
}

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

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

.movie-card-compact .movie-poster {
  aspect-ratio: auto;
  height: 100%;
  min-height: 154px;
}

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

.rank-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 78px;
}

.rank-copy {
  padding: 34px;
  color: #ffffff;
  border-radius: 30px;
  background: linear-gradient(135deg, #111827, #312e81 48%, #ef4444);
  box-shadow: var(--shadow);
}

.rank-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.rank-copy p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(249, 115, 22, 0.35);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 14px;
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

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

.cta-panel {
  margin-top: 70px;
  margin-bottom: 80px;
  padding-top: 58px;
  padding-bottom: 58px;
  color: #ffffff;
  text-align: center;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 50px);
}

.cta-panel p {
  max-width: 720px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.sub-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 58px 24px;
  color: #ffffff;
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.32), transparent 32%),
    linear-gradient(135deg, #111827, #1f2937 45%, #ef4444);
  box-shadow: var(--shadow);
}

.sub-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.05;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.7;
}

.category-hero,
.ranking-hero,
.search-hero {
  overflow: hidden;
}

.filter-bar {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select {
  height: 50px;
  padding: 0 16px;
}

.filter-bar input {
  flex: 1 1 320px;
}

.filter-bar select {
  flex: 0 0 170px;
}

.empty-state {
  display: none;
  padding: 46px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
}

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

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

.ranking-card {
  display: grid;
  grid-template-columns: 92px 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.ranking-poster {
  height: 124px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f2937, #f97316);
}

.ranking-num {
  font-size: 26px;
  font-weight: 950;
  color: var(--orange-dark);
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  padding-top: 28px;
}

.player-panel,
.detail-copy,
.story-card,
.side-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.player-panel {
  overflow: hidden;
  padding: 14px;
  background: #0f172a;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.32);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: 0.2s ease;
  z-index: 4;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--orange-dark);
  background: #ffffff;
  border-radius: 999px;
}

.detail-copy {
  padding: 32px;
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.detail-one-line {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid span {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  color: #111827;
  font-weight: 800;
}

.detail-meta-grid b {
  color: var(--muted);
  font-size: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  padding-top: 30px;
  padding-bottom: 80px;
}

.story-card,
.side-card {
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card h2:not(:first-child) {
  margin-top: 34px;
}

.story-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 700;
}

.keyword-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.keyword-links a:hover {
  color: #ffffff;
  background: var(--orange);
}

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

.category-sample {
  padding-top: 56px;
}

.site-footer {
  margin-top: 30px;
  padding: 42px 24px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 760px;
  margin: 14px 0 0;
  line-height: 1.7;
}

.is-filtered-out {
  display: none !important;
}

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

  .detail-hero,
  .detail-layout,
  .rank-section {
    grid-template-columns: 1fr;
  }

  .side-card {
    order: 2;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    padding: 76px 18px 90px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .search-band {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
    padding: 24px;
  }

  .quick-search,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select,
  .filter-bar input {
    flex: 1 1 auto;
    width: 100%;
  }

  .content-section,
  .rank-section,
  .cta-panel,
  .breadcrumb,
  .detail-hero,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sub-hero {
    margin-left: 16px;
    margin-right: 16px;
    padding: 38px 20px;
  }

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

  .ranking-card {
    grid-template-columns: 74px 1fr;
  }

  .ranking-num,
  .ranking-card .small-btn {
    grid-column: span 2;
  }

  .movie-card-compact {
    grid-template-columns: 92px 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 19px;
  }

  .hero-slider {
    height: 530px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

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

  .movie-card-compact {
    grid-template-columns: 100px 1fr;
  }

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

  .rank-item {
    grid-template-columns: 44px 1fr;
  }

  .rank-meta {
    grid-column: 2;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .side-card,
  .detail-copy {
    padding: 22px;
  }
}
