:root {
  --page-bg: #f8fafc;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --red: #dc2626;
  --orange: #f97316;
  --gold: #facc15;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
  font-size: 15px;
}

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

.site-nav a,
.mobile-panel nav a {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.mobile-panel nav a:hover,
.mobile-panel nav a.is-active {
  color: var(--red);
}

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

.header-search input,
.mobile-search input,
.large-search input,
.filter-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.header-search button,
.mobile-search button,
.large-search button,
.filter-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.24);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

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

.hero-carousel {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.32), transparent 34%), #0f172a;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  background-position: center;
  background-size: cover;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 136px 24px 120px;
  color: #fff;
}

.hero-badge,
.section-kicker,
.page-hero span,
.category-overview-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(252, 165, 165, 0.32);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-content h1 {
  max-width: 850px;
  margin: 24px 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 950;
}

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

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.movie-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.28);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.48);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.home-search-band,
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.home-search-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.home-search-band span {
  color: var(--red);
  font-weight: 900;
}

.home-search-band h2,
.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.home-search-band p,
.section-heading p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.large-search,
.filter-form {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.movie-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-rating {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #451a03;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  color: #fff;
  background: rgba(220, 38, 38, 0.88);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-meta-line,
.movie-card-foot,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h2 {
  min-height: 56px;
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-item h2 a:hover {
  color: var(--red);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.65;
  font-size: 14px;
}

.movie-card .movie-tags span {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fee2e2;
}

.movie-card-foot {
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.movie-card-foot a {
  color: var(--red);
  font-weight: 900;
}

.soft-section {
  max-width: none;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.soft-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.dark-section {
  max-width: none;
  color: #fff;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.dark-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.dark-section .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

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

.category-tile,
.category-overview-card,
.side-panel,
.about-grid article {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.category-tile {
  padding: 22px;
  color: #0f172a;
}

.category-tile > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--red);
  font-size: 20px;
  font-weight: 950;
}

.category-tile p {
  min-height: 72px;
  margin: 14px 0;
  color: #475569;
  line-height: 1.7;
}

.category-tile div {
  display: grid;
  gap: 7px;
}

.category-tile div a {
  color: #334155;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 950;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-thumb img {
  height: 100%;
  object-fit: cover;
}

.rank-item h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-item p {
  margin: 0 0 8px;
  color: #475569;
  line-height: 1.5;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 950;
}

.side-panel p {
  color: #475569;
  line-height: 1.8;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.34), transparent 36%), linear-gradient(135deg, #0f172a, #111827);
}

.compact-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 86px 24px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-overview-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.category-overview-media img {
  height: 100%;
  object-fit: cover;
}

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

.category-overview-card p {
  color: #475569;
  line-height: 1.75;
}

.category-overview-card div > a:last-child {
  display: inline-flex;
  margin-top: 16px;
  color: var(--red);
  font-weight: 900;
}

.filter-form {
  max-width: 860px;
  margin: 0 auto 34px;
}

.searchable-grid .movie-card.is-hidden {
  display: none;
}

.detail-hero {
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 24px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-info h1 {
  color: #fff;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta {
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.78);
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.detail-info .primary-button {
  margin-top: 28px;
}

.player-section {
  padding-top: 48px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 36px 86px rgba(15, 23, 42, 0.22);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.36));
  cursor: pointer;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 24px 52px rgba(220, 38, 38, 0.35);
  font-size: 30px;
}

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

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

.detail-text-grid article,
.about-grid article {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.detail-text-grid h2,
.about-grid h2 {
  margin: 14px 0 12px;
  font-size: 28px;
  font-weight: 950;
}

.detail-text-grid p,
.about-grid p,
.about-grid li {
  color: #475569;
  line-height: 1.9;
}

.about-grid ul {
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 34px;
}

.footer-inner p {
  max-width: 480px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-inner h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 24px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

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

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

  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    height: 64px;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
    margin-left: auto;
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-content {
    padding: 96px 24px 104px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-band,
  .detail-hero-inner,
  .detail-text-grid,
  .about-grid,
  .category-overview-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .large-search,
  .filter-form {
    border-radius: 28px;
    flex-direction: column;
  }

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

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

@media (max-width: 560px) {
  .site-header-inner,
  .mobile-panel,
  .home-search-band,
  .content-section,
  .compact-hero > div,
  .detail-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo {
    font-size: 21px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

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

  .rank-item {
    grid-template-columns: auto 78px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item p {
    display: none;
  }
}
