:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --pink: #ec4899;
  --dark: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

.navbar {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
  color: #374151;
}

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

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

.nav-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 14px 24px 20px;
}

.mobile-panel a {
  display: block;
  padding: 9px 0;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red) 48%, var(--pink));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32), transparent 30%),
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.12) contrast(1.06);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 600px;
  margin: 0 auto;
  padding: 96px 24px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 44px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #fff7ed;
}

.btn-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-card {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.hero-card-body {
  padding: 24px;
}

.hero-card-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 850;
}

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

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

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

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

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

.section-title {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 850;
  color: #111827;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.link-more {
  color: var(--orange);
  font-weight: 800;
}

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

.movie-card {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.15);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
  opacity: 0.88;
}

.badge,
.score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.badge {
  top: 10px;
  left: 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
}

.score {
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
}

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

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

.channel-card {
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.9);
  transition: transform 0.2s, border-color 0.2s;
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: #fdba74;
}

.channel-card strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  font-size: 18px;
}

.channel-card span {
  color: #6b7280;
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin: 26px 0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 140px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

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

.rank-thumb {
  width: 140px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
}

.page-hero {
  background: linear-gradient(135deg, #111827, #1f2937 46%, #7c2d12);
  color: #ffffff;
  padding: 78px 24px 52px;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
  border: 0;
  color: #ffffff;
  z-index: 3;
}

.play-overlay.hidden {
  display: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.player-info,
.detail-content,
.side-card {
  padding: 22px;
}

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

.detail-content p {
  color: #374151;
}

.info-table {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 18px 0;
  color: #374151;
}

.info-table span:nth-child(odd) {
  color: #6b7280;
}

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

.related-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.related-item span {
  display: block;
  color: #6b7280;
  font-size: 13px;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #d1d5db;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-inner h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

.footer-inner a {
  display: block;
  color: #d1d5db;
  margin: 6px 0;
}

.footer-inner a:hover {
  color: #fb923c;
}

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

.no-results {
  display: none;
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
}

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

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

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

  .menu-toggle {
    display: block;
  }

  .mobile-panel.open {
    display: block;
  }

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

  .hero-card {
    display: none;
  }

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

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

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

  .rank-thumb {
    width: 92px;
    height: 62px;
  }

  .rank-score {
    display: none;
  }

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

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

  .logo {
    font-size: 20px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

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

  .section {
    padding: 42px 16px;
  }
}
