* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 50%, #eef2ff 100%);
}

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

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

button,
input {
  font: inherit;
}

.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);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

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

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

.brand-text {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #0891b2;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}

.top-search input,
.filter-panel input {
  width: 100%;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.top-search input:focus,
.filter-panel input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.top-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #374151;
  cursor: pointer;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 18px;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  background: #f9fafb;
}

.hero-section {
  position: relative;
  height: min(70vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-bg img {
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.08) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.05));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-labels,
.hero-tags,
.detail-meta,
.tag-list,
.category-mini-links,
.hero-actions,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-labels span,
.hero-tags span,
.tag-list span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-labels .label-primary,
.eyebrow {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 620px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn.full {
  width: 100%;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  background: #22d3ee;
}

.category-strip {
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.category-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-strip a,
.category-mini-links a {
  border-radius: 999px;
  padding: 10px 18px;
  color: #374151;
  font-weight: 700;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.category-strip a:hover,
.category-strip a.active,
.category-mini-links a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.section,
.page-main {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.62), rgba(219, 234, 254, 0.6));
}

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

.section-head h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  color: #111827;
  line-height: 1.15;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.section-head p,
.page-hero p,
.category-card p,
.detail-card p,
.site-footer p {
  color: #4b5563;
  line-height: 1.8;
}

.section-link {
  color: #0891b2;
  font-weight: 800;
}

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card a:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16), transparent);
  transition: opacity 0.24s ease;
}

.movie-card a:hover .poster-frame::after {
  opacity: 1;
}

.poster-region,
.poster-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.92);
  backdrop-filter: blur(8px);
}

.poster-region {
  left: 12px;
}

.poster-type {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  top: auto;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.poster-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card a:hover .poster-hover {
  opacity: 1;
  transform: scale(1);
}

.icon-play {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0891b2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 16px;
}

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

.movie-card a:hover h3 {
  color: #0891b2;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta span:last-child {
  overflow: hidden;
  max-width: 72%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-panel {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-line a {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border-bottom: 1px solid #eef2f7;
  transition: background 0.2s ease;
}

.rank-line a:hover {
  background: #ecfeff;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.rank-line img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  margin-bottom: 5px;
  color: #111827;
}

.rank-info em {
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: #0891b2;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
  border-radius: 32px;
  padding: clamp(36px, 7vw, 74px);
  color: #ffffff;
  background: radial-gradient(circle at 16% 20%, rgba(34, 211, 238, 0.45), transparent 36%), linear-gradient(135deg, #0891b2, #1d4ed8 58%, #0f172a);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
}

.page-hero h1 {
  margin: 16px 0;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 64px);
}

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

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

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

.detail-primary .breadcrumb {
  color: #64748b;
}

.detail-primary .breadcrumb a:hover {
  color: #0891b2;
}

.category-mini-links {
  margin-top: 24px;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #dbeafe;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 114px;
  object-fit: cover;
}

.category-card-body {
  padding: 26px;
}

.category-card-body h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 28px;
}

.category-card-body span {
  display: inline-flex;
  margin-top: 14px;
  color: #0891b2;
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  color: #0f172a;
  font-weight: 900;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.86fr);
  gap: 32px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #020617;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.18), rgba(2, 6, 23, 0.45)), rgba(2, 6, 23, 0.22);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: #0891b2;
  font-size: 36px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  font-size: clamp(30px, 5vw, 48px);
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #0e7490;
  font-weight: 800;
  background: #cffafe;
}

.tag-list {
  margin: 18px 0 26px;
}

.tag-list span {
  color: #0e7490;
  background: #ecfeff;
}

.detail-card section {
  margin-top: 24px;
}

.detail-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  font-size: 16px;
}

.side-card {
  padding: 22px;
}

.sticky-side {
  position: sticky;
  top: 100px;
}

.side-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.side-card h2 {
  margin: 20px 0 14px;
}

.info-list {
  margin: 0 0 22px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.info-list dt {
  color: #6b7280;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
  text-align: right;
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  margin-top: 30px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 32px;
  padding: 52px 0;
}

.footer-brand {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

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

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .category-grid,
  .detail-layout,
  .footer-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .sticky-side {
    position: static;
  }
}

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

  .nav-shell {
    min-height: 64px;
  }

  .hero-section {
    min-height: 620px;
    height: 80vh;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .section,
  .page-main {
    padding: 46px 0;
  }

  .section-head {
    display: block;
  }

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

  .card-body {
    padding: 13px;
  }

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

  .rank-line a {
    grid-template-columns: 38px 48px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

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

  .category-thumbs {
    height: 180px;
  }

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

  .page-hero {
    border-radius: 24px;
    padding: 30px;
  }

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

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
