:root {
  --cyan: #06b6d4;
  --blue: #2563eb;
  --slate: #0f172a;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #eef7fb 100%);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}
.logo-mark {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 22px rgba(6, 182, 212, 0.32);
}
.logo-text {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 650;
  color: #475569;
}
.nav a:hover,
.nav a.active {
  color: #0891b2;
}
.header-search {
  position: relative;
  min-width: 260px;
}
.header-search input {
  width: 100%;
  padding: 10px 15px 10px 38px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  outline: none;
  background: #fff;
  transition: 0.2s ease;
}
.header-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
}
.mobile-panel {
  display: none;
  border-top: 1px solid #e2e8f0;
  padding: 14px 0 20px;
}
.mobile-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #475569;
  font-weight: 650;
}
.mobile-panel a:hover {
  background: #ecfeff;
  color: #0891b2;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(135deg, #0f172a 0%, #164e63 58%, #0369a1 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 300px;
  background: rgba(255, 255, 255, 0.10);
  filter: blur(80px);
}
.hero-slider {
  position: relative;
  min-height: 620px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}
.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #cffafe;
  font-size: 13px;
  font-weight: 700;
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  font-weight: 900;
}
.hero-lead {
  max-width: 680px;
  font-size: 18px;
  color: #dbeafe;
}
.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(6, 182, 212, 0.35);
}
.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.20);
}
.btn-outline {
  color: #0e7490;
  border-color: #a5f3fc;
  background: #ecfeff;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}
.hero .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
}
.hero-poster-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 0.86fr 0.56fr;
  align-items: end;
  gap: 18px;
}
.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(1.5deg);
  background: #0f172a;
}
.hero-poster img,
.small-poster img,
.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster::after,
.small-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.52));
}
.hero-side-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}
.small-poster {
  overflow: hidden;
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}
.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}
.hero-dot.active {
  background: #67e8f9;
}
.section {
  padding: 72px 0 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.section-desc {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.card-grid.large {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #dbeafe;
}
.poster img {
  transition: transform 0.45s ease;
}
.movie-card:hover .poster img {
  transform: scale(1.07);
}
.poster-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.72));
  transition: opacity 0.25s ease;
}
.movie-card:hover .poster-overlay {
  opacity: 1;
}
.year-pill {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #06b6d4;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.card-body {
  padding: 12px 13px 14px;
}
.card-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-card:hover .card-title {
  color: #0891b2;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}
.card-line {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0e7490, #2563eb);
  box-shadow: var(--shadow);
}
.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #155e75, #0f766e);
}
.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}
.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}
.category-card p {
  margin: 0;
  color: #e0f2fe;
}
.category-card span {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-weight: 900;
}
.rank-list {
  display: grid;
  gap: 12px;
}
.rank-item {
  display: grid;
  grid-template-columns: 52px 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}
.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ecfeff;
  color: #0891b2;
  font-weight: 900;
}
.rank-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 2 / 3;
  background: #e0f2fe;
}
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-title {
  font-size: 18px;
  font-weight: 850;
}
.rank-desc {
  color: #64748b;
  font-size: 14px;
}
.page-hero {
  padding: 58px 0 36px;
  background: radial-gradient(circle at 15% 0, rgba(103, 232, 249, 0.35), transparent 32%), linear-gradient(135deg, #eff6ff, #ffffff 55%, #ecfeff);
  border-bottom: 1px solid #e2e8f0;
}
.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.breadcrumb {
  color: #64748b;
  font-size: 14px;
}
.breadcrumb a {
  color: #0891b2;
  font-weight: 750;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  margin-bottom: 24px;
}
.filters input,
.filters select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  outline: none;
  background: #fff;
}
.filters input:focus,
.filters select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 28px;
  padding-top: 40px;
}
.player-shell {
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}
.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}
.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}
.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.play-ring {
  width: 86px;
  height: 86px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 38px;
  background: rgba(6, 182, 212, 0.72);
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.45);
}
.detail-card {
  border-radius: 24px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}
.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.meta-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}
.detail-section {
  margin-top: 22px;
}
.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.detail-section p {
  margin: 0;
  color: #334155;
}
.sidebar-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #e0f2fe;
  box-shadow: var(--shadow);
}
.sidebar-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.recommend-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.recommend-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.recommend-item img {
  width: 62px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #e0f2fe;
}
.recommend-title {
  font-weight: 850;
  line-height: 1.35;
}
.recommend-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}
.site-footer {
  margin-top: 76px;
  padding: 44px 0;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #164e63);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: #67e8f9;
}
.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  color: #64748b;
  background: #fff;
  border-radius: 22px;
}
.empty-state.show {
  display: block;
}
@media (max-width: 1080px) {
  .card-grid,
  .card-grid.large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .nav,
  .header-search {
    display: none;
  }
  .menu-button {
    display: grid;
    place-items: center;
  }
  .mobile-panel.open {
    display: block;
  }
  .hero,
  .hero-slider,
  .hero-grid {
    min-height: auto;
  }
  .hero-slide {
    position: relative;
    display: none;
  }
  .hero-slide.active {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 0 82px;
  }
  .hero-poster-wrap {
    grid-template-columns: 1fr 0.55fr;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .rank-item {
    grid-template-columns: 42px 64px 1fr;
  }
  .rank-item .btn {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .card-grid,
  .card-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 50px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-poster-wrap {
    gap: 12px;
  }
  .detail-card {
    padding: 20px;
  }
  .player-shell,
  .player-frame,
  .detail-card,
  .sidebar-poster {
    border-radius: 18px;
  }
}
