/*
  好看国产剧 - 纯静态电影网站样式
  根据上传素材中的白底、蓝色主色、圆角卡片、阴影、搜索与筛选布局进行静态化延展。
*/

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-soft: #dbeafe;
  --color-accent: #f97316;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-bg: #f6f8fb;
  --color-card: #ffffff;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 42%, #eef4ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.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(229, 231, 235, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #60a5fa);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 6px;
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  padding: 8px 6px 8px 10px;
}

.header-search button,
.primary-button,
.secondary-button,
.line-button,
.search-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button,
.search-button {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.header-search button {
  padding: 8px 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
}

.primary-button:hover,
.header-search button:hover,
.search-button:hover,
.line-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  color: var(--color-primary);
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  color: var(--color-text);
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--color-line);
}

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

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-category-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
}

main {
  min-height: 70vh;
}

.page-section,
.hero,
.detail-layout,
.category-header,
.page-hero,
.search-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 34px;
  align-items: center;
  min-height: 560px;
  padding-top: 54px;
  padding-bottom: 42px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 30px 20px 30px;
  z-index: -1;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(255, 255, 255, 0.70)),
    radial-gradient(circle at 80% 12%, rgba(249, 115, 22, 0.18), transparent 18rem);
  box-shadow: var(--shadow-soft);
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.category-header h1,
.detail-title {
  margin: 0;
  color: #0f172a;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
}

.hero-desc {
  max-width: 680px;
  margin: 22px 0 0;
  color: #4b5563;
  font-size: 18px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  max-width: 640px;
}

.hero-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(229, 231, 235, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--color-primary);
}

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

.hero-carousel {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.86) 100%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 24rem);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #fff;
}

.hero-slide-content small {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-slide-content h2 {
  margin: 14px 0 8px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

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

.page-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.86);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
  border-color: rgba(37, 99, 235, 0.28);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(249, 115, 22, 0.10)),
    #dbeafe;
}

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

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

.play-mark,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-mark {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 54px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 12px;
  font-weight: 900;
}

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

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

.movie-meta-line span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

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

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  min-height: 150px;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.86);
}

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

.category-cover {
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-color: #dbeafe;
}

.category-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-info strong {
  font-size: 24px;
  color: #0f172a;
}

.category-info em {
  margin-top: 6px;
  color: var(--color-primary);
  font-style: normal;
  font-weight: 800;
}

.category-info small {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #60a5fa);
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #dbeafe;
}

.rank-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.rank-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.page-hero,
.category-header {
  padding-top: 52px;
  padding-bottom: 26px;
}

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

.page-hero p,
.category-header p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 17px;
}

.filter-bar,
.search-panel {
  padding-top: 22px;
  padding-bottom: 22px;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.88);
}

.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: #f9fafb;
}

.filter-box input:focus,
.filter-box select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-button {
  min-width: 112px;
  padding: 0 18px;
}

.result-count {
  margin-top: 12px;
  color: var(--color-muted);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 52px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.detail-card,
.side-card,
.player-panel {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 24px;
}

.detail-title {
  font-size: clamp(32px, 5vw, 56px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
  font-size: 13px;
}

.player-panel {
  overflow: hidden;
  margin-top: 24px;
  background: #0f172a;
}

.video-shell {
  position: relative;
  min-height: 420px;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-shell > img,
.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-shell video {
  display: none;
  background: #020617;
}

.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.72));
  pointer-events: none;
}

.video-shell.is-playing::after,
.video-shell.is-playing > img,
.video-shell.is-playing .player-overlay {
  display: none;
}

.video-shell.is-playing video {
  display: block;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.player-overlay-inner {
  max-width: 620px;
}

.play-button {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-primary), #60a5fa);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.40);
  font-size: 30px;
}

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

.line-button {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.line-button.is-active,
.line-button:hover {
  background: var(--color-primary);
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(239, 68, 68, 0.90);
  font-size: 14px;
}

.player-status.is-visible {
  display: block;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  white-space: pre-line;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: #dbeafe;
}

.side-link strong {
  display: block;
  line-height: 1.35;
}

.side-link span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #0f172a;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 20px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

@media (max-width: 1060px) {
  .header-search input {
    width: 160px;
  }

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

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

  .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .mobile-nav .nav-link {
    display: flex;
    margin-top: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 410px;
  }

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

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

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

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 64px;
  }

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

  .hero h1,
  .page-hero h1,
  .category-header h1,
  .detail-title {
    letter-spacing: -0.03em;
  }

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

  .category-card {
    grid-template-columns: 110px 1fr;
    min-height: 126px;
  }

  .video-shell {
    min-height: 260px;
  }

  .play-button {
    width: 70px;
    height: 70px;
  }
}
