
:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-700: #334155;
  --secondary-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--secondary-200);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--secondary-900);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28);
}

.logo-text {
  font-size: 20px;
}

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

.nav-link {
  color: var(--secondary-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

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

.header-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--secondary-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--secondary-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 240px;
  padding: 10px 16px;
}

.header-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.header-search button,
.hero-search button,
.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
  color: var(--white);
  background: var(--primary-600);
}

.header-search button:hover,
.hero-search button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--secondary-200);
  border-radius: 14px;
  background: var(--white);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--secondary-900);
}

.hero-section {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 20%, rgba(125, 211, 252, 0.28), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(14, 165, 233, 0.18), transparent 26%),
    linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 45%, var(--secondary-900) 100%);
  overflow: hidden;
}

.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section .eyebrow,
.detail-hero .eyebrow {
  color: var(--primary-200);
}

.hero-intro h1,
.sub-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-intro p,
.sub-hero p,
.detail-one-line {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-search {
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 32px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.hero-search input {
  width: 100%;
  padding: 13px 18px;
}

.hero-search button {
  padding: 13px 22px;
  color: var(--primary-700);
  background: var(--white);
}

.hero-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-category {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
  position: relative;
}

.hero-slides {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1fr;
  gap: 24px;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster,
.poster-wrap,
.category-cover,
.detail-cover {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.88), rgba(15, 23, 42, 0.94)),
    var(--secondary-900);
}

.hero-poster {
  height: 500px;
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.42);
}

.hero-img,
.poster-img,
.category-cover-img,
.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

img.image-missing {
  opacity: 0;
}

.poster-wrap::after,
.hero-poster::after,
.category-cover::after,
.detail-cover::after {
  content: attr(data-title);
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  line-height: 1.35;
  pointer-events: none;
}

.hero-poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.55) 100%);
}

.hero-copy {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.45);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.82);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.btn-primary {
  color: var(--white);
  background: var(--primary-600);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.26);
}

.btn-light {
  color: var(--primary-700);
  background: var(--white);
}

.btn-ghost-light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: var(--white);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -42px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-medium);
}

.stat-strip div,
.stat-strip a {
  min-height: 80px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--secondary-50);
  text-align: center;
}

.stat-strip strong {
  display: block;
  color: var(--primary-600);
  font-size: 30px;
  line-height: 1;
}

.stat-strip span {
  color: var(--secondary-500);
  font-weight: 700;
}

.stat-strip a {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-900));
  font-weight: 900;
}

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

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

.section-heading.compact {
  align-items: start;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.more-link {
  color: var(--primary-600);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.34);
  box-shadow: var(--shadow-medium);
}

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

.poster-link {
  display: block;
}

.poster-wrap {
  height: 270px;
}

.poster-badge,
.poster-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 12px;
}

.poster-type {
  right: 12px;
}

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

.movie-title {
  display: block;
  min-height: 48px;
  color: var(--secondary-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  color: var(--secondary-500);
  font-size: 14px;
}

.movie-desc {
  min-height: 66px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 170px 1fr;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card-body {
  padding: 18px;
}

.category-card h3 {
  margin: 0;
  font-size: 20px;
}

.category-card p {
  color: var(--secondary-500);
}

.category-card span {
  color: var(--primary-600);
  font-weight: 900;
}

.two-column-section,
.ranking-layout,
.category-layout,
.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.hot-panel,
.detail-side-card {
  padding: 22px;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hot-panel.full {
  max-height: none;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

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

.rank-list.large {
  max-height: 820px;
  overflow: auto;
  padding-right: 6px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--secondary-50);
}

.rank-no {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--secondary-900);
  font-size: 13px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-score {
  color: var(--primary-600);
  font-weight: 900;
}

.sub-hero {
  padding: 74px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 18%, rgba(14, 165, 233, 0.24), transparent 26%),
    linear-gradient(135deg, var(--secondary-900), var(--primary-700));
}

.sub-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px 180px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-bar.single {
  grid-template-columns: 1fr auto;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
}

.result-count {
  justify-self: end;
  color: var(--secondary-500);
  font-weight: 800;
}

.result-count strong {
  color: var(--primary-600);
}

.detail-hero {
  padding: 64px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 10%, rgba(125, 211, 252, 0.22), transparent 28%),
    linear-gradient(135deg, var(--secondary-900), #07111f 46%, var(--primary-700));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-cover {
  height: 470px;
  border-radius: 30px;
  box-shadow: 0 32px 70px rgba(2, 6, 23, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.detail-one-line {
  color: rgba(255, 255, 255, 0.86);
}

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

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

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

.detail-meta-grid strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.detail-meta-grid span {
  margin-top: 5px;
  font-weight: 900;
}

.detail-tags {
  margin: 20px 0 26px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow-medium);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(2, 132, 199, 0.26), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-700);
  background: var(--white);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.32);
}

.detail-content-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.detail-article {
  padding: 30px;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-article h2 + p {
  margin-top: 0;
}

.detail-article p {
  color: var(--secondary-700);
  font-size: 17px;
}

.detail-side-card h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.detail-side-card dl {
  margin: 0;
}

.detail-side-card dt {
  margin-top: 12px;
  color: var(--secondary-500);
  font-size: 13px;
  font-weight: 800;
}

.detail-side-card dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.site-footer {
  margin-top: 40px;
  color: var(--secondary-400);
  background: var(--secondary-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 30px;
  padding: 44px 0;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
}

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

.footer-links a:hover {
  color: var(--primary-200);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.is-filter-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .mobile-menu-button {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-search {
    display: none;
  }

  .site-nav.is-open,
  .header-search.is-open {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-nav.is-open {
    flex-wrap: wrap;
    padding-top: 12px;
  }

  .header-search.is-open {
    padding-bottom: 16px;
  }

  .header-search input {
    width: 100%;
  }

  .hero-grid,
  .hero-slide,
  .detail-hero-grid,
  .two-column-section,
  .ranking-layout,
  .category-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: grid;
  }

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

  .hero-poster {
    height: 380px;
  }

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

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

  .sticky-panel {
    position: static;
  }
}

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

  .hero-grid {
    min-height: auto;
    padding: 42px 0 62px;
  }

  .hero-search,
  .filter-bar,
  .filter-bar.single,
  .stat-strip,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-copy {
    padding: 22px;
  }

  .stat-strip {
    margin-top: -28px;
  }

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

  .poster-wrap {
    height: 310px;
  }

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

  .detail-cover {
    height: 430px;
  }
}
