:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --orange: #f97316;
  --red: #ef4444;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px 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(180deg, #f8fbff 0%, #ffffff 46%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 46%, #06b6d4 100%);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

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

.nav-link {
  opacity: 0.9;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px;
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.large-search button,
.filter-bar button {
  border: 0;
  cursor: pointer;
  color: var(--blue-dark);
  background: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 16px;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 20px;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

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

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(6, 182, 212, 0.42), transparent 35%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.65), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1220px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #dbeafe;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.88), rgba(6, 182, 212, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  backdrop-filter: blur(16px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.category-panel:hover,
.compact-card:hover,
.rank-row:hover {
  transform: translateY(-3px);
}

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

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

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

.content-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.soft-bg {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1220px) / 2));
  background: linear-gradient(90deg, #fff7ed, #eff6ff);
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

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

.section-more {
  color: var(--blue-dark);
  font-weight: 900;
}

.intro-band {
  margin-top: -54px;
  position: relative;
  z-index: 10;
  padding-top: 0;
}

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

.intro-card,
.story-card,
.player-card,
.category-panel,
.rank-row,
.movie-card,
.filter-bar,
.prev-next {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 28px;
}

.intro-card span {
  color: var(--orange);
  font-weight: 900;
}

.intro-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.intro-card p {
  color: var(--muted);
  line-height: 1.8;
}

.intro-card a {
  color: var(--blue-dark);
  font-weight: 900;
}

.large-search {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.large-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
}

.category-grid,
.category-panel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #ffffff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile span,
.category-tile em {
  position: relative;
  font-style: normal;
  opacity: 0.84;
}

.category-tile strong {
  position: relative;
  display: block;
  margin: 8px 0;
  font-size: 22px;
}

.tile-0 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tile-1 { background: linear-gradient(135deg, #ef4444, #f97316); }
.tile-2 { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.tile-3 { background: linear-gradient(135deg, #0f766e, #22c55e); }
.tile-4 { background: linear-gradient(135deg, #111827, #475569); }

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #fef3c7);
}

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

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

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 46px;
  opacity: 0;
  background: rgba(15, 23, 42, 0.46);
  transition: opacity 0.22s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
}

.corner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  justify-content: space-between;
  color: #94a3b8;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.tag-row span {
  color: var(--blue-dark);
  background: #eff6ff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #ffffff;
  background:
    radial-gradient(circle at 75% 20%, rgba(6, 182, 212, 0.45), transparent 35%),
    linear-gradient(135deg, #1d4ed8, #0f172a 70%);
  overflow: hidden;
}

.page-hero {
  padding: 86px max(16px, calc((100% - 1220px) / 2));
}

.page-hero h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.category-panel-grid {
  grid-template-columns: repeat(2, 1fr);
}

.category-panel {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  transition: transform 0.22s ease;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-thumbs img {
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
}

.category-panel span {
  color: var(--orange);
  font-weight: 900;
}

.category-panel h2 {
  margin: 8px 0 12px;
  font-size: 30px;
}

.category-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 92px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  transition: transform 0.2s ease;
}

.rank-index {
  color: var(--orange);
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.rank-cover img {
  height: 122px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info a {
  font-size: 21px;
  font-weight: 950;
}

.rank-info p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-info span {
  color: #94a3b8;
  font-size: 14px;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(18px) scale(1.08);
  opacity: 0.38;
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58)),
    radial-gradient(circle at 78% 30%, rgba(6, 182, 212, 0.35), transparent 35%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 74px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin-bottom: 36px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  margin-top: 20px;
}

.detail-tags span {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.24);
}

.detail-content {
  display: grid;
  gap: 28px;
}

.player-card {
  padding: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.video-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 20px 48px rgba(239, 68, 68, 0.34);
  font-size: 34px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-start:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-start.hidden {
  opacity: 0;
  pointer-events: none;
}

.story-card {
  padding: 32px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.story-card h2:not(:first-child) {
  margin-top: 28px;
}

.story-card p {
  color: #334155;
  line-height: 2;
  font-size: 17px;
  margin: 0;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

.prev-next a {
  color: var(--blue-dark);
  font-weight: 900;
}

.prev-next a:last-child {
  text-align: right;
}

.compact-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.compact-card img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card strong,
.compact-card small {
  display: block;
}

.compact-card small {
  color: var(--muted);
  margin-top: 5px;
}

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

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.footer-inner p {
  max-width: 560px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: #e2e8f0;
  font-weight: 800;
}

.hide-card {
  display: none !important;
}

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

  .menu-button {
    display: block;
  }

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

  .category-panel-grid,
  .intro-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

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

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

  .hero-content h1 {
    font-size: 46px;
  }

  .content-section,
  .soft-bg {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .movie-grid,
  .featured-grid,
  .large-grid,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .rank-row {
    grid-template-columns: 48px 80px 1fr;
    gap: 12px;
  }

  .rank-cover img {
    height: 106px;
  }

  .rank-info p {
    display: none;
  }

  .detail-wrap {
    padding-bottom: 44px;
  }

  .detail-info h1 {
    font-size: 42px;
  }

  .story-card,
  .intro-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .large-grid,
  .category-grid,
  .category-panel-grid {
    grid-template-columns: 1fr;
  }

  .large-search {
    flex-direction: column;
  }

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