:root {
  --sand-50: #fdfaf7;
  --sand-100: #f9f3ed;
  --sand-200: #f2e6d9;
  --sand-300: #e8d4bd;
  --desert-50: #fef9f3;
  --desert-100: #fdf2e5;
  --desert-500: #ec8b3b;
  --desert-600: #dd6f1f;
  --desert-700: #bd5417;
  --earth-100: #ede9e4;
  --earth-300: #c2b4a3;
  --earth-500: #8c7764;
  --earth-600: #74604f;
  --earth-700: #635144;
  --earth-800: #51443a;
  --earth-900: #473c33;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(71, 60, 51, 0.12);
  --shadow-card: 0 12px 30px rgba(71, 60, 51, 0.1);
  --radius-xl: 1rem;
  --radius-2xl: 1.35rem;
  --radius-3xl: 1.9rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--earth-900);
  background: var(--sand-50);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(232, 212, 189, 0.7);
  box-shadow: 0 8px 24px rgba(71, 60, 51, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--earth-900);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--desert-600), var(--desert-500));
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(221, 111, 31, 0.28);
  font-size: 0.8rem;
}

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

.nav-link,
.mobile-link {
  color: var(--earth-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--desert-600);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: var(--sand-100);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: var(--earth-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid var(--sand-200);
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-link {
  padding: 11px 0;
}

.hero-carousel {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  color: var(--white);
  background: #16120f;
}

.hero-bg,
.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-bg {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-mask {
  background:
    radial-gradient(circle at 75% 25%, rgba(236, 139, 59, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 76vh;
  margin: 0 auto;
  padding: 88px 0 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-main-title {
  width: min(760px, 100%);
  margin-bottom: 26px;
}

.hero-main-title span,
.page-hero span,
.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--desert-500);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-main-title h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-main-title p {
  margin: 0;
  width: min(680px, 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2.1vw, 1.3rem);
}

.hero-copy-slide {
  display: none;
  width: min(720px, 100%);
  animation: riseIn 0.55s ease both;
}

.hero-copy-slide.is-active {
  display: block;
}

.hero-meta {
  display: inline-flex;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-copy-slide h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy-slide p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  max-width: 680px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.hero-search button,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn,
.hero-search button {
  color: var(--white);
  background: var(--desert-600);
  box-shadow: 0 16px 28px rgba(221, 111, 31, 0.34);
}

.primary-btn {
  min-height: 48px;
  padding: 0 26px;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.hero-search button:hover,
.ghost-btn:hover,
.text-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-search {
  width: min(620px, 100%);
  margin-top: 28px;
  padding: 8px;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 0 18px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.hero-search button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: var(--desert-500);
}

.content-section,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 72px 0;
}

.content-section.no-top {
  padding-top: 36px;
}

.highlight-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, var(--desert-50), var(--sand-100));
}

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

.section-head h2,
.page-hero h1,
.detail-card-main h1,
.related-panel h2 {
  margin: 0;
  color: var(--earth-900);
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--earth-600);
}

.section-more,
.text-link {
  color: var(--desert-600);
}

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

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

.category-card img,
.category-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-layer {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
}

.category-info {
  position: absolute;
  inset: auto 16px 16px;
  color: var(--white);
}

.category-info strong,
.category-info em {
  display: block;
}

.category-info strong {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

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

.rail-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 6px 8px 18px;
}

.movie-rail {
  display: flex;
  gap: 18px;
  width: max-content;
}

.rail-card {
  width: 220px;
  flex: 0 0 auto;
}

.rail-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--earth-900);
  box-shadow: var(--shadow-card);
}

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

.rail-cover span {
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

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

.rail-title {
  display: block;
  margin-top: 10px;
  color: var(--earth-900);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-meta {
  color: var(--earth-600);
  font-size: 0.86rem;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--earth-900);
}

.card-compact .poster-link {
  aspect-ratio: 16 / 11;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
  transition: opacity 0.3s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: rgba(221, 111, 31, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  color: var(--earth-900);
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.35;
  transition: color 0.2s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover {
  color: var(--desert-600);
}

.card-meta {
  margin-top: 8px;
  color: var(--earth-600);
  font-size: 0.84rem;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.8em;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--earth-700);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-row span {
  padding: 5px 9px;
  color: var(--earth-700);
  background: var(--sand-100);
}

.rank-section {
  width: min(1180px, calc(100% - 32px));
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.rank-num {
  width: 44px;
  color: var(--desert-600);
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  color: var(--earth-900);
  font-weight: 850;
}

.rank-copy em {
  color: var(--earth-600);
  font-size: 0.84rem;
  font-style: normal;
}

.page-main,
.detail-main {
  padding: 34px 0 70px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 42px;
  border-radius: var(--radius-3xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(236, 139, 59, 0.25), transparent 28%),
    linear-gradient(135deg, var(--desert-50), var(--sand-100));
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
}

.compact-hero {
  min-height: 220px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--earth-600);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--desert-600);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0 34px;
  padding: 18px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--earth-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--sand-300);
  border-radius: 14px;
  outline: 0;
  color: var(--earth-900);
  background: var(--sand-50);
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--desert-500);
  box-shadow: 0 0 0 4px rgba(236, 139, 59, 0.12);
}

.empty-state {
  padding: 60px 20px;
  color: var(--earth-600);
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-overview-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
  background: var(--earth-900);
}

.category-overview-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-overview-body span {
  color: var(--desert-600);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.category-overview-body h2 {
  margin: 8px 0;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.category-overview-body p {
  margin: 0 0 16px;
  color: var(--earth-700);
}

.detail-breadcrumb {
  margin: 0 0 20px;
}

.player-section {
  margin-bottom: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-3xl);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.2));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: var(--white);
  background: var(--desert-600);
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(221, 111, 31, 0.36);
  font-size: 1.8rem;
}

.play-title {
  max-width: min(680px, calc(100% - 44px));
  padding: 0 16px;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 850;
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-card-main,
.related-panel {
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-card-main {
  padding: 28px;
}

.detail-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.detail-head img {
  width: 190px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.detail-card-main h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.detail-one-line {
  margin: 14px 0 16px;
  color: var(--earth-700);
  font-size: 1.06rem;
}

.detail-meta span,
.detail-tags a {
  padding: 8px 12px;
  color: var(--earth-700);
  background: var(--sand-100);
}

.detail-block {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--sand-200);
}

.detail-block h2 {
  margin: 0 0 12px;
  color: var(--earth-900);
  font-size: 1.45rem;
}

.detail-block p {
  margin: 0;
  color: var(--earth-700);
}

.detail-tags a:hover {
  color: var(--desert-600);
  background: var(--desert-50);
}

.related-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.related-panel h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--sand-50);
}

.related-item img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.related-item strong,
.related-item em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.related-item strong {
  color: var(--earth-900);
  font-size: 0.94rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.related-item em {
  margin-top: 5px;
  color: var(--earth-600);
  font-size: 0.78rem;
  font-style: normal;
  -webkit-line-clamp: 1;
}

.site-footer {
  color: var(--earth-100);
  background: var(--earth-900);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 460px;
  color: var(--earth-300);
}

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

.footer-links a {
  color: var(--earth-300);
}

.footer-links a:hover {
  color: var(--desert-500);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: var(--earth-300);
  border-top: 1px solid var(--earth-700);
  font-size: 0.92rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .related-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

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

  .hero-content {
    padding: 72px 0 96px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    min-height: 44px;
  }

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

  .category-grid,
  .movie-grid,
  .listing-grid,
  .rank-grid,
  .category-overview-grid,
  .footer-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 180px;
  }

  .page-hero {
    padding: 28px;
  }

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

  .detail-head img {
    width: min(220px, 100%);
  }

  .detail-card-main {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .page-main,
  .detail-main,
  .footer-inner,
  .footer-bottom,
  .mobile-nav,
  .rank-section {
    width: min(100% - 24px, 1180px);
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel,
  .hero-content {
    min-height: 82vh;
  }

  .content-section {
    padding: 52px 0;
  }

  .rank-item {
    grid-template-columns: auto 88px minmax(0, 1fr);
  }

  .rank-item img,
  .related-item img {
    width: 88px;
    height: 60px;
  }

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

  .play-circle {
    width: 68px;
    height: 68px;
  }
}
