* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button, input, select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: #2563eb;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 10px 24px 20px;
  border-top: 1px solid #e5e7eb;
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-panel a:hover {
  color: #2563eb;
  background: #eff6ff;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #14b8a6);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 26%), radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.15), transparent 24%), linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 100% 100%, 100% 100%, 60px 60px;
  opacity: 0.72;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  opacity: 0.34;
  filter: saturate(1.16);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.42) 48%, rgba(8, 47, 73, 0.1));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 620px;
  padding: 88px 24px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) 360px;
  gap: 48px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 14px;
}

.hero h1,
.hero h2 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-primary,
.btn-ghost,
.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

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

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
}

.btn-blue {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.hero-search {
  display: flex;
  max-width: 600px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 18px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #2563eb;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.44);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(15, 23, 42, 0.86));
}

.hero-poster-title {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #ffffff;
}

.hero-poster-title strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-poster-title span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

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

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

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

.section {
  padding: 72px 24px;
}

.section.white {
  background: #ffffff;
}

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

.shell {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-head.center {
  display: block;
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  color: #0f172a;
}

.section-head p {
  margin: 0;
  color: #64748b;
  font-size: 17px;
}

.grid-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

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

.card,
.feature-card,
.category-card,
.search-panel,
.detail-card,
.player-panel,
.sidebar-box,
.rank-item {
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.card,
.feature-card,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover,
.feature-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.feature-card {
  min-height: 290px;
  color: #ffffff;
}

.feature-card img,
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover img,
.card:hover img {
  transform: scale(1.1);
}

.feature-card .media {
  height: 300px;
}

.feature-card .shade,
.card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(15, 23, 42, 0.88));
}

.feature-card .content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
}

.feature-card h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
}

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

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.card .poster {
  aspect-ratio: 2 / 3;
  background: #e5e7eb;
}

.card .content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  color: #ffffff;
  transform: translateY(42%);
  transition: transform 0.28s ease;
}

.card:hover .content {
  transform: translateY(0);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover .play-badge,
.feature-card:hover .play-badge {
  opacity: 1;
}

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

.category-card {
  padding: 26px;
  min-height: 190px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card:nth-child(3n+2) {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.category-card:nth-child(3n+3) {
  background: linear-gradient(135deg, #059669, #14b8a6);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

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

.rank-thumb {
  width: 110px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
}

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

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.rank-copy p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 28px;
}

.search-panel {
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 28px;
}

.search-field,
.select-field {
  width: 100%;
  height: 50px;
  border: 1px solid #dbeafe;
  outline: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  padding: 0 16px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
}

.search-field:focus,
.select-field:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.page-hero {
  padding: 72px 24px 42px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.page-hero .shell {
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  color: #0f172a;
}

.page-hero p {
  margin: 0;
  max-width: 820px;
  color: #64748b;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #2563eb;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.player-panel,
.detail-card,
.sidebar-box {
  border-radius: 26px;
  overflow: hidden;
}

.player-stage {
  position: relative;
  background: #020617;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.32), rgba(2, 6, 23, 0.34));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  font-size: 34px;
  padding-left: 6px;
}

.player-stage.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-meta {
  padding: 24px;
  background: #ffffff;
}

.player-meta h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.meta-chips,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 750;
}

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

.detail-card h2,
.sidebar-box h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.detail-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.85;
}

.review-box {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border: 1px solid #dbeafe;
}

.sidebar-box {
  padding: 22px;
  margin-bottom: 22px;
}

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #f8fafc;
}

.related-card img {
  width: 112px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
}

.related-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.3;
}

.related-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 0 0 8px;
  font-size: 14px;
}

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

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

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

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.hidden-card {
  display: none !important;
}

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

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

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

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

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

  .mobile-panel.is-open {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 70px;
  }

  .hero-poster {
    display: none;
  }

  .grid-featured,
  .ranking-list,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    min-height: 620px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .hero-search {
    width: 100%;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
    min-height: 44px;
  }

  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-head {
    display: block;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 86px 1fr;
    gap: 12px;
  }

  .rank-thumb,
  .related-card img {
    width: 86px;
    height: 64px;
  }

  .related-card {
    grid-template-columns: 86px 1fr;
  }
}
