:root {
  --brand: #059669;
  --brand-2: #06b6d4;
  --brand-3: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #f8fafc;
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 22px rgba(6, 182, 212, 0.28);
  font-size: 16px;
}

.brand-name,
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  font-weight: 700;
  color: #374151;
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  background: rgba(16, 185, 129, 0.10);
}

.top-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  outline: none;
  background: white;
  color: var(--ink);
  min-width: 0;
}

.top-search input {
  width: 230px;
}

.top-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: white;
  color: var(--ink);
  font-size: 26px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: white;
}

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

.mobile-nav {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  font-weight: 700;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 78vh;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 48%, #2563eb 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.22), transparent 30%), radial-gradient(circle at 82% 80%, rgba(255,255,255,0.16), transparent 34%), rgba(0, 0, 0, 0.08);
}

.hero-bg-one,
.hero-bg-two {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(56px);
  mix-blend-mode: overlay;
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-bg-one {
  width: 300px;
  height: 300px;
  top: 56px;
  left: 8%;
}

.hero-bg-two {
  width: 420px;
  height: 420px;
  right: 6%;
  bottom: 40px;
  animation-delay: 1.2s;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 44px;
  padding: 72px 0;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-main h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-main h1 span {
  color: #fef3c7;
}

.hero-lead {
  max-width: 720px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-search {
  width: min(680px, 100%);
  margin-top: 28px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  border: 0;
  padding: 14px 18px;
}

.hero-search button {
  padding: 14px 24px;
  background: #111827;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-btn,
.ghost-btn,
.text-link,
.rank-action,
.hero-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--brand);
  background: white;
  padding: 13px 22px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.rank-action:hover,
.hero-card-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.46);
  padding: 12px 21px;
}

.ghost-btn.dark {
  color: var(--brand);
  border-color: rgba(5, 150, 105, 0.26);
  background: rgba(16, 185, 129, 0.08);
}

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

.hero-tags a {
  color: white;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 20px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 20px;
  opacity: 0;
  transform: translateX(28px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}

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

.hero-image {
  min-height: 310px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.28), rgba(6, 182, 212, 0.18));
}

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

.hero-copy {
  padding: 6px 4px 46px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #fef3c7;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-card-link {
  color: var(--ink);
  background: #fef3c7;
  padding: 10px 16px;
}

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

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

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

.section-block {
  padding: 72px 0;
}

.soft-bg {
  background: #eefdf8;
}

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

.section-kicker {
  color: var(--brand);
}

.section-heading h2,
.page-hero h1,
.detail-intro h1,
.article-card h2,
.spotlight-strip h2 {
  margin: 4px 0 8px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-heading h2,
.spotlight-strip h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-hero p,
.article-card p,
.channel-card p,
.detail-one-line {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--brand);
  background: rgba(16, 185, 129, 0.10);
  padding: 10px 16px;
}

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

.movie-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.18));
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.movie-info h2 {
  margin: 7px 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.movie-info h2 a:hover,
.rank-body h2 a:hover,
.channel-links a:hover,
.spotlight-links a:hover {
  color: var(--brand);
}

.movie-info p {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

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

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

.channel-card {
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.channel-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.channel-head > span {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.channel-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.channel-links,
.spotlight-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.channel-links a,
.spotlight-links a,
.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft);
  color: #374151;
  font-weight: 700;
  font-size: 14px;
}

.spotlight-strip {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.page-hero,
.detail-hero {
  position: relative;
  padding: 72px 0;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  overflow: hidden;
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  right: -120px;
  top: -120px;
  background: rgba(6, 182, 212, 0.18);
  filter: blur(18px);
}

.small-hero {
  padding: 58px 0;
}

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

.two-col-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: end;
  position: relative;
  z-index: 1;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
}

.empty-state {
  display: none;
  margin-top: 18px;
  padding: 22px;
  border-radius: 18px;
  background: white;
  color: var(--muted);
  text-align: center;
}

.empty-state.open {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 54px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: white;
  border-radius: 22px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-poster {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(37, 99, 235, 0.14));
}

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

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ecfdf5;
  color: var(--brand);
  font-weight: 900;
}

.rank-body h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--muted);
}

.rank-action {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 10px 18px;
}

.search-page-form {
  margin-top: 24px;
  max-width: 720px;
}

.search-page-form input {
  flex: 1;
  padding: 15px 18px;
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(37, 99, 235, 0.14));
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 14px;
}

.detail-intro h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

.detail-one-line {
  font-size: 19px;
  max-width: 800px;
}

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

.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  background: white;
  color: #374151;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

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

.player-block {
  background: #0f172a;
  padding: 62px 0;
}

.player-shell {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.36);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: white;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.74));
  z-index: 2;
}

.player-cover.hidden {
  display: none;
}

.big-play {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.player-cover strong {
  font-size: 22px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.article-card {
  padding: 28px;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.article-card h2 {
  font-size: 28px;
}

.related-grid .movie-info p,
.compact-card .movie-info p {
  min-height: 44px;
}

.site-footer {
  background: #0f172a;
  color: white;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
}

.site-footer p {
  color: #cbd5e1;
  max-width: 520px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.footer-links a {
  background: rgba(255, 255, 255, 0.09);
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  color: #94a3b8;
  padding: 18px;
}

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

  .hero-layout,
  .two-col-hero,
  .detail-layout,
  .content-grid,
  .footer-grid,
  .spotlight-strip {
    grid-template-columns: 1fr;
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    gap: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-layout {
    min-height: auto;
    padding: 56px 0;
  }

  .hero-search,
  .search-page-form,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input,
  .search-page-form input,
  .mobile-search input,
  .hero-search button,
  .search-page-form button,
  .mobile-search button {
    width: 100%;
  }

  .hero-carousel {
    min-height: 470px;
  }

  .hero-image {
    min-height: 260px;
  }

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

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

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

  .rank-row {
    grid-template-columns: 58px 1fr;
  }

  .rank-num {
    position: absolute;
    margin: -28px 0 0 -8px;
  }

  .rank-action {
    grid-column: 1 / -1;
  }

  .detail-layout {
    gap: 24px;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .section-block {
    padding: 48px 0;
  }

  .page-hero,
  .detail-hero {
    padding: 48px 0;
  }

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