
:root {
  --brand-blue: #0096dc;
  --brand-blue-dark: #0574b8;
  --brand-blue-light: #4db8e8;
  --brand-yellow: #ffd700;
  --brand-yellow-dark: #ffc700;
  --brand-red: #e63946;
  --brand-cream: #fff9e6;
  --ink: #162033;
  --muted: #657389;
  --paper: #ffffff;
  --line: rgba(0, 55, 96, 0.12);
  --shadow: 0 22px 60px rgba(0, 68, 130, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 150, 220, 0.14), transparent 30rem),
    linear-gradient(180deg, #fffdf2 0%, #f6fbff 46%, #ffffff 100%);
  min-height: 100vh;
}

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

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

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

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

.nav-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-blue);
}

.brand-mark,
.footer-logo span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  box-shadow: 0 10px 24px rgba(0, 150, 220, 0.28);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
  background: rgba(0, 150, 220, 0.1);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.nav-search input,
.mobile-panel input,
.wide-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.nav-search input {
  width: 170px;
  padding: 8px 6px 8px 12px;
}

.nav-search button,
.mobile-panel button,
.wide-search button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: #ffffff;
  font-weight: 900;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 150, 220, 0.22);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 150, 220, 0.1);
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-blue);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 150, 220, 0.08);
  font-weight: 800;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: #f3f8fc;
}

.mobile-panel input {
  flex: 1;
  padding: 10px;
}

.hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: var(--brand-blue);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.45), transparent 18rem),
    linear-gradient(115deg, rgba(0, 32, 76, 0.92) 0%, rgba(0, 150, 220, 0.74) 55%, rgba(255, 215, 0, 0.68) 100%),
    var(--cover);
  background-position: center;
  background-size: cover;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 42px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #003f68;
  background: linear-gradient(135deg, var(--brand-yellow), #fff2a5);
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.28);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.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;
}

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

.hero-card {
  align-self: end;
  margin-bottom: 82px;
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-card span {
  color: var(--brand-yellow);
  font-weight: 900;
}

.hero-card strong {
  font-size: 20px;
}

.hero-card em {
  font-style: normal;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

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

.hero-dot {
  width: 34px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.active {
  width: 54px;
  background: var(--brand-yellow);
}

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

.wide-search {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 150, 220, 0.12);
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-size: 16px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 150, 220, 0.1);
  color: var(--brand-blue);
  font-weight: 800;
}

.content-section {
  padding: 70px 0;
}

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

.section-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 1000;
  letter-spacing: -0.045em;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  white-space: nowrap;
  color: var(--brand-blue);
  font-weight: 900;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 150, 220, 0.1);
}

.movie-grid,
.category-grid,
.rank-grid,
.category-panel-grid,
.wide-card-row {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(0, 150, 220, 0.1);
  box-shadow: 0 16px 42px rgba(15, 50, 80, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(15, 50, 80, 0.16);
  border-color: rgba(0, 150, 220, 0.3);
}

.poster-link,
.detail-poster,
.category-tile,
.category-panel,
.player-box {
  background-image:
    linear-gradient(160deg, rgba(0, 41, 75, 0.18), rgba(0, 150, 220, 0.18)),
    var(--cover);
  background-position: center;
  background-size: cover;
}

.poster-link {
  position: relative;
  display: block;
  height: 260px;
  background-color: var(--brand-blue);
}

.poster-link::after,
.detail-poster::after,
.category-tile::after,
.category-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.type-badge,
.rank-badge,
.play-float {
  position: absolute;
  z-index: 2;
}

.type-badge {
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(230, 57, 70, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: #003f68;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.play-float {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 150, 220, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-content {
  padding: 18px;
}

.card-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.card-content h3 a:hover {
  color: var(--brand-blue);
}

.card-content p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a8798;
  font-size: 13px;
  font-weight: 700;
}

.card-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f7fb;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: var(--brand-blue);
  background: rgba(0, 150, 220, 0.09);
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 210px;
}

.movie-card.compact .poster-link {
  height: 100%;
  min-height: 210px;
}

.movie-card.compact .card-content p {
  min-height: auto;
}

.category-tile {
  position: relative;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 1000;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.ranking-band {
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.35), transparent 24rem),
    linear-gradient(135deg, #eef9ff, #fff8d8);
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-image:
    linear-gradient(120deg, rgba(0, 42, 78, 0.9), rgba(0, 150, 220, 0.65), rgba(255, 215, 0, 0.44)),
    var(--cover);
  background-position: center;
  background-size: cover;
}

.page-hero.slim {
  padding: 92px 0 78px;
}

.page-hero.slim h1 {
  font-size: clamp(34px, 5vw, 58px);
}

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

.category-panel {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.category-panel-main,
.category-preview {
  position: relative;
  z-index: 2;
}

.category-panel-main {
  display: block;
  padding: 28px 28px 18px;
}

.category-panel-main span {
  font-size: 28px;
  font-weight: 1000;
}

.category-panel-main p {
  max-width: 560px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 28px;
}

.category-preview a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-link {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--brand-blue);
  font-weight: 900;
}

.page-link.active,
.page-link:hover {
  color: #ffffff;
  background: var(--brand-blue);
}

.detail-hero {
  padding: 78px 0;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background-color: var(--brand-blue);
}

.detail-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 150, 220, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

.breadcrumb em {
  font-style: normal;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  padding: 66px 0 30px;
}

.player-section h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: 0 20px 40px rgba(0, 150, 220, 0.36);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 24px;
  max-width: min(680px, 90%);
}

.detail-content {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
}

.article-block {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(0, 150, 220, 0.1);
  box-shadow: 0 16px 42px rgba(15, 50, 80, 0.08);
}

.article-block.accent {
  background: linear-gradient(135deg, #fff9e6, #eef9ff);
}

.article-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 1000;
}

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

.detail-switch {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.detail-switch a {
  flex: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0, 150, 220, 0.1);
  color: var(--brand-blue);
  font-weight: 900;
}

.detail-switch a:last-child {
  text-align: right;
}

.search-page-form {
  margin-bottom: 28px;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  background: #071827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

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

.footer-links strong {
  color: #ffffff;
}

.footer-links a:hover {
  color: var(--brand-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
}

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

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

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

  .hero-card {
    align-self: auto;
    margin: 0 0 86px;
  }

  .detail-poster {
    min-height: 420px;
  }
}

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

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

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding: 54px 0 88px;
  }

  .movie-grid,
  .rank-grid,
  .rank-list,
  .category-grid,
  .category-panel-grid,
  .wide-card-row,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.compact {
    grid-template-columns: 126px 1fr;
  }

  .movie-card.compact .poster-link {
    min-height: 190px;
  }

  .poster-link {
    height: 230px;
  }

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

  .wide-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .wide-search button {
    width: 100%;
  }

  .detail-poster {
    min-height: 360px;
  }

  .detail-switch {
    flex-direction: column;
  }

  .detail-switch a:last-child {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-container {
    width: min(100% - 22px, 1200px);
  }

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

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

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

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

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