:root {
  --cream-50: #fefdfb;
  --cream-100: #fdf9f3;
  --cream-200: #faf3e6;
  --coffee-100: #f5f0e8;
  --coffee-200: #e8dcc8;
  --coffee-300: #d4c0a0;
  --coffee-500: #8c6f48;
  --coffee-600: #6f5536;
  --coffee-700: #54402a;
  --coffee-800: #3d2e1f;
  --coffee-900: #2a1f15;
  --shadow-soft: 0 20px 50px rgba(42, 31, 21, 0.12);
  --shadow-card: 0 12px 30px rgba(42, 31, 21, 0.10);
}

body {
  min-height: 100vh;
  background: var(--cream-50);
}

img {
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 253, 251, 0.92);
  border-bottom: 1px solid rgba(212, 192, 160, 0.55);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--coffee-900);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--coffee-600), var(--coffee-900));
  box-shadow: var(--shadow-card);
}

.brand-text {
  font-size: 1.18rem;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--coffee-700);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--coffee-900);
  background: var(--cream-200);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--coffee-900);
}

.hero-slider {
  position: relative;
  min-height: min(760px, 82vh);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: clamp(120px, 13vw, 180px) max(24px, calc((100vw - 1280px) / 2 + 32px)) 112px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
  background-image: linear-gradient(90deg, rgba(42, 31, 21, 0.92), rgba(42, 31, 21, 0.58), rgba(42, 31, 21, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-content {
  max-width: 780px;
  animation: fadeIn 0.75s ease;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--coffee-300);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-kicker {
  color: var(--coffee-600);
}

.hero-content h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.7rem, 8vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  color: var(--coffee-900);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #fff;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--coffee-700);
  background: var(--cream-200);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(42, 31, 21, 0.42);
  backdrop-filter: blur(18px);
}

.hero-arrow,
.hero-dot {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.hero-dot.active {
  width: 26px;
  border-radius: 999px;
  opacity: 1;
  background: #fff;
}

.intro-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(212, 192, 160, 0.55);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff, var(--cream-100));
  box-shadow: var(--shadow-soft);
}

.intro-panel h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.related-panel h2 {
  color: var(--coffee-900);
}

.intro-panel p {
  margin-top: 12px;
  color: var(--coffee-600);
}

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

.text-link {
  color: var(--coffee-700);
  font-weight: 800;
}

.text-link:hover {
  color: var(--coffee-900);
  text-decoration: underline;
}

.bg-soft {
  background: linear-gradient(180deg, var(--cream-100), var(--cream-50));
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: var(--coffee-200);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.compact-card:hover img,
.category-cover:hover img {
  transform: scale(1.08);
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(42, 31, 21, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--coffee-500);
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-card h3 {
  margin-bottom: 8px;
  color: var(--coffee-900);
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.4em;
  overflow: hidden;
  color: var(--coffee-600);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--shadow-card);
  background: var(--coffee-700);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.52;
  transition: transform 0.45s ease;
}

.category-tile div {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(42, 31, 21, 0.92), transparent);
}

.category-tile h3 {
  margin-bottom: 8px;
  color: #fff;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.78);
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(212, 192, 160, 0.45);
  border-radius: 20px;
  color: inherit;
  background: #fff;
  box-shadow: 0 8px 24px rgba(42, 31, 21, 0.06);
  transition: all 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.compact-card img {
  width: 92px;
  height: 62px;
  border-radius: 14px;
  background: var(--coffee-200);
  transition: transform 0.4s ease;
}

.compact-card h3 {
  margin-bottom: 4px;
  color: var(--coffee-900);
  font-size: 1rem;
}

.compact-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--coffee-600);
  font-size: 0.88rem;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.compact-card span:last-child {
  display: inline-flex;
  margin-top: 4px;
  color: var(--coffee-500);
  font-size: 0.78rem;
  font-weight: 700;
}

.rank-number {
  min-width: 44px;
  color: var(--coffee-600);
  font-size: 1.35rem;
  font-weight: 900;
}

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

.page-hero,
.ranking-hero,
.detail-hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--coffee-900);
}

.slim-hero {
  padding: 88px 0 72px;
  background: radial-gradient(circle at 20% 20%, rgba(212, 192, 160, 0.28), transparent 26%), linear-gradient(135deg, var(--coffee-900), var(--coffee-700));
}

.slim-hero h1 {
  max-width: 880px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.slim-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

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

.category-card {
  display: grid;
  grid-template-rows: 210px auto;
}

.category-cover {
  overflow: hidden;
  background: var(--coffee-200);
}

.category-cover img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.category-card-body {
  padding: 22px;
}

.category-card h2 {
  margin-bottom: 10px;
}

.category-card p {
  color: var(--coffee-600);
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.sample-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--coffee-700);
  background: var(--cream-200);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(212, 192, 160, 0.48);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(42, 31, 21, 0.06);
}

.search-input-wrap {
  display: grid;
  gap: 6px;
  color: var(--coffee-600);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-input-wrap input,
.filter-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--coffee-300);
  border-radius: 14px;
  outline: none;
  color: var(--coffee-900);
  background: var(--cream-50);
}

.search-input-wrap input:focus,
.filter-select:focus {
  border-color: var(--coffee-600);
  box-shadow: 0 0 0 4px rgba(111, 85, 54, 0.12);
}

.empty-state {
  margin-top: 34px;
  padding: 28px;
  border-radius: 20px;
  color: var(--coffee-600);
  background: var(--cream-200);
  text-align: center;
  font-weight: 800;
}

.ranking-hero {
  background-image: linear-gradient(90deg, rgba(42, 31, 21, 0.92), rgba(42, 31, 21, 0.54)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.ranking-hero-inner {
  min-height: 460px;
  display: grid;
  align-content: end;
  padding-top: 110px;
  padding-bottom: 72px;
}

.ranking-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.3rem, 6vw, 5.6rem);
}

.ranking-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.detail-hero-section {
  background-image: linear-gradient(90deg, rgba(42, 31, 21, 0.94), rgba(42, 31, 21, 0.72), rgba(42, 31, 21, 0.45)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: end;
  min-height: 620px;
  padding-top: 110px;
  padding-bottom: 70px;
}

.detail-cover {
  aspect-ratio: 3 / 4.2;
  background: var(--coffee-200);
}

.detail-cover img {
  width: 100%;
  height: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.detail-info h1 {
  max-width: 880px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-soft);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(42, 31, 21, 0.35), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-trigger span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--coffee-900);
  background: #fff;
  font-size: 2rem;
  box-shadow: var(--shadow-soft);
}

.play-trigger strong {
  font-size: 1.1rem;
}

.player-shell.is-playing .play-trigger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-article,
.related-panel {
  padding: 28px;
}

.detail-article h2,
.related-panel h2 {
  margin-bottom: 16px;
}

.detail-article p + h2 {
  margin-top: 26px;
}

.detail-article p {
  color: var(--coffee-700);
  font-size: 1.02rem;
}

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

.related-panel .compact-card {
  grid-template-columns: 82px 1fr;
}

.related-panel .compact-card img {
  width: 82px;
  height: 58px;
}

.site-footer {
  margin-top: 24px;
  padding: 52px 0;
  color: var(--cream-200);
  background: var(--coffee-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
}

.site-footer p {
  max-width: 620px;
  color: rgba(250, 243, 230, 0.72);
}

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

.footer-links a {
  color: rgba(250, 243, 230, 0.82);
  font-weight: 700;
}

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

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .detail-cover {
    max-width: 320px;
  }
}

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

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

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

  .hero-slide {
    padding: 120px 22px 110px;
  }

  .intro-panel,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid,
  .ranking-list,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: auto 82px 1fr;
  }

  .compact-card img {
    width: 82px;
    height: 58px;
  }

  .detail-hero-inner {
    min-height: auto;
    padding-top: 92px;
  }

  .detail-info h1 {
    font-size: clamp(2.1rem, 12vw, 4rem);
  }
}
