:root {
  --site-primary: #C87941;
  --site-secondary: #E5A76B;
  --site-light: #F5E6D3;
  --site-cream: #FFF8F0;
  --site-caramel: #B8784F;
  --site-brown: #8B5A3C;
  --site-dark: #6B4423;
  --site-white: #FFFFFF;
  --site-shadow: 0 18px 48px rgba(139, 90, 60, 0.16);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 252, 248, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(200, 121, 65, 0.12);
  box-shadow: 0 10px 30px rgba(139, 90, 60, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-dark);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  color: white;
  box-shadow: 0 12px 28px rgba(200, 121, 65, 0.26);
  animation: floatLogo 4s ease-in-out infinite;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--site-primary), var(--site-secondary), var(--site-caramel));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--site-dark);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--site-light);
  color: var(--site-primary);
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 248, 240, 0.92);
  border: 1px solid rgba(200, 121, 65, 0.16);
  border-radius: 999px;
  padding: 7px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--site-dark);
}

.header-search input {
  width: 190px;
  padding: 0 8px;
}

.header-search button,
.mobile-search button,
.big-search button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--site-primary), var(--site-secondary));
  color: white;
  font-weight: 700;
  padding: 8px 16px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(200, 121, 65, 0.18);
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--site-primary);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  background: rgba(255, 252, 248, 0.98);
  border-bottom: 1px solid rgba(200, 121, 65, 0.12);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--site-dark);
  background: rgba(245, 230, 211, 0.42);
  font-weight: 650;
}

.hero-shell {
  position: relative;
  min-height: 660px;
  overflow: hidden;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 24%, rgba(229, 167, 107, 0.32), transparent 34%), linear-gradient(135deg, var(--site-cream), white 54%, rgba(245, 230, 211, 0.62));
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(18px) saturate(1.16);
  transform: scale(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 248, 240, 0.96), rgba(255, 248, 240, 0.74), rgba(255, 255, 255, 0.35));
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 660px;
  margin: 0 auto;
  padding: 84px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  display: grid;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(200, 121, 65, 0.16);
  color: var(--site-primary);
  font-weight: 800;
  padding: 8px 14px;
  box-shadow: 0 10px 24px rgba(139, 90, 60, 0.08);
}

.hero-copy h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  color: var(--site-dark);
  letter-spacing: -0.04em;
}

.hero-copy p {
  color: var(--site-brown);
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(245, 230, 211, 0.72);
  color: var(--site-brown);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.toffee-btn-ghost {
  color: var(--site-primary);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(200, 121, 65, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(160deg, var(--site-light), var(--site-cream));
  box-shadow: 0 36px 82px rgba(107, 68, 35, 0.26);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  z-index: 2;
  pointer-events: none;
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 6;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(139, 90, 60, 0.28);
  border: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--site-primary);
}

.quick-search-section,
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

.big-search {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 22px;
}

.big-search label {
  color: var(--site-dark);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 850;
  line-height: 1.25;
}

.big-search div {
  display: flex;
  background: white;
  border-radius: 999px;
  padding: 8px;
  border: 1px solid rgba(200, 121, 65, 0.14);
}

.big-search input {
  flex: 1;
  padding: 0 16px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.section-heading a,
.category-more {
  color: var(--site-primary);
  font-weight: 800;
}

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

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(200, 121, 65, 0.12);
}

.category-tile span {
  color: var(--site-dark);
  font-size: 24px;
  font-weight: 850;
}

.category-tile em {
  color: var(--site-brown);
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(200, 121, 65, 0.12);
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
  display: none;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.8;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(200, 121, 65, 0.16), rgba(229, 167, 107, 0.26));
}

.movie-cover img,
.ranking-thumb img,
.compact-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.movie-type,
.movie-score {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  backdrop-filter: blur(10px);
}

.movie-type {
  left: 12px;
  background: rgba(107, 68, 35, 0.66);
}

.movie-score {
  right: 12px;
  background: linear-gradient(90deg, var(--site-primary), var(--site-secondary));
}

.movie-info {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.movie-info h3 {
  color: var(--site-dark);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.movie-info p {
  color: var(--site-brown);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(107, 68, 35, 0.72);
  font-size: 13px;
}

.movie-meta span {
  position: relative;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(107, 68, 35, 0.38);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 30px;
  align-items: start;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(200, 121, 65, 0.12);
  box-shadow: 0 12px 28px rgba(107, 68, 35, 0.07);
}

.ranking-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
}

.ranking-thumb {
  width: 82px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(200, 121, 65, 0.12), rgba(245, 230, 211, 0.76));
}

.ranking-copy h3 {
  color: var(--site-dark);
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 6px;
}

.ranking-copy p {
  color: var(--site-brown);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-heat {
  color: var(--site-primary);
  font-size: 28px;
}

.latest-panel {
  padding: 24px;
  border: 1px solid rgba(200, 121, 65, 0.12);
  position: sticky;
  top: 96px;
}

.latest-panel h2 {
  color: var(--site-dark);
  font-size: 24px;
  font-weight: 850;
  margin-bottom: 18px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-cover {
  width: 58px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(245, 230, 211, 0.8);
}

.compact-text {
  display: grid;
  gap: 4px;
}

.compact-text strong {
  color: var(--site-dark);
  line-height: 1.35;
}

.compact-text em {
  color: rgba(107, 68, 35, 0.72);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px 30px;
}

.compact-hero {
  display: grid;
  gap: 18px;
}

.compact-hero h1 {
  color: var(--site-dark);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.compact-hero p {
  max-width: 760px;
  color: var(--site-brown);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  margin-bottom: 26px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) 180px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(200, 121, 65, 0.12);
}

.filter-bar label {
  color: var(--site-dark);
  font-weight: 850;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  background: white;
  border-radius: 999px;
  border: 1px solid rgba(200, 121, 65, 0.13);
  padding: 0 16px;
}

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

.category-overview-card {
  padding: 24px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(200, 121, 65, 0.12);
}

.category-overview-head h2 {
  color: var(--site-dark);
  font-size: 24px;
  font-weight: 850;
  margin-bottom: 10px;
}

.category-overview-head p,
.category-overview-card li {
  color: var(--site-brown);
}

.category-overview-card ul {
  display: grid;
  gap: 8px;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(107, 68, 35, 0.78);
  font-weight: 650;
}

.breadcrumb a {
  color: var(--site-primary);
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 44px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 2.9;
  background: linear-gradient(135deg, rgba(200, 121, 65, 0.14), rgba(245, 230, 211, 0.8));
}

.detail-copy {
  display: grid;
  gap: 18px;
}

.detail-copy h1 {
  color: var(--site-dark);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.1;
}

.detail-copy p {
  color: var(--site-brown);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(200, 121, 65, 0.14);
  padding: 8px 13px;
  color: var(--site-brown);
  font-weight: 700;
}

.player-section {
  padding-top: 12px;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  background: #120d0a;
  box-shadow: 0 30px 80px rgba(36, 23, 16, 0.34);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #120d0a;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 16px;
  align-content: center;
  background: radial-gradient(circle at center, rgba(200, 121, 65, 0.34), rgba(18, 13, 10, 0.62));
  color: white;
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden,
.player-frame.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  box-shadow: 0 18px 46px rgba(200, 121, 65, 0.45);
  font-size: 34px;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: 22px;
  letter-spacing: 0.08em;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.detail-article,
.detail-side {
  padding: 28px;
  border: 1px solid rgba(200, 121, 65, 0.12);
}

.detail-article h2,
.detail-side h2 {
  color: var(--site-dark);
  font-size: 24px;
  font-weight: 850;
  margin-bottom: 14px;
}

.detail-article h2 + p {
  margin-bottom: 24px;
}

.detail-article p {
  color: var(--site-brown);
  line-height: 1.9;
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 16px;
  color: var(--site-brown);
}

.detail-side dt {
  color: rgba(107, 68, 35, 0.68);
  font-weight: 750;
}

.related-grid .movie-card.small .movie-info p {
  -webkit-line-clamp: 2;
}

.site-footer {
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(245, 230, 211, 0.9), rgba(255, 248, 240, 0.95));
  border-top: 1px solid rgba(200, 121, 65, 0.12);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 220px 220px;
  gap: 34px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--site-brown);
  max-width: 520px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  color: var(--site-dark);
  font-size: 18px;
}

.footer-links a {
  color: var(--site-brown);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: rgba(107, 68, 35, 0.72);
  border-top: 1px solid rgba(200, 121, 65, 0.1);
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }
  .desktop-nav {
    justify-content: flex-end;
  }
  .hero-content {
    grid-template-columns: 1fr 320px;
    gap: 32px;
  }
  .hero-poster,
  .hero-poster img {
    min-height: 480px;
  }
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }
  .menu-button {
    display: flex;
    margin-left: auto;
  }
  .header-inner {
    padding: 0 16px;
  }
  .hero-shell {
    min-height: auto;
  }
  .hero-slide {
    position: relative;
    display: none;
    min-height: auto;
  }
  .hero-slide.is-active {
    display: block;
  }
  .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 20px 86px;
  }
  .hero-poster {
    transform: none;
    max-width: 360px;
    min-height: 460px;
  }
  .hero-poster img {
    min-height: 460px;
  }
  .big-search,
  .two-column-section,
  .detail-hero,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    max-width: 300px;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .latest-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 21px;
  }
  .section-wrap,
  .quick-search-section,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .movie-info {
    padding: 13px;
  }
  .movie-info h3 {
    font-size: 16px;
  }
  .movie-info p,
  .tag-row {
    display: none;
  }
  .ranking-item {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }
  .ranking-thumb {
    width: 64px;
    height: 86px;
  }
  .ranking-heat {
    display: none;
  }
  .ranking-rank {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .ranking-copy p {
    -webkit-line-clamp: 1;
  }
  .detail-copy p {
    font-size: 16px;
  }
  .player-frame {
    border-radius: 20px;
  }
  .play-icon {
    width: 64px;
    height: 64px;
  }
}
