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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 230, 211, 0.55);
  background: rgba(255, 252, 248, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(200, 121, 65, 0.08);
}

.site-header-inner {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--toffee-dark);
  font-weight: 800;
}

.site-logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 12px 30px rgba(200, 121, 65, 0.28);
}

.site-logo-text {
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--toffee-primary), var(--toffee-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--toffee-dark);
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--toffee-primary);
  background: rgba(245, 230, 211, 0.72);
}

.nav-category {
  color: rgba(107, 68, 35, 0.74);
}

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

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  width: 260px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: var(--toffee-cream);
  transition: all 0.25s ease;
}

.header-search:focus-within {
  box-shadow: 0 0 0 3px rgba(229, 167, 107, 0.22);
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--toffee-dark);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--toffee-primary);
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--toffee-primary);
  background: var(--toffee-cream);
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  background: rgba(255, 252, 248, 0.96);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  padding: 11px 14px;
  border-radius: 18px;
  background: var(--toffee-cream);
  margin-bottom: 14px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 230, 211, 0.46);
  color: var(--toffee-dark);
  font-weight: 600;
}

.mobile-link.is-active {
  color: #ffffff;
  background: var(--toffee-primary);
}

main {
  position: relative;
}

.home-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 72px;
}

.hero-intro {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 34px;
}

.hero-brandline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--toffee-primary);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 34px rgba(200, 121, 65, 0.1);
  font-weight: 800;
}

.hero-brandline .site-logo-mark {
  width: 32px;
  height: 32px;
}

.hero-intro h1,
.page-hero h1,
.detail-info h1 {
  font-weight: 900;
  line-height: 1.08;
  color: var(--toffee-dark);
}

.hero-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  background: linear-gradient(100deg, var(--toffee-primary), var(--toffee-secondary), var(--toffee-caramel));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro p,
.page-hero p {
  margin: 18px auto 0;
  max-width: 760px;
  color: rgba(107, 68, 35, 0.76);
  font-size: 1.08rem;
}

.hero-carousel {
  position: relative;
  height: min(58vw, 540px);
  min-height: 380px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(107, 68, 35, 0.24);
  background: var(--toffee-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-image-link,
.hero-image-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image-link img {
  object-fit: cover;
  transition: transform 1s ease;
}

.hero-slide:hover .hero-image-link img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 14, 8, 0.86) 0%, rgba(52, 31, 18, 0.58) 45%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 690px;
  padding: clamp(26px, 5vw, 58px);
  color: #ffffff;
}

.hero-kicker,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-kicker span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-tags,
.movie-tags,
.detail-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-top: 18px;
}

.hero-tags span,
.movie-tags span,
.detail-tags a,
.tag-cloud a {
  border-radius: 999px;
  font-weight: 650;
}

.hero-tags span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-primary {
  box-shadow: 0 18px 38px rgba(200, 121, 65, 0.28);
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  font-weight: 700;
  transition: all 0.25s ease;
}

.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 4;
}

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

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

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

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

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--toffee-primary);
  font-weight: 700;
}

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

.category-card {
  padding: 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-icon {
  font-size: 2.2rem;
}

.category-card h3 {
  margin-top: 16px;
  color: var(--toffee-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

.category-card p {
  color: rgba(107, 68, 35, 0.7);
  line-height: 1.7;
  margin: 10px 0 16px;
}

.category-card strong {
  color: var(--toffee-primary);
}

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

.movie-card {
  display: block;
  overflow: hidden;
  color: var(--toffee-dark);
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--toffee-light);
}

.movie-cover img,
.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.movie-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.duration-badge,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.duration-badge {
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.58);
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 12px 26px rgba(200, 121, 65, 0.25);
}

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

.movie-card h3,
.movie-list-card h3 {
  font-weight: 850;
  color: var(--toffee-dark);
  transition: color 0.25s ease;
}

.movie-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3,
.movie-list-card:hover h3 {
  color: var(--toffee-primary);
}

.movie-card p,
.movie-list-card p {
  color: rgba(107, 68, 35, 0.68);
  line-height: 1.65;
}

.movie-card p {
  min-height: 52px;
  margin: 8px 0 14px;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags span {
  padding: 4px 8px;
  background: rgba(245, 230, 211, 0.65);
  color: var(--toffee-brown);
  font-size: 0.76rem;
}

.movie-meta {
  margin-top: 14px;
  color: rgba(107, 68, 35, 0.62);
  font-size: 0.82rem;
}

.movie-meta span {
  padding: 4px 8px;
  background: rgba(255, 248, 240, 0.82);
}

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

.movie-list-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  padding: 12px;
  color: var(--toffee-dark);
}

.list-cover {
  position: relative;
  height: 112px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--toffee-light);
}

.list-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-content h3 {
  font-size: 1.12rem;
}

.list-content p {
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-section .toffee-card,
.tag-cloud {
  padding: 24px;
}

.tag-cloud a {
  padding: 9px 15px;
  color: var(--toffee-dark);
  background: rgba(245, 230, 211, 0.72);
  transition: all 0.25s ease;
}

.tag-cloud a:hover {
  color: #ffffff;
  background: var(--toffee-primary);
  transform: translateY(-2px);
}

.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 42px;
}

.page-hero > div,
.detail-layout {
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 230, 211, 0.7));
  box-shadow: 0 24px 70px rgba(107, 68, 35, 0.12);
}

.page-hero > div {
  padding: clamp(28px, 5vw, 56px);
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--toffee-primary);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(107, 68, 35, 0.66);
  font-size: 0.92rem;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.94);
}

.search-page-form {
  max-width: 780px;
  margin: 0 auto 24px;
  padding: 16px;
}

.search-page-form input {
  flex: 1;
}

.search-summary {
  min-height: 28px;
  margin-bottom: 22px;
  color: var(--toffee-brown);
  font-weight: 700;
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 28px;
  padding: clamp(18px, 3vw, 30px);
}

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

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  cursor: pointer;
  pointer-events: auto;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.44));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--toffee-primary), var(--toffee-secondary));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
  transition: transform 0.25s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin-bottom: 16px;
}

.detail-one-line {
  color: rgba(107, 68, 35, 0.78);
  font-size: 1.05rem;
  line-height: 1.85;
}

.detail-meta {
  margin: 20px 0 16px;
}

.detail-meta span {
  padding: 7px 12px;
  color: var(--toffee-brown);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-tags a {
  padding: 8px 12px;
  color: var(--toffee-primary);
  background: rgba(245, 230, 211, 0.68);
  font-size: 0.86rem;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 22px;
}

.detail-text,
.detail-side {
  padding: clamp(22px, 3vw, 34px);
}

.detail-text h2,
.detail-side h2 {
  margin-bottom: 14px;
  color: var(--toffee-dark);
  font-size: 1.35rem;
  font-weight: 850;
}

.detail-text h2:not(:first-child) {
  margin-top: 28px;
}

.detail-text p {
  color: rgba(107, 68, 35, 0.78);
  line-height: 2;
  font-size: 1.02rem;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  row-gap: 12px;
  column-gap: 12px;
  color: rgba(107, 68, 35, 0.78);
}

.detail-side dt {
  color: var(--toffee-primary);
  font-weight: 800;
}

.detail-side dd {
  min-width: 0;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(245, 230, 211, 0.7);
  background: linear-gradient(135deg, var(--toffee-light), var(--toffee-cream), #ffffff);
}

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

.footer-brand p,
.footer-links a,
.footer-links span {
  color: rgba(107, 68, 35, 0.72);
}

.footer-brand p {
  margin-top: 14px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h2 {
  margin-bottom: 8px;
  color: var(--toffee-dark);
  font-size: 1.06rem;
  font-weight: 850;
}

.footer-links a:hover {
  color: var(--toffee-primary);
}

.footer-bottom {
  padding: 18px 24px;
  text-align: center;
  color: rgba(107, 68, 35, 0.66);
  border-top: 1px solid rgba(245, 230, 211, 0.62);
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-search {
    width: min(42vw, 260px);
  }

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

  .detail-layout,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .site-logo-text {
    font-size: 1.18rem;
  }

  .site-logo-mark {
    width: 34px;
    height: 34px;
  }

  .header-search {
    display: none;
  }

  .home-hero,
  .site-section,
  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-carousel {
    min-height: 520px;
    height: 72vh;
    border-radius: 24px;
  }

  .hero-overlay {
    background: linear-gradient(to top, rgba(25, 14, 8, 0.9), rgba(25, 14, 8, 0.28));
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-copy p {
    font-size: 0.95rem;
  }

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

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

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

  .movie-card p {
    min-height: 46px;
    font-size: 0.86rem;
  }

  .movie-list-card {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
  }

  .list-cover {
    height: 96px;
  }

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

  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-layout {
    padding: 12px;
    gap: 18px;
  }

  .player-shell {
    border-radius: 20px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
  }

  .detail-info {
    padding: 8px 6px 14px;
  }

  .detail-text,
  .detail-side {
    padding: 22px;
  }

  .footer-inner {
    padding: 34px 16px;
  }
}

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

  .movie-list-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
