:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --accent-50: #ecfdf5;
  --accent-500: #10b981;
  --accent-600: #059669;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --white: #ffffff;
  --black: #020617;
  --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 25px 70px rgba(15, 23, 42, 0.24);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--secondary-200);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--secondary-900);
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.25);
  font-size: 15px;
}

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

.main-nav a,
.mobile-links a {
  color: var(--secondary-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-links a:hover,
.mobile-links a.active {
  color: var(--primary-600);
}

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

.header-search input,
.filter-input {
  border: 1px solid var(--secondary-300);
  background: var(--white);
  border-radius: 14px;
  padding: 11px 14px;
  outline: none;
  min-width: 210px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.filter-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.header-search button,
.btn,
.filter-buttons button {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.btn-primary,
.filter-buttons button.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.22);
}

.header-search button:hover,
.btn:hover,
.filter-buttons button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: var(--secondary-100);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--secondary-800);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--secondary-200);
  background: var(--white);
}

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

.mobile-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700), var(--secondary-900));
}

.hero-stage {
  position: relative;
  min-height: 640px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(110deg, rgba(3, 105, 161, 0.92), rgba(15, 23, 42, 0.72)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  padding: 74px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  color: var(--primary-700);
  background: var(--primary-50);
  border-color: var(--primary-100);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 720px;
  margin: 0;
  font-size: 19px;
  color: var(--primary-100);
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn-glass {
  color: var(--primary-700);
  background: var(--white);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-card {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

.hero-card:hover {
  transform: scale(1.025);
}

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

.hero-card-info {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), transparent);
}

.hero-card-info span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-600);
  font-weight: 800;
  font-size: 13px;
}

.hero-card-info strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 24px;
}

.hero-card-info small {
  color: var(--secondary-200);
}

.hero-thumbs {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 9px;
  backdrop-filter: blur(12px);
  cursor: pointer;
  overflow: hidden;
}

.hero-thumb.active {
  background: rgba(255, 255, 255, 0.28);
}

.hero-thumb img {
  width: 42px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-thumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 66px 0;
}

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

.alt-section {
  border-top: 1px solid var(--secondary-100);
}

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

.section-head h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--secondary-500);
}

.section-more {
  color: var(--primary-700);
  font-weight: 800;
}

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

.category-tile,
.category-panel,
.movie-card,
.player-card,
.story-block,
.rank-feature,
.rank-line {
  background: var(--white);
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.category-tile {
  display: block;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-panel:hover,
.movie-card:hover,
.rank-feature:hover,
.rank-line:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.category-tile img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: var(--secondary-100);
}

.category-tile span {
  display: block;
  margin-top: 14px;
  font-weight: 850;
  font-size: 18px;
}

.category-tile p,
.movie-card p,
.category-panel p {
  color: var(--secondary-500);
  margin: 6px 0 0;
  font-size: 14px;
}

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

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  background: var(--secondary-100);
  overflow: hidden;
}

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

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

.play-dot,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
}

.play-dot {
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.84);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

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

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

.movie-card h3 {
  margin: 9px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 750;
}

.tag.large {
  padding: 7px 11px;
  font-size: 13px;
}

.page-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700), var(--secondary-900));
}

.small-hero {
  padding: 54px 0;
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--primary-100);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: currentColor;
  opacity: 0.88;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

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

.category-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 220px;
  background: var(--secondary-100);
}

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

.category-panel-body {
  padding: 28px;
}

.category-panel-body h2 {
  margin: 0 0 10px;
}

.category-panel-body span {
  display: inline-flex;
  margin-top: 22px;
  color: var(--primary-700);
  font-weight: 850;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  color: var(--secondary-700);
  background: var(--secondary-100);
  box-shadow: none;
}

.detail-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background-image: linear-gradient(110deg, rgba(3, 105, 161, 0.94), rgba(15, 23, 42, 0.82)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(15, 23, 42, 0.1);
}

.detail-grid {
  position: relative;
  z-index: 2;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  width: 270px;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

.detail-info h1 {
  margin: 14px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-line {
  max-width: 850px;
  margin: 0;
  color: var(--primary-100);
  font-size: 18px;
}

.detail-tags .tag {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.story-block {
  padding: 18px;
}

.video-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--black);
}

.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.08));
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--primary-700);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: var(--shadow-strong);
}

.story-block h2 {
  margin: 0 0 12px;
}

.story-block h2:not(:first-child) {
  margin-top: 26px;
}

.story-block p {
  margin: 0;
  color: var(--secondary-700);
}

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

.rank-feature {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.rank-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
}

.rank-feature span,
.rank-feature strong,
.rank-feature small {
  position: relative;
  z-index: 2;
  display: block;
  margin-left: 22px;
  margin-right: 22px;
}

.rank-feature span {
  width: fit-content;
  margin-top: 190px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--primary-600);
  font-weight: 900;
}

.rank-feature strong {
  margin-top: 12px;
  font-size: 24px;
}

.rank-feature small {
  color: var(--secondary-200);
}

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

.rank-line {
  display: grid;
  grid-template-columns: 52px 64px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-index {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--secondary-900);
  font-weight: 900;
}

.rank-line img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-title {
  font-weight: 850;
}

.rank-info {
  color: var(--secondary-500);
}

.site-footer {
  background: var(--secondary-900);
  color: var(--secondary-300);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 520px;
  color: var(--secondary-400);
}

.site-footer h3 {
  color: var(--white);
  margin: 0 0 12px;
}

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

.site-footer a:hover {
  color: var(--primary-200);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: var(--secondary-500);
}

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 460px;
  }

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

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

  .movie-row,
  .rank-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .hero-stage,
  .hero-grid {
    min-height: 720px;
  }

  .hero-grid {
    padding-top: 42px;
    gap: 28px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-card img {
    height: 320px;
  }

  .hero-thumbs {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-input {
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .home-grid,
  .movie-row,
  .rank-feature-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-poster img {
    width: min(260px, 75vw);
  }

  .rank-line {
    grid-template-columns: 42px 56px minmax(0, 1fr);
  }

  .rank-info {
    grid-column: 3 / 4;
  }
}
