:root {
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 52%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--red-900), var(--red-700));
  box-shadow: var(--shadow-md);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--red-800);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 12px;
  color: #fee2e2;
}

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

.nav-link {
  color: #fee2e2;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  outline: none;
}

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

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--red-800);
  background: var(--white);
  font-weight: 700;
}

.menu-button {
  display: none;
  margin-left: auto;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 10px;
  width: 42px;
  height: 42px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: #fee2e2;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 48%, rgba(15, 23, 42, 0.34) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--red-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: #e2e8f0;
  font-size: 19px;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 13px 24px;
  color: var(--white);
  background: var(--red-600);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--red-700);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.36);
}

.ghost-button {
  padding: 13px 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 26px;
}

.hero-next {
  right: 26px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.home-search-panel {
  width: min(1100px, calc(100% - 32px));
  margin: -42px auto 48px;
  position: relative;
  z-index: 8;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(12px);
}

.home-search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search-panel input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 13px 15px;
  outline: none;
  background: var(--white);
}

.home-search-panel button {
  border: 0;
  border-radius: 14px;
  padding: 13px 24px;
  color: var(--white);
  background: var(--red-600);
  font-weight: 800;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  border-radius: 999px;
  padding: 8px 13px;
  background: #fee2e2;
  color: var(--red-800);
  font-weight: 700;
  font-size: 14px;
}

.content-section,
.page-container,
.detail-container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 36px 0;
}

.content-section.no-padding {
  padding-top: 0;
}

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

.section-kicker {
  display: block;
  color: var(--red-600);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.section-more,
.text-button {
  color: var(--red-700);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--slate-800);
  color: var(--white);
}

.category-tile img,
.category-tile-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-mask {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.22));
}

.category-tile strong,
.category-tile small {
  position: absolute;
  left: 20px;
  right: 20px;
}

.category-tile strong {
  bottom: 72px;
  font-size: 24px;
}

.category-tile small {
  bottom: 20px;
  color: #e2e8f0;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-200);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 58%);
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  right: 10px;
  padding: 5px 9px;
  background: var(--amber-500);
}

.rank-badge {
  left: 10px;
  min-width: 32px;
  padding: 5px 8px;
  background: var(--red-600);
  text-align: center;
}

.movie-info {
  padding: 13px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover .movie-info h3 a {
  color: var(--amber-600);
}

.movie-one-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  margin-bottom: 38px;
  padding: 58px max(16px, calc((100vw - 1280px) / 2)) 64px;
  color: var(--white);
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(120deg, var(--red-800), var(--red-600));
}

.small-hero,
.search-hero,
.rank-hero,
.category-hero {
  min-height: 280px;
}

.page-container {
  padding-bottom: 36px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-overview-head span {
  color: var(--red-600);
  font-size: 13px;
  font-weight: 900;
}

.category-overview-head h2 {
  margin: 4px 0 6px;
  font-size: 28px;
}

.category-overview-head p {
  margin: 0;
  color: var(--slate-600);
}

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

.filter-panel {
  margin: 0 0 24px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-title {
  margin-bottom: 14px;
  color: var(--slate-900);
  font-size: 20px;
  font-weight: 850;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 12px;
}

.empty-state {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 12px;
  color: var(--red-800);
  background: #fee2e2;
  font-weight: 700;
}

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

.rank-list-home {
  max-width: 850px;
}

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

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

.rank-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-700), var(--amber-500));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--slate-200);
}

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

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.rank-meta strong {
  color: var(--amber-600);
}

.player-stage {
  background: #000000;
}

.player-wrap {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000000;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img,
.player-cover-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.76;
}

.player-cover-mask {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.2), rgba(0, 0, 0, 0.72));
}

.big-play {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red-600);
  box-shadow: 0 18px 50px rgba(220, 38, 38, 0.36);
  font-size: 34px;
}

.detail-container {
  padding: 28px 0 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--red-700);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.detail-cover {
  position: sticky;
  top: 92px;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  background: var(--slate-200);
}

.wide-button {
  width: 100%;
  margin-top: 16px;
}

.detail-main h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--slate-600);
}

.detail-meta strong {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-500);
}

.detail-box {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-box h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-box p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
}

.lead-box p {
  color: var(--red-800);
  font-size: 19px;
  font-weight: 750;
}

.tag-box .tag-list span {
  color: var(--slate-700);
  background: var(--slate-100);
}

.review-box {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.related-section {
  padding-top: 24px;
}

.site-footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-column p {
  margin: 0;
  color: #94a3b8;
}

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

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

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

[hidden] {
  display: none !important;
}

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

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .mobile-search {
    padding-top: 10px;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-slider,
  .hero-content {
    min-height: 520px;
  }

  .hero-content {
    padding: 72px 0;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-panel form,
  .filter-controls,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    position: static;
    max-width: 320px;
  }

  .rank-row {
    grid-template-columns: 52px 78px 1fr;
    gap: 10px;
  }

  .rank-index {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1280px);
    height: 64px;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-content p,
  .page-hero p {
    font-size: 16px;
  }

  .content-section,
  .page-container,
  .detail-container {
    width: min(100% - 24px, 1280px);
  }

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

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

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-info h3 {
    font-size: 14px;
  }

  .movie-one-line {
    font-size: 12px;
  }

  .player-wrap {
    aspect-ratio: 16 / 10;
  }
}
