
:root {
  color-scheme: dark;
  --bg: #050609;
  --bg-soft: #0b1018;
  --panel: rgba(17, 24, 39, 0.86);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --red: #dc2626;
  --red-soft: #ef4444;
  --orange: #f97316;
  --blue: #3b82f6;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 30rem),
    linear-gradient(180deg, #111827 0%, #050609 34%, #0b1018 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 24, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.38);
}

.brand-text,
.footer-brand {
  font-size: 1.45rem;
  background: linear-gradient(135deg, #ff5656, #ff9c3f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(220, 38, 38, 0.18);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.large-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.search-page-form input,
.filter-search input {
  width: 240px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  outline: 0;
  border-radius: 999px;
  color: white;
  background: rgba(30, 41, 59, 0.92);
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.search-page-form input:focus,
.filter-search input:focus {
  border-color: rgba(239, 68, 68, 0.78);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
  background: rgba(15, 23, 42, 0.96);
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.search-page-form button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.34);
}

.ghost-button {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  color: white;
  background: rgba(15, 23, 42, 0.86);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

main {
  min-height: 70vh;
}

.hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #090d14;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.96) 0%, rgba(5, 6, 9, 0.74) 42%, rgba(5, 6, 9, 0.18) 100%),
    linear-gradient(0deg, #050609 0%, transparent 45%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  align-items: center;
  gap: 54px;
  padding: 64px 0 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffb089;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-desc,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.rank-meta span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.68);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(249, 115, 22, 0.12));
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.03);
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(10, 15, 24, 0.72);
  backdrop-filter: blur(12px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: white;
  background: transparent;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.5rem;
}

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

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

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

.hero-dot.active {
  width: 30px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.home-search-panel,
.content-section,
.site-footer,
.page-hero,
.detail-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  position: relative;
  z-index: 6;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel h2,
.section-heading h2,
.story-panel h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.home-search-panel p,
.section-heading p,
.story-panel p,
.site-footer p,
.category-overview-card p,
.category-tile em {
  color: var(--subtle);
}

.large-search input,
.search-page-form input,
.filter-search input {
  width: 100%;
}

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

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

.section-more {
  color: #fb7185;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(59, 130, 246, 0.18)),
    #111827;
}

.card-img,
.detail-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

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

.rating-badge,
.duration-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.rating-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.duration-badge {
  right: 10px;
  bottom: 10px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.45;
}

.card-title:hover,
.rank-title:hover,
.breadcrumb a:hover {
  color: #ff6b6b;
}

.card-meta,
.card-desc {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.28);
}

.tinted-section {
  width: min(1280px, calc(100% - 32px));
  padding: 34px;
  margin-top: 74px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.14), rgba(126, 34, 206, 0.12));
}

.horizontal-scroll {
  display: grid;
  grid-auto-columns: minmax(220px, 260px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

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

.category-tile,
.category-overview-card {
  display: block;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.22), transparent 12rem),
    rgba(15, 23, 42, 0.78);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.44);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.26), transparent 14rem),
    rgba(17, 24, 39, 0.95);
}

.category-tile span,
.category-overview-card span {
  color: #fecaca;
  font-weight: 900;
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 12px 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.category-tile em {
  display: block;
  font-style: normal;
}

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 1.4rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 56px 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(17, 24, 39, 0.96);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 1.18rem;
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.rank-img {
  width: 132px;
  height: 80px;
  object-fit: cover;
}

.rank-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.02rem;
  font-weight: 900;
}

.rank-info p {
  margin: 6px 0 8px;
  color: var(--subtle);
  font-size: 0.9rem;
}

.rank-meta span {
  padding: 3px 8px;
  font-size: 0.75rem;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 72px);
  background:
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 22, 0.92));
  box-shadow: var(--shadow);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chips button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(30, 41, 59, 0.82);
  padding: 8px 13px;
  font-weight: 800;
}

.filter-chips button:hover,
.filter-chips button.active {
  color: white;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(220, 38, 38, 0.26);
}

.empty-state {
  margin-top: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  padding: 32px;
  color: var(--subtle);
  text-align: center;
  background: rgba(15, 23, 42, 0.54);
}

.search-page-form {
  margin-bottom: 26px;
}

.detail-hero {
  min-height: 590px;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.98), rgba(5, 6, 9, 0.72), rgba(5, 6, 9, 0.28)),
    var(--detail-image) center / cover no-repeat;
}

.detail-hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(249, 115, 22, 0.24), transparent 22rem),
    linear-gradient(0deg, #050609 0%, transparent 50%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

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

.detail-copy h1 {
  max-width: 920px;
}

.detail-meta {
  margin-top: 22px;
}

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

.detail-copy .primary-button {
  display: inline-flex;
  margin-top: 26px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  color: white;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.18), transparent 26rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.3));
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-overlay strong {
  max-width: 80%;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.video-overlay em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.38);
  font-size: 2.4rem;
  text-indent: 0.18em;
}

.video-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  color: #fecaca;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.video-message:empty {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.story-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  background: rgba(15, 23, 42, 0.74);
}

.story-panel p {
  margin-top: 18px;
  font-size: 1.03rem;
}

.accent-panel {
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 16rem),
    rgba(15, 23, 42, 0.74);
}

.site-footer {
  margin-top: 88px;
  padding: 42px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.site-footer a {
  display: block;
  margin-top: 8px;
  color: var(--subtle);
}

.site-footer a:hover {
  color: #ff6b6b;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.92rem;
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

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

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

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

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

  .header-inner {
    height: 64px;
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-poster {
    width: min(300px, 82vw);
    justify-self: start;
  }

  .hero-poster-img {
    height: 390px;
  }

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card {
    grid-template-columns: 44px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-img {
    width: 96px;
    height: 68px;
  }

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

  .detail-cover {
    width: min(300px, 76vw);
  }

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 1.18rem;
  }

  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-actions,
  .large-search,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search-panel,
  .compact-hero,
  .tinted-section,
  .filter-panel,
  .story-panel {
    padding: 20px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .card-title {
    min-height: auto;
  }

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

  .rank-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-poster {
    display: none;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 2rem;
  }
}
