:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --panel-muted: #334155;
  --line: rgba(51, 65, 85, 0.82);
  --text: #cbd5e1;
  --text-soft: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --black: #000000;
  --accent: #f8fafc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(30, 41, 59, 0.78), transparent 34rem), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-size: 15px;
}

.nav-links a,
.mobile-menu a {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.75);
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: #cbd5e1;
}

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

.main-page {
  padding-top: 64px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--panel);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.78) 36%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 70px;
  z-index: 4;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 18px;
}

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

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

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

.btn-primary {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
}

.btn-primary:hover {
  background: #e2e8f0;
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.72);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.page-hero {
  padding: 128px 24px 48px;
  background: radial-gradient(circle at top right, rgba(71, 85, 105, 0.42), transparent 30rem), var(--bg);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1,
.section-title h2,
.detail-title h1 {
  margin: 0;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.section {
  margin-bottom: 64px;
}

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

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-title p,
.muted {
  color: var(--text-soft);
}

.link-more {
  color: #e2e8f0;
  font-weight: 700;
}

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.86);
  box-shadow: 0 0 0 1px rgba(51, 65, 85, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.8), var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1e293b;
}

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

.poster-link:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 62%);
  transition: opacity 0.3s ease;
}

.poster-link:hover .poster-shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-link:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.meta-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 9px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

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

.card-body strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.35;
}

.card-body em {
  display: -webkit-box;
  min-height: 44px;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #cbd5e1;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
  font-size: 12px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  box-shadow: 0 0 0 1px rgba(51, 65, 85, 0.72);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.72), var(--shadow);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 20px;
}

.category-card span {
  color: var(--text-soft);
  font-size: 14px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.search-field {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.search-field span {
  color: var(--text-soft);
  font-size: 22px;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.search-field input::placeholder {
  color: #64748b;
}

.clear-search {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  background: #e2e8f0;
  font-weight: 700;
}

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

.rank-row {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 0 0 1px rgba(51, 65, 85, 0.72);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.92);
  transform: translateY(-2px);
}

.rank-link {
  display: grid;
  grid-template-columns: 70px 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-no {
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.rank-link img {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info strong {
  display: block;
  color: var(--white);
  font-size: 18px;
}

.rank-info em {
  display: block;
  margin: 4px 0;
  color: var(--text-soft);
  font-style: normal;
}

.rank-info small {
  color: var(--text-muted);
}

.detail-shell {
  padding-top: 64px;
}

.player-section {
  background: #000000;
}

.player-frame {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #0f172a;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
  font-size: 30px;
}

.player-frame.is-ready .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.detail-title h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.9);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.article-block {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 0 0 1px rgba(51, 65, 85, 0.72);
}

.article-block h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 22px;
}

.article-block p {
  margin: 0;
  color: #cbd5e1;
}

.side-panel {
  position: sticky;
  top: 88px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 0 0 1px rgba(51, 65, 85, 0.72);
}

.side-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.side-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.side-panel div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-size: 14px;
}

.side-panel dt {
  color: var(--text-muted);
}

.side-panel dd {
  margin: 0;
  color: #e2e8f0;
  text-align: right;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.72);
}

.compact-card:hover {
  background: rgba(51, 65, 85, 0.72);
}

.compact-card img {
  width: 84px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

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

.compact-card strong {
  color: var(--white);
  line-height: 1.35;
}

.compact-card small {
  margin-top: 4px;
  color: var(--text-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.92);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-muted);
}

.footer-inner strong {
  color: var(--white);
}

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

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

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

  .side-panel {
    position: static;
  }
}

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

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

  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    bottom: 58px;
  }

  .hero-control {
    display: none;
  }

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

  .section-title,
  .filter-bar,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-link img {
    width: 86px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .container,
  .detail-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

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

  .hero p {
    font-size: 16px;
  }

  .rank-info em {
    display: none;
  }
}
