:root {
  --bg: #f8fafc;
  --bg-soft: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --card: #ffffff;
  --dark: #0f172a;
  --orange: #f97316;
  --rose: #f43f5e;
  --pink: #ec4899;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 45%, #ecfeff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
}

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

.site-logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--rose), var(--pink));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.site-logo__text {
  font-size: 22px;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  transition: 0.25s ease;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 42px;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 30%), linear-gradient(90deg, #f97316, #f43f5e 52%, #ec4899);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), rgba(248, 250, 252, 0));
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  min-height: 580px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 38px;
  align-items: center;
  padding: 70px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide__bg,
.hero-slide__shade {
  position: absolute;
  inset: 0;
}

.hero-slide__bg {
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.08);
}

.hero-slide__shade {
  background:
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(88, 28, 135, 0.72), rgba(244, 63, 94, 0.68));
}

.hero-slide__content,
.hero-slide__poster {
  position: relative;
  z-index: 2;
}

.hero-slide h1 {
  max-width: 800px;
  margin: 12px 0 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-slide p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-slide__poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-slide__poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #ffffff;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 70px;
  bottom: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #fff7ed;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-actions,
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.32);
}

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

.btn-text {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 6px;
}

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

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: -18px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.stats-strip div {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.stats-strip strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section-block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px;
}

.section-block--soft {
  max-width: none;
  background: linear-gradient(90deg, rgba(237, 233, 254, 0.78), rgba(252, 231, 243, 0.78), rgba(255, 237, 213, 0.78));
}

.section-block--soft > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

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

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

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: 0.28s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #0f172a, #7c2d12 48%, #be185d);
}

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

.poster-frame img.is-missing {
  opacity: 0;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.category-overview-card:hover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.movie-card__poster {
  aspect-ratio: 3 / 4;
}

.movie-card__poster::after,
.compact-card__poster::after,
.poster-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.74), transparent 52%);
  pointer-events: none;
}

.movie-card__score,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.movie-card__score {
  right: 12px;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.36);
}

.movie-card__body {
  padding: 18px;
}

.movie-card h3,
.compact-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover {
  color: var(--rose);
}

.movie-card__line,
.compact-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-card__meta,
.compact-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.movie-card__meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.category-tile {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile__image {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.category-tile strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.category-tile small {
  color: var(--muted);
  line-height: 1.55;
}

.page-hero {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 72px 20px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #0f172a, #7c2d12 42%, #be185d);
  box-shadow: var(--shadow);
}

.page-hero--compact,
.page-hero--category,
.page-hero--rank {
  padding-left: 56px;
  padding-right: 56px;
}

.page-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-overview-card__cover {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-card p,
.category-overview-card span {
  color: var(--muted);
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.filter-panel p {
  margin: 0;
  color: var(--muted);
}

.filter-form {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
}

.filter-form label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-form input,
.filter-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 13px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.filter-count {
  color: var(--muted);
  font-weight: 700;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.compact-card__poster {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.detail-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #64748b;
  font-size: 14px;
}

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

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

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.28));
  cursor: pointer;
}

.player-overlay__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-size: 28px;
  box-shadow: 0 20px 46px rgba(244, 63, 94, 0.36);
}

.player-card.is-playing .player-overlay {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
}

.detail-card,
.side-card {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.score-pill {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.30);
}

.score-pill span {
  display: block;
  margin-top: -8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.detail-lead {
  margin: 20px 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-grid span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.info-grid strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.tag-row {
  margin: 18px 0 4px;
}

.detail-card .tag-row .tag {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
  color: #1d4ed8;
}

.text-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-section p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.95;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.poster-large {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.side-card a,
.side-card p {
  display: block;
  margin: 10px 0;
  color: #475569;
  font-weight: 700;
}

.side-card a:hover {
  color: var(--rose);
}

.site-footer {
  margin-top: 64px;
  color: #ffffff;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px;
}

.site-logo--footer {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 44px;
  }

  .hero-slide__poster {
    width: min(260px, 70vw);
  }

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

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

  .category-overview-grid,
  .rank-strip,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

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

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

  .hero {
    padding: 16px 12px 30px;
  }

  .hero-shell {
    min-height: 720px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 30px 24px 90px;
  }

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

  .hero-slide p {
    font-size: 15px;
  }

  .hero-controls {
    left: 24px;
    bottom: 28px;
  }

  .stats-strip,
  .movie-grid,
  .movie-grid--featured,
  .movie-grid--rank,
  .category-grid,
  .filter-form,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .detail-title-row {
    display: block;
  }

  .page-hero,
  .page-hero--compact,
  .page-hero--category,
  .page-hero--rank {
    margin: 16px 12px 0;
    padding: 42px 24px;
    border-radius: 24px;
  }

  .category-overview-card,
  .compact-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .category-overview-card__cover,
  .compact-card__poster {
    border-radius: 16px;
  }

  .score-pill {
    margin-top: 18px;
  }
}
