:root {
  --cyan: #06b6d4;
  --blue: #2563eb;
  --text: #111827;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 0 10px 16px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.header-search button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eef2ff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #111827;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 8px 0 14px;
}

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

.mobile-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: 0;
}

.mobile-search button {
  border-radius: 999px;
  padding: 0 20px;
}

.page-main {
  padding-top: 76px;
}

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

.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 22px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-desc {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags span {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-4px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.section-space {
  padding: 72px 0;
}

.section-stack {
  display: grid;
  gap: 76px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.card-body p,
.rank-row p,
.footer-brand p,
.detail-summary p,
.detail-review p {
  color: var(--muted);
}

.section-link {
  color: var(--cyan);
  font-weight: 800;
}

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-large .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-frame img,
.rank-cover:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.04));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

.category-pill,
.duration-pill {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.category-pill {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #0891b2;
  background: rgba(236, 254, 255, 0.92);
}

.duration-pill {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.rank-title:hover,
.related-card:hover h4 {
  color: var(--cyan);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 14px;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.rank-tags span {
  padding: 4px 8px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
}

.rank-badge {
  position: absolute;
  left: -10px;
  top: -10px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #8b5cf6, #2563eb);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-size: 26px;
}

.category-tile p {
  position: relative;
  z-index: 2;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
}

.category-tile span {
  position: relative;
  z-index: 2;
  font-weight: 800;
}

.page-hero {
  padding: 66px 0 52px;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 32%), linear-gradient(180deg, #ffffff, #f8fafc);
}

.page-hero h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 36px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.filter-title {
  margin-bottom: 14px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 160px 150px 140px;
  gap: 12px;
}

.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
}

.filter-input {
  padding: 12px 18px;
}

.filter-select {
  padding: 12px 16px;
}

.filter-input:focus,
.filter-select:focus,
.header-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.no-results {
  display: none;
  margin: 28px 0 0;
  padding: 26px;
  color: #64748b;
  text-align: center;
  border-radius: 18px;
  background: #f8fafc;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 150px 1fr 130px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.rank-index {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

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

.rank-title {
  display: inline-block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.rank-row p {
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  display: block;
  color: #f59e0b;
  font-size: 30px;
}

.rank-score span {
  color: #64748b;
  font-size: 13px;
}

.detail-hero {
  padding: 34px 0;
  color: #ffffff;
  background: linear-gradient(180deg, #111827, #1f2937);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.site-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-mask {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-mask-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translate(-50%, -50%);
}

.play-orb {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.32);
}

.player-mask strong {
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 48px 0 72px;
}

.detail-main,
.detail-side,
.detail-panel {
  min-width: 0;
}

.detail-title {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta span {
  padding: 7px 12px;
  color: #475569;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.detail-panel,
.related-box {
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.detail-panel + .detail-panel {
  margin-top: 24px;
}

.detail-panel h2,
.related-box h3 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
}

.detail-summary p,
.detail-review p {
  margin: 0;
}

.detail-tags span {
  color: #0891b2;
  background: #ecfeff;
}

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

.related-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
}

.related-card img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
  transition: transform 0.35s ease;
}

.related-card h4 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.related-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.cta-band {
  padding: 48px;
  border-radius: 28px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
}

.cta-band p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-links a {
  padding: 10px 18px;
  color: var(--cyan);
  background: #ffffff;
  border-radius: 999px;
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-logo .brand-name {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #94a3b8;
}

.site-footer h4 {
  margin: 0 0 16px;
  color: #ffffff;
}

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

.site-footer a:hover {
  color: #67e8f9;
}

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

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

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

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

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

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

  .brand-name {
    font-size: 20px;
  }

  .page-main {
    padding-top: 68px;
  }

  .hero-section {
    height: 560px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero-actions {
    display: grid;
  }

  .section-space {
    padding: 48px 0;
  }

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

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

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

  .rank-row {
    grid-template-columns: 44px 100px 1fr;
  }

  .rank-score {
    grid-column: 2 / 4;
    text-align: left;
  }

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

  .detail-panel,
  .related-box,
  .cta-band {
    padding: 22px;
  }
}
