* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #020617;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

.nav-shell,
.main-shell,
.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb, #7c3aed);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-copy {
  width: min(760px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-copy .lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.2);
  font-size: 13px;
}

.hero-tags,
.detail-tags {
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn,
.quick-search a,
.quick-search button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.quick-search a:hover,
.quick-search button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.btn.primary,
.quick-search button {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.btn.ghost,
.quick-search a,
.filter-button {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.btn.soft {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.26);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

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

.quick-search {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 48px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.quick-search form {
  display: flex;
  gap: 12px;
}

.quick-search input,
.page-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  outline: none;
}

.quick-search input:focus,
.page-search:focus {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.page-main {
  padding-top: 46px;
}

.page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  margin-bottom: 34px;
  padding: 46px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.22), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.content-section {
  margin-bottom: 58px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title h2,
.detail-content h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-title a {
  color: #38bdf8;
  font-weight: 800;
}

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

.small-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.36);
  box-shadow: 0 28px 80px rgba(14, 165, 233, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-link img,
.detail-poster img,
.rank-thumb img,
.featured-poster img,
.tile-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-type {
  right: 10px;
  top: 10px;
  padding: 4px 9px;
  font-size: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: #38bdf8;
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 14px;
}

.card-small .card-body h3 {
  font-size: 16px;
}

.card-small .card-body p {
  min-height: 42px;
  font-size: 13px;
}

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

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.category-tile:hover {
  border-color: rgba(56, 189, 248, 0.38);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tile-thumbs img {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: #0f172a;
}

.featured-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.86));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.featured-text h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.featured-text p:not(.eyebrow) {
  max-width: 720px;
  color: #cbd5e1;
}

.featured-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.search-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-line .page-search {
  flex: 1 1 280px;
}

.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: transparent;
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
}

.rank-thumb {
  width: 70px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 6px;
  color: #cbd5e1;
  font-size: 14px;
}

.rank-score {
  display: grid;
  justify-items: end;
  color: #94a3b8;
  font-size: 12px;
}

.rank-score strong {
  color: #38bdf8;
  font-size: 20px;
}

.detail-main {
  background: #020617;
}

.detail-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #38bdf8;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: center;
  padding: 38px 0 70px;
}

.detail-meta {
  margin-top: 20px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

.player-section {
  margin: 48px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.38);
}

.play-button span {
  transform: translateX(3px);
  font-size: 34px;
}

.detail-content {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-content p {
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
}

.site-footer {
  margin-top: 80px;
  padding: 42px 0;
  color: #94a3b8;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-shell {
  display: grid;
  gap: 10px;
}

.footer-shell p {
  margin: 0;
}

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

  .category-grid.large,
  .featured-band,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .featured-poster,
  .detail-poster {
    width: min(320px, 100%);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-copy {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .quick-search form {
    flex-direction: column;
  }

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

  .page-hero {
    padding: 28px;
    border-radius: 22px;
  }

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

  .rank-score {
    grid-column: 3;
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .main-shell,
  .footer-shell,
  .quick-search {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 20px;
  }

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

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

  .hero-actions,
  .search-line {
    flex-direction: column;
  }

  .btn,
  .filter-button,
  .quick-search a,
  .quick-search button {
    width: 100%;
  }

  .detail-hero {
    min-height: auto;
  }

  .player-box {
    border-radius: 18px;
  }
}
