* {
  box-sizing: border-box;
}

:root {
  --cream-50: #fefdfb;
  --cream-100: #fdf8f3;
  --warm-50: #faf5f0;
  --warm-100: #f5ebe0;
  --warm-200: #e8d4be;
  --warm-300: #d9b896;
  --warm-500: #be8350;
  --warm-600: #a86d44;
  --warm-700: #8b583a;
  --warm-800: #714834;
  --warm-900: #5d3d2d;
  --tea-50: #fdf8f3;
  --tea-100: #fbefe5;
  --tea-200: #f7dbbf;
  --tea-400: #eca368;
  --tea-600: #d9703c;
  --tea-700: #b45833;
  --black-soft: rgba(0, 0, 0, 0.66);
  --shadow-soft: 0 12px 32px rgba(93, 61, 45, 0.12);
  --shadow-strong: 0 20px 60px rgba(93, 61, 45, 0.2);
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--warm-900);
  background: linear-gradient(180deg, var(--cream-50), #ffffff 48%, var(--warm-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(245, 235, 224, 0.9);
  box-shadow: 0 10px 28px rgba(93, 61, 45, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--warm-800);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.36rem;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--tea-600), var(--warm-600));
  box-shadow: 0 12px 24px rgba(217, 112, 60, 0.28);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--warm-700);
  font-weight: 650;
}

.site-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--tea-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--warm-50);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--warm-700);
  border-radius: 99px;
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.46) 46%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.04) 52%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 86px;
  color: #fff;
}

.hero-kicker {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tea-400);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tea-400);
  box-shadow: 0 0 0 7px rgba(236, 163, 104, 0.16);
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0 0 16px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 800;
  text-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.tag-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.tag-list span {
  background: var(--tea-100);
  color: var(--tea-700);
}

.tag-list.small span {
  font-size: 0.78rem;
  padding: 5px 10px;
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--tea-600), var(--tea-700));
  box-shadow: 0 18px 36px rgba(217, 112, 60, 0.34);
}

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

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.primary-btn.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 28px;
  background: var(--tea-400);
}

.home-search-wrap {
  margin-top: -34px;
  position: relative;
  z-index: 8;
}

.filter-panel {
  padding: 18px;
  border: 1px solid rgba(245, 235, 224, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.search-strip {
  display: flex;
  gap: 12px;
}

.search-strip input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--warm-100);
  border-radius: 999px;
  outline: none;
  color: var(--warm-900);
  background: var(--cream-50);
}

.search-strip input:focus {
  border-color: var(--tea-400);
  box-shadow: 0 0 0 4px rgba(236, 163, 104, 0.16);
}

.search-strip button,
.filter-row button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--tea-600);
  font-weight: 800;
  cursor: pointer;
}

.search-strip button {
  width: 112px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-row button {
  padding: 8px 14px;
  color: var(--warm-700);
  background: var(--warm-50);
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-row button.active,
.filter-row button:hover {
  color: #fff;
  background: var(--tea-600);
}

.content-section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 70px 0 0;
}

.content-section.warm-block {
  width: 100%;
  margin-top: 70px;
  padding: 70px max(16px, calc((100% - var(--max-width)) / 2)) 70px;
  background: var(--warm-50);
}

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

.section-head > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tea-600);
  box-shadow: 0 10px 24px rgba(217, 112, 60, 0.24);
}

.section-head h2 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--warm-900);
}

.section-head p {
  margin: 4px 0 0;
  color: var(--warm-600);
}

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--warm-100);
}

.movie-card.compact-card .poster-frame {
  aspect-ratio: 2 / 3;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 60%);
  transition: opacity 0.25s ease;
}

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

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--tea-700);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.movie-card-body {
  display: block;
  padding: 14px;
}

.movie-card-body strong {
  display: block;
  color: var(--warm-900);
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover strong {
  color: var(--tea-600);
}

.movie-line {
  min-height: 42px;
  display: -webkit-box;
  margin-top: 8px;
  color: var(--warm-600);
  font-size: 0.88rem;
  line-height: 1.55;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: block;
  margin-top: 10px;
  color: var(--warm-500);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--warm-900);
}

.category-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.category-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.08));
}

.category-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.category-info strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
}

.category-info em {
  display: -webkit-box;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 0.86rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.section-more {
  margin-top: 26px;
  text-align: center;
}

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

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 163, 104, 0.26), transparent 28%),
    linear-gradient(135deg, var(--warm-900), #2a1b15 70%);
}

.compact-hero {
  padding: 72px 0 48px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.page-hero p {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .filter-panel {
  margin-top: 28px;
  color: var(--warm-900);
}

.listing-section {
  padding: 56px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--warm-600);
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 38px 0 0;
}

.player-card,
.detail-content,
.info-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--tea-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  font-size: 1.7rem;
}

.player-overlay strong {
  font-size: 1.08rem;
}

.player-overlay:hover {
  background: rgba(0, 0, 0, 0.28);
}

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

.detail-content {
  margin-top: 24px;
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 16px;
  color: var(--warm-900);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.detail-content h2 {
  margin: 28px 0 12px;
  color: var(--warm-900);
  font-size: 1.28rem;
}

.detail-content p {
  margin: 0;
  color: var(--warm-700);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--warm-600);
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--warm-50);
}

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

.info-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.info-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: var(--warm-100);
}

.info-panel h2 {
  margin: 18px 0 8px;
  font-size: 1.32rem;
  color: var(--warm-900);
}

.info-panel p {
  margin: 0;
  color: var(--warm-600);
}

.mini-info {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px 12px;
  margin-top: 18px;
  font-size: 0.92rem;
}

.mini-info span {
  color: var(--warm-500);
}

.mini-info strong,
.mini-info a {
  color: var(--warm-900);
  font-weight: 800;
}

.mini-info a:hover {
  color: var(--tea-600);
}

.related-section {
  padding: 58px 0 76px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  gap: 36px;
  padding: 50px 0 30px;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 520px;
  color: var(--warm-200);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.footer-links a {
  color: var(--warm-200);
}

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

.footer-copy {
  padding: 20px 16px;
  border-top: 1px solid rgba(245, 235, 224, 0.16);
  color: var(--warm-300);
  text-align: center;
  font-size: 0.9rem;
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

  .info-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--warm-100);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

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

  .site-nav a {
    width: 100%;
    padding: 10px 8px;
  }

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

  .hero-slider {
    height: 72vh;
    min-height: 520px;
  }

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

  .hero-arrow {
    display: none;
  }

  .home-search-wrap {
    margin-top: 22px;
  }

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

  .search-strip button {
    width: 100%;
    height: 46px;
  }

  .content-section,
  .content-section.warm-block {
    padding-top: 48px;
  }

  .movie-grid.four,
  .movie-grid.six,
  .movie-grid.three,
  .rank-grid,
  .rank-grid.large,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-line {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .compact-hero {
    padding: 52px 0 36px;
  }

  .detail-content {
    padding: 22px;
  }

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

@media (max-width: 460px) {
  .movie-grid.four,
  .movie-grid.six,
  .movie-grid.three,
  .rank-grid,
  .rank-grid.large,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags,
  .detail-meta,
  .tag-list {
    gap: 8px;
  }

  .poster-frame,
  .movie-card.compact-card .poster-frame {
    aspect-ratio: 16 / 10;
  }
}
