:root {
  --primary-50: #f0fdf9;
  --primary-100: #ccfbef;
  --primary-400: #2dd4b8;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-900: #134e4a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-soft: 0 10px 35px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.10);
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.35);
  font-size: 13px;
}

.brand-text {
  font-size: 20px;
}

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

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

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gray-700);
  border-radius: 99px;
}

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

.mobile-nav-link {
  display: block;
  padding: 10px 2px;
}

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

.home-main {
  padding-top: 80px;
}

.inner-main,
.detail-main {
  padding-top: 96px;
  padding-bottom: 56px;
}

.hero-wrap {
  padding: 0 0 32px;
}

.hero-shell {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-900);
  box-shadow: var(--shadow-soft);
}

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

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.hero-slide.is-active .hero-image {
  transform: scale(1);
}

.hero-gradient {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, 90%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 7vw, 72px);
  color: #ffffff;
}

.hero-kicker,
.page-hero span,
.feature-large span,
.ranking-hero-card span {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 620px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions,
.quick-links,
.compact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.quick-links a,
.section-heading a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--primary-600);
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.28);
}

.primary-button:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.30);
}

.ghost-button.dark {
  color: var(--primary-900);
  background: var(--primary-100);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.quick-search-section,
.filter-panel {
  margin: 0 0 56px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.quick-links {
  margin-top: 14px;
}

.quick-links a,
.section-heading a {
  min-height: 38px;
  color: var(--primary-700);
  background: var(--primary-50);
}

.quick-links a:hover,
.section-heading a:hover {
  color: #ffffff;
  background: var(--primary-600);
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--primary-600);
}

.content-section {
  margin-bottom: 64px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.watch-section h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 34px);
}

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

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

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

.movie-card {
  min-width: 0;
}

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--gray-200);
}

.movie-card-small .poster-wrap {
  height: 210px;
}

.movie-card-masonry .poster-wrap {
  height: 280px;
}

.poster-wrap img,
.scroll-poster img,
.category-tile img,
.feature-large img,
.category-cover img,
.ranking-hero-card img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card-link:hover .poster-wrap img,
.scroll-item:hover .scroll-poster img,
.category-tile:hover img,
.feature-large:hover img,
.category-cover:hover img {
  transform: scale(1.08);
}

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

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

.poster-summary {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  color: #ffffff;
  font-size: 14px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-link:hover .poster-summary {
  transform: translateY(0);
}

.rank-mark,
.list-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary-600);
  font-weight: 900;
}

.rank-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card-link:hover h2 {
  color: var(--primary-600);
}

.movie-card-body p,
.scroll-item p,
.category-tile p,
.category-overview-body p,
.page-hero p,
.detail-one-line,
.detail-article p,
.site-footer p {
  color: var(--gray-600);
}

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

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.feature-large {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--gray-900);
  box-shadow: var(--shadow-soft);
}

.feature-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.feature-large div {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #ffffff;
}

.feature-large h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 4vw, 38px);
}

.feature-large p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.feature-side,
.ranking-list,
.category-mini-list {
  display: grid;
  gap: 14px;
}

.compact-movie-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-movie-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
}

.compact-movie-card img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}

.compact-movie-card strong,
.compact-movie-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-movie-card strong {
  color: var(--gray-900);
}

.compact-movie-card em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.compact-movie-card .list-rank {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.ranking-list .compact-movie-card,
.ranking-aside .compact-movie-card {
  grid-template-columns: 38px 74px minmax(0, 1fr);
}

.with-controls div {
  display: flex;
  gap: 8px;
}

.scroll-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: var(--gray-800);
  background: var(--gray-100);
  font-size: 24px;
  transition: background 0.2s ease;
}

.scroll-button:hover {
  background: var(--gray-200);
}

.scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-item {
  flex: 0 0 288px;
}

.scroll-poster {
  position: relative;
  height: 166px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--gray-200);
}

.scroll-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.scroll-poster span {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #ffffff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scroll-item p {
  margin: 10px 0 0;
  font-size: 14px;
}

.masonry-grid {
  columns: 3 260px;
  column-gap: 24px;
}

.masonry-grid .movie-card {
  break-inside: avoid;
  margin-bottom: 24px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--gray-900);
  box-shadow: var(--shadow-card);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.80));
}

.category-tile span,
.category-tile p {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  color: #ffffff;
}

.category-tile span {
  bottom: 66px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  margin-bottom: 32px;
  padding: clamp(28px, 6vw, 56px);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, var(--primary-50));
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-cover {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--gray-900);
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.category-cover span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-body h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.category-overview-body p {
  margin: 0 0 18px;
}

.no-results {
  padding: 24px;
  border-radius: 16px;
  color: var(--gray-600);
  background: #ffffff;
  text-align: center;
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
}

.ranking-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 320px;
  background: var(--gray-900);
  color: #ffffff;
}

.ranking-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.ranking-hero-card span,
.ranking-hero-card strong {
  position: absolute;
  z-index: 2;
  left: 18px;
}

.ranking-hero-card span {
  top: 18px;
}

.ranking-hero-card strong {
  right: 18px;
  bottom: 18px;
  font-size: 22px;
}

.ranking-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 28px;
}

.ranking-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-aside h2 {
  margin: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: clamp(22px, 5vw, 40px);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  height: 460px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--gray-200);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.20);
}

.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

.detail-one-line {
  margin: 0 0 22px;
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.detail-meta-grid span {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.tag-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary-900);
  background: var(--primary-100);
  font-size: 14px;
  font-weight: 800;
}

.watch-section,
.detail-article,
.detail-side {
  padding: clamp(18px, 4vw, 28px);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.watch-section {
  margin-bottom: 34px;
}

.watch-section h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  font-weight: 900;
  font-size: 18px;
}

.play-cover.is-hidden {
  display: none;
}

.play-symbol {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--primary-600);
  box-shadow: 0 14px 34px rgba(13, 148, 136, 0.36);
  font-size: 30px;
}

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

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

.detail-article p {
  margin: 0;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 88px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

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

.detail-side dd {
  margin: 0;
  color: var(--gray-800);
}

.site-footer {
  margin-top: 40px;
  background: var(--gray-900);
  color: var(--gray-300);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  text-align: center;
  font-size: 14px;
}

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

  .mobile-menu-button {
    display: block;
  }

  .movie-grid-three,
  .movie-grid-four,
  .category-grid,
  .ranking-page-layout,
  .detail-content-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-layout,
  .detail-hero,
  .ranking-hero,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .ranking-aside,
  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-main,
  .navbar,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .home-main {
    padding-top: 76px;
  }

  .inner-main,
  .detail-main {
    padding-top: 88px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-shell {
    min-height: 620px;
    border-radius: 18px;
  }

  .hero-gradient {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.58));
  }

  .hero-content {
    justify-content: flex-end;
    width: 100%;
    padding: 28px 22px 72px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .movie-grid-three,
  .movie-grid-four,
  .category-grid,
  .ranking-page-layout,
  .detail-content-layout,
  .footer-inner,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    min-height: 360px;
  }

  .poster-wrap {
    height: 250px;
  }

  .category-overview-card {
    padding: 12px;
  }

  .detail-poster {
    height: auto;
    aspect-ratio: 3 / 4;
  }

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

  .scroll-item {
    flex-basis: 248px;
  }
}
