* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #f8fafc;
  --amber: #f59e0b;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 30rem), linear-gradient(180deg, #020617, #0f172a 45%, #020617);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.84), rgba(30, 41, 59, 0.76));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.28s ease, background 0.28s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.46);
}

.site-logo strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.site-logo small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 9px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.12) 100%), linear-gradient(0deg, #020617 0%, transparent 45%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 108px;
  z-index: 5;
  width: min(720px, calc(100% - 48px));
}

.hero-eyebrow,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-eyebrow span {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: #d1d5db;
  font-size: clamp(16px, 1.7vw, 20px);
}

.hero-meta,
.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta-line span {
  padding: 6px 12px;
  border: 1px solid rgba(253, 230, 138, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 46px rgba(245, 158, 11, 0.36);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.btn.full {
  width: 100%;
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search input,
.page-search input {
  width: min(420px, 58vw);
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 11px 14px;
}

.hero-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: #fff;
  font-weight: 800;
  padding: 11px 18px;
  cursor: pointer;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.65);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 52px;
  background: #fbbf24;
}

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

.section {
  padding: 68px 0;
}

.page-main,
.detail-main {
  padding-top: 104px;
}

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

.section-heading span {
  color: #fbbf24;
  font-weight: 800;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  color: var(--muted);
  margin: 10px 0 0;
}

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

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.54);
  background: rgba(30, 41, 59, 0.82);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
  opacity: 0.78;
}

.card-duration,
.rank-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-duration {
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.78);
  color: #e2e8f0;
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta,
.card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  max-width: 140px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.movie-card h3 a:hover,
.related-title:hover {
  color: #fbbf24;
}

.movie-card p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.compact-card .card-cover {
  height: 100%;
  aspect-ratio: auto;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.category-tile,
.category-card-wide {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.68));
  box-shadow: 0 14px 54px rgba(0, 0, 0, 0.22);
}

.category-tile {
  display: block;
  padding: 22px;
  min-height: 160px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

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

.category-tile h3,
.category-card-wide h2 {
  margin: 14px 0 8px;
}

.category-tile p,
.category-card-wide p {
  margin: 0;
  color: var(--muted);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 26px;
  background: radial-gradient(circle at top, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.84) 48%);
  box-shadow: var(--shadow);
}

.ranking-panel-head span {
  color: #fbbf24;
  font-weight: 900;
}

.ranking-panel-head h2 {
  margin: 4px 0 18px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.rank-row,
.ranking-row-large {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.44);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.rank-row {
  grid-template-columns: 28px 58px 1fr 44px;
  padding: 8px;
  border-radius: 16px;
}

.rank-row:hover,
.ranking-row-large:hover {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(245, 158, 11, 0.44);
  transform: translateX(4px);
}

.rank-row img {
  width: 58px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-num,
.rank-row em,
.ranking-row-large em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 900;
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 34rem), linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(2, 6, 23, 0.74));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 820px;
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.library-hero,
.ranking-hero,
.category-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.filter-section {
  padding-top: 24px;
}

.filter-group,
.page-search-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-search-wrap {
  justify-content: space-between;
  gap: 16px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.52);
  background: rgba(245, 158, 11, 0.18);
}

.category-wide-grid {
  display: grid;
  gap: 22px;
}

.category-card-wide {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-collage img,
.hero-collage img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-collage {
  width: min(360px, 34vw);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  transform: rotate(2deg);
}

.hero-collage img:first-child {
  grid-row: span 2;
  height: 234px;
}

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

.ranking-row-large {
  grid-template-columns: 46px 76px minmax(0, 1.2fr) minmax(160px, 0.8fr) 54px;
  padding: 12px 16px;
  border-radius: 18px;
}

.ranking-row-large img {
  width: 76px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-row-large strong,
.ranking-row-large small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row-large small {
  color: var(--muted);
}

.detail-main {
  padding-bottom: 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
}

.player-card {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.player-card video {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(2, 6, 23, 0.72));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.45);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.detail-info-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
}

.detail-info-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

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

.detail-tags a {
  padding: 6px 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
}

.detail-content {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.detail-title-block,
.story-card,
.related-section {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  padding: 26px;
}

.detail-title-block h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-title-block p,
.story-card p,
.related-card p {
  margin: 0;
  color: #cbd5e1;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
}

.related-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-cover span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.related-card:hover .related-cover span {
  opacity: 1;
}

.related-card div {
  padding: 12px;
}

.related-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.related-card p {
  display: -webkit-box;
  font-size: 13px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-heading {
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), #020617);
  border-top: 1px solid var(--line);
}

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

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: var(--muted);
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

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

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

  .split-section,
  .library-hero,
  .ranking-hero,
  .category-hero,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .hero-collage {
    width: 100%;
    max-width: 460px;
  }

  .detail-info-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: start;
  }

  .detail-info-card img {
    aspect-ratio: 4 / 5;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    bottom: 168px;
  }

  .hero-search-panel {
    display: grid;
    gap: 14px;
  }

  .hero-search,
  .page-search {
    width: 100%;
  }

  .hero-search input,
  .page-search input {
    width: 100%;
  }

  .page-hero {
    padding: 30px 22px;
  }

  .four-cols,
  .three-cols,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row-large {
    grid-template-columns: 38px 64px minmax(0, 1fr) 44px;
  }

  .ranking-row-large small {
    display: none;
  }

  .compact-card {
    display: block;
  }

  .detail-info-card {
    display: block;
  }

  .player-card,
  .player-card video {
    min-height: 260px;
  }

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

@media (max-width: 520px) {
  .nav-shell {
    height: 64px;
  }

  .site-logo strong {
    font-size: 18px;
  }

  .site-logo small {
    display: none;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-actions,
  .detail-meta-line,
  .hero-meta {
    gap: 8px;
  }

  .section,
  .page-main,
  .detail-main {
    width: min(100% - 24px, 1180px);
  }

  .section-heading {
    display: block;
  }

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

  .page-search {
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .page-search button {
    width: 100%;
  }
}
