:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --amber-400: #fbbf24;
  --yellow-300: #fde047;
  --red-500: #ef4444;
  --pink-500: #ec4899;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --purple-500: #8b5cf6;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.7;
}

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

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

button,
input {
  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, var(--orange-500), var(--amber-400), var(--yellow-300));
  box-shadow: 0 10px 32px rgba(234, 88, 12, 0.26);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--orange-500);
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.22);
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08);
}

.brand-text strong,
.footer-brand {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.search-form {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search-form input,
.mobile-search input,
.hero-search input,
.page-search input {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--slate-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.page-search input:focus {
  background: var(--white);
  border-color: var(--orange-100);
  box-shadow: 0 0 0 4px rgba(255, 237, 213, 0.46);
}

.search-form button,
.mobile-search button,
.hero-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--orange-700);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.page-search button:hover {
  transform: translateY(-1px);
  background: #9a3412;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--white);
  font-weight: 800;
}

.desktop-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--orange-100);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  color: var(--white);
  font-weight: 800;
  padding: 8px 0;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--orange-600), var(--amber-400), var(--yellow-300));
  color: var(--white);
  padding: 76px 0 88px;
}

.hero-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(42px);
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-glow-one {
  left: 8%;
  top: -120px;
}

.hero-glow-two {
  right: 8%;
  bottom: -150px;
  animation-delay: 1.1s;
}

@keyframes pulseGlow {
  from {
    transform: scale(0.9);
    opacity: 0.6;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  opacity: 0.88;
}

.hero-heading h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-heading p,
.page-hero p,
.detail-one-line {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-search {
  margin-top: 30px;
  display: flex;
  max-width: 620px;
  gap: 10px;
}

.hero-carousel {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(154, 52, 18, 0.24);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--white);
  color: var(--orange-600);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.button-ghost {
  background: rgba(194, 65, 12, 0.78);
  color: var(--white);
}

.button-orange {
  background: linear-gradient(90deg, var(--orange-500), var(--amber-400));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.hero-poster {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

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

.hero-poster span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange-600);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

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

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

.hero-dot.is-active {
  width: 26px;
  background: var(--white);
}

.section {
  padding: 76px 0;
}

.section-white {
  background: var(--white);
}

.section-warm {
  background: linear-gradient(135deg, var(--orange-50), var(--orange-100));
}

.section-dark {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.32), transparent 34%), var(--slate-900);
  color: var(--white);
}

.category-section {
  background: linear-gradient(135deg, #faf5ff, #fdf2f8, var(--orange-50));
}

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

.section-title-row h2,
.center-title h2,
.content-panel h2,
.side-panel h2,
.library-section h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-kicker {
  color: var(--orange-600);
}

.section-dark .section-kicker,
.player-section .section-kicker {
  color: var(--orange-100);
}

.text-link {
  color: var(--orange-600);
  font-weight: 900;
}

.light-link {
  color: var(--orange-100);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-100), var(--amber-400));
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img,
.detail-poster-card img,
.compact-card img,
.ranking-cover img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-500), var(--pink-500));
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.26);
}

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

.movie-card-body h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover,
.ranking-main h3 a:hover,
.library-links a:hover,
.category-overview-card h2 a:hover {
  color: var(--orange-600);
}

.movie-card-body p {
  margin: 0 0 12px;
  color: var(--slate-500);
  font-size: 14px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

.movie-card .tag-row span,
.detail-tags span {
  background: var(--orange-50);
  color: var(--orange-700);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.86));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.category-card span {
  font-size: 12px;
  font-weight: 900;
  color: var(--orange-100);
}

.category-card strong {
  font-size: 22px;
}

.category-card em {
  font-size: 13px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
}

.center-title {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.center-title p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 40px;
  align-items: start;
}

.two-column p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 26px;
}

.ranking-panel,
.ranking-page-list {
  display: grid;
  gap: 14px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--slate-900);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.section-dark .ranking-item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-400));
  color: var(--white);
  font-weight: 900;
}

.ranking-cover {
  display: block;
  width: 82px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--orange-100);
}

.ranking-main h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-main p {
  margin: 0 0 8px;
  color: var(--slate-500);
  font-size: 14px;
}

.section-dark .ranking-main p,
.section-dark .movie-meta-line {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero,
.detail-hero {
  color: var(--white);
  padding: 62px 0;
  overflow: hidden;
}

.page-hero-orange,
.detail-hero {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(120deg, var(--orange-600), var(--amber-400));
}

.page-hero-dark {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.42), transparent 34%), var(--slate-900);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

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

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

.category-overview-card,
.content-panel,
.side-panel,
.library-section {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.category-overview-head span {
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.category-overview-head p,
.content-panel p,
.side-panel dd,
.library-section p {
  color: var(--slate-500);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  overflow: hidden;
}

.compact-card img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  background: var(--orange-100);
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 390px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 64px rgba(154, 52, 18, 0.28);
}

.detail-poster-card span {
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--white);
  background: linear-gradient(90deg, var(--red-500), var(--pink-500));
  font-weight: 900;
}

.detail-info h1 {
  max-width: 900px;
}

.detail-one-line {
  font-size: 20px;
  max-width: 860px;
}

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

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.18);
}

.detail-meta-grid strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.play-cover span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-400));
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.32);
  font-size: 34px;
}

.play-cover strong {
  font-size: 20px;
}

.player-shell.is-playing .play-cover {
  display: none;
}

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

.content-panel p {
  font-size: 17px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.side-panel dt {
  color: var(--slate-700);
  font-weight: 900;
}

.side-panel dd {
  margin: 0;
}

.library-wrap {
  display: grid;
  gap: 22px;
}

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

.library-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--slate-50);
  color: var(--slate-700);
  font-weight: 800;
}

.library-links span {
  color: var(--slate-500);
  font-size: 12px;
}

.page-search {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-top: 26px;
}

.search-empty {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--orange-50);
  color: var(--orange-700);
  font-weight: 900;
}

.site-footer {
  background: #111827;
  color: var(--white);
  padding: 52px 0;
}

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

.footer-brand {
  color: var(--white);
  margin-bottom: 10px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  font-size: 14px;
}

.footer-links a:hover {
  background: var(--orange-600);
  color: var(--white);
}

@media (max-width: 1040px) {
  .hero-container,
  .two-column,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 460px;
  }

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

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

@media (max-width: 820px) {
  .desktop-nav,
  .search-form,
  .brand-text em {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero-section {
    padding: 50px 0 64px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

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

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

  .hero-search,
  .page-search,
  .mobile-search {
    flex-direction: column;
  }

  .section-title-row,
  .footer-grid {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

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

  .detail-poster-card {
    width: min(280px, 100%);
    min-height: 390px;
  }
}

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

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

  .hero-heading h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

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

  .hero-slide {
    padding: 18px;
  }

  .featured-grid,
  .card-grid,
  .category-grid,
  .category-overview-grid,
  .compact-list,
  .library-links {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 44px 68px minmax(0, 1fr);
  }

  .ranking-cover {
    width: 68px;
    height: 92px;
  }

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

  .play-cover span {
    width: 70px;
    height: 70px;
  }
}
