:root {
  color-scheme: light;
  --site-blue: #0284c7;
  --site-blue-dark: #075985;
  --site-ink: #0f172a;
  --site-muted: #64748b;
  --site-soft: #f1f5f9;
  --site-card: #ffffff;
  --site-line: #e2e8f0;
  --site-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

body {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--site-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.06);
}

.site-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  padding: 9px 10px;
  border-radius: 999px;
  transition: 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0369a1;
  background: #e0f2fe;
}

.menu-button {
  display: none;
  border-radius: 10px;
  padding: 9px 11px;
  background: #f1f5f9;
  color: #0f172a;
}

.mobile-menu {
  display: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.55), transparent 30%),
    linear-gradient(135deg, #075985, #0f172a 56%, #1d4ed8);
  color: #ffffff;
}

.hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 42px;
  padding: 68px 0 90px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #dff6ff;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
  color: #bae6fd;
}

.hero p {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  transition: 0.18s ease;
}

.button-primary {
  background: #ffffff;
  color: #0369a1;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.26);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 510px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.88));
}

.hero-slide-content {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
}

.hero-slide-content h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.16;
  margin-bottom: 10px;
}

.hero-slide-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #e0f2fe;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 68px 0;
}

.section-soft {
  background: #f1f5f9;
}

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

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

.section-head p,
.page-title p {
  color: var(--site-muted);
  margin-top: 8px;
  line-height: 1.8;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0369a1;
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--site-shadow);
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #bae6fd, #dbeafe);
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  color: #075985;
  background: #e0f2fe;
}

.cover-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(3, 105, 161, 0.86);
  backdrop-filter: blur(10px);
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  font-size: 18px;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 850;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 13px;
  margin-top: 12px;
}

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

.category-card {
  display: block;
  border-radius: 22px;
  background: #ffffff;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
  transition: 0.18s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--site-shadow);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 16px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 24px;
  font-weight: 900;
}

.category-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.category-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rank-num {
  font-size: 22px;
  font-weight: 900;
  color: #0284c7;
  text-align: center;
}

.rank-thumb {
  width: 88px;
  height: 58px;
  border-radius: 13px;
  overflow: hidden;
}

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

.rank-title {
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 4px;
}

.rank-desc {
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 0%, rgba(125, 211, 252, 0.42), transparent 32%),
    linear-gradient(135deg, #075985, #1d4ed8);
  padding: 70px 0;
}

.page-hero .page-title h1,
.page-hero .page-title p {
  color: #ffffff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.search-input,
.select-input {
  min-height: 44px;
  border-radius: 13px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
  outline: none;
}

.search-input {
  flex: 1 1 260px;
}

.select-input {
  flex: 0 0 170px;
}

.search-input:focus,
.select-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.detail-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(56, 189, 248, 0.38), transparent 28%),
    linear-gradient(135deg, #0f172a, #075985);
  color: #ffffff;
  padding: 62px 0;
}

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

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  aspect-ratio: 3 / 4;
}

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

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.detail-copy p {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.85;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.tag-list span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eff6ff;
  font-size: 13px;
  font-weight: 700;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.player-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #0369a1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

.content-panel {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
  padding: 28px;
}

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

.content-panel p {
  color: #334155;
  line-height: 1.9;
  margin-bottom: 14px;
}

.breadcrumb {
  color: #e0f2fe;
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 750;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 14px;
}

.footer-grid p,
.footer-grid a {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: #7dd3fc;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 13px;
}

.no-result {
  display: none;
  padding: 26px;
  border-radius: 20px;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

@media (max-width: 980px) {
  .hero-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 52px 0 70px;
  }

  .hero-card {
    min-height: 420px;
  }

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

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

  .detail-cover {
    width: min(360px, 100%);
  }

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

@media (max-width: 720px) {
  .site-nav {
    min-height: 62px;
  }

  .nav-links {
    display: none;
  }

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

  .mobile-menu.is-open {
    display: grid;
    gap: 8px;
    padding: 12px 20px 18px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
  }

  .mobile-menu a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
  }

  .mobile-menu a:hover,
  .mobile-menu a.active {
    color: #0369a1;
    background: #e0f2fe;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 46px 0;
  }

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

  .hero-card {
    min-height: 360px;
    border-radius: 24px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

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

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

  .rank-thumb,
  .rank-action {
    display: none;
  }

  .detail-hero {
    padding: 42px 0;
  }

  .detail-copy h1 {
    font-size: 38px;
  }

  .content-panel {
    padding: 22px;
  }
}
