:root {
  --forest-50: #f5f7f5;
  --forest-100: #e8ede7;
  --forest-600: #4a6644;
  --forest-700: #3c5238;
  --forest-800: #32432f;
  --earth-200: #ddd8ca;
  --earth-300: #c5bcaa;
  --earth-400: #aa9b85;
  --earth-800: #4e443a;
  --earth-900: #423a32;
  --deer-500: #a88558;
  --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 20px 35px -15px rgba(74, 102, 68, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--forest-50), #ffffff 38%, #ffffff);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

.brand-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--forest-600);
  box-shadow: var(--shadow-soft);
}

.brand-text {
  color: var(--forest-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--forest-600);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.search-toggle,
.menu-toggle,
.search-close,
.hero-dot,
.player-cover-button {
  border: 0;
  cursor: pointer;
}

.search-toggle {
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--white);
  background: var(--forest-600);
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-toggle:hover {
  background: var(--forest-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border-radius: 10px;
  padding: 9px 12px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 16px;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  display: block;
  border-radius: 10px;
  padding: 10px 12px;
}

.mobile-nav a.active {
  background: var(--forest-50);
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 20px 20px;
  background: rgba(17, 24, 39, 0.52);
}

.search-panel.open {
  display: flex;
}

.search-box {
  position: relative;
  width: min(720px, 100%);
  border-radius: 24px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.search-box label {
  display: block;
  margin-bottom: 12px;
  color: var(--forest-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #4b5563;
  background: #f3f4f6;
}

#global-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

#global-search:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgba(74, 102, 68, 0.12);
}

.search-results {
  display: grid;
  gap: 10px;
  max-height: 420px;
  margin-top: 16px;
  overflow: auto;
}

.search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  border-color: var(--forest-600);
  transform: translateY(-1px);
}

.search-result-item img {
  width: 52px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-title {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.search-result-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--earth-900);
}

.hero-track {
  position: relative;
  min-height: clamp(560px, 72vh, 780px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(26, 33, 25, 0.88), rgba(26, 33, 25, 0.64) 42%, rgba(26, 33, 25, 0.16)), linear-gradient(0deg, rgba(66, 58, 50, 0.76), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 116px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--forest-100);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 16px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

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

.hero-meta span,
.detail-meta span,
.rank-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100% - 1280px) / 2));
  bottom: 78px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 78px));
  gap: 10px;
}

.hero-dot {
  height: 78px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover {
  border-color: var(--white);
  opacity: 1;
  transform: translateY(-2px);
}

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

.main-section {
  padding: 56px 0 0;
}

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

.section-title h2,
.section-title h1,
.page-hero h1,
.detail-text h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.section-title p,
.page-hero p {
  margin: 0;
  color: var(--muted);
}

.section-line {
  width: 80px;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest-600), var(--deer-500));
}

.more-link {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.76);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(74, 102, 68, 0.35);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

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

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

.movie-card:hover img {
  filter: brightness(0.76);
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 7px;
  padding: 4px 8px;
  color: var(--white);
  background: var(--forest-600);
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(74, 102, 68, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 38px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
}

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

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

.category-entry::after {
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.12);
}

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

.category-entry p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 86px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  color: var(--forest-600);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
}

.rank-item img {
  width: 86px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-meta span {
  color: var(--forest-700);
  background: var(--forest-50);
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(128px, 168px));
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  color: #374151;
  outline: none;
  background: #fff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--forest-600);
  box-shadow: 0 0 0 4px rgba(74, 102, 68, 0.12);
}

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

.player-shell {
  overflow: hidden;
  border-radius: 22px;
  background: #050505;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

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

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

.player-cover-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
}

.player-cover-button span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: rgba(74, 102, 68, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-size: 34px;
}

.player-cover-button.hide {
  display: none;
}

.player-message {
  display: none;
  padding: 14px 18px;
  color: var(--earth-200);
  background: #111827;
}

.player-message.show {
  display: block;
}

.detail-card,
.side-card {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-text h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.detail-meta span {
  color: var(--forest-700);
  background: var(--forest-50);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--forest-700);
  background: var(--forest-50);
  font-size: 13px;
  font-weight: 700;
}

.prose-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.prose-block h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.prose-block p {
  margin: 0;
  color: #374151;
}

.side-card {
  position: sticky;
  top: 88px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: var(--forest-50);
  transform: translateX(2px);
}

.compact-card img {
  width: 58px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.compact-card span {
  color: var(--ink);
  font-weight: 700;
}

.empty-result {
  display: none;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

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

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

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

.footer-brand .brand-text {
  color: var(--white);
}

.footer-main p {
  max-width: 560px;
  color: var(--earth-300);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--earth-300);
}

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

.footer-bottom {
  border-top: 1px solid var(--earth-800);
  padding: 18px;
  color: var(--earth-400);
  text-align: center;
}

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

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

  .side-card {
    position: static;
  }
}

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

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

  .hero-panel {
    left: 16px;
    right: 16px;
    bottom: 22px;
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-dot {
    height: 58px;
    border-radius: 12px;
  }

  .hero-content {
    padding-bottom: 112px;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 74px 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .container,
  .footer-inner {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 19px;
  }

  .search-toggle {
    padding: 8px 12px;
  }

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

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

  .detail-card,
  .side-card {
    padding: 18px;
  }
}
