:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --card: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --dark: #0f172a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34rem), var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.brand-text {
  font-size: 22px;
}

.nav-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #dbeafe;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.2);
}

.nav-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 320px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 11px 14px;
}

.nav-search input::placeholder {
  color: #94a3b8;
}

.nav-search button,
.quick-search-block button {
  border: 0;
  color: #ffffff;
  background: var(--primary);
  padding: 11px 18px;
  cursor: pointer;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 12px;
  padding: 9px 12px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #020617;
  color: #ffffff;
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.015);
}

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

.hero-image,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.68) 42%, rgba(15, 23, 42, 0.12)), linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 110px 0 190px;
}

.hero-kicker,
.page-hero p {
  margin: 0 0 18px;
  color: #bfdbfe;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.movie-tags span,
.detail-meta span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-meta span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.45);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 120px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 26px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  background: #ffffff;
}

.hero-mini-list {
  position: absolute;
  z-index: 5;
  right: max(16px, calc((100% - 1180px) / 2));
  bottom: 44px;
  display: grid;
  grid-template-columns: repeat(5, 132px);
  gap: 12px;
}

.hero-mini-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.hero-mini-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-mini-card span {
  display: block;
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

main {
  width: 100%;
}

.content-section,
.quick-search-block,
.seo-block {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto;
}

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

.quick-search-block form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-search-block label {
  font-size: 18px;
  font-weight: 900;
}

.quick-search-block form > div {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.quick-search-block input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 18px;
}

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

.section-heading h2,
.story-card h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.section-heading p,
.seo-block p,
.story-card p,
.category-card p,
.category-tile p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

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

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.36s ease;
}

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

.poster-play {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
}

.movie-info {
  padding: 16px;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

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

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

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

.category-tile,
.category-card {
  display: block;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff, #eef5ff);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: 0.24s ease;
}

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

.category-tile span,
.category-card h2 {
  display: block;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
}

.category-tile em {
  color: var(--primary-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--primary-dark);
  background: rgba(37, 99, 235, 0.1);
  font-weight: 800;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 74px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.rank-row strong {
  color: var(--primary);
  font-size: 22px;
}

.rank-row img {
  width: 74px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row span {
  font-weight: 900;
}

.rank-row em {
  color: #f59e0b;
  font-style: normal;
  font-weight: 950;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.5), transparent 26rem), linear-gradient(135deg, #0f172a, #1e1b4b 55%, #111827);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  letter-spacing: -0.06em;
}

.page-hero span {
  display: block;
  max-width: 720px;
  color: #dbeafe;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.filter-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.filter-panel span {
  color: var(--muted);
  font-size: 13px;
}

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

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.detail-hero {
  min-height: 520px;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.32)), linear-gradient(0deg, #0f172a, transparent 60%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 34px;
  padding: 80px 0 54px;
}

.detail-cover img {
  width: 260px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bfdbfe;
  font-weight: 800;
}

.detail-main h1 {
  margin: 18px 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-main p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.8;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -54px auto 34px;
  position: relative;
  z-index: 5;
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-symbol {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.45);
  font-size: 30px;
}

.play-cover span:last-child {
  font-size: 20px;
  font-weight: 950;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.story-card,
.seo-block {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.story-card p {
  margin-bottom: 0;
}

.tag-cloud {
  grid-column: 1 / -1;
  padding-top: 4px;
}

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

.site-footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 55%, #111827);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 52px 0 34px;
}

.footer-grid p {
  max-width: 420px;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

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

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

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

  .hero-mini-list {
    grid-template-columns: repeat(3, 132px);
  }

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

@media (max-width: 840px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 14px 0;
  }

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

  .nav-panel {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }

  .nav-panel.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-search {
    min-width: 0;
  }

  .hero-carousel,
  .hero-track,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 220px;
  }

  .hero-mini-list {
    left: 16px;
    right: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .detail-wrap {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .detail-cover img {
    width: 190px;
  }

  .detail-content,
  .footer-grid,
  .rank-list,
  .rank-list.large,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-content h1,
  .detail-main h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-mini-list {
    display: none;
  }

  .hero-controls {
    bottom: 44px;
  }

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h2 {
    font-size: 15px;
  }

  .movie-info p,
  .movie-tags {
    display: none;
  }

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

  .rank-row {
    grid-template-columns: 36px 58px 1fr auto;
    gap: 10px;
  }

  .rank-row img {
    width: 58px;
    height: 42px;
  }

  .quick-search-block form > div {
    border-radius: 22px;
    flex-direction: column;
  }

  .quick-search-block button {
    width: 100%;
  }
}
