:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(245, 158, 11, 0.22);
  --line-soft: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.22), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(217, 119, 6, 0.18), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #020617 45%, #020617 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark,
.footer-logo span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: white;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.35);
}

.brand-text,
.footer-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 700;
  color: #cbd5e1;
}

.nav-link {
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fbbf24;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  background: rgba(30, 41, 59, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: #f8fafc;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.9s ease, visibility 0.9s ease, transform 5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.32)),
    linear-gradient(0deg, #020617 0%, rgba(15, 23, 42, 0.3) 38%, rgba(15, 23, 42, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(56px, 9vh, 96px);
}

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

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-title p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 12px;
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.primary-button {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: white;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.32);
}

.secondary-button {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.text-button {
  min-height: 40px;
  padding: 8px 0;
  color: #fbbf24;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: white;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-arrow:hover {
  background: rgba(15, 23, 42, 0.86);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-arrow.next {
  right: 22px;
  transform: translateY(-50%);
}

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

.hero-dots button {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #f59e0b;
}

.section,
.page-section,
.page-hero,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 72px 0 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2,
.page-section h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  background: linear-gradient(90deg, #fbbf24, #d97706);
  -webkit-background-clip: text;
  color: transparent;
}

.section-line {
  height: 4px;
  flex: 1 1 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.55), transparent);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 26px 70px rgba(245, 158, 11, 0.18);
}

.poster-link,
.poster-wrap {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img,
.category-cover img,
.mini-poster img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover .category-cover img,
.mini-card:hover .mini-poster img {
  transform: scale(1.08);
}

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

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

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.92);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-num {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 40px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.95);
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 12px;
}

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

.card-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.card-body h3 a:hover {
  color: #fbbf24;
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 9px 0 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rail-wrap {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
}

.scroll-button {
  position: absolute;
  top: 38%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: white;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.scroll-button.left {
  left: -12px;
}

.scroll-button.right {
  right: -12px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  min-height: 100%;
  background: #0f172a;
}

.category-cover img {
  min-height: 108px;
}

.category-content {
  padding: 22px 20px 22px 0;
}

.category-content h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-content h2 a:hover,
.category-links a:hover {
  color: #fbbf24;
}

.category-content p {
  margin: 0 0 14px;
  color: #94a3b8;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-links a {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  color: #cbd5e1;
  font-size: 12px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px 150px;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: -10px;
  padding: 0 8px;
  color: #fbbf24;
  background: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 13px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.62);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.empty-state {
  display: none;
  padding: 30px;
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  color: #cbd5e1;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.page-hero {
  padding: 76px 0 36px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p {
  color: #cbd5e1;
}

.page-section {
  padding: 36px 0 0;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.45);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  font-weight: 900;
}

.rank-row img {
  width: 88px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-row p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  background-size: cover;
  background-position: center;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78) 48%, rgba(2, 6, 23, 0.28)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.1));
}

.detail-title {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 36px 0 0;
}

.player-card,
.info-card,
.side-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.player-card {
  overflow: hidden;
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.34));
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 0 46px rgba(245, 158, 11, 0.38);
  font-size: 34px;
}

.player-start strong {
  font-size: 18px;
}

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

.player-caption {
  padding: 18px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.player-caption h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.player-caption p {
  margin: 0;
  color: #94a3b8;
}

.info-card {
  margin-top: 24px;
  padding: 24px;
}

.info-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #fbbf24;
  font-size: 24px;
}

.info-card p {
  margin: 0 0 16px;
  color: #cbd5e1;
}

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

.info-grid div {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.34);
}

.info-grid span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.info-grid strong {
  display: block;
  margin-top: 4px;
}

.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

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

.detail-cover img {
  aspect-ratio: 2 / 3;
}

.side-card {
  padding: 18px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.18s ease;
}

.mini-card:hover {
  background: rgba(148, 163, 184, 0.08);
}

.mini-poster {
  position: relative;
  overflow: hidden;
  height: 98px;
  border-radius: 12px;
  background: #0f172a;
}

.mini-info strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.mini-info em {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.mini-rank {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer p {
  max-width: 430px;
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fbbf24;
}

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

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1100px) {
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-side {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-inner {
    align-items: center;
    padding: 92px 0 72px;
  }

  .hero-arrow {
    display: none;
  }

  .category-grid,
  .ranking-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .category-content {
    padding: 22px;
  }

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

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

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

@media (max-width: 560px) {
  .nav-shell,
  .hero-inner,
  .section,
  .page-section,
  .page-hero,
  .detail-layout,
  .detail-title,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 21px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .section {
    padding-top: 52px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-line {
    width: 100%;
    flex: none;
  }

  .library-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row img {
    width: 74px;
    height: 102px;
  }

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