
:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-600: #2563eb;
  --indigo-700: #4338ca;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --emerald-500: #10b981;
  --radius-xl: 18px;
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.16);
}

* {
  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", Arial, sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50), var(--sky-50));
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.site-nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.26);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.nav-pill:hover,
.nav-pill.is-active {
  color: var(--sky-700);
  background: var(--sky-100);
  transform: translateY(-1px);
}

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

.search-form input,
.filter-bar input,
.filter-bar select {
  width: 220px;
  border: 1px solid #dbeafe;
  background: var(--white);
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--gray-800);
  outline: none;
}

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

.search-form button,
.primary-button,
.secondary-button,
.player-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.search-form button,
.primary-button {
  padding: 11px 18px;
  color: var(--white);
  background: var(--sky-600);
  box-shadow: 0 10px 18px rgba(2, 132, 199, 0.20);
}

.search-form button:hover,
.primary-button:hover,
.player-button:hover {
  background: var(--sky-700);
  transform: translateY(-1px) scale(1.02);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: transparent;
}

.secondary-button:hover {
  color: var(--sky-700);
  background: var(--white);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--sky-100);
  color: var(--sky-700);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(100deg, var(--sky-600), var(--blue-600), var(--indigo-700));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 15% 72%, rgba(56, 189, 248, 0.24), transparent 32%),
    rgba(0, 0, 0, 0.18);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(to top, var(--gray-50), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -2px;
  font-weight: 950;
}

.hero-copy p {
  max-width: 730px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.65;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.hero-tags a,
.hero-tags span {
  display: inline-flex;
  padding: 8px 12px;
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(18px);
}

.hero-slide {
  display: none;
}

.hero-slide.is-current {
  display: block;
}

.hero-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.30);
}

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

.hero-card-text {
  padding: 16px 4px 4px;
}

.hero-card-text h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.hero-card-text p {
  margin: 0 0 14px;
  color: #e0f2fe;
  line-height: 1.7;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-current {
  width: 26px;
  background: var(--white);
}

.section {
  padding: 64px 0;
}

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

.section.soft {
  background: linear-gradient(135deg, #f8fafc, #f5f5f4);
}

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

.section-head h1,
.section-head h2,
.page-title h1 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.8px;
}

.section-head p,
.page-title p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.7;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card > a,
.category-card,
.stat-card {
  display: block;
  height: 100%;
  border-radius: var(--radius-xl);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card > a:hover,
.category-card:hover,
.stat-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

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

.movie-card > a:hover .card-cover,
.wide-card > a:hover .card-cover {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 66%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card > a:hover .poster-mask {
  opacity: 1;
}

.poster-mask span,
.rank-badge,
.wide-cover b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--amber-500);
}

.movie-info {
  padding: 16px;
}

.movie-info h2,
.wide-body h2 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card > a:hover h2,
.wide-card > a:hover h2 {
  color: var(--sky-600);
}

.movie-info p,
.wide-body p {
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-row span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--sky-50);
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: #047857;
  background: #ecfdf5;
}

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

.wide-card > a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 170px;
}

.wide-cover {
  position: relative;
  overflow: hidden;
  background: #dbeafe;
}

.wide-cover b {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rose-500);
}

.wide-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.category-card,
.stat-card {
  padding: 28px;
}

.category-card strong,
.stat-card strong {
  display: block;
  color: var(--gray-800);
  font-size: 22px;
  margin-bottom: 10px;
}

.category-card p,
.stat-card p {
  margin: 0 0 16px;
  color: var(--gray-500);
  line-height: 1.7;
}

.category-card span,
.stat-card span {
  color: var(--sky-600);
  font-weight: 800;
}

.page-title {
  padding: 54px 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-600);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
}

.filter-bar input {
  width: min(420px, 100%);
}

.detail-hero {
  color: var(--white);
  background: linear-gradient(110deg, var(--slate-900), #172554, var(--sky-700));
  padding: 42px 0 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -1px;
}

.detail-copy p {
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.detail-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
}

.player-shell {
  margin: 36px auto 0;
  max-width: 1180px;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.28);
}

.player-frame {
  position: relative;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 52%);
}

.player-button {
  width: 82px;
  height: 82px;
  color: var(--white);
  background: var(--sky-600);
  font-size: 28px;
  pointer-events: auto;
}

.player-frame.is-playing .player-overlay {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-frame:hover .player-overlay {
  opacity: 1;
}

.content-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.content-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 28px;
}

.content-panel p {
  margin: 0 0 16px;
  color: var(--gray-700);
  line-height: 1.9;
}

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

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

.side-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.side-item img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sky-100);
}

.side-item strong {
  display: -webkit-box;
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-item span {
  color: var(--gray-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 60px;
  padding: 56px 0 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #94a3b8;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: var(--radius-xl);
  color: var(--gray-500);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

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

  .hero-inner,
  .detail-layout,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-bottom: 54px;
  }
}

@media (max-width: 780px) {
  .site-nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
  }

  .search-form {
    margin-left: auto;
  }

  .search-form input {
    width: 160px;
  }

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 58px 0 86px;
  }

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

  .wide-card > a {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .grid-cards,
  .grid-cards.four,
  .grid-cards.three,
  .category-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-cover {
    max-width: 280px;
  }
}

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

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

  .search-form {
    width: 100%;
  }

  .search-form input {
    flex: 1;
  }

  .grid-cards,
  .grid-cards.four,
  .grid-cards.three,
  .category-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wide-card > a {
    grid-template-columns: 1fr;
  }

  .wide-cover {
    aspect-ratio: 16 / 9;
  }
}
