:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0369a1;
  --color-secondary: #06b6d4;
  --color-accent: #22d3ee;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f0f9ff;
  --color-line: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 25px 50px rgba(15, 23, 42, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 19px;
  background: linear-gradient(135deg, #38bdf8, #06b6d4 45%, #2563eb);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.32);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-copy strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(90deg, #0284c7, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small,
.footer-brand small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--color-primary-dark);
  background: var(--color-soft);
}

.nav-link.is-active,
.mobile-link.is-active {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  background: #374151;
  border-radius: 999px;
}

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

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

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

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 96px;
}

.hero-copy {
  width: min(760px, 92vw);
  animation: fade-in 0.6s ease both;
}

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

.hero-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 650;
}

.hero-meta span:first-child {
  background: var(--color-primary);
  color: #ffffff;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

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

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 0;
  font-weight: 750;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #0891b2);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-small {
  min-height: 40px;
  padding: 10px 16px;
  color: var(--color-primary-dark);
  background: var(--color-soft);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 38px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

.section-block {
  padding: 72px 0;
}

.compact-top {
  padding-top: 56px;
}

.compact-bottom {
  padding-bottom: 56px;
}

.section-head,
.split-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
}

.split-head {
  justify-content: space-between;
}

.section-head.no-margin {
  margin-bottom: 0;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 23px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.22);
  flex: 0 0 auto;
}

.section-icon.cyan {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.section-head h2,
.split-head h2,
.related-categories h2,
.content-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 850;
}

.section-head p,
.split-head p {
  margin: 6px 0 0;
  color: #6b7280;
}

.text-link {
  color: var(--color-primary-dark);
  font-weight: 750;
}

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

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

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

.movie-card,
.category-card,
.category-overview-card,
.content-card,
.player-card,
.rank-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.movie-card a {
  display: block;
  height: 100%;
}

.movie-poster,
.rank-cover,
.category-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111827;
}

.movie-poster {
  aspect-ratio: 4 / 3;
}

.wide-poster {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .movie-poster img,
.category-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.card-type {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.05));
  opacity: 0;
  font-size: 26px;
  transition: opacity 0.25s ease;
}

.play-hover::before {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  z-index: -1;
}

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

.card-body {
  padding: 18px;
}

.movie-card-large .card-body {
  padding: 22px;
}

.card-body h3,
.rank-item h3,
.category-overview-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.rank-item:hover h3,
.category-overview-card h2 a:hover {
  color: var(--color-primary-dark);
}

.card-body p,
.rank-item p,
.category-overview-card p,
.content-card p {
  margin: 0;
  color: #5f6673;
  font-size: 14px;
}

.meta-row {
  gap: 12px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
}

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

.tag-row span,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}

.soft-section {
  background: linear-gradient(90deg, #f0f9ff, #ecfeff);
}

.rank-section {
  background: #f3f4f6;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.category-card span {
  font-size: 22px;
  font-weight: 850;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

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

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

.rank-item a {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-cover {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 850;
  font-size: 13px;
}

.page-hero {
  padding: 78px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.36), transparent 32%), linear-gradient(135deg, #0f172a, #075985 56%, #0e7490);
}

.slim-hero {
  padding: 88px 0;
}

.category-hero {
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.42), transparent 30%), linear-gradient(135deg, #0f172a, #0e7490);
}

.rank-hero {
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.28), transparent 32%), linear-gradient(135deg, #111827, #075985);
}

.search-hero {
  background: radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.34), transparent 30%), linear-gradient(135deg, #0f172a, #0369a1);
}

.page-hero h1 {
  max-width: 900px;
  margin: 10px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

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

.eyebrow {
  margin: 0;
  color: #67e8f9;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

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

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

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

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

.category-overview-card .category-cover {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.category-overview-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.category-overview-card li a {
  color: #475569;
  font-size: 14px;
}

.category-overview-card li a:hover {
  color: var(--color-primary-dark);
}

.related-categories {
  padding-bottom: 72px;
}

.related-categories div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.related-categories a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 700;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 16px;
  margin-top: -34px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.detail-top {
  padding: 42px 0 54px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.35), transparent 28%), linear-gradient(135deg, #0f172a, #075985 54%, #111827);
}

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

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.detail-info h1 {
  margin: 10px 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.lead-text {
  max-width: 840px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 750;
}

.detail-tags {
  margin: 22px 0;
}

.detail-tags .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.player-section {
  margin-top: -32px;
  position: relative;
  z-index: 3;
}

.player-card {
  padding: 12px;
  background: #0f172a;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.player-title {
  font-size: 17px;
  font-weight: 850;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 42px 0 18px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.content-card p {
  color: #475569;
  font-size: 16px;
}

.site-footer {
  margin-top: 48px;
  color: #d1d5db;
  background: #111827;
}

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

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

.footer-grid p {
  margin: 16px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

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

.footer-grid a:hover {
  color: #38bdf8;
}

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

.footer-bottom p {
  margin: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .grid-large,
  .grid-cards,
  .category-grid,
  .rank-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }

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

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

  .desktop-nav {
    display: none;
  }

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

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

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero-control {
    display: none;
  }

  .grid-large,
  .grid-cards,
  .category-grid,
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .split-head,
  .section-head {
    align-items: flex-start;
  }

  .split-head {
    flex-direction: column;
  }

  .category-overview-card,
  .detail-grid,
  .detail-content,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container-custom {
    width: min(100% - 24px, var(--container));
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-copy p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .hero-actions,
  .detail-meta {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .grid-large,
  .grid-cards,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .movie-poster {
    aspect-ratio: 16 / 10;
  }

  .rank-item a {
    grid-template-columns: 98px 1fr;
  }

  .section-block {
    padding: 52px 0;
  }

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