:root {
  --primary-900: #333d4f;
  --primary-800: #39475d;
  --primary-700: #42536f;
  --primary-600: #506688;
  --primary-100: #ebeef3;
  --accent-500: #eab308;
  --accent-400: #facc15;
  --neutral-950: #0a0a0a;
  --neutral-900: #171717;
  --neutral-800: #262626;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 8px 26px rgba(15, 23, 42, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--neutral-900);
  background: var(--neutral-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 12px 30px rgba(80, 102, 136, 0.28);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-700);
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--primary-700);
  background: var(--primary-100);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--neutral-100);
  color: var(--primary-900);
  align-items: center;
  justify-content: center;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--neutral-200);
  background: var(--white);
}

.mobile-panel a {
  display: block;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  color: var(--neutral-700);
  font-weight: 700;
  border-bottom: 1px solid var(--neutral-100);
}

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

.hero {
  position: relative;
  height: min(650px, 82vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--neutral-900);
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide.is-active .hero-image {
  animation: heroZoom 6s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.01);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(234, 179, 8, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--accent-400);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-desc {
  margin: 0 0 24px;
  max-width: 620px;
  color: var(--neutral-200);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--neutral-100);
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--primary-600);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(80, 102, 136, 0.28);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--primary-700);
}

.btn-accent {
  color: var(--neutral-950);
  background: var(--accent-400);
}

.btn-accent:hover {
  background: var(--accent-500);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  transition: 0.2s ease;
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 10%, rgba(234, 179, 8, 0.18), transparent 30%),
    linear-gradient(135deg, var(--primary-900), var(--primary-700));
  padding: 72px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--neutral-200);
  font-size: 18px;
}

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

.main-space {
  padding: 58px 0;
}

.section {
  margin-bottom: 68px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: var(--neutral-900);
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--neutral-600);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

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

.thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-800), var(--neutral-900));
}

.thumb.tall {
  aspect-ratio: 4 / 3;
}

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

.card:hover .thumb img,
.related-item:hover img {
  transform: scale(1.08);
}

.thumb:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover .thumb:after {
  opacity: 1;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 17px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--neutral-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.card:hover .card-title {
  color: var(--primary-600);
}

.card-desc {
  margin: 0 0 12px;
  color: var(--neutral-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 13px;
}

.card-meta span:first-child {
  color: var(--primary-700);
  background: var(--primary-100);
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 700;
}

.category-card {
  position: relative;
  min-height: 170px;
  padding: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-900), var(--primary-600));
  box-shadow: var(--shadow-soft);
}

.category-card:before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.22);
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: var(--neutral-200);
}

.search-panel {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  color: var(--neutral-900);
  background: var(--neutral-50);
}

.search-panel input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(80, 102, 136, 0.14);
}

.search-hint {
  color: var(--neutral-500);
  font-size: 14px;
  white-space: nowrap;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 132px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: var(--primary-600);
  font-size: 18px;
  font-weight: 900;
}

.rank-row:nth-child(1) .rank-num,
.rank-row:nth-child(2) .rank-num,
.rank-row:nth-child(3) .rank-num {
  color: var(--neutral-950);
  background: var(--accent-400);
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--primary-900);
}

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

.rank-title {
  margin: 0 0 6px;
  color: var(--neutral-900);
  font-size: 18px;
  font-weight: 800;
}

.rank-desc {
  margin: 0;
  color: var(--neutral-600);
  font-size: 14px;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--neutral-950);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--neutral-950);
  background: var(--accent-400);
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.34);
  font-size: 34px;
  transition: 0.2s ease;
}

.player-start:hover {
  transform: scale(1.06);
}

.player-message {
  display: none;
  position: absolute;
  z-index: 8;
  left: 20px;
  bottom: 20px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.64);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}

.player-unavailable .player-message {
  display: inline-flex;
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--neutral-900);
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 16px;
  color: var(--neutral-700);
}

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

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 14px;
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span,
.tag-cloud a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  font-size: 13px;
  font-weight: 700;
}

.sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--primary-900);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.related-title {
  margin: 0 0 6px;
  color: var(--neutral-900);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.related-meta {
  margin: 0;
  color: var(--neutral-500);
  font-size: 12px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--neutral-500);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--primary-700);
  font-weight: 700;
}

.site-footer {
  margin-top: 56px;
  padding: 36px 0;
  color: var(--neutral-300);
  background: var(--neutral-900);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.empty-result {
  display: none;
  padding: 36px;
  border-radius: var(--radius);
  color: var(--neutral-600);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

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

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

  .rank-row {
    grid-template-columns: 48px 112px 1fr;
  }

  .rank-action {
    grid-column: 2 / -1;
  }
}

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

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 74px;
  }

  .hero-control {
    display: none;
  }

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

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .search-hint {
    white-space: normal;
  }

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

  .rank-thumb {
    display: none;
  }

  .related-item {
    grid-template-columns: 96px 1fr;
  }

  .page-hero {
    padding: 54px 0;
  }
}
