:root {
  --blue: #2563eb;
  --cyan: #0891b2;
  --teal: #0d9488;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), #ffffff 42%, var(--slate-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.24);
}

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

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
}

.nav a {
  opacity: 0.96;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(120deg, #1d4ed8, #0891b2 52%, #0f766e);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.35;
}

.hero::before {
  width: 340px;
  height: 340px;
  left: -110px;
  top: -120px;
  background: #bae6fd;
}

.hero::after {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -180px;
  background: #99f6e4;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-search a {
  white-space: nowrap;
}

.hero-panel {
  position: relative;
}

.hero-slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.05));
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.72));
}

.hero-caption {
  padding: 24px;
}

.hero-caption h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
}

.hero-caption p {
  margin: 0 0 18px;
  color: #e0f2fe;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

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

.section {
  margin-top: 46px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-desc {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--slate-600);
}

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

.grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card,
.category-card,
.info-card,
.rank-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

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

.movie-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.movie-region,
.movie-year {
  position: absolute;
  top: 10px;
  z-index: 2;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.movie-region {
  left: 10px;
  background: rgba(8, 145, 178, 0.92);
}

.movie-year {
  right: 10px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(7px);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-weight: 900;
}

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

.movie-body {
  padding: 13px;
}

.movie-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: 16px;
  line-height: 1.35;
}

.movie-body p {
  min-height: 42px;
  margin: 0 0 10px;
  color: var(--slate-600);
  font-size: 13px;
  line-height: 1.55;
}

.movie-meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 12px;
}

.soft-block {
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.category-card {
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 9px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 800;
}

.search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 22px 0 30px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.search-box input {
  width: 100%;
  border: 1px solid var(--slate-200);
  outline: 0;
  padding: 13px 14px;
  border-radius: 15px;
}

.search-box select {
  border: 1px solid var(--slate-200);
  outline: 0;
  padding: 13px 14px;
  border-radius: 15px;
  background: #ffffff;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--slate-500);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--cyan);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
  gap: 28px;
  align-items: start;
}

.detail-hero {
  padding: 28px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(120deg, #1d4ed8, #0891b2 55%, #0f766e);
  box-shadow: 0 30px 70px rgba(8, 145, 178, 0.18);
}

.detail-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.detail-hero p {
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.watch-player {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.26);
}

.watch-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.58));
  pointer-events: none;
}

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

.play-button {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  pointer-events: auto;
  font-size: 26px;
  font-weight: 900;
}

.detail-card {
  padding: 26px;
  margin-top: 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--slate-700);
}

.side-poster {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
  box-shadow: var(--shadow);
}

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

.side-meta {
  padding: 20px;
  margin-top: 18px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.side-meta dl {
  margin: 0;
}

.side-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--slate-200);
}

.side-meta div:last-child {
  border-bottom: 0;
}

.side-meta dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-meta dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 62px minmax(90px, 116px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-no {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

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

.rank-text h2,
.rank-text h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-text p {
  margin: 0;
  color: var(--slate-600);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 26px;
}

.footer-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-inner h2,
.footer-inner h3 {
  color: #22d3ee;
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-inner p,
.footer-inner li {
  margin: 0 0 8px;
  color: #cbd5e1;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.copy {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: #94a3b8;
  font-size: 14px;
}

.hide-card {
  display: none !important;
}

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

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

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

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

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

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

  .hero-inner {
    padding: 46px 0;
  }

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

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

  .section-header,
  .search-box {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-card {
    grid-template-columns: 44px 82px minmax(0, 1fr);
  }

  .rank-card .button {
    grid-column: 2 / -1;
  }
}
