* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #172033;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f7fbff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 48%, #06b6d4 100%);
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.26);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #1e3a8a;
  background: #facc15;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.28);
  font-size: 14px;
}

.brand__text {
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav-link,
.mobile-link {
  position: relative;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fef08a;
  opacity: 1;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 12% 18%, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(120deg, #172554 0%, #1d4ed8 44%, #06b6d4 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(0deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
  pointer-events: none;
}

.hero-slides {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 580px;
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 56px;
  min-height: 580px;
  padding: 74px 0 92px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
  color: #1e3a8a;
  background: #facc15;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(250, 204, 21, 0.22);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button-primary,
.button-secondary,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #1e3a8a;
  background: #facc15;
  box-shadow: 0 18px 34px rgba(250, 204, 21, 0.26);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-primary:hover,
.button-secondary:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  isolation: isolate;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.3), rgba(14, 165, 233, 0.28));
  filter: blur(2px);
}

.hero-poster img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.42);
  transition: transform 0.28s ease;
}

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

.hero-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #2563eb;
  font-size: 28px;
}

.hero-play span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 36px;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

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

.hero-dot {
  width: 32px;
  height: 6px;
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
  background: #facc15;
}

.main-section {
  padding: 64px 0;
}

.main-section--soft {
  background: linear-gradient(90deg, #ecfdf5 0%, #eff6ff 100%);
}

.section-heading {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 30px;
  display: grid;
  gap: 6px;
}

.section-heading span {
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #64748b;
}

.section-heading--orange span {
  color: #f97316;
}

.section-heading--green span {
  color: #16a34a;
}

.section-heading--purple span {
  color: #7c3aed;
}

.movie-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 20px 42px rgba(14, 165, 233, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.card-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  opacity: 0.86;
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.12));
  transition: opacity 0.24s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-region,
.card-type {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.card-region {
  top: 12px;
  left: 12px;
  background: #2563eb;
}

.card-type {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.78);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.rank-body h3 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 18px;
  line-height: 1.32;
}

.card-body h3 a,
.rank-body h3 a {
  transition: color 0.2s ease;
}

.card-body h3 a:hover,
.rank-body h3 a:hover {
  color: #2563eb;
}

.card-body p,
.rank-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  border-radius: 24px;
  box-shadow: 0 20px 42px rgba(14, 165, 233, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.category-card h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0 0 22px;
  color: #dbeafe;
}

.category-card strong {
  position: relative;
  z-index: 2;
  display: inline-flex;
  color: #facc15;
}

.filter-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 0 14px;
  color: #172033;
  background: #f8fafc;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.rank-list {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
}

.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-cover img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #1e3a8a;
  background: #facc15;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
}

.rank-action {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.tag-line {
  color: #64748b;
  font-size: 13px;
}

.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.2), transparent 30%), linear-gradient(120deg, #0f172a 0%, #1d4ed8 48%, #06b6d4 100%);
}

.detail-hero__inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #bfdbfe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #facc15;
}

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

.detail-copy p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 56px 0 28px;
  background: #f8fafc;
}

.player-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.player-title {
  margin: 0 0 18px;
  color: #172033;
  font-size: clamp(24px, 3vw, 34px);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.42);
  text-align: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover__content {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 20px;
}

.player-cover__icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.content-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 34px 0 64px;
}

.article-panel,
.side-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.article-panel {
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #172033;
  font-size: 24px;
}

.article-panel p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 16px;
}

.side-panel {
  align-self: start;
  padding: 24px;
}

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

.info-list div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.info-list dt {
  color: #64748b;
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: #172033;
  text-align: right;
}

.related-section {
  padding: 0 0 72px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 52px 0;
}

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

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

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

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

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  padding: 18px 16px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .movie-grid,
  .movie-grid--dense,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .menu-button {
    display: block;
  }

  .brand__text {
    font-size: 20px;
  }

  .hero-slides,
  .hero-slide {
    min-height: auto;
  }

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

  .hero-slide {
    gap: 32px;
    padding: 50px 0 96px;
  }

  .hero-controls {
    bottom: 26px;
  }

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

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

  .rank-action {
    grid-column: 1 / -1;
  }

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

@media (max-width: 560px) {
  .container,
  .site-header__inner,
  .mobile-nav,
  .hero-slides,
  .section-heading,
  .movie-grid,
  .category-grid,
  .filter-panel,
  .rank-list,
  .detail-hero__inner,
  .content-layout,
  .player-wrap {
    width: min(100% - 24px, 1240px);
  }

  .hero h1,
  .detail-copy h1 {
    font-size: 32px;
  }

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

  .movie-grid,
  .movie-grid--dense,
  .category-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-section {
    padding: 46px 0;
  }

  .article-panel,
  .side-panel {
    padding: 22px;
  }
}
