:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --slate: #0f172a;
  --soft: #eff6ff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  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.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  font-size: 13px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--primary);
  background: #eff6ff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  color: #0f172a;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: #ffffff;
}

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

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

.hero-slide {
  display: none;
  position: relative;
  min-height: 620px;
  color: #ffffff;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(10px) saturate(1.2);
  transform: scale(1.08);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 28%, rgba(37, 99, 235, 0.55), transparent 36%), linear-gradient(115deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.84) 52%, rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 430px);
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #60a5fa;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.detail-labels,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-labels span,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.28);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.42);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #60a5fa;
}

.quick-search {
  margin-top: -54px;
  position: relative;
  z-index: 8;
}

.search-panel {
  display: grid;
  grid-template-columns: 240px minmax(280px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.92);
  backdrop-filter: blur(20px);
}

.search-panel h2,
.section-head h2,
.category-card h2,
.article-card h2,
.side-card h2,
.rank-list-block h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.search-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.category-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pills a,
.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: #475569;
  background: #ffffff;
  font-weight: 800;
  transition: 0.25s ease;
}

.category-pills a:hover,
.filter-button:hover,
.filter-button.active {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
}

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

.soft-bg {
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

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

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

.text-link {
  color: var(--primary);
  font-weight: 900;
}

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

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

.compact-grid,
.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.48));
  opacity: 0;
  transition: 0.28s ease;
}

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

.type-badge,
.year-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  left: 10px;
  background: var(--primary);
}

.year-badge {
  right: 10px;
  background: rgba(15, 23, 42, 0.76);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: 0.28s ease;
}

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

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

.movie-card h3 {
  min-height: 44px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
  color: var(--primary);
}

.movie-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.rank-num {
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  margin-top: 4px;
  color: var(--muted);
}

.rank-arrow {
  color: #94a3b8;
  font-size: 28px;
}

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background: radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.42), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

.slim-hero {
  padding: 70px 0;
}

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

.category-card {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  margin-bottom: 16px;
}

.category-card p {
  margin: 10px 0 16px;
  color: var(--muted);
}

.category-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.category-card li a {
  color: #334155;
  font-weight: 700;
}

.category-card li a:hover {
  color: var(--primary);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.category-search {
  background: #ffffff;
}

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

.big-search {
  min-height: 60px;
}

.rank-page-grid {
  align-items: start;
}

.rank-list-block {
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.rank-list-block h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

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

.detail-wrap {
  padding: 28px 0 72px;
}

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

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

.detail-card {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  background: #e2e8f0;
}

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

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.lead-text {
  margin: 0;
  color: #475569;
  font-size: 18px;
  font-weight: 700;
}

.detail-labels span,
.tag-chip {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

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

.detail-stats div {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

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

.detail-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-stats strong {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.35;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.9);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.68));
  font-size: 18px;
  font-weight: 900;
}

.big-play {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.38);
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 30px;
}

.article-card,
.side-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

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

.article-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.85;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.side-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.side-card a {
  color: var(--primary);
}

.related-section {
  margin-top: 34px;
}

.compact-head {
  margin-bottom: 20px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  max-width: 440px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  color: #94a3b8;
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .home-grid,
  .compact-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .menu-button {
    display: inline-flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 0 92px;
  }

  .hero-poster {
    justify-self: start;
    width: min(70vw, 300px);
    transform: none;
  }

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

  .filter-buttons {
    justify-content: flex-start;
  }

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

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

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

  .brand {
    font-size: 18px;
  }

  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

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

  .movie-grid,
  .home-grid,
  .compact-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .movie-card h3 {
    font-size: 14px;
  }

  .movie-desc {
    display: none;
  }

  .detail-card,
  .article-card,
  .side-card {
    padding: 18px;
    border-radius: 20px;
  }

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

  .content-grid {
    gap: 18px;
  }
}
