:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fff1e7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(127, 29, 29, 0.12);
  --rose: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --dark: #16070d;
  --shadow: 0 24px 80px rgba(127, 29, 29, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 63, 94, 0.14), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(251, 146, 60, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 54%, #fff7ed 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.96), rgba(249, 115, 22, 0.96), rgba(245, 158, 11, 0.96));
  color: #fff;
  box-shadow: 0 16px 40px rgba(190, 18, 60, 0.28);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--orange);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4), 0 12px 28px rgba(127, 29, 29, 0.2);
}

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

.nav-link,
.mobile-link {
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.header-search input,
.mobile-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 8px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--rose);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: rgba(159, 18, 57, 0.94);
}

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

.mobile-search {
  display: flex;
  padding: 4px;
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-link {
  display: block;
}

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #13050a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-bg img,
.detail-backdrop img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(249, 115, 22, 0.38), transparent 24rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.74) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy {
  max-width: 680px;
  padding-top: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-line,
.page-hero p,
.detail-line {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span,
.genre-row span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.32);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  flex: 0 0 280px;
  height: 392px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  transform: rotate(2deg);
}

.hero-poster:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  z-index: 2;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  font-size: 40px;
  cursor: pointer;
  transform: translateY(-50%);
}

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

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

.hero-thumbs {
  display: flex;
  gap: 10px;
  max-width: 560px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 142px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 7px;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.hero-thumb.active {
  background: rgba(255, 255, 255, 0.26);
}

.hero-thumb img {
  width: 38px;
  height: 50px;
  border-radius: 10px;
}

.hero-thumb span {
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.section-pad {
  padding: 64px 0;
}

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

.section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose), var(--orange));
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  mix-blend-mode: screen;
}

.tile-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.94), rgba(249, 115, 22, 0.86));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile strong {
  margin-top: 62px;
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-style: normal;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 88px rgba(127, 29, 29, 0.22);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(127, 29, 29, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(249, 115, 22, 0.18));
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.corner-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.corner-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 13px 14px 15px;
}

.card-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta,
.card-line {
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  margin: 6px 0 4px;
}

.card-line {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 0 0 10px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span,
.genre-row span,
.meta-pills span {
  color: var(--rose);
  background: rgba(225, 29, 72, 0.09);
}

.tag-row.large span {
  padding: 8px 13px;
  font-size: 14px;
}

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

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

.hot-band {
  padding: 68px 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.16), transparent 26rem),
    linear-gradient(90deg, #9f1239, #ea580c, #f59e0b);
  color: #fff;
}

.hot-band .section-head h2,
.hot-band .section-head p,
.hot-band .section-more {
  color: #fff;
}

.hot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 58px 1fr 22px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.rank-num {
  font-size: 24px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.8);
}

.rank-row img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

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

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.rank-info em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-arrow {
  color: rgba(255, 255, 255, 0.74);
  font-size: 28px;
}

.spotlight-panel,
.side-card,
.story-card,
.ranking-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.spotlight-panel {
  position: sticky;
  top: 92px;
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22), transparent 15rem),
    rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.spotlight-panel h2 {
  margin: 16px 0 12px;
  font-size: 32px;
  line-height: 1.18;
}

.spotlight-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(251, 191, 36, 0.38), transparent 24rem),
    linear-gradient(100deg, #9f1239, #ea580c 62%, #f59e0b);
}

.page-hero {
  padding: 82px 0 70px;
}

.compact-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.26), transparent 22rem),
    linear-gradient(100deg, #be123c, #f97316);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  min-height: 230px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-preview img {
  min-height: 96px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.category-overview-body span {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(225, 29, 72, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.category-overview-body h2 {
  margin: 16px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.category-overview-body p {
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px 160px 98px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(127, 29, 29, 0.08);
}

.filter-bar input,
.filter-bar select,
.filter-bar button {
  width: 100%;
  border: 1px solid rgba(225, 29, 72, 0.14);
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  padding: 12px 14px;
  outline: 0;
}

.filter-bar button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  display: none;
  margin: 24px 0;
  padding: 28px;
  border: 1px dashed rgba(225, 29, 72, 0.32);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.empty-state.show {
  display: block;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.ranking-side {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 20px;
}

.ranking-side h2 {
  margin: 0 0 16px;
}

.ranking-side .rank-row {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

.ranking-side .rank-num {
  color: var(--rose);
}

.ranking-side .rank-info em,
.ranking-side .rank-arrow {
  color: var(--muted);
}

.detail-hero {
  min-height: 640px;
  background: #15060b;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.36), transparent 23rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
}

.detail-top {
  position: relative;
  z-index: 2;
  padding: 32px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  height: 430px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
}

.detail-info {
  max-width: 760px;
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 68px);
}

.meta-pills {
  margin: 22px 0 14px;
}

.genre-row {
  margin-bottom: 28px;
}

.detail-content {
  margin-top: -110px;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050505;
}

.big-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(225, 29, 72, 0.24), transparent 16rem),
    rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.big-play.hidden {
  display: none;
}

.big-play span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 999px;
  color: var(--rose);
  background: #fff;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  font-size: 30px;
}

.big-play strong {
  font-size: 22px;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  min-height: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  pointer-events: none;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin: 34px 0 54px;
}

.story-card,
.side-card {
  padding: 28px;
}

.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.story-card p {
  color: #374151;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.22), transparent 24rem),
    linear-gradient(180deg, #210911, #0f0508);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

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

.site-footer p {
  max-width: 560px;
  margin: 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1180px) {
  .movie-grid,
  .home-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

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

  .hero-content {
    align-items: center;
  }

  .hero-poster {
    display: none;
  }

  .hero-controls {
    display: block;
  }

  .hero-dots {
    margin-bottom: 12px;
  }

  .hero-thumbs {
    max-width: 100%;
  }

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

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

  .ranking-side,
  .spotlight-panel {
    position: static;
  }

  .detail-content {
    margin-top: -70px;
  }

  .detail-poster {
    width: min(310px, 100%);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 620px;
    height: 78vh;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .category-tile {
    min-height: 150px;
    padding: 16px;
  }

  .category-tile strong {
    margin-top: 46px;
    font-size: 20px;
  }

  .card-body {
    padding: 11px;
  }

  .card-title {
    min-height: 40px;
    font-size: 14px;
  }

  .card-line,
  .tag-row {
    display: none;
  }

  .section-pad {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .page-hero {
    padding: 58px 0 46px;
  }

  .detail-hero {
    min-height: 620px;
  }

  .detail-top {
    padding-bottom: 96px;
  }

  .detail-info h1 {
    font-size: 36px;
  }

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

  .story-card,
  .side-card {
    padding: 20px;
  }

  .rank-row {
    grid-template-columns: 42px 52px 1fr 18px;
  }
}
