:root {
  --primary: #a67c4a;
  --primary-dark: #8b6538;
  --primary-soft: #faf8f5;
  --secondary: #0284c7;
  --accent: #d97706;
  --ink: #171717;
  --muted: #666666;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

img {
  max-width: 100%;
}

main {
  min-height: 60vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(166, 124, 74, 0.28);
}

.logo-text {
  font-size: 20px;
}

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

.desktop-nav a,
.mobile-nav a,
.header-search,
.text-link {
  color: #404040;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active,
.text-link:hover {
  color: var(--primary);
}

.header-search {
  padding: 9px 16px;
  border: 1px solid rgba(166, 124, 74, 0.28);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(250, 248, 245, 0.8);
}

.header-search:hover {
  background: var(--primary);
  color: #ffffff;
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #f3f4f6;
  color: #262626;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav a {
  padding: 10px 8px;
  border-radius: 10px;
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  min-height: 560px;
  height: 72vh;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f0e8, #f0f9ff, #fffbeb);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 54px;
  padding: 96px max(32px, calc((100vw - 1180px) / 2)) 76px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.018);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-content {
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker span {
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 16px 0 10px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero h3 {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
}

.hero p {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

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

.primary-button,
.ghost-button,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.quick-search button {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 16px 30px rgba(166, 124, 74, 0.28);
}

.primary-button:hover,
.quick-search button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 20px 38px rgba(166, 124, 74, 0.32);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(1.5deg);
}

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

.hero-controls {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
  background: #ffffff;
}

.quick-search-section {
  margin-top: -36px;
  position: relative;
  z-index: 4;
}

.quick-search-section .content-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-search input,
.toolbar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.quick-search input:focus,
.toolbar input:focus {
  border-color: rgba(166, 124, 74, 0.68);
  box-shadow: 0 0 0 4px rgba(166, 124, 74, 0.12);
}

.quick-links a {
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.section-block {
  padding: 76px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(135deg, #f7f7f7, #f5f0e8 52%, #f0f9ff);
}

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

.section-heading h2,
.split-layout h2,
.page-hero h1,
.detail-content-card h1 {
  margin: 4px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading a {
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-tile,
.category-card-large {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: #171717;
  background: linear-gradient(135deg, #ffffff, #faf8f5);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 124, 74, 0.36);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-card-large h2 {
  font-size: 22px;
  font-weight: 850;
}

.category-tile small,
.category-card-large p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

.movie-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.movie-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(166, 124, 74, 0.34);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.movie-grid.four-col .poster-link,
.horizontal-row .poster-link {
  aspect-ratio: 2 / 3;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.58));
  transition: opacity 0.22s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .poster-play {
  opacity: 1;
}

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

.movie-card-body {
  padding: 18px;
}

.movie-tags,
.meta-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span,
.tag-cloud span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a {
  color: #111827;
  text-decoration: none;
}

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

.movie-card p,
.split-layout p,
.page-hero p,
.detail-content-card p {
  color: var(--muted);
  line-height: 1.8;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 250px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
  scroll-snap-align: start;
}

.split-section {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.split-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: center;
}

.split-layout h2,
.split-layout p {
  color: #ffffff;
}

.ranking-preview,
.ranking-list-large {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-preview {
  display: grid;
  gap: 10px;
}

.ranking-preview a,
.ranking-list-large a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.ranking-preview strong,
.ranking-list-large strong {
  color: #fff7ed;
  font-size: 22px;
}

.ranking-preview em,
.ranking-list-large em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  background: linear-gradient(135deg, #f5f0e8, #f0f9ff, #fffbeb);
  border-bottom: 1px solid var(--line);
}

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

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

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 750;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.category-card-large h2 a {
  color: #111827;
  text-decoration: none;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-samples a {
  padding: 7px 10px;
  color: #525252;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}

.toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #525252;
  background: #ffffff;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.empty-state {
  margin: 30px 0 0;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #f8fafc;
  border-radius: 18px;
}

.split-ranking-section {
  background: #0f172a;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

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

.ranking-list-large a {
  grid-template-columns: 46px 0.72fr 1.28fr;
}

.rank-feature {
  position: sticky;
  top: 90px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.rank-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rank-feature div {
  padding: 28px;
}

.rank-feature span {
  color: var(--primary);
  font-weight: 850;
}

.rank-feature h2 {
  margin: 8px 0 12px;
  font-size: 30px;
}

.detail-shell {
  padding: 36px 0 70px;
  background: #f8fafc;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-content-card,
.cover-panel,
.side-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.player-card {
  overflow: hidden;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.64));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

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

.detail-content-card {
  padding: 30px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.meta-row {
  margin: 0 0 22px;
}

.lead-text {
  padding: 18px 0;
  color: #404040 !important;
  font-size: 19px;
  font-weight: 700;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tag-cloud {
  margin: 0 0 26px;
}

.detail-content-card h2,
.side-panel h2 {
  margin: 28px 0 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 850;
}

.detail-content-card p {
  white-space: pre-line;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 20px;
}

.cover-panel {
  padding: 18px;
}

.cover-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.cover-panel .primary-button {
  width: 100%;
  margin-top: 16px;
}

.side-panel {
  padding: 20px;
}

.side-panel h2 {
  margin-top: 0;
}

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

.side-link-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  color: #111827;
  text-decoration: none;
}

.side-link-card img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

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

.side-link-card em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  color: #d4d4d4;
  background: #111827;
}

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

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.footer-inner p {
  color: #a3a3a3;
  line-height: 1.8;
}

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

.footer-links a {
  color: #d4d4d4;
  text-decoration: none;
}

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

.footer-copy {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .category-grid,
  .movie-grid.four-col {
    grid-template-columns: repeat(3, 1fr);
  }

  .movie-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .detail-side,
  .rank-feature {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero-stage,
  .hero-slide {
    position: relative;
  }

  .hero-slide {
    display: none;
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 680px;
    padding: 86px 20px 82px;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-poster {
    width: min(78vw, 270px);
    transform: none;
  }

  .hero-controls {
    left: 20px;
    bottom: 26px;
  }

  .quick-search-section {
    margin-top: 0;
  }

  .quick-search-section .content-wrap,
  .quick-search {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid.three-col,
  .movie-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .detail-title-row {
    align-items: start;
    flex-direction: column;
  }

  .ranking-preview a,
  .ranking-list-large a {
    grid-template-columns: 42px 1fr;
  }

  .ranking-preview em,
  .ranking-list-large em {
    grid-column: 2;
  }
}

@media (max-width: 540px) {
  .content-wrap,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .logo-text {
    font-size: 18px;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid.three-col,
  .movie-grid.four-col {
    grid-template-columns: 1fr;
  }

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

  .movie-card-body,
  .detail-content-card {
    padding: 20px;
  }

  .side-link-card {
    grid-template-columns: 86px 1fr;
  }
}
