:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --dark: #0f172a;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

body {
  background: #f6f8fb;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1220px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: #374151;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.nav-search input {
  width: 230px;
  padding: 10px 14px;
  outline: none;
}

.nav-search button,
.large-search button {
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--primary);
  background: #eef6ff;
}

.mobile-nav {
  display: none;
  padding: 0 22px 16px;
  gap: 12px;
  font-weight: 800;
}

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

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

.hero-slide img,
.detail-backdrop img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1180px, calc(100% - 44px));
  transform: translate(-50%, -50%);
  color: #fff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.tag-row,
.movie-meta-line,
.detail-meta,
.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
}

.hero-actions {
  margin-top: 30px;
}

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

.primary-btn {
  min-height: 48px;
  padding: 0 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  background: rgba(2, 6, 23, 0.42);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.quick-panel,
.content-section,
.footer-inner,
.detail-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-panel {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.quick-search-box,
.hot-entry,
.movie-card,
.rank-card,
.player-panel,
.article-section,
.category-tile {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow);
}

.quick-search-box {
  padding: 30px;
  border-radius: 28px;
}

.quick-search-box h2 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 950;
}

.quick-search-box p {
  color: var(--muted);
}

.large-search {
  display: flex;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  outline: none;
}

.hot-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(circle at 20% 0%, #60a5fa 0, #2563eb 32%, #0f172a 100%);
}

.hot-entry strong {
  font-size: 28px;
  font-weight: 950;
}

.hot-entry span {
  margin-top: 8px;
  color: #dbeafe;
}

.content-section {
  padding-top: 56px;
  padding-bottom: 20px;
}

.soft-bg {
  max-width: none;
  margin-top: 40px;
  padding-top: 58px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.soft-bg > * {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin-top: 6px;
  color: var(--muted);
}

.section-more {
  min-height: 40px;
  padding: 0 18px;
  color: var(--primary);
  background: #dbeafe;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

.poster-link img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.movie-card:hover img,
.rank-card:hover img,
.category-tile:hover img {
  transform: scale(1.05);
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 99, 235, 0.86);
  transition: all 240ms ease;
}

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

.rank-badge,
.hot-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-meta-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3,
.rank-info h3 {
  margin-top: 9px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover {
  color: var(--primary);
}

.movie-card p,
.rank-info p {
  display: -webkit-box;
  min-height: 46px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.22));
}

.category-tile span,
.category-tile p {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.category-tile span {
  bottom: 58px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile p {
  bottom: 22px;
  color: #dbeafe;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: auto 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
}

.hot-index {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-cover {
  display: block;
  height: 102px;
  overflow: hidden;
  border-radius: 16px;
  background: #dbeafe;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 18% 16%, #38bdf8 0, #2563eb 28%, #0f172a 82%);
}

.page-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  padding: 72px 22px;
}

.page-hero > div {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 950;
}

.page-hero p {
  max-width: 760px;
  margin-top: 14px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  outline: none;
}

.detail-hero {
  min-height: 560px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.76));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  padding-top: 42px;
  padding-bottom: 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: #bfdbfe;
  font-weight: 700;
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  background: #dbeafe;
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 950;
}

.lead-text {
  max-width: 830px;
  color: #dbeafe;
  font-size: 21px;
  line-height: 1.75;
}

.detail-meta {
  margin: 22px 0;
  color: #e0f2fe;
  font-weight: 700;
}

.large-tags {
  margin-bottom: 28px;
}

.player-panel {
  overflow: hidden;
  border-radius: 28px;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.42));
}

.play-cover span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
}

.play-cover strong {
  font-size: 22px;
}

.play-cover.is-hidden {
  display: none;
}

.player-title {
  padding: 24px;
}

.player-title h2,
.article-section h2 {
  font-size: 28px;
  font-weight: 950;
}

.player-title p,
.article-section p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.article-section {
  padding-top: 34px;
  padding-bottom: 34px;
  border-radius: 28px;
}

.article-section h2 + p {
  margin-bottom: 26px;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: #020617;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 38px;
  padding-bottom: 38px;
}

.footer-inner strong {
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  margin-top: 8px;
  max-width: 650px;
  color: #94a3b8;
}

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

@media (max-width: 1080px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

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

  .rank-card {
    grid-template-columns: auto 120px 1fr;
  }

  .rank-cover {
    height: 86px;
  }

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

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

  .brand {
    font-size: 20px;
  }

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

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  .hero-content h1 {
    font-size: 36px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-panel,
  .content-section,
  .footer-inner,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-panel {
    margin-top: -42px;
  }

  .large-search,
  .footer-inner {
    flex-direction: column;
  }

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

  .rank-card {
    grid-template-columns: 42px 96px 1fr;
    gap: 12px;
  }

  .rank-cover {
    height: 74px;
  }

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

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