:root {
  color-scheme: light;
  --page: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #101828;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.1);
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --accent: #dc2626;
  --accent-2: #f59e0b;
  --accent-3: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.12), transparent 34rem), var(--page);
  color: var(--text);
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #334155);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475467;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #111827;
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-category-list a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-weight: 700;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.hero-shell {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, #0f172a 0%, #111827 42%, #312e81 100%);
  box-shadow: var(--shadow);
}

.hero-bg-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.35), transparent 22rem), radial-gradient(circle at 80% 30%, rgba(96, 165, 250, 0.24), transparent 28rem), radial-gradient(circle at 60% 90%, rgba(245, 158, 11, 0.2), transparent 22rem);
  pointer-events: none;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) 360px;
  gap: 34px;
  align-items: center;
  min-height: 560px;
  padding: 56px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55)), var(--hero-image) center / cover no-repeat;
  opacity: 0.5;
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-intro p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-card .tag-row span,
.info-card .tag-row span,
.story-section .tag-row span {
  background: #f2f4f7;
  color: #475467;
}

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

.primary-button,
.secondary-button,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  box-shadow: 0 16px 35px rgba(220, 38, 38, 0.35);
}

.secondary-button,
.panel-link {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.panel-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.35);
}

.hero-poster img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 32px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

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

.hero-dots button.active {
  background: #fff;
}

.section-block {
  margin-top: 34px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.compact-heading h2 {
  font-size: 24px;
}

.category-strip {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pills a {
  padding: 12px 16px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-pills a:hover {
  background: #111827;
  color: #fff;
  transform: translateY(-2px);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #111827, #475467);
}

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

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  font-weight: 900;
}

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

.movie-card h2 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.movie-card h2 a:hover {
  color: var(--accent);
}

.card-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #475467;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-panel,
.info-card,
.story-section,
.player-section,
.category-card-large,
.filter-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.hot-list {
  display: grid;
  gap: 9px;
}

.hot-list-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hot-list-item:hover {
  background: #eef2ff;
  transform: translateX(3px);
}

.hot-list-item span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.hot-list-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-list-item em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.hot-panel .panel-link {
  width: 100%;
  margin-top: 16px;
  background: #111827;
}

.page-hero {
  overflow: hidden;
  padding: 46px;
  border-radius: 34px;
  background: linear-gradient(135deg, #111827, #312e81 58%, #7f1d1d);
  box-shadow: var(--shadow);
}

.category-hero,
.search-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 52%, #7c2d12);
}

.ranking-hero {
  background: linear-gradient(135deg, #111827, #7f1d1d 55%, #92400e);
}

.slim-hero {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.filter-block {
  padding: 20px;
}

.sticky-filter {
  position: sticky;
  top: 78px;
  z-index: 20;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
}

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

.filter-row input:focus,
.filter-row select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.category-card-large {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

.category-card-large span {
  color: var(--accent);
  font-weight: 900;
}

.category-card-large h2 {
  margin: 8px 0 16px;
  font-size: 22px;
  line-height: 1.35;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  overflow: hidden;
  min-height: 520px;
  padding: 46px;
  border-radius: 36px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72)), var(--detail-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.detail-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: linear-gradient(135deg, #111827, #475467);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.34);
}

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

.detail-intro {
  position: relative;
  z-index: 2;
}

.detail-meta {
  margin: 14px 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-section,
.story-section,
.info-card {
  padding: 24px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #030712;
}

.player-panel video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #030712;
}

.play-cover-button {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.52), rgba(3, 7, 18, 0.88));
  color: #fff;
  cursor: pointer;
}

.play-cover-button span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  font-size: 28px;
  box-shadow: 0 20px 45px rgba(220, 38, 38, 0.38);
}

.play-cover-button strong {
  font-size: 18px;
}

.player-panel.is-playing .play-cover-button {
  opacity: 0;
  pointer-events: none;
}

.story-section h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.story-section p {
  margin: 0;
  color: #344054;
  font-size: 16px;
}

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

.info-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.site-footer {
  margin-top: 58px;
  background: linear-gradient(135deg, #0f172a, #111827 48%, #1e293b);
  color: #d0d5dd;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}

.footer-logo .brand-mark {
  background: rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  max-width: 520px;
  color: #98a2b3;
}

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

.footer-links h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
}

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

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  color: #98a2b3;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 1180px) {
  .movie-grid,
  .archive-grid,
  .search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .side-panel,
  .detail-side {
    position: static;
  }
}

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

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

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

  .mobile-nav .nav-link {
    display: inline-flex;
    margin: 8px 8px 0 0;
  }

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

  .hero-poster {
    display: none;
  }

  .category-strip,
  .filter-row,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filter-row {
    gap: 12px;
  }

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

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

@media (max-width: 680px) {
  main {
    padding: 16px 14px 0;
  }

  .header-inner {
    padding: 12px 14px;
  }

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

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

  .hero-slide,
  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 36px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

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

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

  .movie-card h2 {
    font-size: 15px;
  }

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

  .player-section,
  .story-section,
  .info-card,
  .filter-block {
    padding: 16px;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .archive-grid,
  .search-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }
}
