:root {
  --bg: #eff6ff;
  --bg-soft: #f0fdfa;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.72);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.25);
  --cyan: #06b6d4;
  --blue: #2563eb;
  --deep-blue: #1d4ed8;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eff6ff 0%, #ecfeff 34%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22);
}

.header-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 28px;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.3);
}

.logo-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: #dbeafe;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #dbeafe;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input {
  width: 250px;
  border: 0;
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
  outline: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.search-form input::placeholder {
  color: rgba(219, 234, 254, 0.88);
}

.search-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.search-form button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  position: relative;
  z-index: 3;
  padding: 0 0 24px;
}

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

.mobile-panel .nav-links {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.mobile-panel .nav-links a {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel .search-form input {
  width: 100%;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 26%, rgba(6, 182, 212, 0.2), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.66) 45%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 610px;
  padding: 80px 0 110px;
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
}

.hero h1,
.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 26px;
  color: rgba(226, 232, 240, 0.92);
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #1e40af;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

.hero .pill {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.btn-light {
  color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-wave {
  position: absolute;
  z-index: 8;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 58px;
}

.section {
  position: relative;
  padding: 64px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.52);
}

.section-blue {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

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

.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

.icon-box.orange {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.icon-box.green {
  background: linear-gradient(135deg, var(--green), #059669);
}

.icon-box.white {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.section h2,
.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  color: var(--muted);
  line-height: 1.8;
  margin: 10px 0 0;
}

.section-blue .section-desc,
.section-blue .page-desc {
  color: rgba(255, 255, 255, 0.82);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

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

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

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

.card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-title a {
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--blue);
}

.card-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.horizontal-card .poster-frame {
  border-radius: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 128px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.rank-card img {
  width: 128px;
  height: 78px;
  border-radius: 16px;
  object-fit: cover;
  background: #dbeafe;
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: 22px;
  overflow-x: auto;
  padding: 2px 4px 18px;
  scroll-snap-type: x mandatory;
}

.scroller > * {
  scroll-snap-align: start;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #0891b2, #10b981);
}

.category-card:nth-child(3n + 3) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.28);
}

.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 25px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 58%, #1e40af 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
  background: #ffffff;
}

.filter-panel input {
  flex: 1 1 260px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.12);
  transform: scale(1.04);
  opacity: 0.58;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.68) 52%, rgba(15, 23, 42, 0.38));
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
  padding: 72px 0 82px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

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

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-summary {
  max-width: 800px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 18px;
  line-height: 1.85;
}

.player-section {
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
}

.watch-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at 50% 42%, rgba(6, 182, 212, 0.24), transparent 30%), linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.38);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.play-button:hover {
  transform: scale(1.06);
  box-shadow: 0 22px 56px rgba(37, 99, 235, 0.52);
}

.content-panel {
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-panel h2,
.content-panel h3 {
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.content-panel p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

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

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

.side-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.side-item img {
  width: 92px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  background: #dbeafe;
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.side-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.search-results {
  min-height: 280px;
}

.empty-state {
  padding: 56px 24px;
  border-radius: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 70px 0 34px;
  color: #e2e8f0;
  background: #1e293b;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 38px;
}

.footer-title {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 18px;
}

.footer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a,
.footer-note {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

.footer-list a:hover {
  color: #67e8f9;
}

.copyright {
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1060px) {
  .grid.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: 880px) {
  .nav-links.desktop,
  .header-actions .search-form {
    display: none;
  }

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

  .hero,
  .hero-content {
    min-height: 560px;
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .rank-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .rank-card img {
    display: none;
  }

  .rank-number {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    font-size: 20px;
  }
}

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

  .logo-title {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 72px 0 112px;
  }

  .hero h1,
  .hero h2 {
    font-size: 40px;
  }

  .grid.cards,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

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

  .detail-title {
    font-size: 36px;
  }

  .content-panel {
    padding: 24px;
  }

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