:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --orange: #f97316;
  --orange-soft: #ffedd5;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --panel: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

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

.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.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
  font-size: 16px;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.22s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 280px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.header-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
}

.header-search input {
  flex: 1;
  padding: 10px 0 10px 16px;
}

.header-search button,
.hero-search button,
.filter-panel button {
  border: 0;
  background: var(--sky);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button {
  padding: 10px 15px;
}

.header-search button:hover,
.hero-search button:hover,
.filter-panel button:hover {
  background: var(--sky-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #e0f2fe;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--sky-dark);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #082f49, #7c2d12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 620px;
  padding-top: 70px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-tags a,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.hero-tags span:nth-child(2) {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p,
.detail-copy p {
  max-width: 680px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 700;
}

.hero-meta span,
.detail-meta span {
  padding: 6px 0;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.22s ease;
}

.primary-btn {
  padding: 14px 30px;
  background: var(--sky);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(2, 132, 199, 0.34);
}

.primary-btn:hover {
  background: var(--sky-dark);
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-quick {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  transform: translateX(-50%);
}

.hero-search {
  display: flex;
  overflow: hidden;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  padding: 0 22px;
}

.hero-search button {
  padding: 0 28px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quick-links a,
.category-jump a,
.tag-cloud a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #075985;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transition: all 0.2s ease;
}

.quick-links a:hover,
.category-jump a:hover,
.tag-cloud a:hover {
  background: #e0f2fe;
  transform: translateY(-2px);
}

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

.content-section,
.rank-board,
.detail-section,
.player-card,
.detail-side {
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.content-section {
  padding: clamp(22px, 4vw, 42px);
}

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

.white-section {
  background: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2,
.page-hero h1,
.detail-section h2,
.detail-side h2,
.rank-feature h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.04em;
}

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

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  flex: none;
  padding: 11px 16px;
  color: var(--sky-dark);
  background: #e0f2fe;
}

.section-more:hover {
  color: #ffffff;
  background: var(--sky);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: all 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  height: 258px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c4a6e, #fb923c);
}

.movie-cover img,
.compact-thumb img,
.detail-poster img,
.rank-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.12), transparent);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sky);
  font-size: 24px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: all 0.25s ease;
}

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

.corner-label,
.rating-badge {
  position: absolute;
  top: 12px;
  padding: 6px 9px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.corner-label {
  right: 12px;
  background: rgba(249, 115, 22, 0.95);
}

.rating-badge {
  left: 12px;
  background: rgba(2, 132, 199, 0.92);
}

.movie-card-body {
  padding: 18px;
}

.movie-card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--sky);
}

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

.movie-meta {
  color: #64748b;
  font-size: 13px;
}

.movie-meta span + span::before {
  content: "•";
  margin-right: 10px;
  color: #cbd5e1;
}

.page-hero {
  padding: 82px 0;
  background: linear-gradient(135deg, #0ea5e9, #f97316);
  color: #ffffff;
}

.page-hero.small-hero,
.page-hero.category-hero,
.page-hero.rank-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

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

.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  color: #ffffff;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 12px;
  margin-top: 28px;
  padding: 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.filter-panel button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 16px;
}

.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.rank-board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
}

.rank-feature {
  position: sticky;
  top: 96px;
  align-self: start;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #0c4a6e);
  color: #ffffff;
}

.rank-feature img {
  height: 380px;
  background: linear-gradient(135deg, #0c4a6e, #fb923c);
}

.rank-feature div {
  padding: 28px;
}

.rank-feature h2 {
  color: #ffffff;
  font-size: 34px;
}

.rank-feature p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  transition: all 0.22s ease;
}

.compact-card:hover {
  border-color: #bae6fd;
  background: #f0f9ff;
  transform: translateX(4px);
}

.compact-thumb {
  display: block;
  overflow: hidden;
  width: 82px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0c4a6e, #fb923c);
}

.compact-info strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  line-height: 1.35;
}

.compact-info em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.compact-score {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffedd5;
  color: #c2410c;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.detail-hero > img {
  position: absolute;
  inset: 0;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 38px;
  align-items: end;
  min-height: 560px;
  padding: 86px 0 54px;
}

.detail-poster {
  overflow: hidden;
  height: 360px;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, #0c4a6e, #fb923c);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.detail-copy {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  padding: 54px 0;
}

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

.player-card {
  padding: 16px;
  background: #020617;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.big-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--sky);
  font-size: 32px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.big-play-button:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.player-box.is-playing .big-play-button {
  opacity: 0;
  pointer-events: none;
}

.detail-section {
  padding: clamp(22px, 4vw, 36px);
}

.detail-section h2,
.detail-side h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

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

.info-table {
  display: grid;
  gap: 12px;
}

.info-table div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-table strong {
  color: #475569;
}

.info-table span {
  color: #0f172a;
}

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

.tag-cloud span {
  background: #fff7ed;
  color: #c2410c;
}

.detail-side {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 24px;
}

.related-section {
  margin-bottom: 54px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.75;
}

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #ffffff;
}

.image-hidden {
  opacity: 0;
}

.hidden-by-filter {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-quick {
    grid-template-columns: 1fr;
  }

  .quick-links {
    justify-content: center;
  }

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

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

  .rank-feature,
  .detail-side {
    position: static;
  }
}

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

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

  .hero-content {
    min-height: 530px;
    padding-top: 56px;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 154px;
  }

  .hero-quick {
    bottom: 18px;
  }

  .hero-search {
    min-height: 52px;
  }

  .hero-search button {
    padding: 0 18px;
  }

  .section-heading,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .movie-cover {
    height: 210px;
  }

  .movie-card-body {
    padding: 14px;
  }

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

  .rank-feature img {
    height: 260px;
  }

  .detail-hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 70px;
  }

  .detail-poster {
    width: 190px;
    height: 270px;
  }

  .detail-layout {
    padding: 34px 0;
  }

  .compact-card {
    grid-template-columns: 72px 1fr auto;
  }

  .compact-thumb {
    width: 72px;
    height: 56px;
  }
}

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

  .hero-copy h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .detail-copy p {
    font-size: 15px;
  }

  .quick-links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .content-section,
  .rank-board,
  .detail-section,
  .detail-side {
    border-radius: 22px;
  }
}
