
:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --gold: #fbbf24;
  --red: #ef4444;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--blue-900), var(--slate-900));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 20px;
  font-weight: 800;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

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

.main-nav a,
.mobile-panel nav a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
  color: #bfdbfe;
}

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

.header-search input,
.mobile-panel input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 10px 16px;
  transition: all 0.2s ease;
}

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

.header-search input:focus,
.mobile-panel input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #93c5fd;
  background: rgba(255, 255, 255, 0.18);
}

.header-search button,
.mobile-panel button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--blue-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900) 48%, var(--slate-950));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 32px 32px;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.24;
}

.hero::before {
  top: -120px;
  right: 10%;
  background: var(--blue-500);
}

.hero::after {
  left: -160px;
  bottom: -180px;
  background: #38bdf8;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 78px 0 54px;
}

.hero-slider {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 54px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-side h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-tags {
  margin: 28px 0 0;
}

.hero-tags span,
.tag-list span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover {
  background: var(--blue-700);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  isolation: isolate;
  display: block;
  border-radius: 30px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(1.5deg);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.56));
}

.hero-poster-glow {
  position: absolute;
  inset: auto 28px 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-500), #67e8f9, var(--gold));
  z-index: 2;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

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

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

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-quick a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px 18px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

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

.content-section.soft-bg,
.detail-content {
  background: var(--slate-50);
}

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

.section-head h2,
.related-box h2,
.article-card h2,
.ranking-side h2,
.site-footer h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-head.light h2,
.section-head.light .eyebrow {
  color: var(--white);
}

.more-link {
  color: var(--blue-600);
  font-weight: 800;
}

.more-link:hover {
  color: var(--blue-800);
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

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

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

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.74);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 17px;
}

.movie-info strong {
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
}

.movie-info em {
  color: var(--blue-600);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.movie-info span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 22px;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  font-size: 19px;
}

.category-card em {
  color: var(--slate-600);
  font-style: normal;
}

.gradient-panel {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.rank-num {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-item em {
  overflow: hidden;
  color: #bfdbfe;
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta-section {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--white), #eff6ff);
}

.cta-box {
  border-radius: 32px;
  padding: 54px 24px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}

.cta-box p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: #dbeafe;
  font-size: 18px;
}

.page-hero,
.detail-top {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
}

.page-hero {
  padding: 58px 0;
}

.page-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #dbeafe;
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: 18px;
}

.category-cover-strip img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

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

.category-overview-card p {
  max-width: 760px;
  color: var(--slate-600);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.filter-bar label {
  display: grid;
  flex: 1 1 220px;
  gap: 7px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--slate-900);
  background: var(--slate-50);
}

.empty-state {
  border-radius: 24px;
  padding: 44px;
  color: var(--slate-500);
  text-align: center;
  background: var(--white);
}

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

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

.ranking-list {
  display: grid;
  gap: 14px;
  color: var(--white);
}

.ranking-list .rank-item {
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
}

.ranking-side {
  align-self: start;
  position: sticky;
  top: 92px;
  border-radius: 24px;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ranking-side h2 {
  margin-bottom: 18px;
}

.search-page-form {
  display: flex;
  max-width: 680px;
  gap: 10px;
  margin-top: 26px;
}

.search-page-form input {
  width: 100%;
}

.detail-top {
  padding: 24px 0 42px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.52fr);
  gap: 26px;
  align-items: stretch;
}

.player-card,
.detail-side,
.article-card,
.related-box {
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-card {
  background: #000;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-cover span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.44);
  font-size: 30px;
}

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

.detail-side {
  display: grid;
  grid-template-rows: 220px 1fr;
  color: var(--slate-900);
}

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

.detail-side div {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.detail-side h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.detail-side p:not(.eyebrow) {
  margin: 0;
  color: var(--slate-600);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.article-card {
  padding: 30px;
}

.article-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.article-card h2:first-of-type {
  margin-top: 24px;
}

.article-card p {
  color: var(--slate-700);
  font-size: 17px;
}

.article-card .lead {
  color: var(--slate-900);
  font-size: 20px;
  font-weight: 800;
}

.meta-row span,
.tag-list span {
  color: var(--blue-800);
  background: var(--blue-100);
}

.related-box {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.related-box h2 {
  margin-bottom: 18px;
}

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

.related-list .movie-card,
.compact-grid .movie-card {
  border-radius: 18px;
}

.related-list .movie-info span,
.compact-grid .movie-info span {
  -webkit-line-clamp: 1;
}

.block {
  display: block;
  margin-top: 18px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

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

  .ranking-side,
  .related-box {
    position: static;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slide,
  .detail-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 720px;
  }

  .hero-poster {
    max-width: 620px;
    transform: none;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero-inner {
    padding-top: 52px;
  }

  .hero-slider {
    min-height: 680px;
  }

  .hero-quick,
  .section-head,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: 38px 76px minmax(0, 1fr);
  }

  .rank-item img {
    width: 76px;
    height: 54px;
  }

  .page-hero,
  .content-section {
    padding: 42px 0;
  }

  .article-card,
  .related-box {
    padding: 20px;
  }

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