:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f0fdfa;
  --secondary-100: #ccfbf1;
  --secondary-600: #0d9488;
  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-600: #ea580c;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 20px rgba(28, 25, 23, 0.10);
  --shadow-lg: 0 20px 40px rgba(28, 25, 23, 0.14);
  --shadow-xl: 0 28px 70px rgba(28, 25, 23, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--neutral-900);
  background: linear-gradient(180deg, var(--neutral-50), #ffffff 40%, #ffffff);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(231, 229, 228, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  color: var(--neutral-900);
}

.brand-text em {
  margin-top: 5px;
  color: var(--neutral-500);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > a {
  color: var(--neutral-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > a {
  color: var(--primary-600);
}

.nav-dropdown {
  position: relative;
  padding: 26px 0;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  display: grid;
  gap: 2px;
  width: 180px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  padding: 8px 10px;
  color: var(--neutral-700);
  font-size: 14px;
  border-radius: 10px;
}

.nav-dropdown-panel a:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 210px;
  height: 42px;
  padding: 0 16px;
  color: var(--neutral-800);
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.header-search input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.header-search button {
  height: 42px;
  padding: 0 18px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: var(--primary-600);
  transition: all 0.2s ease;
}

.header-search button:hover {
  background: var(--primary-700);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--neutral-800);
  border: 0;
  border-radius: 12px;
  background: var(--neutral-100);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

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

.mobile-nav a {
  padding: 12px 14px;
  color: var(--neutral-700);
  font-weight: 600;
  border-radius: 12px;
}

.mobile-nav a:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 5s ease;
}

.hero-slide.active .hero-image {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.28) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 68px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-copy {
  width: min(720px, 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--primary-600);
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.34);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--primary-600);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.30);
}

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

.btn-secondary {
  color: var(--primary-700);
  background: #ffffff;
}

.btn-secondary:hover {
  color: #ffffff;
  background: var(--secondary-600);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--neutral-700);
  background: var(--neutral-100);
}

.btn-ghost:hover {
  color: var(--primary-700);
  background: var(--primary-50);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: all 0.2s ease;
}

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

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 78px;
}

.page-main.compact {
  padding-top: 36px;
}

.section {
  margin-top: 72px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary-600);
  font-weight: 800;
}

.section-title {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 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));
}

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(2, 132, 199, 0.24);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--neutral-200);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.68));
  opacity: 0.86;
}

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  font-size: 22px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.92);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: all 0.25s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-category {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 9px;
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--primary-100);
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-info p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 12px;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--neutral-100);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.movie-card-horizontal .movie-poster {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

.feature-panel {
  padding: 28px;
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 24px;
}

.search-panel input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: var(--neutral-800);
  border: 2px solid var(--neutral-200);
  border-radius: 18px;
  outline: none;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-panel input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.12);
}

.search-panel button {
  min-height: 54px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 800;
  border: 0;
  border-radius: 18px;
  background: var(--primary-600);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-bar button,
.filter-bar a {
  padding: 9px 14px;
  color: var(--neutral-700);
  font-weight: 700;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.filter-bar button:hover,
.filter-bar button.active,
.filter-bar a:hover {
  color: #ffffff;
  border-color: var(--primary-600);
  background: var(--primary-600);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--neutral-500);
  font-size: 14px;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--neutral-200);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

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

.category-card strong {
  color: var(--neutral-900);
  font-size: 22px;
}

.category-card p {
  margin: 12px 0 24px;
  color: var(--neutral-600);
}

.category-card span {
  margin-top: auto;
  color: var(--primary-600);
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.rank-item:hover {
  border-color: rgba(2, 132, 199, 0.24);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-600), var(--primary-600));
}

.rank-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--neutral-200);
}

.rank-body strong,
.rank-body em {
  display: block;
}

.rank-body strong {
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-body em {
  margin-top: 4px;
  overflow: hidden;
  color: var(--neutral-500);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.player-wrap {
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-xl);
}

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

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

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  z-index: 2;
  cursor: pointer;
}

.player-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.32));
}

.player-mask.is-hidden {
  display: none;
}

.player-button {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: #ffffff;
  font-size: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.95);
  box-shadow: 0 24px 50px rgba(2, 132, 199, 0.44);
  transition: all 0.22s ease;
}

.player-button:hover {
  transform: scale(1.06);
  background: var(--primary-700);
}

.detail-card {
  padding: 28px;
  border: 1px solid var(--neutral-200);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  background: var(--neutral-200);
}

.detail-title {
  margin: 20px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--neutral-600);
  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span,
.tag-list a {
  padding: 6px 10px;
  color: var(--primary-700);
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--primary-100);
}

.article-panel {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--neutral-200);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.article-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 18px;
  color: var(--neutral-700);
  line-height: 1.85;
}

.article-panel p:last-child {
  margin-bottom: 0;
}

.site-footer {
  color: var(--neutral-300);
  background: linear-gradient(135deg, var(--neutral-900), var(--neutral-800));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
  color: var(--neutral-400);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--neutral-300);
}

.footer-links a:hover {
  color: #ffffff;
}

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text em {
    display: none;
  }

  .hero-slider {
    min-height: 74vh;
  }

  .hero-content {
    bottom: 42px;
  }

  .hero-arrow {
    display: none;
  }

  .page-main {
    padding: 42px 0 58px;
  }

  .section {
    margin-top: 52px;
  }

  .section-head {
    display: block;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-info {
    padding: 14px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .movie-card-horizontal {
    display: block;
  }

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

  .rank-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .rank-item img {
    width: 72px;
    height: 52px;
  }

  .detail-card,
  .article-panel,
  .feature-panel {
    padding: 20px;
    border-radius: 22px;
  }

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

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-dots {
    margin-top: 4px;
  }
}
