
:root {
  --sky: #0284c7;
  --sky-bright: #0ea5e9;
  --sky-dark: #0369a1;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  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: #f9fafb;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.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.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0f172a;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.25);
}

.brand-text {
  white-space: nowrap;
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--sky-dark);
  background: #e0f2fe;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 320px;
}

.top-search input,
.home-search form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.home-search form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sky-bright);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.top-search button,
.home-search form button,
.filter-panel button {
  border: 0;
  color: #fff;
  background: var(--sky);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.home-search form button:hover,
.filter-panel button:hover {
  background: var(--sky-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  background: #fff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 760px;
  color: #fff;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-kicker span,
.card-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-weight: 750;
}

.hero-kicker span {
  padding: 6px 14px;
}

.hero-kicker strong {
  color: #facc15;
  font-size: 20px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 16px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-info div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.hero-meta {
  margin-bottom: 26px;
  color: #f3f4f6;
}

.hero-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 16px;
  color: rgba(255, 255, 255, 0.5);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--sky);
  box-shadow: 0 16px 35px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: var(--sky-dark);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.home-search {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.home-search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-search h2 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3vw, 32px);
}

.home-search p {
  margin: 0;
  color: var(--muted);
}

.home-search form {
  display: flex;
  gap: 10px;
}

.category-strip {
  padding: 28px 0 0;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.strip-inner a {
  padding: 10px 16px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: var(--sky-dark);
  background: #f0f9ff;
  font-weight: 750;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.strip-inner a:hover {
  color: #fff;
  background: var(--sky);
  transform: translateY(-2px);
}

.page-stack {
  padding: 54px 0;
  display: grid;
  gap: 54px;
}

.page-section {
  padding: 54px 0;
}

.section-panel {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.soft-panel {
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

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

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

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

.section-head > a {
  color: var(--sky-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.all-grid {
  align-items: start;
}

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.card-poster {
  position: relative;
  height: 256px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0284c7 55%, #f97316);
}

.movie-card-large .card-poster {
  height: 320px;
}

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

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08), transparent);
  transition: opacity 0.2s ease;
}

.card-link:hover .card-shade {
  opacity: 0.86;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-link:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  font-size: 12px;
}

.card-rating {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #facc15;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.card-link:hover h3 {
  color: var(--sky-dark);
}

.card-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-hero {
  padding: 74px 0 64px;
}

.gradient-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

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

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.crumb a:hover {
  color: #fff;
}

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

.category-card a {
  display: block;
  height: 100%;
  padding: 28px;
  border-radius: 28px;
  color: #111827;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card a:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.category-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.category-card-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  font-weight: 900;
}

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

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-samples a {
  display: inline-flex;
  height: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--sky-dark);
  background: #e0f2fe;
  box-shadow: none;
  font-size: 13px;
}

.category-card strong {
  color: var(--sky-dark);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.wide-filter {
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
}

.empty-state {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 64px 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--sky));
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  height: 82px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, var(--sky));
}

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

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

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-info div {
  color: #64748b;
  font-size: 14px;
}

.player-wrap {
  padding: 26px 0 34px;
  background: #020617;
}

.player-crumb {
  color: rgba(255, 255, 255, 0.72);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(74px, 10vw, 108px);
  height: clamp(74px, 10vw, 108px);
  border: 0;
  border-radius: 999px;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: #fff;
}

.player-start span {
  margin-left: 6px;
  font-size: clamp(32px, 5vw, 48px);
}

.player-frame.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 42px 0 58px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.detail-card,
.side-panel {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.detail-card h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 23px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-meta {
  margin-bottom: 16px;
}

.detail-meta span,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
}

.detail-meta span:first-child {
  color: #a16207;
  background: #fef3c7;
}

.detail-meta a {
  color: var(--orange-dark);
  background: #ffedd5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag-list span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--sky-dark);
  background: #e0f2fe;
  font-size: 14px;
  font-weight: 700;
}

.prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

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

.detail-side {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 96px;
}

.mini-list {
  display: grid;
  gap: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-poster {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, var(--sky));
}

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

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

.mini-poster span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
}

.mini-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 42px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  margin: 10px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 650;
}

.footer-links a:hover {
  color: #fff;
}

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

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

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

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

  .side-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    height: 600px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-inner,
  .footer-inner,
  .category-grid,
  .filter-panel,
  .wide-filter {
    grid-template-columns: 1fr;
  }

  .home-search form {
    flex-direction: column;
  }

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

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

  .rank-row a {
    grid-template-columns: 52px 92px 1fr;
    gap: 12px;
  }

  .rank-thumb {
    height: 72px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    height: 540px;
  }

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

  .hero-kicker {
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-panel,
  .detail-card,
  .side-panel,
  .category-card a {
    padding: 20px;
    border-radius: 22px;
  }

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

  .card-poster,
  .movie-card-large .card-poster {
    height: 250px;
  }

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

  .rank-thumb {
    display: none;
  }

  .mini-card {
    grid-template-columns: 96px 1fr;
  }
}
