* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.12), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.site-logo {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #22d3ee;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.mobile-search input,
.large-search input {
  color: #f8fafc;
  background: rgba(51, 65, 85, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 270px;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.large-search button {
  color: #07111d;
  font-weight: 800;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button {
  padding: 10px 15px;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.menu-button {
  display: none;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  padding: 8px 11px;
  background: rgba(15, 23, 42, 0.6);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 16px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
}

.mobile-search button {
  padding: 10px 14px;
}

.mobile-nav,
.mobile-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav-link,
.mobile-category-strip a {
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
}

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

.hero-slider {
  min-height: 68vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.46);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 43%, rgba(15, 23, 42, 0.34) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: center;
  min-height: 68vh;
  padding: 80px 0 86px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #22d3ee;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

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

.hero-tags,
.tag-row,
.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.movie-card-tags span {
  color: #cffafe;
  background: rgba(14, 165, 233, 0.13);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
}

.hero-tags span,
.tag-row span {
  padding: 8px 12px;
}

.movie-card-tags span {
  padding: 4px 9px;
  font-size: 12px;
}

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

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

.btn-primary {
  color: #06111f;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.25);
}

.btn-ghost {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.btn-line {
  color: #bae6fd;
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: rgba(8, 47, 73, 0.18);
}

.hero-poster {
  display: block;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.38), rgba(96, 165, 250, 0.08));
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.52);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  color: #e0f2fe;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.66);
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  border-color: transparent;
}

.section {
  margin-top: 64px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.62));
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.32);
}

.intro-panel h2,
.section-head h2,
.article-section h2,
.related-categories h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.intro-panel p {
  margin: 10px 0 0;
  color: #b6c7da;
}

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

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.large-search button {
  padding: 0 22px;
}

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

.section-head.compact {
  margin-bottom: 16px;
}

.section-link {
  color: #67e8f9;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.26);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(30, 41, 59, 0.82);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.86);
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  color: #06111f;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item a:hover,
.category-tile a:hover,
.footer-grid a:hover,
.breadcrumb a:hover,
.prev-next a:hover {
  color: #22d3ee;
}

.movie-meta {
  margin: 7px 0 0;
  color: #93a4b8;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 45px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: #bac7d6;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.category-tile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.58));
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.22);
}

.category-cover {
  display: flex;
  align-items: end;
  min-height: 132px;
  padding: 12px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.6), transparent 40%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(30, 64, 175, 0.72));
}

.category-cover span {
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 6px 16px rgba(2, 6, 23, 0.38);
}

.category-tile h3 {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
}

.category-tile p {
  margin: 8px 0 12px;
  color: #aebdd0;
  font-size: 14px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  color: #bae6fd;
  font-size: 13px;
  background: rgba(8, 47, 73, 0.38);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.55fr);
  gap: 32px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 15px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-poster span {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #06111f;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.compact-card .movie-desc,
.compact-card .movie-card-tags {
  display: none;
}

.page-shell {
  padding-top: 42px;
}

.page-hero {
  padding: 46px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 16%, rgba(34, 211, 238, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.62));
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.28);
}

.page-hero p {
  max-width: 850px;
  margin: 14px 0 0;
  color: #bdcce0;
}

.category-movie-grid {
  align-items: stretch;
}

.related-categories {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.related-categories div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.related-categories a {
  padding: 8px 12px;
  color: #bae6fd;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.32);
}

.detail-shell {
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.58));
}

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

.detail-summary {
  max-width: 880px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
}

.detail-meta dt {
  color: #93a4b8;
  font-size: 13px;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.detail-info .btn {
  margin-top: 24px;
}

.player-section {
  margin-top: 34px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 84px rgba(2, 6, 23, 0.48);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #ffffff;
  text-align: center;
  border: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at center, rgba(14, 165, 233, 0.18), transparent 34%);
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #06111f;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.32);
}

.player-overlay strong {
  font-size: clamp(20px, 3vw, 32px);
}

.article-section {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.article-section h2 + p {
  margin-top: 12px;
}

.article-section p {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 17px;
}

.prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prev-next a {
  padding: 9px 12px;
  color: #bae6fd;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.32);
}

.site-footer {
  margin-top: 80px;
  color: #aebdd0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(2, 6, 23, 0.96));
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(160px, 0.4fr));
  gap: 32px;
  padding: 44px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid h2 {
  color: transparent;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
}

.footer-grid p {
  max-width: 620px;
  margin: 0;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .header-search,
  .main-nav {
    display: none;
  }

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

  .hero-content,
  .intro-panel,
  .two-column,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .header-inner {
    height: 62px;
  }

  .site-logo {
    font-size: 21px;
  }

  .hero,
  .hero-slider,
  .hero-content {
    min-height: 72vh;
  }

  .hero-content {
    padding: 56px 0 88px;
  }

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

  .hero-actions,
  .large-search,
  .prev-next {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-controls {
    width: calc(100% - 24px);
    justify-content: center;
  }

  .intro-panel,
  .page-hero,
  .detail-hero,
  .article-section {
    padding: 22px;
    border-radius: 22px;
  }

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

  .category-grid,
  .category-grid.wide,
  .side-card-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 14px;
  }

  .category-cover {
    min-height: 114px;
  }

  .rank-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .play-mark {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .movie-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-desc,
  .movie-card-tags {
    display: none;
  }
}
