* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e5e7eb;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
    #020617;
}

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

img {
  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: 80;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-text {
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 10px 28px rgba(8, 145, 178, 0.28);
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #22d3ee;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 160px;
  padding: 10px 12px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.11);
}

.nav-search button,
.mobile-search button {
  padding: 10px 14px;
  color: #ffffff;
  cursor: pointer;
  background: #0891b2;
  border: 0;
  border-radius: 12px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  color: #e2e8f0;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 26px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-menu.open {
  display: block;
}

.mobile-links {
  display: grid;
  gap: 6px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.mobile-links .nav-link {
  padding: 10px 0;
}

.mobile-search {
  display: flex;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
}

.mobile-search input {
  flex: 1;
  padding: 12px;
}

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

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

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

.hero-bg,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 45%, rgba(2, 6, 23, 0.35) 100%);
}

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

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

.eyebrow {
  margin: 0 0 12px;
  color: #22d3ee;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
}

.hero h2 {
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
}

.hero-text {
  max-width: 700px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: #bae6fd;
  background: rgba(8, 145, 178, 0.22);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 40px rgba(8, 145, 178, 0.28);
}

.btn.ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-keywords span {
  color: #93c5fd;
  font-size: 13px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  font-size: 38px;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.68);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

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

.section {
  padding: 72px 0;
}

.panel-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.72));
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.panel-section.dark {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.72));
}

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

.section-heading > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: center;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 14px;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading p {
  grid-column: 2;
  margin: 6px 0 0;
  color: #94a3b8;
}

.section-more,
.text-link {
  color: #22d3ee;
  font-weight: 700;
}

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

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

.compact-grid,
.all-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  display: block;
  min-width: 0;
  color: #e5e7eb;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  margin-bottom: 12px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.poster-frame.wide {
  aspect-ratio: 16 / 10;
  width: 180px;
  margin-bottom: 0;
  flex: 0 0 180px;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.poster-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 42%);
  opacity: 0.75;
}

.rating,
.type-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
}

.rating {
  right: 9px;
  top: 9px;
  color: #facc15;
  background: rgba(2, 6, 23, 0.75);
}

.type-pill {
  left: 9px;
  bottom: 9px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.8);
}

.rank-badge {
  left: 9px;
  top: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body h3 {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body h3 {
  color: #22d3ee;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: #64748b;
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  margin-left: 10px;
  color: #334155;
  content: "•";
}

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

.category-tile,
.category-overview-card,
.content-card,
.info-card,
.player-card {
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.category-tile {
  display: block;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-4px);
}

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.tile-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile h3,
.category-overview-card h2,
.content-card h2,
.info-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
}

.category-tile p,
.category-overview-card p,
.content-card p,
.info-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

.movie-card.rank,
.movie-card.horizontal {
  display: flex;
  gap: 16px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
}

.movie-card.rank .poster-frame {
  width: 92px;
  margin: 0;
  flex: 0 0 92px;
  border-radius: 12px;
}

.movie-card.rank .card-body h3,
.movie-card.horizontal .card-body h3 {
  min-height: auto;
  font-size: 16px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(37, 99, 235, 0.12)),
    #020617;
}

.page-hero.small {
  padding: 86px 0 54px;
}

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

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #22d3ee;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 22px;
}

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

.category-cover img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  border-radius: 14px;
}

.category-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.mini-links a {
  padding: 7px 10px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 999px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
}

.empty-state {
  margin-top: 26px;
  padding: 34px;
  color: #94a3b8;
  text-align: center;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  filter: blur(2px) saturate(0.9);
  transform: scale(1.02);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.88)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 54%);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
  align-items: center;
  min-height: 660px;
  padding-top: 72px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.detail-copy h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 68px);
}

.detail-lead {
  max-width: 820px;
  margin: 22px 0;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.9;
}

.detail-meta {
  margin: 0 0 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.detail-main {
  padding-top: 42px;
}

.player-card {
  padding: 14px;
  margin-bottom: 32px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 18px;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(0, 0, 0, 0.52));
  border: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto;
  padding-left: 6px;
  font-size: 34px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(8, 145, 178, 0.35);
}

.play-layer strong {
  font-size: 18px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.content-card,
.info-card {
  padding: 28px;
}

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

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.info-card dt {
  color: #64748b;
}

.info-card dd {
  margin: 0;
  color: #e2e8f0;
}

.related-section {
  margin-top: 52px;
}

.site-footer {
  margin-top: 42px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.98));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-grid a:hover {
  color: #22d3ee;
}

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

[hidden] {
  display: none !important;
}

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

  .nav-toggle {
    display: block;
  }

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

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

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

@media (max-width: 860px) {
  .hero {
    min-height: 620px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy {
    padding-right: 0;
  }

  .rank-list,
  .horizontal-grid,
  .detail-content,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-overview-card {
    gap: 18px;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 104px 0 46px;
  }

  .detail-poster {
    width: min(240px, 70vw);
  }

  .detail-hero,
  .detail-hero-inner {
    min-height: auto;
  }
}

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

  .brand,
  .footer-brand {
    font-size: 20px;
  }

  .hero {
    height: auto;
    min-height: 680px;
  }

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

  .hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero-tags span,
  .detail-meta span,
  .tag-row span {
    font-size: 12px;
  }

  .section {
    padding: 52px 0;
  }

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

  .featured-grid,
  .compact-grid,
  .all-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .category-grid,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    flex-direction: column;
  }

  .poster-frame.wide {
    width: 100%;
    flex-basis: auto;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .content-card,
  .info-card {
    padding: 22px;
  }
}
