:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

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

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

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

img.image-off {
  opacity: 0;
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.nav-bar {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 700;
  margin-left: 10px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--orange);
}

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

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

.nav-search input {
  width: 210px;
  padding: 8px 4px 8px 12px;
}

.nav-search button,
.mobile-search button,
.search-panel button,
.primary-btn,
.secondary-btn,
.play-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.search-panel button,
.primary-btn,
.play-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.24);
}

.nav-search button,
.mobile-search button {
  padding: 8px 16px;
}

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

.secondary-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.nav-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.play-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.3);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 22px 18px;
  background: #fff;
}

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

.mobile-nav nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  font-weight: 800;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: radial-gradient(circle at top left, rgba(255, 237, 213, 0.6), transparent 34%), linear-gradient(135deg, #f97316, #ef4444 48%, #ec4899);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 10%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.16));
}

.hero-slides {
  position: relative;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 410px;
  gap: 46px;
  align-items: center;
  padding: 68px 22px 80px;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
}

.hero-poster img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.58), transparent 55%);
}

.poster-badge {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(18px);
}

.poster-badge strong {
  display: block;
  font-size: 20px;
}

.poster-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  width: min(1240px, calc(100% - 44px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls div {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.is-active {
  width: 28px;
  background: #fff;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 22px 64px;
}

.section {
  margin-top: 46px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-head a {
  color: #ea580c;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.category-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.gradient-1 { background: linear-gradient(135deg, #f97316, #ef4444); }
.gradient-2 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.gradient-3 { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.gradient-4 { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.gradient-5 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.gradient-6 { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.gradient-7 { background: linear-gradient(135deg, #ef4444, #be123c); }
.gradient-8 { background: linear-gradient(135deg, #10b981, #84cc16); }

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

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

.movie-card-link {
  display: block;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: var(--shadow);
}

.cover-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.cover-frame img,
.compact-card img,
.detail-poster img,
.search-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card-link:hover .cover-frame img {
  transform: scale(1.045);
}

.card-content {
  display: block;
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-content strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-pill {
  background: #fff7ed;
  color: #ea580c;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-item img {
  height: 118px;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.rank-item strong {
  display: block;
  font-size: 18px;
}

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

.page-title {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff7ed, #fff 56%, #fdf2f8);
  box-shadow: var(--soft-shadow);
}

.search-panel {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.search-panel input {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  font-size: 17px;
}

.search-panel button {
  padding: 0 26px;
}

.search-empty {
  display: none;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.search-empty.is-visible {
  display: block;
}

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

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 14px;
  background: #fff;
  color: #374151;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.pagination a.is-current {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.category-cloud a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.category-cloud a:hover {
  border-color: rgba(249, 115, 22, 0.38);
  color: #ea580c;
}

.detail-top {
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.28), transparent 34%), linear-gradient(135deg, #111827, #1f2937 55%, #7f1d1d);
  color: #fff;
}

.detail-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 22px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.detail-title h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 66px);
}

.detail-title p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.player-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 22px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

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

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  min-width: 150px;
  min-height: 54px;
  padding: 0 30px;
  transform: translate(-50%, -50%);
  font-size: 18px;
}

.player-shell.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

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

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.article-panel {
  padding: 30px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.article-panel p {
  margin: 0 0 20px;
  color: #374151;
  font-size: 16px;
}

.side-panel {
  padding: 18px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
}

.compact-card:hover {
  background: #fff7ed;
}

.compact-card img {
  height: 96px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 60px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 22px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

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

.footer-inner p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 22px;
  font-weight: 800;
}

.copyright {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 28px;
  color: #9ca3af;
}

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero-poster img {
    min-height: 360px;
  }

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

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

@media (max-width: 640px) {
  .nav-bar {
    height: 62px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .hero,
  .hero-slides {
    min-height: 760px;
  }

  .hero-slide {
    padding: 40px 16px 86px;
  }

  .hero p {
    font-size: 16px;
  }

  .page-shell,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: 42px 78px minmax(0, 1fr);
  }

  .rank-num {
    width: 36px;
    height: 36px;
  }

  .rank-item img {
    height: 104px;
  }

  .detail-inner {
    padding: 34px 16px;
  }

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

  .article-panel {
    padding: 22px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}
