:root {
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --green: #10b981;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--orange);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.logo-text {
  white-space: nowrap;
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.main-nav a {
  font-weight: 700;
  opacity: 0.96;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  width: min(300px, 28vw);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.header-search input {
  width: 100%;
  min-width: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.header-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: var(--orange);
  background: var(--white);
  font-weight: 800;
  padding: 8px 16px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #f97316 0%, #ef4444 48%, #db2777 100%);
  padding: 88px 0 84px;
}

.hero-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.3;
}

.hero-bg-a {
  width: 360px;
  height: 360px;
  top: -140px;
  right: 14%;
  background: #ffffff;
}

.hero-bg-b {
  width: 260px;
  height: 260px;
  left: 6%;
  bottom: -90px;
  background: #fde68a;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 44px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy-main h1 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-desc {
  max-width: 660px;
  margin: 24px 0 28px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-search {
  display: flex;
  gap: 10px;
  width: min(620px, 100%);
  padding: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: var(--white);
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

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

.btn-primary,
.btn-ghost {
  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;
}

.btn-primary {
  color: var(--orange);
  background: var(--white);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

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

.btn-ghost.dark {
  color: var(--gray-900);
  background: var(--white);
  border-color: var(--gray-200);
}

.hero-showcase {
  display: grid;
  gap: 16px;
}

.hero-feature-card,
.hero-mini-card {
  overflow: hidden;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-feature-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 268px;
}

.hero-cover,
.hero-mini-image {
  display: block;
  position: relative;
  min-height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08)), linear-gradient(135deg, rgba(249, 115, 22, 0.86), rgba(236, 72, 153, 0.86));
}

.hero-cover img,
.hero-mini-image img,
.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-img.is-missing,
.hero-cover img.is-missing,
.hero-mini-image img.is-missing {
  display: none;
}

.hero-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.hero-feature-copy em,
.hero-mini-card em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 13px;
}

.hero-feature-copy strong {
  font-size: 28px;
  line-height: 1.2;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  min-height: 96px;
}

.hero-mini-card span:last-child {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.hero-mini-card strong {
  line-height: 1.25;
}

.stats-section {
  margin-top: -36px;
  position: relative;
  z-index: 2;
}

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

.stat-card {
  padding: 24px;
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 34px;
  color: var(--orange);
}

.stat-card span {
  color: var(--gray-500);
  font-weight: 700;
}

.content-section {
  padding: 72px 0;
  background: var(--white);
}

.content-section + .content-section {
  border-top: 1px solid var(--gray-100);
}

.soft-orange {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.soft-blue {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.soft-green {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--gray-500);
}

.section-kicker {
  color: var(--orange);
}

.center-head {
  justify-content: center;
  text-align: center;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.48), transparent 35%), linear-gradient(135deg, #fb923c, #f43f5e 52%, #db2777);
}

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.year-badge {
  right: 8px;
  top: 8px;
}

.type-badge {
  left: 8px;
  bottom: 8px;
}

.rank-badge {
  left: 8px;
  top: 8px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--orange);
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  margin-top: 8px;
  min-height: 42px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

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

.category-tile,
.category-card-large {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 42px rgba(239, 68, 68, 0.26);
}

.category-tile span,
.category-icon {
  font-size: 40px;
}

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

.category-tile em,
.category-card-large em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.rank-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.rank-copy p {
  color: var(--gray-500);
}

.rank-list {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #fff7ed;
}

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

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-score {
  color: var(--orange);
  font-weight: 900;
}

.sub-hero,
.detail-hero {
  color: var(--white);
  background: linear-gradient(135deg, #f97316, #ef4444 55%, #db2777);
  padding: 72px 0;
}

.sub-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 6vw, 62px);
}

.sub-hero p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.category-card-large {
  flex-direction: row;
  align-items: center;
}

.category-info {
  display: grid;
  gap: 4px;
}

.category-info b {
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  padding: 0 16px;
}

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

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.filter-count {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.24);
}

.detail-copy-main h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.detail-one-line {
  max-width: 860px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-badges span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 800;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-section {
  padding: 70px 0;
  background: var(--gray-900);
  color: var(--white);
}

.player-section .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.28), transparent 32%), #020617;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 5px;
  color: var(--orange);
  background: var(--white);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

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

.video-shell.is-playing .play-overlay {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 22px;
}

.detail-article,
.detail-side,
.article-page,
.sitemap-page {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.detail-article h2,
.detail-side h2,
.article-page h2,
.sitemap-page h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-article p,
.article-page p {
  margin: 0 0 20px;
  color: var(--gray-700);
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--gray-500);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
}

.sitemap-list {
  columns: 3;
  padding-left: 20px;
}

.sitemap-list.compact {
  columns: 4;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.sitemap-list a:hover {
  color: var(--orange);
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 52px 0 24px;
}

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

.footer-logo .logo-mark {
  color: #111827;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  margin: 12px 0 0;
  color: #9ca3af;
}

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

.site-footer li {
  margin-bottom: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
}

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

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

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

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

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

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

  .hero-feature-card {
    grid-template-columns: 150px 1fr;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero-section,
  .sub-hero,
  .detail-hero {
    padding: 54px 0;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
    min-height: 46px;
  }

  .hero-feature-card,
  .hero-mini-card {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    aspect-ratio: 16 / 10;
  }

  .hero-mini-list,
  .movie-grid,
  .category-grid,
  .category-large-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-score {
    display: none;
  }

  .detail-poster {
    max-width: 260px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .sitemap-list,
  .sitemap-list.compact {
    columns: 1;
  }
}
