:root {
  --site-bg: #f8fafc;
  --site-panel: rgba(255, 255, 255, 0.92);
  --site-text: #111827;
  --site-muted: #64748b;
  --site-border: rgba(148, 163, 184, 0.22);
  --site-primary: #0ea5e9;
  --site-primary-dark: #2563eb;
  --site-primary-soft: #e0f2fe;
  --site-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --site-radius: 26px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.14), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--site-bg) 44%, #eef6ff 100%);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  object-fit: cover;
}

.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.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.32);
}

.logo-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--site-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.header-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 14px;
  color: #334155;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-nav a:hover,
.header-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #0284c7;
  background: #e0f2fe;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  position: relative;
  width: 260px;
  max-width: 28vw;
}

.header-search input,
.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-search input {
  height: 42px;
  padding: 0 48px 0 18px;
}

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

.header-search button {
  position: absolute;
  right: 5px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0369a1;
  background: #e0f2fe;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: relative;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 4px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.88);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 74px 0 62px;
  color: #ffffff;
  background: #0f172a;
}

.hero-backgrounds {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 650ms ease, transform 1200ms ease;
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(14, 165, 233, 0.18) 100%),
    radial-gradient(circle at 76% 22%, rgba(56, 189, 248, 0.32), transparent 22rem);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(186, 230, 253, 0.36);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.14);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

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

.hero-copy p.hero-desc {
  max-width: 710px;
  margin-top: 22px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

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

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

.hero-tags a,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags a {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.28);
  border: 1px solid rgba(186, 230, 253, 0.24);
}

.hero-tags a:hover {
  background: rgba(14, 165, 233, 0.48);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.btn,
.hero-actions a,
.section-actions a,
.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary,
.hero-actions a:first-child,
.section-actions a:first-child {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.32);
}

.btn-secondary,
.hero-actions a:nth-child(2),
.section-actions a:nth-child(2) {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn:hover,
.hero-actions a:hover,
.section-actions a:hover {
  transform: translateY(-2px);
}

.hero-slider {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.34);
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

.hero-slide {
  display: none;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
}

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

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

.hero-slide-body {
  padding: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.96));
}

.hero-slide-body h2 {
  font-size: 24px;
  font-weight: 900;
}

.hero-slide-body p {
  margin-top: 10px;
  color: #cbd5e1;
  line-height: 1.7;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 28px;
  background: #38bdf8;
}

.section {
  padding: 70px 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0284c7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-heading h1,
.detail-info h1 {
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.page-heading p,
.category-card p,
.movie-card p,
.detail-info p,
.content-block p {
  color: var(--site-muted);
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: var(--site-panel);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  transition: transform 360ms ease;
}

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

.movie-badge,
.movie-type,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(14, 165, 233, 0.9);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

.movie-badge {
  left: 12px;
}

.movie-type {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

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

.movie-card h3 {
  min-height: 54px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: #0284c7;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin-top: 9px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 14rem),
    #ffffff;
  box-shadow: 0 18px 48px rgba(14, 165, 233, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.category-card h2,
.category-card h3 {
  color: #0f172a;
  font-size: 25px;
  font-weight: 900;
}

.category-card p {
  margin: 14px 0 22px;
}

.category-card a {
  color: #0284c7;
  font-weight: 900;
}

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #e0f2fe;
}

.rank-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.rank-badge {
  top: 8px;
  left: 8px;
}

.rank-info h3 {
  font-size: 18px;
  font-weight: 900;
}

.rank-info h3 a:hover {
  color: #0284c7;
}

.rank-info p {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: var(--site-muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 62px 0 36px;
  background:
    radial-gradient(circle at 14% 12%, rgba(14, 165, 233, 0.17), transparent 18rem),
    linear-gradient(180deg, #ffffff, #eff6ff);
}

.page-heading h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-heading p {
  max-width: 780px;
  margin-top: 16px;
  font-size: 17px;
}

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

.breadcrumb a {
  color: #0284c7;
}

.filter-panel,
.search-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--site-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.filter-panel {
  grid-template-columns: 1fr 180px 180px 180px;
}

.filter-panel input,
.filter-panel select,
.search-box input {
  height: 46px;
  padding: 0 16px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box button {
  min-width: 122px;
}

.no-results {
  display: none;
  padding: 36px;
  border-radius: 24px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--site-border);
}

.no-results.is-visible {
  display: block;
}

.detail-hero {
  padding: 46px 0 34px;
  background:
    radial-gradient(circle at 84% 8%, rgba(14, 165, 233, 0.16), transparent 18rem),
    linear-gradient(180deg, #ffffff, #eff6ff);
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  background: #e0f2fe;
  box-shadow: var(--site-shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.detail-info h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
}

.detail-info p {
  margin-top: 18px;
  font-size: 17px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.player-section {
  padding: 42px 0 26px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.36));
}

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

.player-overlay span {
  min-width: 86px;
  height: 86px;
  padding: 0;
  border-radius: 999px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
  box-shadow: 0 22px 44px rgba(14, 165, 233, 0.36);
}

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

.content-block,
.side-panel {
  padding: 26px;
  border: 1px solid var(--site-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

.content-block + .content-block {
  margin-top: 20px;
}

.content-block h2,
.side-panel h2 {
  margin-bottom: 14px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

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

.side-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: #334155;
  background: #f8fafc;
  font-weight: 700;
}

.side-list a:hover {
  color: #0284c7;
  background: #e0f2fe;
}

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

.site-footer {
  margin-top: 40px;
  padding: 52px 0 34px;
  border-top: 1px solid rgba(226, 232, 240, 0.86);
  background: linear-gradient(180deg, #ffffff, #e0f2fe);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-title {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 12px;
}

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

.footer-links a {
  color: #475569;
  font-weight: 600;
}

.footer-links a:hover {
  color: #0284c7;
}

.footer-desc {
  max-width: 420px;
  margin-top: 14px;
  color: var(--site-muted);
  line-height: 1.8;
}

.footer-bottom {
  margin-top: 34px;
  color: #64748b;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .header-search {
    display: none;
  }

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

  .hero-slider {
    max-width: 520px;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-section {
    min-height: auto;
    padding: 54px 0 46px;
  }

  .hero-copy p.hero-desc {
    font-size: 16px;
  }

  .movie-grid,
  .category-grid,
  .ranking-list,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .logo-subtitle {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .ranking-list,
  .related-grid,
  .filter-panel,
  .search-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    max-width: 250px;
  }

  .content-block,
  .side-panel,
  .filter-panel,
  .search-panel {
    padding: 18px;
  }
}
