/* 高清剧集大全：静态电影网站样式 */
:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-dark: #0f172a;
  --surface-muted: #1e293b;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #cbd5e1;
  --primary: #dc2626;
  --primary-dark: #991b1b;
  --accent: #f97316;
  --gold: #facc15;
  --border: rgba(148, 163, 184, 0.24);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #0f172a, #1e293b 48%, #0f172a);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.navbar {
  width: min(100%, var(--container));
  min-height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  color: #ffffff;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
  font-size: 14px;
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #e2e8f0;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #f87171;
}

.nav-search {
  position: relative;
  width: 260px;
}

.nav-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: none;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.88);
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
}

.nav-search input:focus {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.nav-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: #cbd5e1;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, #0f172a, #7f1d1d 52%, #9a3412);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image:
    radial-gradient(circle at 78% 22%, rgba(248, 113, 113, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(127, 29, 29, 0.86) 52%, rgba(15, 23, 42, 0.55)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  min-height: 70vh;
  margin: 0 auto;
  padding: 84px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  align-items: center;
  gap: 52px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.28);
}

.hero-title {
  margin: 22px 0 16px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
  max-width: 760px;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-meta {
  margin-bottom: 30px;
  color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span,
.category-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-weight: 800;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
}

.hero-poster-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

.hero-float {
  position: absolute;
  left: -26px;
  bottom: 36px;
  width: min(310px, 86%);
  border-radius: 20px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-float strong {
  display: block;
  margin-bottom: 4px;
}

.hero-float p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  padding: 0;
}

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.main-section,
.filter-section,
.detail-section,
.page-hero-inner,
.category-shell,
.search-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 58px 20px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(220, 38, 38, 0.6);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #7f1d1d);
}

.card-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 62%);
  opacity: 0.92;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.84);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.94);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

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

.card-body p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta span {
  color: #475569;
  background: #f1f5f9;
}

.feature-band {
  background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 108px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-index {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #7f1d1d);
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rank-info h3 a:hover {
  color: var(--primary);
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta span {
  color: #475569;
  background: #f8fafc;
}

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

.category-card {
  min-height: 178px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #7f1d1d 58%, #ea580c);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: #e2e8f0;
}

.category-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.26), transparent 24%),
    linear-gradient(120deg, #0f172a, #7f1d1d 55%, #1e293b);
}

.page-hero-inner {
  padding-top: 70px;
  padding-bottom: 70px;
}

.page-hero h1 {
  margin: 16px 0 12px;
  max-width: 880px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(127, 29, 29, 0.86), rgba(15, 23, 42, 0.75)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 78px 20px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  background: linear-gradient(135deg, #0f172a, #7f1d1d);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
}

.detail-copy p {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 18px;
}

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

.player-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.42);
  font-size: 30px;
}

.player-start strong {
  font-size: 20px;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  border-radius: 999px;
  padding: 7px 11px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  pointer-events: none;
}

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

.content-card,
.side-card {
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 26px;
}

.content-card + .content-card {
  margin-top: 22px;
}

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

.content-card p,
.side-card p {
  margin: 0;
  color: #334155;
}

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

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

.side-link img {
  width: 76px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #7f1d1d);
}

.side-link strong {
  display: block;
  margin-bottom: 4px;
}

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

.search-box {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-box input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
}

.empty-message {
  padding: 32px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text-muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cover-missing img,
img.is-hidden {
  opacity: 0;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p {
  margin: 12px 0 0;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #f87171;
}

.footer-bottom {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .navbar {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .nav-search {
    display: none;
  }

  body.menu-open .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: rgba(15, 23, 42, 0.98);
  }

  body.menu-open .nav-link {
    padding: 16px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 18px;
  }

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

  .hero-poster-card {
    max-width: 360px;
  }

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

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

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

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

@media (max-width: 760px) {
  .navbar {
    padding: 0 16px;
  }

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

  .hero-slider,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 56px;
    padding-bottom: 84px;
    gap: 30px;
  }

  .hero-poster-card {
    display: none;
  }

  .hero-controls {
    left: 20px;
    right: auto;
  }

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

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

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

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

  .rank-item {
    grid-template-columns: 44px 86px 1fr;
    gap: 12px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .detail-poster {
    max-width: 220px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
