* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-bar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.28);
  font-size: 14px;
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #0284c7, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a,
.mobile-menu a {
  color: #475569;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-menu a:hover {
  color: #0284c7;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
}

.nav-search input,
.mobile-menu input,
.filter-input,
.search-large input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-menu input:focus,
.filter-input:focus,
.search-large input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.nav-search button,
.mobile-menu button,
.search-large button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 18px 16px 22px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.mobile-menu form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-menu nav {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #38bdf8 0%, #f9a8d4 48%, #fde68a 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.35;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-glow.one {
  width: 180px;
  height: 180px;
  top: 42px;
  left: 8%;
  background: #ffffff;
}

.hero-glow.two {
  width: 230px;
  height: 230px;
  top: 150px;
  right: 12%;
  background: #fbcfe8;
  animation-delay: 0.5s;
}

.hero-glow.three {
  width: 260px;
  height: 260px;
  bottom: 80px;
  left: 35%;
  background: #bae6fd;
  animation-delay: 1s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.46;
  }
}

.hero-shell {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 48px;
  padding: 58px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-text {
  color: #ffffff;
  text-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  color: #0369a1;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}

.hero h1,
.hero h2 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 950;
}

.hero h2 {
  font-size: clamp(36px, 5vw, 62px);
}

.hero p {
  max-width: 700px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #0284c7;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.hero-stats {
  position: absolute;
  left: -30px;
  bottom: 24px;
  display: grid;
  gap: 5px;
  padding: 14px 18px;
  color: #0f172a;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
}

.hero-stats strong {
  color: #db2777;
  font-size: 22px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 16px;
}

.hero-control.next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 6;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

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

.section {
  padding: 66px 0;
}

.section.white {
  background: #ffffff;
}

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

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

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #0284c7;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section h2,
.page-head h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
}

.section-link {
  color: #0284c7;
  font-weight: 900;
}

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

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

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.62));
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.poster-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.92);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-content {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.card-content strong {
  color: #1e293b;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: #0284c7;
}

.card-content em {
  min-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #64748b;
  font-style: normal;
  font-size: 14px;
}

.card-meta,
.detail-meta,
.breadcrumb,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

.card-meta span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span,
.rank-meta span,
.tag-list span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #f1f5f9;
}

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

.category-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  min-height: 152px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.category-cover {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
}

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

.category-info {
  display: grid;
  align-content: center;
  gap: 8px;
}

.category-info strong {
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.category-info em,
.category-info span {
  color: #64748b;
  font-style: normal;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 66px 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  font-weight: 950;
  font-size: 18px;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #64748b;
}

.page-hero {
  padding: 56px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899 58%, #f59e0b);
}

.page-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.page-hero h1 {
  color: #ffffff;
  text-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.filter-bar,
.search-large {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-input {
  max-width: 520px;
}

.search-large input {
  max-width: 680px;
  border-radius: 20px;
  padding: 15px 18px;
}

.detail-hero {
  padding: 42px 0 28px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
}

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

.detail-title p {
  margin: 16px 0 18px;
  color: #475569;
  font-size: 18px;
}

.detail-actions .btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 700;
}

.player-section {
  padding: 30px 0 64px;
  background: #0f172a;
}

.player-wrap h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 30px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.45);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #0284c7;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.35);
  font-size: 28px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.article-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.article-card {
  padding: 30px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 17px;
}

.side-card {
  padding: 22px;
}

.side-card .movie-card {
  margin-bottom: 16px;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 112px 1fr;
  border-radius: 18px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 16px 0 0 16px;
}

.movie-card.compact .card-content {
  padding: 12px;
}

.movie-card.compact .card-content strong {
  font-size: 15px;
}

.movie-card.compact .card-content em {
  min-height: auto;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: #64748b;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.empty-state.is-visible {
  display: block;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 420px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.site-footer a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-menu.is-open {
    display: block;
  }

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

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

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

@media (max-width: 820px) {
  .nav-bar {
    height: 66px;
  }

  .nav-search {
    display: none;
  }

  .hero,
  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    text-align: center;
    padding: 42px 0 76px;
  }

  .hero-poster {
    justify-self: center;
    width: min(320px, 82vw);
  }

  .hero-stats {
    left: 16px;
  }

  .hero-control {
    top: auto;
    bottom: 28px;
    transform: none;
  }

  .hero-control.prev {
    left: 24px;
  }

  .hero-control.next {
    right: 24px;
  }

  .hero-dots {
    bottom: 44px;
  }

  .section {
    padding: 46px 0;
  }

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

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

  .category-grid,
  .detail-layout,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-poster {
    max-width: 420px;
  }

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

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

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

  .hero,
  .hero-shell {
    min-height: 720px;
  }

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-num {
    width: 44px;
    height: 44px;
  }

  .rank-thumb {
    width: 100%;
  }

  .article-card {
    padding: 22px;
  }

  .mobile-menu form,
  .filter-bar,
  .search-large {
    flex-direction: column;
    align-items: stretch;
  }
}
