:root {
  --site-primary: #0073e6;
  --site-primary-dark: #005bb3;
  --site-accent: #e67300;
  --site-ink: #0d0f12;
  --site-muted: #64748b;
  --site-soft: #f6f8fb;
  --site-card: #ffffff;
  --site-border: #e5e7eb;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 45%, #f6f8fb 100%);
  color: var(--site-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 115, 230, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  color: #334155;
  font-weight: 600;
}

.desktop-nav a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--site-primary);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 6px 7px 6px 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #0f172a;
}

.header-search button,
.mobile-menu-button,
.icon-button {
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-search button {
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--site-primary);
  color: #fff;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--site-border);
  background: #fff;
}

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

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-weight: 600;
}

.page-main {
  min-height: 65vh;
}

.with-header-space {
  padding-top: 110px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  margin-top: 76px;
  background: #020617;
  overflow: hidden;
  color: #fff;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 20%, rgba(230, 115, 0, 0.25), transparent 26%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.6) 45%, rgba(2, 6, 23, 0.25) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 52%, rgba(2, 6, 23, 0.42) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: 56px;
}

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

.hero-eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.hero-text {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-ghost-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(14px);
  transition: all 0.2s ease;
}

.hero-ghost-button:hover,
.outline-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

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

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.58);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.hero-search-panel {
  position: relative;
  z-index: 6;
  margin-top: -34px;
  margin-bottom: 38px;
}

.hero-search-box {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--site-shadow);
  border: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(16px);
}

.hero-search-box input,
.filter-select {
  min-height: 48px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  padding: 0 15px;
  background: #fff;
  color: #0f172a;
  outline: 0;
  font-size: 15px;
}

.hero-search-box input:focus,
.filter-select:focus {
  border-color: rgba(0, 115, 230, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.10);
}

.section-shell {
  padding: 54px 0;
}

.section-shell.is-soft {
  background: var(--site-soft);
}

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

.section-kicker {
  color: var(--site-primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.section-summary {
  max-width: 680px;
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.8;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 18px;
  background: var(--site-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 115, 230, 0.28);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.13);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 20%, rgba(0, 115, 230, 0.18), transparent 28%),
    linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.movie-poster.wide {
  aspect-ratio: 16 / 9;
}

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

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

.movie-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-body {
  padding: 14px;
}

.movie-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--site-primary);
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  border-radius: 8px;
  padding: 4px 7px;
  background: #f1f5f9;
}

.movie-meta .primary {
  background: #e6f2ff;
  color: #005bb3;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  min-height: 260px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--site-shadow);
}

.feature-card .movie-poster {
  aspect-ratio: auto;
  height: 100%;
}

.feature-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-title {
  margin: 12px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.feature-text {
  color: #64748b;
  line-height: 1.8;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(230, 115, 0, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef6ff);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(0, 115, 230, 0.28);
}

.rank-no {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #e6f2ff;
  color: #005bb3;
  font-weight: 900;
}

.rank-item:nth-child(1) .rank-no,
.rank-item:nth-child(2) .rank-no,
.rank-item:nth-child(3) .rank-no {
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  color: #fff;
}

.rank-thumb {
  width: 72px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 4px;
  font-weight: 900;
  color: #0f172a;
}

.rank-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.filter-input {
  min-height: 46px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  font-size: 15px;
}

.filter-input:focus {
  border-color: rgba(0, 115, 230, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.1);
}

.empty-state {
  display: none;
  padding: 46px 20px;
  text-align: center;
  color: #64748b;
  border-radius: 22px;
  background: #fff;
  border: 1px dashed #cbd5e1;
}

.detail-hero {
  padding-top: 112px;
  background: #020617;
  color: #fff;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: end;
  padding: 42px 0;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: #1e293b;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-title {
  margin: 14px 0 14px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  background: #020617;
  padding: 0 0 38px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  outline: 0;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 115, 230, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.74));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  box-shadow: 0 20px 48px rgba(0, 115, 230, 0.34);
  font-size: 32px;
  padding-left: 4px;
}

.player-message {
  min-height: 22px;
  margin-top: 10px;
  color: #fecaca;
  font-size: 14px;
  line-height: 1.6;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 46px 0;
}

.content-card,
.side-card {
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.content-card {
  padding: 26px;
  margin-bottom: 20px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.side-card {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  color: #64748b;
  font-size: 14px;
}

.info-list strong {
  color: #0f172a;
  text-align: right;
}

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

.crumbs a {
  color: var(--site-primary);
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  background: #020617;
  color: #cbd5e1;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

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

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

.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  font-size: 13px;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

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

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

@media (min-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

@media (min-width: 1280px) {
  .movie-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slider {
    height: 62vh;
    min-height: 520px;
  }

  .feature-grid,
  .detail-layout,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  .filter-bar,
  .hero-search-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .site-header-inner {
    min-height: 66px;
  }

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

  .hero-slider {
    margin-top: 66px;
    height: 72vh;
    min-height: 560px;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-search-panel {
    margin-top: 18px;
  }

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

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

  .feature-card .movie-poster {
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    grid-template-columns: 40px 62px 1fr;
  }

  .rank-item .outline-button {
    display: none;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-cover {
    width: 180px;
  }

  .content-card {
    padding: 20px;
  }
}
