:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;
  --white: #ffffff;
  --text-main: #111827;
  --text-soft: #64748b;
  --page: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.32);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 14px;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #60a5fa;
}

.header-search {
  width: 250px;
  position: relative;
}

.header-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.85);
  color: var(--white);
  outline: none;
  padding: 10px 42px 10px 16px;
}

.header-search input::placeholder {
  color: #94a3b8;
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

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

.mobile-nav a {
  display: block;
  color: #cbd5e1;
  padding: 12px 0;
}

.mobile-nav .header-search {
  width: 100%;
  margin-top: 8px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-700));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
  padding-top: 24px;
}

.hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
}

.pill-blue {
  background: var(--blue-600);
  color: var(--white);
}

.pill-glass {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 70px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  animation: fadeIn 0.8s ease;
}

.hero-copy p {
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.5vw, 25px);
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 0;
  cursor: pointer;
}

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

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

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

.btn-glass {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-light {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-soft);
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.section {
  padding: 68px 0;
}

.section-white {
  background: var(--white);
}

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

.section-title {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--text-soft);
  max-width: 680px;
}

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

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

.movie-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

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

.poster-link {
  display: block;
  position: relative;
  background: #0f172a;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.92);
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.35);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-main);
}

.card-title a:hover {
  color: var(--blue-600);
}

.card-desc {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eff6ff;
  color: var(--blue-700);
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--slate-900), var(--blue-700));
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.82));
}

.category-card-content {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
}

.category-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.45;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 88px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: var(--white);
  font-weight: 900;
}

.rank-thumb {
  width: 88px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.rank-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
}

.rank-desc {
  margin: 0;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  padding: 70px 0;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.45), transparent 32%), linear-gradient(90deg, var(--slate-900), var(--slate-800));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  color: #cbd5e1;
  max-width: 760px;
  font-size: 18px;
}

.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  color: #64748b;
  font-size: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

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

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 28px;
  padding: 36px 0 70px;
}

.panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.panel-pad {
  padding: 26px;
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62));
  transition: opacity 0.25s ease;
}

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

.player-play {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.92);
  color: var(--white);
  font-size: 34px;
  box-shadow: 0 22px 40px rgba(2, 6, 23, 0.35);
  cursor: pointer;
}

.movie-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.movie-main-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.movie-main-title h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 900;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
}

.info-item {
  color: var(--text-soft);
  font-size: 14px;
}

.info-item strong {
  display: block;
  color: var(--text-main);
  font-size: 16px;
}

.article-block h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.article-block p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.9;
}

.side-poster {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0f172a;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
  background: #eff6ff;
  transform: translateX(2px);
}

.side-link img {
  width: 62px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.side-link strong {
  display: block;
  line-height: 1.35;
}

.side-link span {
  color: var(--text-soft);
  font-size: 13px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--white);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  color: var(--white);
  font-weight: 900;
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 14px;
}

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

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

.empty-state {
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--text-soft);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

  .content-layout {
    grid-template-columns: 1fr;
  }

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

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

  .hero-carousel {
    height: 560px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 12px;
  }

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

  .card-body {
    padding: 13px;
  }

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-thumb {
    width: 72px;
    height: 92px;
  }

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

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

  .movie-main-title {
    display: block;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 34px;
  }
}
