* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e5e7eb;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 34rem), #020617;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(30, 64, 175, 0.38);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #02111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.18);
}

.brand-text {
  color: #ffffff;
  font-size: 1.32rem;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.nav-links a:hover,
.footer-links a:hover {
  color: #67e8f9;
}

.nav-search {
  display: flex;
  align-items: center;
  min-width: 280px;
  border: 1px solid rgba(6, 182, 212, 0.24);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.58);
}

.nav-search input,
.mobile-panel input,
.local-search input,
.local-search select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.nav-search input {
  padding: 10px 14px;
}

.nav-search button {
  border: 0;
  padding: 10px 16px;
  color: #02111f;
  background: #22d3ee;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.56);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #e5e7eb;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border: 1px solid rgba(30, 64, 175, 0.3);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.45);
}

.mobile-panel input {
  padding: 12px 14px;
  border: 1px solid rgba(6, 182, 212, 0.26);
  border-radius: 14px;
}

main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 78vh;
  margin: 22px auto 46px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.36);
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.12)), linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  width: min(760px, 100%);
  padding: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  line-height: 1.08;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  max-width: 760px;
}

.hero-content p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: 1.08rem;
}

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

.btn,
.btn-ghost,
.section-link,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn {
  color: #02111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.25);
}

.btn-ghost,
.section-link {
  border: 1px solid rgba(103, 232, 249, 0.34);
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.48);
}

.btn:hover,
.btn-ghost:hover,
.section-link:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 3;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 68px));
}

.hero-dots button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.68);
  cursor: pointer;
  text-align: left;
}

.hero-dots button.is-active {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(8, 145, 178, 0.38);
}

.hero-dots img {
  width: 56px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.content-section,
.page-hero,
.detail-hero,
.watch-section,
.article-card,
.related-section,
.filter-panel {
  margin-bottom: 46px;
}

.section-heading,
.page-hero,
.filter-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(30, 64, 175, 0.26);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 58, 138, 0.24));
}

.section-heading h2,
.page-hero h1,
.article-card h2,
.related-section h2,
.watch-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.section-heading p,
.page-hero p,
.article-card p,
.related-section p,
.watch-section p,
.category-card span,
.card-desc {
  color: #aab6c7;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(30, 64, 175, 0.24);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.86));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.58);
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.1);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.play-badge,
.rank-num {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 800;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  color: #02111f;
  background: #22d3ee;
}

.rank-num {
  left: 12px;
  top: 12px;
  min-width: 38px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #db2777);
  text-align: center;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.meta-line {
  color: #67e8f9;
  font-size: 0.82rem;
}

.movie-card strong {
  color: #ffffff;
  font-size: 1.04rem;
  line-height: 1.28;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span,
.info-pill,
.local-search label {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.16);
}

.tag-row span {
  padding: 3px 8px;
  font-size: 0.78rem;
}

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

.category-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(30, 64, 175, 0.28);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.5);
}

.category-card strong {
  color: #ffffff;
  font-size: 1.15rem;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.category-covers img {
  height: 110px;
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(30, 64, 175, 0.24);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
}

.rank-row:hover {
  border-color: rgba(34, 211, 238, 0.55);
}

.rank-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(8, 145, 178, 0.36);
}

.rank-row img {
  width: 74px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-info strong {
  color: #ffffff;
  font-size: 1.04rem;
}

.rank-info span {
  color: #94a3b8;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-action {
  color: #02111f;
  background: #22d3ee;
}

.local-search {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  width: 100%;
}

.local-search input,
.local-search select {
  padding: 13px 16px;
  border: 1px solid rgba(6, 182, 212, 0.26);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
}

.local-search select {
  color: #e5e7eb;
}

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

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  margin-top: 26px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.3);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.78);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.82)), var(--detail-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  opacity: 0.8;
}

.detail-poster,
.detail-info {
  position: relative;
  z-index: 1;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #67e8f9;
  font-size: 0.9rem;
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.detail-lead {
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: 1.08rem;
}

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

.info-pill {
  padding: 8px 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tags span {
  padding: 8px 12px;
}

.watch-section,
.article-card,
.related-section {
  padding: 28px;
  border: 1px solid rgba(30, 64, 175, 0.28);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.72);
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 28px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

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

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

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: #02111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  font-size: 2rem;
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.25);
}

.article-card {
  display: grid;
  gap: 28px;
}

.article-card p {
  margin: 12px 0 0;
  font-size: 1rem;
}

.related-section .movie-grid {
  margin-top: 20px;
}

.site-footer {
  margin-top: 60px;
  padding: 38px 0 28px;
  border-top: 1px solid rgba(30, 64, 175, 0.32);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 680px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  color: #64748b;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-content {
    padding: 42px;
  }
}

@media (max-width: 820px) {
  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    justify-content: flex-start;
    padding: 36px 24px 230px;
  }

  .hero-dots {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .section-heading,
  .page-hero,
  .filter-panel,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

  .local-search {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }
}

@media (max-width: 560px) {
  main,
  .nav-wrap,
  .mobile-panel,
  .footer-inner,
  .copyright {
    width: min(100% - 22px, 1280px);
  }

  .brand-text {
    font-size: 1.1rem;
  }

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

  .hero-slider {
    border-radius: 22px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.3rem;
  }

  .hero-dots button:nth-child(n+4) {
    display: none;
  }

  .watch-section,
  .article-card,
  .related-section,
  .section-heading,
  .page-hero,
  .filter-panel {
    padding: 20px;
    border-radius: 22px;
  }
}
