:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --sky: #38bdf8;
  --orange: #f97316;
  --red: #ef4444;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-mark {
  font-size: 30px;
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.12) rotate(-6deg);
}

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

.site-nav a,
.nav-dropdown > button {
  border: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
  cursor: pointer;
  opacity: 0.94;
  padding: 20px 0;
}

.site-nav a:hover,
.site-nav a.active,
.nav-dropdown > button:hover {
  color: #cffafe;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 180px;
  padding: 8px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  color: var(--text);
  border-radius: 10px;
}

.dropdown-panel a:hover {
  color: var(--blue);
  background: #ecfeff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 24px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee 0%, #2563eb 55%, #1d4ed8 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 28%, rgba(255, 255, 255, 0.28), transparent 28%), rgba(0, 0, 0, 0.12);
}

.hero-glow {
  position: absolute;
  right: -120px;
  top: 28px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(2px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 390px);
  align-items: center;
  gap: 48px;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.5s ease both;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 22px);
  color: #ecfeff;
}

.hero-kicker,
.eyebrow {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cffafe;
}

.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: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--blue);
  background: #e0f2fe;
}

.hero-actions,
.center-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

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

.btn-light {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.btn-outline {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-gradient {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.hero-poster {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.35);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent 55%);
}

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

.hero-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 16px;
  font-size: 16px;
}

.hero-search input::placeholder {
  color: #dff7ff;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  padding: 10px 22px;
  font-weight: 800;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dots button.active {
  width: 30px;
  background: #ffffff;
}

.feature-strip {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.feature-grid div,
.channel-card,
.content-card,
.category-overview-card,
.player-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-grid div {
  padding: 20px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.feature-grid strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
}

.feature-grid span {
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.light-section {
  background: #f8fafc;
}

.section-head {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 760px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.channel-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover,
.movie-card:hover,
.rank-item:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.15);
}

.channel-card span {
  color: var(--blue);
  font-weight: 900;
}

.channel-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.channel-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.filter-panel {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-input,
.filter-select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 0 16px;
  font: inherit;
  outline: 0;
}

.filter-input {
  flex: 1;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-card h3,
.movie-card h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

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

.movie-card h3 a:hover,
.movie-card h4 a:hover,
.rank-body h3 a:hover {
  color: var(--blue);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-number {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
}

.rank-thumb {
  border-radius: 14px;
  overflow: hidden;
}

.rank-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rank-body h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
}

.rank-body p {
  display: -webkit-box;
  margin: 0 0 10px;
  color: var(--muted);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.center-actions {
  justify-content: center;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  padding: 86px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "🎬";
  position: absolute;
  right: 10%;
  top: 18px;
  font-size: 180px;
  opacity: 0.12;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  color: #ecfeff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover {
  border-radius: 18px;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
  padding: 42px 0 70px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.45));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #cffafe;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 18px;
  color: #e0f2fe;
  font-size: 20px;
}

.large-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

.player-card {
  overflow: hidden;
  background: #0f172a;
}

.video-wrap {
  position: relative;
  width: 100%;
  background: #000000;
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.44);
  font-size: 34px;
  padding-left: 4px;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-info {
  padding: 22px 26px;
  color: #ffffff;
}

.player-info h2 {
  margin: 0 0 8px;
}

.player-info p {
  margin: 0;
  color: #cbd5e1;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
}

.content-card p {
  margin: 0;
  color: var(--text);
}

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

.detail-nav-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.detail-nav-links a {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
  padding-top: 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
}

.footer-logo span {
  font-size: 30px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #67e8f9;
}

.footer-links {
  columns: 2;
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

  .compact-ranks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: #2563eb;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .nav-dropdown > button {
    padding: 12px 0;
  }

  .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: 6px;
    box-shadow: none;
  }

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

  .hero-poster {
    justify-self: start;
    max-width: 260px;
    transform: none;
  }

  .hero-tools,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-grid,
  .content-grid,
  .detail-nav-links,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .detail-cover {
    width: min(260px, 80%);
  }

  .rank-item {
    grid-template-columns: 42px 88px 1fr;
    gap: 12px;
  }

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

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

  .hero-section,
  .hero-inner {
    min-height: 640px;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 42px;
  }

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

  .rank-item,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .rank-thumb img {
    aspect-ratio: 16 / 9;
  }

  .section {
    padding: 52px 0;
  }
}
