:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --pink: #ec4899;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 48%, #fdf2f8 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 254, 255, 0.94), rgba(239, 246, 255, 0.94), rgba(253, 242, 248, 0.94));
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--cyan-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo {
  font-size: 24px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 10px 22px rgba(6, 182, 212, 0.28);
  font-size: 15px;
  text-indent: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: #374151;
  font-weight: 650;
}

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

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-grid a:hover {
  color: var(--cyan-dark);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.search-panel input,
.search-panel select {
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.header-search input {
  width: 230px;
  padding: 11px 14px;
  border-radius: 999px 0 0 999px;
}

.header-search button,
.mobile-search button,
.search-panel button,
.hero-button,
.card-button,
.player-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button {
  padding: 12px 18px;
  border-radius: 0 999px 999px 0;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.hero-button:hover,
.card-button:hover,
.player-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 16px 28px rgba(6, 182, 212, 0.32);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #374151;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding: 14px 16px 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 650;
  color: #374151;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 999px 0 0 999px;
}

.mobile-search button {
  padding: 12px 18px;
  border-radius: 0 999px 999px 0;
}

.hero {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-copy {
  width: min(690px, 100%);
  padding-top: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 640px;
  margin: 18px 0 26px;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.7;
  color: #e5e7eb;
}

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

.hero-button,
.card-button,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-tags span,
.card-tags span,
.channel-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 36px;
  background: #ffffff;
}

.page-main,
.home-main {
  padding-bottom: 56px;
}

.channel-strip {
  padding: 30px 0 18px;
}

.channel-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.channel-pills a,
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  color: #374151;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  font-weight: 750;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.channel-pills a:hover,
.filter-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: translateY(-2px);
}

.content-section {
  padding: 44px 0;
}

.highlight-section {
  padding: 50px 0;
  background: linear-gradient(90deg, rgba(207, 250, 254, 0.8), rgba(219, 234, 254, 0.85), rgba(252, 231, 243, 0.8));
}

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

.section-heading h2,
.page-heading h1,
.watch-info h1 {
  margin: 0;
  color: #1f2937;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

.section-heading p,
.page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #fce7f3);
}

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

.movie-card:hover img,
.category-card:hover img,
.rank-item:hover img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  color: #1f2937;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 9px;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--cyan-dark);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 12px;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.detail-tags span,
.channel-tag {
  padding: 6px 10px;
  color: var(--cyan-dark);
  background: #ecfeff;
}

.banner-panel {
  border-radius: 28px;
  overflow: hidden;
  padding: 34px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.92), rgba(37, 99, 235, 0.9), rgba(236, 72, 153, 0.9));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.banner-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 40px);
}

.banner-panel p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #cffafe, #fce7f3);
}

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

.rank-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  font-weight: 900;
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rank-info a {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  margin-bottom: 8px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.rank-info span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.page-heading {
  padding: 42px 0 26px;
}

.page-heading h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 52px;
}

.category-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.7;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #cffafe, #fce7f3);
  transition: transform 0.25s ease;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px auto;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 14px;
}

.search-panel button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
}

.search-empty {
  display: none;
  padding: 28px;
  border-radius: 20px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.search-empty.active {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--cyan-dark);
  font-weight: 750;
}

.watch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding: 36px 0 20px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.22));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
  min-height: 58px;
  padding: 0 28px;
  font-size: 18px;
}

.watch-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.watch-info h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
}

.watch-info p {
  margin: 16px 0 18px;
  color: #4b5563;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  color: #475569;
}

.detail-meta div {
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-meta strong {
  display: block;
  color: #1f2937;
  margin-bottom: 4px;
}

.content-card {
  margin: 28px 0;
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  color: #1f2937;
}

.content-card p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  color: #e5e7eb;
  background: #111827;
  margin-top: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-logo {
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-grid p {
  max-width: 440px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

  .header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .watch-hero,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    height: 66px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    height: 540px;
  }

  .hero-slide::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.86));
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 86px;
  }

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

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

  .rank-item {
    grid-template-columns: 112px 1fr;
  }

  .content-section,
  .highlight-section {
    padding: 34px 0;
  }

  .watch-info,
  .content-card,
  .banner-panel {
    padding: 22px;
    border-radius: 22px;
  }

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

  .footer-grid {
    padding: 34px 0;
  }
}
