:root {
  --red: #ef4444;
  --red-deep: #dc2626;
  --pink: #ec4899;
  --mint: #10b981;
  --cool: #06b6d4;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f1d7dc;
  --soft: #fff1f2;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(127, 29, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(254, 202, 202, 0.55), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(252, 231, 243, 0.9), transparent 28rem),
    linear-gradient(180deg, #fff7f7 0%, #ffffff 44%, #fffafa 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(254, 202, 202, 0.65);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.brand-name {
  font-size: 1.25rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.nav-link {
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--red-deep);
  background: #fff1f2;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 280px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.08);
}

.header-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.72rem 1rem;
  min-width: 0;
}

.header-search button,
.primary-button,
.secondary-button,
.section-action,
.sort-button,
.player-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.header-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  padding: 0.72rem 1.15rem;
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 0.8rem;
  background: #fff1f2;
  color: var(--red-deep);
  width: 2.6rem;
  height: 2.6rem;
  font-weight: 900;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.2rem 1rem;
}

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

.mobile-panel .nav-link {
  display: block;
  margin: 0.3rem 0;
}

.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.4rem;
}

.mobile-categories a,
.footer-links a,
.tag-row span,
.detail-tags a,
.category-mini-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
}

.mobile-categories a {
  padding: 0.45rem 0.75rem;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.98), rgba(219, 39, 119, 0.78)),
    linear-gradient(180deg, #111827, #7f1d1d);
  color: #fff;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.5;
}

.hero-section::before {
  width: 26rem;
  height: 26rem;
  top: -10rem;
  left: -8rem;
  background: rgba(254, 202, 202, 0.42);
}

.hero-section::after {
  width: 32rem;
  height: 32rem;
  right: -12rem;
  bottom: -14rem;
  background: rgba(6, 182, 212, 0.32);
}

.hero-slides {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 4.2rem 1.2rem 5.2rem;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.68fr);
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  padding: 4.2rem 1.2rem 5.2rem;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--red-deep);
  background: #fff1f2;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 1.1rem 0 1rem;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 1.6rem;
}

.hero-meta span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--red-deep);
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.secondary-button:hover,
.section-action:hover,
.sort-button:hover {
  transform: translateY(-2px);
}

.hero-search {
  margin-top: 1.5rem;
  display: flex;
  max-width: 640px;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 1rem 1.1rem;
}

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

.hero-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  padding: 0 1.25rem;
  font-weight: 900;
}

.hero-poster {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  min-height: 460px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.82));
}

.hero-poster-card {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.hero-poster-card strong {
  display: block;
  font-size: 1.08rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 2.4rem;
  background: #fff;
}

.main-section,
.category-section,
.detail-layout,
.rank-section,
.search-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.2rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-title p,
.detail-title p {
  color: var(--muted);
  line-height: 1.8;
}

.section-action {
  display: inline-flex;
  align-items: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.2);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(254, 205, 211, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(127, 29, 29, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: #fb7185;
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fce7f3);
}

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

.movie-card:hover img,
.related-item:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-type,
.poster-play,
.score-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.poster-type {
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  font-size: 0.78rem;
}

.poster-play {
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--red-deep);
}

.movie-card-body {
  padding: 1rem;
}

.movie-card-title {
  display: block;
  min-height: 2.9rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card-title:hover {
  color: var(--red-deep);
}

.movie-card p {
  min-height: 3.25rem;
  margin: 0.55rem 0 0;
  color: #4b5563;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.movie-meta span {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #f9fafb;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.tag-row span {
  padding: 0.26rem 0.55rem;
  font-size: 0.78rem;
}

.movie-card.is-compact {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
}

.movie-card.is-compact .poster-link {
  aspect-ratio: auto;
  height: 100%;
  min-height: 8.5rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 14rem;
  padding: 1.25rem;
  border-radius: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.category-card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-card a {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.feature-panel {
  margin-top: 4rem;
  padding: 2.2rem;
  border-radius: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: var(--shadow);
}

.feature-panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.06em;
}

.feature-panel p {
  max-width: 780px;
  line-height: 1.9;
  color: #ffe4e6;
}

.page-title {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.2rem 1rem;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.channel-card {
  padding: 1.35rem;
  border: 1px solid rgba(254, 205, 211, 0.9);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(127, 29, 29, 0.06);
}

.channel-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
}

.channel-card p {
  color: var(--muted);
  line-height: 1.7;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.category-mini-link {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  padding: 0.8rem;
  border: 1px solid rgba(254, 205, 211, 0.75);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.78);
}

.filter-input {
  width: min(100%, 420px);
  border: 1px solid #fecdd3;
  border-radius: 999px;
  outline: 0;
  padding: 0.82rem 1rem;
  background: #fff;
}

.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sort-button {
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
}

.sort-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.detail-hero {
  background: linear-gradient(135deg, #111827, #7f1d1d 45%, #be185d);
  color: #fff;
}

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

.player-wrap {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #7f1d1d, #111827);
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 10%, rgba(0, 0, 0, 0.35));
}

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

.player-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  color: var(--red-deep);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.45rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.detail-title {
  padding: 1.5rem 0 0;
}

.detail-title p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.detail-meta span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffe4e6;
}

.detail-content {
  padding: 3rem 0 0;
}

.content-card,
.side-card {
  margin-bottom: 1.25rem;
  padding: 1.35rem;
  border: 1px solid rgba(254, 205, 211, 0.88);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(127, 29, 29, 0.06);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 0.75rem;
}

.content-card p {
  color: #374151;
  line-height: 1.95;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detail-tags a {
  padding: 0.42rem 0.72rem;
}

.related-list {
  display: grid;
  gap: 0.8rem;
}

.related-item {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 1rem;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #fff1f2;
}

.related-thumb {
  overflow: hidden;
  border-radius: 0.85rem;
  aspect-ratio: 16 / 10;
  background: #fee2e2;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-item strong {
  display: block;
  line-height: 1.4;
}

.related-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.rank-list {
  display: grid;
  gap: 0.8rem;
}

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(254, 205, 211, 0.82);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.06);
}

.rank-order {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 0.9rem;
  aspect-ratio: 16 / 10;
  background: #fee2e2;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.rank-row p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.rank-heat {
  color: #be123c;
  font-weight: 900;
}

.empty-state {
  display: none;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(254, 205, 211, 0.75);
  background: #111827;
  color: #fff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.4rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
}

.footer-inner p {
  color: #d1d5db;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-content: start;
}

.footer-links a {
  padding: 0.45rem 0.75rem;
  color: #fecdd3;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-poster {
    min-height: 320px;
  }

  .hero-poster img {
    min-height: 320px;
  }

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

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

  .rank-row {
    grid-template-columns: 2.8rem 7rem minmax(0, 1fr);
  }

  .rank-heat {
    grid-column: 3;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .main-section,
  .category-section,
  .detail-layout,
  .rank-section,
  .search-section,
  .page-title {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-slides,
  .hero-slide {
    min-height: 640px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 1rem;
  }

  .hero-search button {
    padding: 0.8rem;
  }

  .movie-grid,
  .category-strip,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.is-compact {
    grid-template-columns: 8rem minmax(0, 1fr);
  }

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

  .rank-row {
    grid-template-columns: 2.6rem 6rem minmax(0, 1fr);
    gap: 0.7rem;
  }
}
