* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f8fafc;
  font-family: ui-sans-serif, system-ui, -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;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 20px;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #0891b2;
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 290px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 14px;
  border: 0;
  outline: none;
}

.header-search button,
.search-page-form button {
  padding: 9px 16px;
  color: #ffffff;
  background: #0891b2;
  border: 0;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #1f2937;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 18px;
}

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

.mobile-panel a {
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 12px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(180deg, #0f172a, #1e293b);
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px 92px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

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

.hero-tags,
.detail-facts,
.tag-list,
.page-hero-stats,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-facts span,
.page-hero-stats span {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #0891b2;
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.28);
}

.primary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  background: #0e7490;
}

.primary-button.full {
  width: 100%;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.featured-band,
.content-section,
.category-section,
.page-main,
.detail-main,
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.featured-band {
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 28px;
  align-items: stretch;
}

.featured-title {
  padding: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #155e75);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.featured-title h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
}

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

.feature-card,
.category-tile,
.movie-card,
.movie-info-card,
.text-card,
.player-card,
.side-poster-card,
.side-info-card,
.rank-row {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13);
}

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

.feature-card div {
  padding: 18px;
}

.feature-card span {
  color: #0891b2;
  font-size: 13px;
  font-weight: 700;
}

.feature-card h3,
.movie-card h3 {
  margin: 6px 0 8px;
  line-height: 1.35;
}

.feature-card p,
.movie-card p,
.section-heading p,
.category-tile span,
.site-footer p,
.page-hero p {
  color: #64748b;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.section-heading p {
  margin: 0;
}

.section-more {
  color: #ffffff;
  background: #0891b2;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  padding: 4px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.poster-year {
  top: 10px;
  right: 10px;
  background: #0891b2;
}

.poster-play {
  left: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.78);
}

.movie-card-body {
  padding: 14px;
}

.movie-card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  font-size: 14px;
}

.movie-meta span {
  padding: 4px 8px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
}

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

.category-tile {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 30%), linear-gradient(135deg, #0f172a, #164e63 55%, #2563eb);
  border-radius: 30px;
}

.compact-hero {
  padding: 52px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 18px;
}

.page-hero-stats {
  margin-top: 24px;
}

.page-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
}

.page-filter input,
.search-page-form input {
  min-width: 260px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  outline: none;
}

.search-page-form {
  display: flex;
  max-width: 620px;
  margin-top: 26px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 999px;
}

.search-page-form input {
  flex: 1;
  border: 0;
  border-radius: 0;
}

.detail-main {
  padding-top: 32px;
}

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

.breadcrumb a {
  color: #0891b2;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
}

.detail-primary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player-card {
  overflow: hidden;
  background: #020617;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: rgba(8, 145, 178, 0.9);
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 46px rgba(8, 145, 178, 0.35);
}

.big-play.is-hidden {
  display: none;
}

.movie-info-card,
.text-card,
.side-poster-card,
.side-info-card {
  padding: 24px;
}

.movie-info-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #334155;
  font-size: 18px;
}

.detail-facts span {
  color: #0f172a;
  background: #e0f2fe;
  border: 0;
}

.tag-list {
  margin-top: 18px;
}

.tag-list span {
  padding: 6px 10px;
  color: #0e7490;
  background: #ecfeff;
  border-radius: 999px;
  font-weight: 700;
}

.text-card h2,
.side-info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 18px;
}

.side-info-card dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  margin: 0;
}

.side-info-card dt {
  color: #64748b;
}

.side-info-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.side-info-card a {
  color: #0891b2;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 70px minmax(0, 1fr) auto 72px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
}

.rank-index {
  color: #0891b2;
  font-size: 24px;
  font-weight: 900;
}

.rank-row img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-main {
  min-width: 0;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main strong {
  color: #0f172a;
  font-size: 18px;
}

.rank-main em {
  overflow: hidden;
  color: #64748b;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: #64748b;
  white-space: nowrap;
}

.rank-score {
  color: #ffffff;
  padding: 7px 10px;
  text-align: center;
  background: #0891b2;
  border-radius: 999px;
  font-weight: 900;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

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

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

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

  .menu-toggle {
    display: flex;
  }

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

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    gap: 14px;
    padding: 12px 16px;
  }

  .header-search {
    display: none;
  }

  .hero {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 0 18px 86px;
  }

  .hero-control {
    display: none;
  }

  .featured-band,
  .footer-grid,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

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

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

  .compact-hero {
    padding: 34px 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-filter,
  .page-filter input,
  .search-page-form {
    width: 100%;
  }

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

  .rank-row img {
    width: 56px;
    height: 76px;
  }

  .rank-meta {
    display: none;
  }
}
