:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --panel: #ffffff;
  --shadow: 0 18px 42px 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;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 42%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 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);
}

.nav-bar {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

.nav-search {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 430px;
  margin-left: auto;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 15px;
  color: #0f172a;
}

.nav-search button {
  border: 0;
  cursor: pointer;
  padding: 11px 18px;
  color: #fff;
  background: var(--sky);
  transition: background 0.2s ease;
}

.nav-search button:hover {
  background: var(--sky-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  color: #334155;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0f172a;
  background: #f1f5f9;
  cursor: pointer;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.48) 48%, rgba(2, 6, 23, 0.08)), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.36) 36%, rgba(2, 6, 23, 0.1));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero-copy {
  max-width: 780px;
  color: #fff;
  padding-top: 40px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-tags span,
.hero-tags strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
}

.hero-tags span {
  background: var(--orange);
}

.hero-tags strong {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy h2 + h2 {
  margin-top: -6px;
  color: #e0f2fe;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #cbd5e1;
  margin-bottom: 30px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: var(--sky);
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.36);
}

.primary-btn:hover {
  background: var(--sky-dark);
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.quick-cats {
  width: min(1200px, calc(100% - 32px));
  margin: -56px auto 44px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 28px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(249, 115, 22, 0.2));
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.tile-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  font-weight: 900;
}

.category-tile h2 {
  margin: 16px 0 8px;
  font-size: 23px;
}

.category-tile p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.tile-link {
  color: var(--sky-dark);
  font-weight: 900;
}

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

.page-top {
  padding-top: 34px;
}

.content-section {
  margin: 0 0 58px;
}

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

.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.15;
}

.section-head a {
  color: var(--sky-dark);
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  color: var(--orange-dark);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.soft-panel {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 34px;
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
  box-shadow: var(--shadow);
}

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

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

.full-grid {
  padding-bottom: 50px;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-large .poster-wrap {
  height: 360px;
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.06));
  opacity: 0.68;
  transition: opacity 0.3s ease;
}

.movie-card:hover .card-shade {
  opacity: 0.9;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: auto;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 28px;
  padding-left: 4px;
}

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

.type-badge,
.score-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  min-height: 28px;
  padding: 4px 10px;
}

.type-badge {
  top: 12px;
  right: 12px;
  background: rgba(249, 115, 22, 0.92);
}

.score-badge {
  left: 12px;
  bottom: 12px;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 36px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--sky-dark);
}

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

.movie-meta,
.detail-meta,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.movie-meta span,
.detail-meta span {
  color: #64748b;
  font-size: 14px;
}

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

.all-ranks {
  padding-bottom: 60px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.rank-index {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  font-weight: 950;
}

.rank-row img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.rank-title {
  font-weight: 900;
  min-width: 0;
}

.rank-meta {
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}

.page-hero {
  margin-bottom: 34px;
  padding: clamp(28px, 5vw, 50px);
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, #eff6ff 55%, #fff7ed);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow);
}

.small-hero {
  margin-bottom: 24px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 8px 0 12px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #475569;
  line-height: 1.8;
  font-size: 17px;
}

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

.local-search {
  display: flex;
  margin-top: 26px;
  max-width: 620px;
}

.local-search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.08);
}

.search-wide {
  max-width: 760px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.filter-pill {
  border: 1px solid #bae6fd;
  color: var(--sky-dark);
  background: #f0f9ff;
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  font-weight: 800;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #fff;
  background: var(--sky);
}

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

.breadcrumb a {
  color: var(--sky-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 34px;
  background: linear-gradient(135deg, #0f172a, #082f49 52%, #431407);
  box-shadow: var(--shadow);
  color: #fff;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  background: #020617;
}

.detail-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.detail-desc {
  max-width: 800px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin: 20px 0;
}

.detail-meta span {
  color: #e0f2fe;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

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

.tag-list span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.86);
  font-weight: 800;
}

.player-panel {
  margin-bottom: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: clamp(72px, 12vw, 112px);
  height: clamp(72px, 12vw, 112px);
  display: grid;
  place-items: center;
  padding-left: 8px;
  border-radius: 999px;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: clamp(34px, 6vw, 54px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}

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

.article-panel {
  margin-bottom: 42px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

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

.article-panel h2:not(:first-child) {
  margin-top: 28px;
}

.article-panel p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 40px;
  background: #0f172a;
  color: #cbd5e1;
}

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

.footer-inner strong {
  display: block;
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

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

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

@media (max-width: 1100px) {
  .quick-cats,
  .category-overview,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-bar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 4;
  }

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

  .nav-links a {
    border-radius: 14px;
    background: #f8fafc;
  }

  .hero-slider {
    height: 620px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .detail-poster {
    max-width: 340px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-bar,
  .page-wrap,
  .quick-cats,
  .footer-inner {
    width: min(100% - 24px, 1200px);
  }

  .site-logo {
    font-size: 19px;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    width: min(100% - 28px, 1200px);
  }

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

  .hero-actions {
    gap: 10px;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .quick-cats {
    margin-top: -34px;
  }

  .quick-cats,
  .category-overview,
  .movie-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card-large .poster-wrap {
    height: 330px;
  }

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

  .rank-row {
    grid-template-columns: 38px 48px 1fr;
  }

  .rank-meta {
    grid-column: 3;
    white-space: normal;
  }

  .page-hero,
  .detail-hero,
  .article-panel,
  .soft-panel {
    border-radius: 24px;
  }
}
