:root {
  --site-bg: #f9fafb;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-soft: #6b7280;
  --text-light: #f9fafb;
  --border: #e5e7eb;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #d1fae5;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f9fafb 100%);
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.25);
}

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

.logo-name {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.logo-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-soft);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
  color: #374151;
}

.primary-nav a {
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--emerald);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.mobile-menu a {
  display: block;
  padding: 12px 18px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-menu a:hover {
  background: #ecfdf5;
  color: var(--emerald);
}

.mobile-menu.open {
  display: block;
  padding: 12px 16px 18px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-copy {
  width: min(680px, 92vw);
  color: #ffffff;
}

.hero-badge,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--emerald);
  color: #ffffff;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 750;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
  color: #e5e7eb;
}

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

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

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

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

.btn-primary:hover {
  background: var(--emerald-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 56px 0;
}

.section.alt {
  background: #ffffff;
}

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

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--emerald);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 850;
  color: #111827;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

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

.category-card {
  display: block;
  min-height: 154px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
  border: 1px solid #d1fae5;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.category-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  color: #064e3b;
}

.category-card span {
  color: #4b5563;
  line-height: 1.7;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f0f2f5;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-year,
.movie-score {
  position: absolute;
  bottom: 10px;
  right: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 760;
}

.movie-score {
  left: 10px;
  right: auto;
  background: rgba(5, 150, 105, 0.9);
}

.movie-body {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
}

.meta-text {
  color: #6b7280;
  font-size: 13px;
}

.movie-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.38;
  font-weight: 780;
  color: #111827;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--emerald);
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.movie-brief {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: #a7f3d0;
}

.rank-index {
  font-size: 24px;
  font-weight: 850;
  color: var(--emerald);
  text-align: center;
}

.rank-cover {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.rank-title {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 800;
}

.rank-desc {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.rank-score {
  min-width: 76px;
  text-align: center;
  border-radius: 14px;
  padding: 10px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 850;
}

.page-hero {
  padding: 58px 0 36px;
  background: radial-gradient(circle at top left, #d1fae5 0%, #ffffff 35%, #f9fafb 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 860;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: #4b5563;
  line-height: 1.8;
}

.breadcrumbs {
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 14px;
}

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

.player-section {
  background: #000000;
}

.player-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  cursor: pointer;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 18px 38px rgba(5, 150, 105, 0.35);
  font-size: 34px;
  line-height: 1;
}

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

.detail-card,
.side-card {
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  font-weight: 820;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
  margin: 0 0 14px;
}

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

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

.tag-item {
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
}

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

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

.side-item img {
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.side-item strong {
  display: block;
  line-height: 1.35;
  margin-bottom: 4px;
}

.side-item span {
  color: #6b7280;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: #6b7280;
  text-align: center;
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: auto;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-inner p,
.footer-inner a {
  color: #d1d5db;
  line-height: 1.8;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .hero {
    height: auto;
    min-height: 580px;
  }

  .hero-copy {
    padding: 90px 0 110px;
  }

  .hero-control {
    display: none;
  }

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

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

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

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

  .rank-score {
    grid-column: 3;
    width: fit-content;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

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

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

  .rank-cover {
    display: none;
  }

  .rank-score {
    grid-column: 2;
  }
}
