:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-600: #2563eb;
  --cyan-400: #22d3ee;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --orange-500: #f97316;
  --yellow-500: #eab308;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.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.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.24);
  font-size: 14px;
}

.brand-text {
  font-size: 20px;
  color: var(--gray-900);
}

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

.nav-link,
.mobile-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--sky-600);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--gray-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.mobile-nav.open {
  display: grid;
  gap: 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--sky-600), var(--blue-600) 52%, #0891b2);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.22) 2px, transparent 0);
  background-size: 34px 34px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 28%), radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.24), transparent 30%), rgba(0, 0, 0, 0.08);
}

.hero-inner {
  position: relative;
  min-height: 540px;
  padding: 96px 0 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  color: #a5f3fc;
}

.hero-desc {
  max-width: 700px;
  margin: 28px 0 0;
  color: #dbeafe;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.primary-button,
.ghost-button,
.text-button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 13px 28px;
  color: var(--sky-700);
  background: var(--white);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.more-link:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 11px 26px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(3, 105, 161, 0.45);
}

.hero-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.24);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.hero-spots {
  display: grid;
  gap: 14px;
}

.hero-spot {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-spot:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-spot strong,
.hero-spot span {
  display: block;
}

.hero-spot span {
  margin-top: 6px;
  color: #dbeafe;
  font-size: 14px;
}

.hero-search {
  display: block;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--sky-700);
  background: var(--white);
  font-weight: 800;
  text-align: center;
}

.stat-strip {
  position: relative;
  z-index: 3;
  margin-top: -50px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-grid div {
  padding: 24px;
  text-align: center;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid strong {
  color: var(--gray-900);
  font-size: 28px;
}

.stat-grid span {
  margin-top: 3px;
  color: var(--gray-500);
  font-weight: 700;
}

.section-block {
  padding: 76px 0;
}

.muted-block {
  background: var(--gray-50);
}

.section-title {
  margin-bottom: 32px;
}

.center-title {
  text-align: center;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.small-title h2 {
  font-size: 30px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
}

.poster-wrap {
  position: relative;
  height: 250px;
  display: block;
  overflow: hidden;
  background: var(--gray-200);
}

.compact-card .poster-wrap {
  height: 190px;
}

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

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

.card-type,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-type {
  top: 14px;
  right: 14px;
  padding: 5px 11px;
  background: var(--sky-600);
}

.card-year {
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  background: var(--yellow-500);
}

.card-body {
  padding: 20px;
}

.compact-card .card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.compact-card .card-body h2 {
  font-size: 16px;
}

.card-body h2 a:hover {
  color: var(--sky-600);
}

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.tag-row span,
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
  font-weight: 700;
}

.tag-chip:hover {
  color: var(--sky-700);
  background: var(--sky-100);
}

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

.category-box,
.category-overview-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-box:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 38px;
}

.category-box strong {
  display: block;
  font-size: 20px;
}

.category-box em,
.category-box small {
  display: block;
  margin-top: 8px;
  color: var(--gray-600);
  font-style: normal;
}

.category-box small {
  color: var(--sky-700);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.ranking-aside,
.side-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.mini-list {
  display: grid;
  gap: 16px;
}

.mini-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.mini-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.mini-card h2 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.35;
}

.mini-card h2 a:hover {
  color: var(--sky-600);
}

.mini-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 12px;
}

.mini-rank {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--orange-500);
  background: #ffedd5;
  font-size: 12px;
  font-weight: 900;
}

.more-link,
.text-button {
  margin-top: 22px;
  color: var(--sky-700);
  font-weight: 900;
}

.cta-band,
.page-hero,
.search-hero,
.detail-head {
  color: var(--white);
  background: linear-gradient(120deg, var(--sky-600), var(--blue-600));
}

.cta-inner,
.page-hero .container,
.search-hero .container,
.detail-head .container {
  padding: 72px 0;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2,
.page-hero h1,
.search-hero h1,
.detail-head h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.cta-inner p,
.page-hero p,
.search-hero p,
.detail-head p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.cta-inner p {
  margin: 0 auto 28px;
}

.light-button {
  color: var(--sky-700);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--white);
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-heading span {
  font-size: 34px;
}

.category-heading h2,
.category-overview-card p {
  margin: 0;
}

.category-overview-card p {
  margin-top: 12px;
  color: var(--gray-600);
}

.overview-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.overview-links a {
  color: var(--gray-700);
  font-weight: 800;
}

.overview-links a:hover {
  color: var(--sky-600);
}

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  margin-bottom: 30px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-panel {
  grid-template-columns: 1fr 220px 180px;
  margin-top: 32px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  padding: 34px;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-card);
  text-align: center;
  font-weight: 800;
}

.empty-state.show {
  display: block;
}

.rank-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.detail-head .container {
  padding-bottom: 54px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card,
.info-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.72));
}

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

.play-button {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid var(--sky-600);
}

.player-mask strong {
  padding: 0 22px;
  text-align: center;
  font-size: clamp(20px, 3vw, 30px);
}

.info-card {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gray-500);
  font-weight: 800;
}

.pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--sky-100);
}

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

.info-card h2:first-of-type,
.side-card h2:first-child {
  margin-top: 0;
}

.info-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
  font-size: 16px;
}

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

.detail-side {
  display: grid;
  gap: 22px;
}

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

.poster-card dl {
  margin: 18px 0 0;
}

.poster-card div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.poster-card div:last-child {
  border-bottom: 0;
}

.poster-card dt {
  color: var(--gray-500);
}

.poster-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  text-align: right;
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  margin: 18px 0 0;
  color: var(--gray-400);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  padding: 22px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--gray-400);
  text-align: center;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .hero-inner,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .ranking-aside,
  .detail-side {
    width: 100%;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    min-height: auto;
    padding: 72px 0 92px;
    gap: 28px;
  }

  .stat-grid,
  .movie-grid,
  .latest-grid,
  .category-movie-grid,
  .search-grid,
  .ranking-grid,
  .category-grid,
  .overview-grid,
  .rank-list-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .poster-wrap {
    height: 220px;
  }
}

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

  .brand-text {
    font-size: 17px;
  }

  .hero-copy h1,
  .page-hero h1,
  .search-hero h1,
  .detail-head h1 {
    font-size: 36px;
  }

  .hero-desc,
  .page-hero p,
  .search-hero p,
  .detail-head p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .stat-grid,
  .movie-grid,
  .latest-grid,
  .category-movie-grid,
  .search-grid,
  .ranking-grid,
  .category-grid,
  .overview-grid,
  .rank-list-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 52px 0;
  }

  .poster-wrap,
  .compact-card .poster-wrap {
    height: 245px;
  }

  .mini-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .mini-card img {
    width: 82px;
    height: 82px;
  }

  .info-card,
  .side-card,
  .ranking-aside,
  .filter-panel,
  .search-panel {
    padding: 18px;
  }
}
