:root {
  --page-bg: #f8fbff;
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --card: #ffffff;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --orange: #f97316;
  --green: #22c55e;
  --red: #ef4444;
  --purple: #8b5cf6;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 52%, #ecfeff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.09);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  width: min(330px, 34vw);
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px 12px 42px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.mobile-nav {
  display: none;
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.mobile-nav a {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  color: #334155;
  font-weight: 800;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.mobile-nav.is-open {
  display: block;
}

.hero-section {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  padding: 16px;
}

.hero-section::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 40%, #f8fbff 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  height: calc(85vh - 32px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
  transform: translateZ(0);
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-card:hover img {
  transform: scale(1.1);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.38), transparent);
  z-index: 1;
}

.cover-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(44px, 9vw, 112px);
  font-weight: 900;
  letter-spacing: -0.08em;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(135deg, #1d4ed8, #06b6d4 58%, #8b5cf6);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #facc15;
  font-size: 14px;
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 22px;
  color: #e2e8f0;
  line-height: 1.8;
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 750;
}

.hero-card .meta-pill {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-card:hover .play-float {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.28);
}

.section {
  padding: 72px 16px;
}

.section-inner {
  width: min(1600px, 100%);
  margin: 0 auto;
}

.section-colored {
  background: linear-gradient(110deg, var(--blue), var(--cyan));
}

.section-muted {
  background: rgba(241, 245, 249, 0.74);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title h2,
.page-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-title p,
.page-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.title-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
}

.icon-orange {
  background: linear-gradient(135deg, #f97316, #facc15);
}

.icon-green {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.icon-red {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.icon-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.more-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.more-link {
  color: var(--blue);
  padding: 10px 16px;
  background: rgba(37, 99, 235, 0.08);
}

.primary-button {
  color: #ffffff;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.secondary-button {
  color: var(--blue);
  padding: 13px 20px;
  background: #ffffff;
}

.more-link:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #8b5cf6);
}

.poster-frame.video-shape {
  aspect-ratio: 16 / 10;
}

.poster-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.25s ease;
}

.card-link:hover .poster-frame img {
  transform: scale(1.1);
}

.poster-frame img.is-hidden {
  opacity: 0;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.76), transparent 58%);
  transition: opacity 0.25s ease;
}

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

.badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
}

.badge.green {
  background: var(--green);
}

.badge.red {
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  transition: color 0.22s ease;
}

.card-link:hover h3 {
  color: var(--blue);
}

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.highlight-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  color: #ffffff;
}

.highlight-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
}

.highlight-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.highlight-link:hover .highlight-media img {
  transform: scale(1.05);
}

.highlight-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.highlight-copy p {
  margin: 0 0 28px;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.9;
}

.scroller {
  overflow-x: auto;
  padding: 6px 2px 22px;
  scroll-snap-type: x proximity;
}

.scroller-row {
  display: flex;
  gap: 24px;
  min-width: max-content;
}

.scroller .movie-card {
  width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

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

.category-tile {
  padding: 22px;
  border-radius: 24px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  padding: 64px 16px 34px;
}

.page-title {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 36px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--line);
}

.filter-panel {
  width: min(1600px, 100%);
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.filter-panel .search-box {
  width: min(520px, 100%);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 40px 0 0;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  font-weight: 900;
}

.pagination .current,
.pagination a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.detail-layout {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #020617;
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.36);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.2), transparent 38%), linear-gradient(to top, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: min(180px, 46vw);
  height: 64px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #0f172a;
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.3);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.28fr);
  gap: 28px;
  margin-top: 28px;
}

.detail-main,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.detail-main {
  padding: clamp(24px, 4vw, 42px);
}

.detail-side {
  padding: 24px;
  align-self: start;
}

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

.detail-main .lead {
  margin: 24px 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.9;
}

.copy-block {
  margin-top: 30px;
}

.copy-block h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 26px;
}

.copy-block p {
  margin: 0;
  color: #475569;
  line-height: 2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

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

.side-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: transform 0.22s ease, background 0.22s ease;
}

.side-item:hover {
  transform: translateX(4px);
  background: #eef6ff;
}

.side-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.side-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-item strong {
  display: block;
  margin-bottom: 5px;
  color: #1f2937;
  line-height: 1.35;
}

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

.site-footer {
  padding: 42px 16px;
  color: #64748b;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1600px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: #0f172a;
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 24px;
  color: #475569;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

@media (max-width: 1180px) {
  .grid-cards,
  .grid-cards.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-grid,
  .highlight-link {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .header-actions .search-box {
    display: none;
  }

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

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

  .hero-card {
    min-height: 68vh;
  }

  .hero-card:not(:first-child) {
    min-height: 360px;
  }

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

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

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

@media (max-width: 560px) {
  .header-inner,
  .detail-layout {
    width: min(100% - 20px, 1600px);
  }

  .logo {
    font-size: 19px;
  }

  .hero-section {
    padding: 10px;
  }

  .hero-card {
    min-height: 78vh;
    border-radius: 24px;
  }

  .hero-content {
    padding: 24px;
  }

  .grid-cards,
  .grid-cards.compact,
  .grid-cards.wide,
  .category-cloud {
    grid-template-columns: 1fr;
  }

  .scroller .movie-card {
    width: 280px;
  }

  .page-title,
  .detail-main,
  .detail-side {
    border-radius: 24px;
  }
}
