:root {
  --primary-900: #333d4f;
  --primary-800: #39475d;
  --primary-700: #445672;
  --primary-600: #506688;
  --primary-100: #ebeef3;
  --accent-500: #eab308;
  --accent-400: #facc15;
  --neutral-950: #0a0a0a;
  --neutral-900: #171717;
  --neutral-800: #262626;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--neutral-900);
  background: var(--neutral-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  color: var(--primary-900);
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
  box-shadow: 0 8px 20px rgba(80, 102, 136, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--neutral-700);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-900);
  background: var(--primary-100);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-100);
  color: var(--primary-900);
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--primary-900);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(250, 204, 21, 0.25), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(120deg, rgba(51, 61, 79, 0.92), rgba(17, 24, 39, 0.78));
  z-index: 0;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 620px;
  z-index: 1;
}

.hero-slide.active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.30;
  background-position: center;
  background-size: cover;
  filter: blur(1px) saturate(1.1);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.80));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 360px;
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 82px 0 72px;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #fff7cc;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--primary-900);
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--primary-900);
  background: var(--accent-400);
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.28);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-dark {
  color: var(--white);
  background: var(--primary-900);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(1.5deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: var(--accent-400);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 720px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--neutral-900);
  outline: none;
  font-size: 15px;
}

.section {
  padding: 54px 0;
}

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

.section-title {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 7px 0 0;
  color: var(--neutral-600);
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card,
.category-card,
.rank-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--primary-100);
}

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

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.card-title a:hover {
  color: var(--primary-600);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--neutral-500);
  font-size: 12px;
}

.card-desc {
  margin: 0;
  color: var(--neutral-600);
  font-size: 13px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card strong {
  color: var(--primary-900);
  font-size: 22px;
}

.category-card span {
  color: var(--neutral-600);
}

.category-card em {
  margin-top: auto;
  color: var(--accent-500);
  font-style: normal;
  font-weight: 800;
}

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

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

.rank-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--primary-900);
  background: var(--accent-400);
  border-radius: 18px;
  font-size: 20px;
  font-weight: 900;
}

.rank-card img {
  width: 88px;
  height: 118px;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-card p {
  margin: 0;
  color: var(--neutral-600);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  color: var(--neutral-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-700);
  font-weight: 700;
}

.page-hero {
  padding: 58px 0;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.25), transparent 30%),
    linear-gradient(135deg, var(--primary-900), var(--primary-600));
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.detail-meta span,
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-900);
  background: var(--primary-100);
  font-size: 13px;
  font-weight: 700;
}

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

.article-block {
  margin-top: 24px;
}

.article-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.article-block p {
  margin: 0;
  color: var(--neutral-700);
  font-size: 16px;
}

.side-poster {
  position: sticky;
  top: 92px;
}

.side-poster img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease;
}

.player-box.is-ready .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: var(--primary-900);
  background: var(--accent-400);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.notice {
  margin: 12px 0 0;
  color: var(--neutral-500);
  font-size: 13px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-result {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
}

.search-result img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.site-footer {
  margin-top: 56px;
  color: var(--neutral-300);
  background: var(--neutral-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 46px 0;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-inner p,
.footer-inner li {
  color: var(--neutral-300);
  font-size: 14px;
}

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

.footer-inner li + li {
  margin-top: 9px;
}

.footer-inner a:hover {
  color: var(--accent-400);
}

.copyright {
  padding: 18px 0;
  color: var(--neutral-500);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
}

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

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

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

  .hero-poster,
  .side-poster {
    max-width: 360px;
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

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

  .hero-content {
    gap: 24px;
    padding: 56px 0 78px;
  }

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

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

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

  .rank-card img {
    width: 66px;
    height: 88px;
  }

  .rank-card .btn {
    grid-column: 1 / -1;
  }

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

@media (max-width: 460px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-meta {
    gap: 8px;
  }

  .section {
    padding: 38px 0;
  }
}
