:root {
  --forest-50: #f5f7f5;
  --forest-100: #e8ede7;
  --forest-600: #4a6644;
  --forest-700: #3c5238;
  --forest-800: #32432f;
  --earth-50: #fbfaf7;
  --earth-100: #f4f0e8;
  --earth-200: #ddd8ca;
  --earth-300: #c5bcaa;
  --earth-400: #aa9b85;
  --earth-800: #4e443a;
  --earth-900: #423a32;
  --deer-500: #a88558;
  --amber-500: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--forest-50), var(--earth-50) 34rem, #ffffff 100%);
  font-family: Inter, 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;
}

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--forest-600);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  font-size: 1.28rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  color: #374151;
  border-radius: 12px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--forest-700);
  background: var(--forest-50);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: var(--forest-50);
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--forest-800);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 11px 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.main-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  margin: 28px auto 36px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--earth-900);
  min-height: 560px;
  box-shadow: var(--shadow-hover);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -12% -28% 42%;
  height: 340px;
  background: radial-gradient(circle, rgba(168, 133, 88, 0.38), transparent 66%);
  pointer-events: none;
}

.hero-track {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: stretch;
  padding: 54px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: var(--earth-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.section-title h1,
.section-title h2,
.detail-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 720px;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.98;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--earth-200);
  font-size: 1.06rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-chip,
.hero-pill,
.detail-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
}

.hero-pill {
  color: var(--earth-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.meta-chip,
.detail-pill {
  color: var(--forest-800);
  background: var(--forest-100);
}

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

.button-primary,
.button-secondary,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.button-primary {
  color: var(--white);
  background: var(--forest-600);
  box-shadow: 0 18px 34px rgba(74, 102, 68, 0.28);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-primary:hover,
.button-secondary:hover,
.rank-action:hover {
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-poster {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.52));
}

.hero-controls {
  position: absolute;
  left: 54px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.22s ease, background 0.22s ease;
}

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

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 32px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.quick-search input {
  width: 100%;
  min-height: 44px;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0 12px;
}

.quick-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.quick-search a {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  color: var(--earth-900);
  background: var(--white);
  font-weight: 800;
}

.section-block {
  margin: 54px 0;
}

.section-title,
.page-hero {
  margin-bottom: 24px;
}

.section-title h1,
.section-title h2,
.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
}

.section-title p,
.page-hero p {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
}

.title-line {
  width: 82px;
  height: 5px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--forest-600), var(--deer-500));
  border-radius: 999px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 22px 0 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--forest-700);
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  border-radius: 16px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-filter {
  border: 0;
  padding: 9px 13px;
  color: var(--forest-800);
  background: var(--white);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
}

.chip-filter:hover,
.chip-filter.is-active {
  color: var(--white);
  background: var(--forest-600);
  box-shadow: none;
}

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--earth-100);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.24s ease;
}

.movie-card:hover .poster-mask {
  background: rgba(0, 0, 0, 0.38);
}

.poster-play {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: var(--white);
  background: rgba(74, 102, 68, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--forest-600);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.movie-card-body {
  padding: 13px 13px 15px;
}

.movie-card-body h2 {
  margin: 0 0 7px;
  font-size: 0.98rem;
  line-height: 1.35;
}

.movie-card-body h2 a:hover {
  color: var(--forest-600);
}

.movie-card-body p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-meta {
  margin-top: 10px;
}

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

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

.category-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -68px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

.category-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: var(--earth-200);
  font-size: 0.92rem;
}

.category-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 9px 13px;
  color: var(--forest-800);
  background: var(--white);
  border-radius: 999px;
  font-weight: 800;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--forest-600);
  border-radius: 14px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  width: 78px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--earth-100);
}

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

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.rank-info h2 a:hover {
  color: var(--forest-600);
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-action {
  color: var(--white);
  background: var(--earth-900);
}

.page-hero {
  margin: 36px 0 30px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.62));
  border: 0;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--white);
  background: var(--forest-600);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  font-size: 1.8rem;
}

.video-overlay strong,
.video-overlay span:last-child {
  font-size: 1.02rem;
  font-weight: 900;
}

.player-caption {
  padding: 18px 20px 20px;
}

.player-caption h2 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
}

.detail-card {
  padding: 26px;
}

.detail-title h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.detail-meta {
  margin: 14px 0 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 20px;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.detail-section p {
  margin: 0;
  color: #374151;
}

.side-card {
  overflow: hidden;
}

.side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-card-body {
  padding: 20px;
}

.side-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--forest-50);
  border-radius: 14px;
}

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

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

.compact-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.94rem;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.site-footer {
  margin-top: 70px;
  color: var(--earth-200);
  background: var(--earth-900);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 1.35rem;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--earth-300);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

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

.footer-links a {
  color: var(--earth-300);
  font-size: 0.92rem;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--earth-800);
  color: var(--earth-400);
  font-size: 0.9rem;
}

.empty-state {
  display: none;
  padding: 28px;
  color: var(--muted);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-section,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-controls {
    left: 32px;
  }

  .hero-poster {
    max-width: 300px;
    transform: rotate(0deg);
  }

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

  .ranking-row {
    grid-template-columns: 44px 64px minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  .main-shell,
  .header-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1240px);
  }

  .hero-section,
  .hero-track {
    min-height: 710px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.1rem, 13vw, 3.3rem);
  }

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

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

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

  .page-hero,
  .detail-card {
    padding: 22px;
    border-radius: 20px;
  }

  .ranking-row {
    gap: 10px;
    padding: 10px;
  }

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