:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --blue: #0ea5e9;
  --cyan: #06b6d4;
  --green: #10b981;
  --purple: #8b5cf6;
  --gray-950: #020617;
  --gray-900: #0f172a;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --bg: #fff7ed;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 26%, #f9fafb 100%);
  color: var(--gray-800);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.36);
  font-size: 14px;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--rose);
  background: #fff1f2;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-grid input,
.filter-grid select {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.filter-grid button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-btn {
  padding: 10px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.28);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.13);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.filter-grid button:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--gray-800);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel-inner {
  display: grid;
  gap: 12px;
  padding: 14px 0 18px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--gray-950);
  color: var(--white);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 75% 25%, rgba(249, 115, 22, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68) 45%, rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 0 160px;
}

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

.hero-kicker {
  color: #fecdd3;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

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

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.secondary-btn {
  padding: 10px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: calc((100vw - min(1180px, calc(100% - 32px))) / 2);
  bottom: 96px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--white);
}

.feature-strip {
  position: relative;
  z-index: 3;
  margin-top: -92px;
  margin-bottom: 72px;
}

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

.feature-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.20);
}

.feature-card img,
.thumb img,
.rank-thumb img,
.detail-poster img,
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.feature-card:hover img,
.movie-card:hover .thumb img,
.rank-row:hover .rank-thumb img,
.related-card:hover .related-thumb img {
  transform: scale(1.08);
}

.feature-card::after,
.thumb::after,
.related-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
}

.feature-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 20px;
  color: var(--white);
}

.feature-content strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.feature-content span {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.section {
  padding: 24px 0 72px;
}

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

.section.tint {
  padding: 72px 0;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

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

.section-heading h2 {
  margin: 8px 0 4px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: var(--shadow);
}

.thumb {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #fdba74);
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 22px);
  padding: 5px 10px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.badge.top {
  top: 12px;
  right: 12px;
  background: rgba(244, 63, 94, 0.92);
}

.badge.bottom {
  right: 12px;
  bottom: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.movie-info {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-info strong {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

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

.category-card {
  display: grid;
  min-height: 156px;
  align-content: space-between;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, var(--purple), var(--rose));
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.category-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.category-card span,
.category-card p {
  color: rgba(255, 255, 255, 0.86);
}

.category-card p {
  margin: 10px 0 0;
  font-size: 14px;
}

.filter-panel {
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  min-width: 0;
  width: 100%;
  padding: 11px 13px;
}

.filter-grid button {
  padding: 12px 16px;
  color: var(--rose);
  background: #fff1f2;
}

.filter-result {
  margin-top: 12px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.page-hero {
  padding: 70px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, var(--rose), var(--orange));
}

.page-hero.blue {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero.dark {
  background: linear-gradient(135deg, var(--gray-950), var(--gray-800));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--white);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

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

.rank-row a {
  display: grid;
  grid-template-columns: 54px 118px 1fr 70px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: var(--shadow);
}

.rank-num {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb7185, #fdba74);
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em,
.rank-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--gray-900);
  font-size: 18px;
}

.rank-copy em {
  color: var(--gray-600);
  font-style: normal;
}

.rank-copy span {
  color: var(--gray-500);
  font-size: 13px;
}

.rank-score {
  color: var(--rose);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
  padding: 36px 0 76px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.62));
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-box.playing .player-overlay {
  opacity: 0;
}

.play-main {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.38);
  cursor: pointer;
  pointer-events: auto;
}

.player-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-box:hover .player-controls,
.player-box:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  padding: 8px 12px;
}

.player-status {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.detail-card,
.side-card {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-card {
  margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
}

.side-card {
  position: sticky;
  top: 92px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  position: relative;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb7185, #fdba74);
}

.related-card strong,
.related-card span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.related-card strong {
  color: var(--gray-900);
  line-height: 1.3;
  -webkit-line-clamp: 2;
}

.related-card span {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 13px;
  -webkit-line-clamp: 1;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--gray-950), var(--gray-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

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

.site-footer a,
.site-footer p {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

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

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

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

  .side-card {
    position: static;
  }

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

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

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 92px 0 140px;
  }

  .hero-dots {
    right: 18px;
    bottom: 70px;
  }

  .feature-strip {
    margin-top: -72px;
  }

  .feature-grid,
  .cards-grid,
  .cards-grid.compact,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .thumb {
    height: 250px;
  }

  .section-heading {
    display: grid;
  }

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

  .rank-row a {
    grid-template-columns: 42px 88px 1fr;
    gap: 10px;
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }

  .related-card {
    grid-template-columns: 96px 1fr;
  }
}
