:root {
  color-scheme: dark;
  --site-bg: #020617;
  --panel-bg: rgba(15, 23, 42, 0.82);
  --panel-border: rgba(20, 184, 166, 0.22);
  --text-main: #ffffff;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --brand: #14b8a6;
  --brand-light: #5eead4;
  --danger: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
  background: var(--site-bg);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(20, 184, 166, 0.16), transparent 38rem),
    radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.09), transparent 32rem),
    var(--site-bg);
  color: var(--text-main);
}

img {
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(16px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.site-logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #02111f;
  font-weight: 900;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  box-shadow: 0 12px 35px rgba(20, 184, 166, 0.38);
}

.site-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.site-nav-link {
  color: var(--text-soft);
  font-size: 15px;
  transition: color 0.2s ease;
}

.site-nav-link:hover,
.nav-link-active {
  color: var(--brand-light);
}

.mobile-menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}

.mobile-menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 0 auto;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-panel-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(30, 41, 59, 0.6);
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(20, 184, 166, 0.16);
}

.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;
  width: 100%;
  height: 100%;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.7) 42%, rgba(2, 6, 23, 0.3) 100%),
    linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 96px 0 132px;
}

.hero-copy {
  max-width: 720px;
}

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

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 650px;
  margin-top: 24px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.hero-tags,
.detail-tags,
.movie-card-tags,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-card-tags span,
.category-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #99f6e4;
  font-size: 12px;
  font-weight: 700;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.22);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #02111f;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  box-shadow: 0 16px 40px rgba(20, 184, 166, 0.26);
}

.ghost-button,
.section-link {
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.64);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 184, 166, 0.24);
  transform: perspective(900px) rotateY(-8deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.8;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #02111f;
  font-size: 28px;
  transform: translate(-50%, -50%);
  background: rgba(94, 234, 212, 0.9);
  box-shadow: 0 18px 46px rgba(20, 184, 166, 0.36);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(20, 184, 166, 0.62);
}

.hero-arrow-prev {
  left: 24px;
}

.hero-arrow-next {
  right: 24px;
}

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

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.35);
}

.hero-dot.is-active {
  background: var(--brand-light);
}

.hero-thumbs {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 58px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  transform: translateX(-50%);
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 16px;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
}

.hero-thumb.is-active {
  border-color: rgba(94, 234, 212, 0.72);
  color: #ffffff;
}

.hero-thumb img {
  width: 42px;
  height: 56px;
  border-radius: 10px;
}

.hero-thumb span {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  font-weight: 800;
}

.search-portal {
  margin-top: -28px;
  position: relative;
  z-index: 12;
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: var(--shadow);
}

.home-search input,
.filter-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 18px;
  outline: none;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.home-search button {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 18px;
  color: #02111f;
  font-weight: 900;
  background: var(--brand-light);
}

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

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

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

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

.compact-grid,
.ranking-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(30, 41, 59, 0.78);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #02111f;
  opacity: 0;
  background: rgba(94, 234, 212, 0.92);
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(20, 184, 166, 0.9));
}

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

.movie-card-title {
  display: block;
  min-height: 48px;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.38;
  font-weight: 900;
}

.movie-card-title:hover {
  color: var(--brand-light);
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.movie-card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.42);
}

.movie-card-desc {
  min-height: 44px;
  margin-top: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.movie-card-tags {
  margin-top: 14px;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact .movie-card-title {
  min-height: 42px;
  font-size: 15px;
}

.movie-card-compact .movie-card-desc {
  display: none;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.86);
}

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

.category-card-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.category-card div {
  position: relative;
  z-index: 2;
}

.category-card h3 {
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.page-shell {
  padding: 36px 0 88px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 26px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-light);
}

.breadcrumb span::before,
.breadcrumb a + span::before,
.breadcrumb a + a::before {
  content: "/";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.42);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 34px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.14), transparent 38%),
    rgba(15, 23, 42, 0.84);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 780px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.72;
}

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 260px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.76);
}

.category-overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background: rgba(2, 6, 23, 0.92);
}

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

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

.category-overview-body h2 {
  font-size: 28px;
  font-weight: 900;
}

.category-overview-body p {
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.72;
}

.category-overview-body .text-button {
  margin-top: 20px;
  min-height: 40px;
  padding: 0;
  color: var(--brand-light);
}

.category-chips {
  margin-top: 16px;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin: 26px 0;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.78);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.52);
}

.filter-row button.is-active,
.filter-row button:hover {
  color: #02111f;
  border-color: transparent;
  background: var(--brand-light);
}

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

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

.detail-shell {
  max-width: 1180px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 10%, rgba(20, 184, 166, 0.18), transparent 26rem),
    rgba(15, 23, 42, 0.82);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
}

.detail-intro h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.detail-one-line {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-muted);
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.86);
}

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

.player-section {
  margin-top: 34px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(20, 184, 166, 0.26);
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.22));
  transition: opacity 0.24s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #02111f;
  font-size: 30px;
  background: var(--brand-light);
  box-shadow: 0 18px 46px rgba(20, 184, 166, 0.38);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  margin-top: 34px;
}

.detail-article,
.detail-side-card {
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.78);
}

.detail-article h2,
.detail-side-card h2 {
  font-size: 24px;
  font-weight: 900;
}

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

.detail-article p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.detail-side-card dl {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.detail-side-card div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-side-card dt {
  color: var(--text-muted);
  font-size: 13px;
}

.detail-side-card dd {
  margin-top: 4px;
  color: #ffffff;
  font-weight: 800;
}

.related-section {
  padding-top: 42px;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 420px;
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.78;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--brand-light);
}

.footer-bottom {
  padding: 18px 0 26px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr 280px;
  }

  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 86px 0 148px;
  }

  .hero-poster {
    max-width: 230px;
    transform: none;
  }

  .hero-thumbs {
    display: none;
  }

  .hero-arrow {
    top: auto;
    bottom: 72px;
  }

  .hero-arrow-prev {
    left: 18px;
  }

  .hero-arrow-next {
    right: 18px;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .ranking-grid,
  .category-movie-grid,
  .search-grid,
  .ranking-page-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero,
  .detail-content-grid,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 30px;
  }

  .category-overview-cover {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .site-container,
  .site-header-inner,
  .mobile-panel {
    width: min(100% - 20px, 1180px);
  }

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

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 16px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .ranking-grid,
  .category-movie-grid,
  .search-grid,
  .ranking-page-grid,
  .category-grid {
    gap: 14px;
  }

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

  .movie-card-title {
    min-height: 42px;
    font-size: 15px;
  }

  .movie-card-desc,
  .movie-card-tags {
    display: none;
  }

  .page-shell {
    padding-top: 24px;
  }

  .detail-hero,
  .detail-article,
  .detail-side-card {
    padding: 20px;
  }

  .player-overlay {
    font-size: 15px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
