:root {
  color-scheme: light;
  --site-blue: #2563eb;
  --site-blue-dark: #1e40af;
  --site-bg: #f8fafc;
  --site-text: #1f2937;
  --site-muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.92);
  --line: rgba(148, 163, 184, 0.28);
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 45%, #f1f5f9 100%);
  color: var(--site-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.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.25);
}

.logo-text {
  font-size: 21px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 180px;
  padding: 8px 4px 8px 12px;
  outline: none;
  color: #0f172a;
}

.header-search button,
.primary-button,
.secondary-button {
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
  background: var(--site-blue);
  color: #ffffff;
  padding: 10px 18px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  padding: 9px 13px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 700;
}

.hero-carousel {
  isolation: isolate;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.5) 44%, rgba(2, 6, 23, 0.16) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 44%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  right: 24px;
  bottom: 12%;
  max-width: 760px;
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.82);
  color: #dbeafe;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 720px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
  margin-bottom: 22px;
}

.hero-meta,
.hero-actions,
.hero-dots,
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #e2e8f0;
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 30px;
  z-index: 3;
}

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

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

.page-shell,
.home-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 20px 64px;
}

.section-block {
  margin-top: 54px;
}

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

.section-head h2,
.page-title h1 {
  color: #0f172a;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p,
.category-intro {
  color: var(--site-muted);
  line-height: 1.8;
}

.view-more {
  color: #2563eb;
  font-weight: 800;
}

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

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

.movie-card {
  display: block;
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.36);
}

.poster-shell {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #2563eb);
}

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

.movie-card:hover .poster-shell img {
  transform: scale(1.07);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.04) 55%);
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.82);
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

.movie-card-body {
  display: block;
  padding: 14px;
}

.movie-card-body strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.movie-meta-line {
  display: block;
  color: var(--site-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.movie-card-body p {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
}

.feature-main {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  background: #020617;
}

.feature-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-main-content {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.feature-main-content h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 10px;
}

.feature-main-content p {
  color: #dbeafe;
  line-height: 1.8;
  margin-bottom: 18px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: auto 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
  transform: translateX(4px);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.14);
}

.horizontal-card img {
  width: 86px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #2563eb);
}

.horizontal-card strong,
.horizontal-card em,
.horizontal-card small {
  display: block;
}

.horizontal-card strong {
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.horizontal-card em {
  color: #2563eb;
  font-style: normal;
  font-size: 13px;
  margin-bottom: 4px;
}

.horizontal-card small {
  color: var(--site-muted);
}

.rank-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 900;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.14);
}

.category-card strong {
  color: #0f172a;
  font-size: 21px;
  margin-bottom: 12px;
}

.category-card span {
  color: var(--site-muted);
  line-height: 1.75;
  flex: 1;
}

.category-card em {
  margin-top: 18px;
  color: #2563eb;
  font-style: normal;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin: 24px 0;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.8);
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  border-radius: 20px;
  color: var(--site-muted);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.empty-state.is-visible {
  display: block;
}

.pagination-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}

.pagination-line a {
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.detail-hero {
  padding: 34px 20px 70px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.26), transparent 32%), linear-gradient(135deg, #020617, #0f172a 55%, #1e3a8a);
  color: #ffffff;
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: #bfdbfe;
  font-size: 14px;
}

.breadcrumbs a {
  color: #dbeafe;
  font-weight: 700;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  font-size: 34px;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.42);
}

.play-badge {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.detail-info h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.detail-info p {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
}

.detail-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.article-card,
.related-panel {
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.article-card {
  padding: 30px;
}

.article-card h2 {
  color: #0f172a;
  font-size: 26px;
  font-weight: 900;
  margin: 24px 0 12px;
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card p {
  color: #334155;
  line-height: 2;
  margin-bottom: 16px;
}

.related-panel {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.related-panel h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}

.related-panel .horizontal-card {
  grid-template-columns: 72px 1fr;
}

.related-panel .horizontal-card img {
  width: 72px;
  height: 86px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #64748b;
}

.footer-inner strong {
  color: #0f172a;
}

[hidden] {
  display: none !important;
}

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

  .feature-layout,
  .player-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-radius: 18px;
    padding: 10px;
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search input {
    flex: 1;
    width: auto;
  }

  .hero-content {
    bottom: 16%;
  }

  .hero-meta span {
    font-size: 13px;
  }

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

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

  .feature-main {
    min-height: 360px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid.large-grid,
  .category-cards {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 72px 1fr;
  }

  .horizontal-card .rank-number {
    display: none;
  }

  .horizontal-card img {
    width: 72px;
    height: 84px;
  }

  .detail-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .article-card {
    padding: 22px;
  }
}
