:root {
  --site-bg: #faf8f3;
  --site-card: #ffffff;
  --site-text: #4a3218;
  --site-muted: #8f6235;
  --site-soft: #f5f0e6;
  --site-border: #ebe2cd;
  --site-accent: #d97c1e;
  --site-accent-dark: #c05f14;
  --site-shadow: 0 18px 45px rgba(74, 50, 24, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
}

img {
  background: #ebe2cd;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(74, 50, 24, 0.08);
}

.site-nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--site-text);
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-dark));
  box-shadow: 0 10px 20px rgba(217, 124, 30, 0.25);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--site-accent-dark), var(--site-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
}

.nav-link {
  color: #6d4a29;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--site-accent-dark);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--site-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--site-text);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #4a3218;
}

@media (min-width: 640px) {
  .hero-slider {
    height: 600px;
  }
}

@media (min-width: 1024px) {
  .hero-slider {
    height: 700px;
  }
}

.hero-slides,
.hero-slide,
.hero-image,
.hero-image img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

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

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

.hero-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}

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

.hero-content h1 {
  max-width: 820px;
  margin: 14px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-meta,
.detail-meta-list,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.hero-meta span,
.detail-meta-list span {
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-dark));
  box-shadow: 0 14px 30px rgba(217, 124, 30, 0.28);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-ghost.dark {
  color: var(--site-accent-dark);
  background: #fff;
  border-color: var(--site-border);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-arrow-left {
  left: 22px;
}

.hero-arrow-right {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.3s ease, background 0.3s ease;
}

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

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-white {
  max-width: none;
  background: linear-gradient(180deg, #faf8f3, #fff);
}

.section-white > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-gradient {
  max-width: none;
  background: linear-gradient(180deg, #fff, #faf8f3);
}

.section-gradient > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.heading-mark {
  width: 6px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--site-accent), var(--site-accent-dark));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--site-muted);
}

.search-card,
.advanced-search-panel,
.filter-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--site-shadow);
  padding: 22px;
}

.search-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
}

.search-card p {
  margin: 0;
  color: var(--site-muted);
}

.search-inline {
  display: flex;
  gap: 12px;
  min-width: min(520px, 100%);
}

input[type="search"],
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  outline: none;
}

input[type="search"]:focus,
select:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px rgba(217, 124, 30, 0.12);
}

.horizontal-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 0 20px;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  width: 320px;
  flex: 0 0 320px;
}

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

@media (min-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.mini-grid {
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(74, 50, 24, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(74, 50, 24, 0.16);
}

.movie-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--site-border);
}

.movie-cover img,
.featured-cover img,
.latest-item img,
.ranking-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-cover img {
  transition: transform 0.4s ease;
}

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

.view-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

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

.movie-card h3,
.latest-item h3,
.ranking-info h2 {
  margin: 0;
  color: var(--site-text);
  font-weight: 900;
}

.movie-card h3 {
  min-height: 48px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 44px;
  margin: 10px 0 12px;
  color: #8f6235;
  font-size: 14px;
}

.movie-meta {
  color: #a57744;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 10px;
  color: #7d3714;
  font-size: 12px;
  font-weight: 700;
  background: #f5f0e6;
}

.hero-tags span,
.detail-copy .tag-row span {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.category-strip {
  margin-bottom: 34px;
}

.strip-title,
.category-overview-head,
.search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.strip-title h3,
.category-overview-head h2,
.search-result-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.strip-title a,
.category-overview-head span {
  color: var(--site-accent-dark);
  font-weight: 800;
}

.ranking-panel,
.category-overview-card,
.detail-card,
.sticky-panel {
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--site-shadow);
  padding: 24px;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  background: linear-gradient(145deg, #4a3218, #7d3714);
  color: #fff;
}

.ranking-panel h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.ranking-panel ol {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.ranking-panel li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
}

.rank-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
}

.ranking-panel strong,
.ranking-panel small {
  display: block;
}

.ranking-panel small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
}

.year-list {
  display: grid;
  gap: 34px;
}

.year-block {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
}

.year-label {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-dark));
  box-shadow: 0 14px 28px rgba(217, 124, 30, 0.24);
}

.year-block h3 {
  margin: 0 0 18px;
  font-size: 25px;
  font-weight: 900;
}

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

@media (min-width: 768px) {
  .year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (min-width: 900px) {
  .latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.latest-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(74, 50, 24, 0.1);
  padding: 14px;
}

.latest-item img {
  height: 96px;
  border-radius: 12px;
}

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

.latest-item span {
  color: #a57744;
  font-size: 12px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4a3218, #7d3714 54%, #d97c1e);
  color: #fff;
}

.compact-hero {
  padding: 74px 24px;
}

.compact-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fae9d1;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
}

.page-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

@media (min-width: 1100px) {
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.category-overview-card .btn-primary {
  margin-top: 20px;
}

.filter-bar {
  margin-bottom: 28px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 116px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(74, 50, 24, 0.1);
  padding: 14px;
}

.rank-big {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-dark));
}

.ranking-cover {
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
}

.ranking-info p {
  margin: 8px 0 10px;
  color: var(--site-muted);
}

.advanced-search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px auto;
  margin-bottom: 28px;
}

.detail-main {
  background: #faf8f3;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  color: #fff;
  background: #4a3218;
}

.detail-backdrop,
.detail-backdrop img,
.detail-backdrop div {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-backdrop div {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.25));
}

.detail-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
}

.detail-copy p {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

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

.detail-content {
  display: grid;
  gap: 24px;
}

.player-section {
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--site-shadow);
  padding: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76));
}

.player-start span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-dark));
  box-shadow: 0 18px 40px rgba(217, 124, 30, 0.34);
}

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

.player-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
}

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

.detail-card h2,
.sticky-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.detail-card p {
  margin: 0;
  color: #6d4a29;
  font-size: 17px;
  line-height: 1.86;
}

.warm-card {
  background: linear-gradient(145deg, #fdf6ed, #fff);
}

.detail-sidebar {
  min-width: 0;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.sticky-panel dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.sticky-panel dt {
  color: #a57744;
  font-weight: 800;
}

.sticky-panel dd {
  margin: 0;
  color: var(--site-text);
}

.sitemap-index {
  column-width: 330px;
  column-gap: 24px;
}

.sitemap-group {
  break-inside: avoid;
  margin: 0 0 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(74, 50, 24, 0.09);
  padding: 18px;
}

.sitemap-group h2 {
  margin: 0 0 12px;
  color: var(--site-accent-dark);
  font-size: 22px;
  font-weight: 900;
}

.sitemap-group li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f0e6;
  font-size: 14px;
}

.sitemap-group span {
  flex: 0 0 auto;
  color: #a57744;
}

.site-footer {
  margin-top: 64px;
  background: linear-gradient(180deg, #f5f0e6, #ebe2cd);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-weight: 900;
}

.site-footer p,
.site-footer a,
.footer-small {
  color: #6d4a29;
  font-size: 14px;
}

.site-footer li {
  margin: 8px 0;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: #8f6235;
  border-top: 1px solid rgba(143, 98, 53, 0.18);
  font-size: 14px;
}

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

@media (max-width: 1100px) {
  .two-column-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .sticky-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-nav-wrap {
    padding: 0 16px;
  }

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

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 18px 30px rgba(74, 50, 24, 0.1);
  }

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

  .nav-link {
    padding: 14px 24px;
    border-top: 1px solid #f5f0e6;
  }

  .nav-link-optional {
    display: none;
  }

  .hero-slider {
    height: 540px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    bottom: 62px;
  }

  .search-card,
  .filter-bar,
  .player-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-inline {
    flex-direction: column;
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }

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

  .ranking-cover {
    display: none;
  }

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

  .year-block {
    grid-template-columns: 1fr;
  }

  .latest-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .latest-item img {
    height: 84px;
  }
}
