:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(34, 211, 238, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.13), transparent 24rem), var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.56));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

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

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

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.28);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
}

.nav-sub-link {
  color: #94a3b8;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  padding: 8px 18px 18px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.98);
}

.mobile-panel .nav-link {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
}

.mobile-panel .nav-link:hover,
.mobile-panel .nav-link.is-active {
  background: rgba(34, 211, 238, 0.10);
}

.content-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow-shell {
  width: min(860px, calc(100% - 32px));
}

.hero-carousel {
  position: relative;
  min-height: 720px;
  height: 74vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.02);
  pointer-events: none;
}

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

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 38%, rgba(2, 6, 23, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 190px;
  max-width: 1180px;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

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

.hero-tags {
  margin-bottom: 30px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 10px;
  font-size: 12px;
}

.hero-tags span:first-child,
.detail-tags span:first-child {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.ghost-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 780;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.26);
}

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

.primary-button.full {
  width: 100%;
}

.ghost-button {
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.ghost-link {
  color: var(--cyan);
  padding-left: 8px;
  padding-right: 8px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 120px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-quick-links {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hero-quick-links a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 84px;
  padding: 17px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
}

.hero-quick-links strong {
  color: white;
  font-size: 16px;
}

.hero-quick-links span {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.home-search-block {
  margin-top: 54px;
}

.home-search-card,
.glow-panel,
.side-feature,
.detail-article,
.related-panel,
.ranking-aside,
.filter-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.62));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.home-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.home-search-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.home-search-card p,
.section-title p,
.side-feature p,
.page-hero p,
.detail-lead {
  color: var(--muted);
  line-height: 1.7;
}

section.content-shell {
  padding: 54px 0;
}

.glow-panel {
  padding: 32px;
}

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

.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0;
}

.section-title a {
  color: var(--cyan);
  font-weight: 750;
}

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

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

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

.movie-card {
  display: block;
  min-width: 0;
  color: inherit;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

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

.card-cover img,
.category-tile img,
.category-page-card img,
.detail-side img,
.horizontal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img,
.category-tile:hover img,
.category-page-card:hover img,
.horizontal-card:hover 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;
  transition: opacity 0.3s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-badge,
.card-year,
.rank-mark,
.list-rank {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.card-year {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
}

.rank-mark {
  left: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
}

.play-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(34, 211, 238, 0.88);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.card-body h3,
.horizontal-info h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card:hover h3,
.horizontal-card:hover h3 {
  color: var(--cyan);
}

.card-body p,
.horizontal-info p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

.card-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #475569;
}

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

.tag-row span {
  min-height: 24px;
  padding: 4px 7px;
}

.category-grid,
.category-page-grid {
  display: grid;
  gap: 20px;
}

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

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

.category-tile,
.category-page-card {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  min-height: 220px;
}

.category-tile img,
.category-page-card img {
  position: absolute;
  inset: 0;
}

.category-tile > span,
.category-page-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.28));
}

.category-tile div,
.category-page-card div {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 24px;
}

.category-tile h3,
.category-page-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p,
.category-page-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.category-page-card span {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-weight: 750;
}

.ranking-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.ranking-split.wide {
  grid-template-columns: minmax(0, 1fr) 380px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  padding: 12px;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.horizontal-card:hover {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(34, 211, 238, 0.28);
  transform: translateY(-2px);
}

.horizontal-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.list-rank {
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  background: rgba(34, 211, 238, 0.92);
  color: #00222a;
}

.horizontal-info {
  min-width: 0;
  align-self: center;
}

.horizontal-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.side-feature,
.ranking-aside,
.related-panel {
  padding: 26px;
}

.side-feature h2,
.ranking-aside h2,
.related-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.page-main {
  padding-top: 68px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(180deg, #0f172a, #020617);
}

.compact-hero {
  padding: 76px 0 58px;
}

.compact-hero h1 {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

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

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

.breadcrumb strong {
  color: #cbd5e1;
  font-weight: 700;
}

.filter-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-search {
  flex: 1;
}

.filter-search input,
.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  color: white;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-search input:focus,
.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.10);
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-selects select {
  min-height: 52px;
  padding: 0 14px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 15px;
  outline: none;
}

.empty-state {
  display: none;
  padding: 50px 0;
  color: var(--muted);
  text-align: center;
}

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

.search-box {
  margin-top: 28px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--muted);
}

.detail-main {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 780px;
  padding: 112px 0 72px;
  overflow: hidden;
  background: #020617;
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.80) 48%, rgba(2, 6, 23, 0.66)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.4) 58%, rgba(2, 6, 23, 0.86) 100%);
}

.detail-hero .content-shell {
  position: relative;
  z-index: 2;
}

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

.player-column h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-lead {
  max-width: 820px;
  margin: 0 0 26px;
  font-size: 18px;
}

.movie-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: black;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.24));
  border: 0;
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  box-shadow: 0 22px 55px rgba(34, 211, 238, 0.34);
  font-size: 30px;
}

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

.detail-side {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

.detail-side img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: #0f172a;
}

.detail-tags {
  margin: 16px 0;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-meta span {
  color: var(--muted-2);
  font-size: 13px;
}

.detail-meta strong {
  color: #e2e8f0;
  text-align: right;
  font-size: 14px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}

.detail-article {
  padding: 32px;
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 34px;
}

.detail-article p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.9;
}

.compact-list .horizontal-card,
.related-panel .horizontal-card {
  grid-template-columns: 116px minmax(0, 1fr);
}

.compact-list .horizontal-info p,
.related-panel .horizontal-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  padding: 58px 0 28px;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.footer-brand {
  margin-bottom: 16px;
  font-size: 20px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 14px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: white;
  font-size: 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .nav-sub-link {
    display: none;
  }

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

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

  .ranking-aside,
  .related-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

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

  .hero-carousel {
    min-height: 780px;
    height: auto;
  }

  .hero-content {
    justify-content: center;
    padding: 120px 0 240px;
  }

  .hero-controls {
    bottom: 182px;
  }

  .hero-quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-search-card,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-selects {
    flex-direction: column;
  }

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

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

  .detail-side {
    position: static;
  }

  .detail-side img {
    aspect-ratio: 16 / 9;
  }

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

@media (max-width: 580px) {
  .content-shell,
  .footer-shell,
  .nav-shell,
  .hero-content,
  .hero-controls,
  .hero-quick-links {
    width: min(100% - 22px, 1180px);
  }

  .hero-content h1,
  .compact-hero h1,
  .player-column h1 {
    font-size: 34px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .featured-grid,
  .four-grid,
  .category-grid,
  .category-page-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card,
  .compact-list .horizontal-card,
  .related-panel .horizontal-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .horizontal-info p {
    display: none;
  }

  .detail-hero {
    padding-top: 104px;
  }

  .detail-article,
  .related-panel,
  .ranking-aside,
  .side-feature {
    padding: 22px;
  }

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