:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f97316;
  --accent-2: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.10), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.94));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--accent), #facc15);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.42);
  font-size: 13px;
}

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

.nav-links a {
  position: relative;
  color: var(--soft);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: right 0.24s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-search {
  position: relative;
  width: 280px;
}

.nav-search input,
.mobile-search input,
.wide-search input,
.filter-input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(30, 41, 59, 0.74);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  padding: 11px 46px 11px 18px;
}

.nav-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-input:focus,
.filter-panel select:focus {
  border-color: rgba(249, 115, 22, 0.76);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.nav-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

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

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  padding: 12px 16px;
}

.mobile-search button,
.wide-search button,
.filter-panel button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  font-weight: 750;
}

.mobile-search button {
  padding: 0 18px;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-links a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.78);
}

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

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.22), transparent 28rem), #0f172a;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.55), transparent 70%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 20%, transparent 55%);
}

.hero-content {
  position: absolute;
  left: max(28px, calc((100% - 1280px) / 2));
  bottom: 108px;
  width: min(760px, calc(100% - 56px));
}

.section-kicker,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.62);
}

.hero p {
  margin: 0 0 24px;
  max-width: 680px;
  color: #e2e8f0;
  font-size: clamp(16px, 1.65vw, 20px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-meta span,
.hero-meta a,
.detail-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 650;
}

.hero-actions,
.spotlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button,
.section-link,
.spotlight-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
}

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

.ghost-button,
.section-link,
.spotlight-links a {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.spotlight-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.hero-dots {
  position: absolute;
  right: max(28px, calc((100% - 1280px) / 2));
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--accent-2);
}

.hero-thumbs {
  position: absolute;
  right: max(28px, calc((100% - 1280px) / 2));
  top: 98px;
  width: min(380px, 34vw);
  display: grid;
  gap: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(16px);
}

.hero-thumb img {
  width: 64px;
  height: 82px;
  border-radius: 13px;
  object-fit: cover;
  background: #111827;
}

.hero-thumb span {
  color: #fff;
  font-weight: 750;
  line-height: 1.35;
}

.page-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.subpage {
  padding: 44px 0 72px;
}

.quick-search-panel,
.page-hero,
.content-section,
.spotlight-panel,
.search-page-panel,
.detail-card,
.side-poster-card,
.side-panel,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel {
  margin-top: -48px;
  position: relative;
  z-index: 3;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.quick-search-panel h2,
.page-hero h1,
.section-heading h2,
.spotlight-panel h2,
.detail-card h1 {
  margin: 0;
  letter-spacing: -0.03em;
}

.quick-search-panel p,
.page-hero p,
.section-heading p,
.spotlight-panel p,
.detail-card p,
.category-card p,
.category-overview-card p,
.movie-card p,
.ranking-card p {
  color: var(--muted);
  line-height: 1.75;
}

.wide-search {
  display: flex;
  gap: 12px;
}

.wide-search input {
  min-height: 52px;
  padding: 0 20px;
}

.wide-search button {
  min-width: 116px;
  padding: 0 22px;
}

.content-section {
  margin: 42px 0;
  padding: 28px;
}

.content-section.no-margin {
  margin: 0;
}

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

.section-heading h2,
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.library-grid {
  margin-top: 24px;
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.22), transparent 18rem),
    linear-gradient(145deg, #111827, #020617);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.2s ease;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 52%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

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

.poster-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  font-size: 12px;
  font-weight: 750;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 8px;
  color: #fff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mini-tags span,
.tag {
  padding: 4px 7px;
  border-radius: 8px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.72);
  font-size: 12px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.16), transparent 16rem),
    rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card {
  padding: 22px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.64);
}

.category-card span {
  color: var(--accent-2);
  font-weight: 850;
}

.category-card strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px;
  margin: 42px 0;
}

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

.ranking-item,
.ranking-card {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item {
  grid-template-columns: 42px 54px 1fr auto;
  padding: 8px 12px;
}

.ranking-card {
  grid-template-columns: 54px 92px 1fr;
  padding: 12px;
}

.ranking-item:hover,
.ranking-card:hover {
  transform: translateX(4px);
  border-color: rgba(249, 115, 22, 0.62);
}

.ranking-number {
  color: var(--accent-2);
  font-weight: 900;
  font-size: 18px;
}

.ranking-item img,
.ranking-card img,
.side-related img {
  object-fit: cover;
  background: #111827;
}

.ranking-item img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
}

.ranking-title {
  font-weight: 750;
}

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

.ranking-card img {
  width: 92px;
  height: 126px;
  border-radius: 12px;
}

.ranking-card h3 {
  margin: 0 0 6px;
}

.ranking-card p {
  margin: 0 0 8px;
}

.ranking-card span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.spotlight-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.28), transparent 18rem),
    rgba(15, 23, 42, 0.78);
}

.page-hero {
  padding: 40px;
  margin-bottom: 26px;
  background:
    radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.22), transparent 22rem),
    rgba(15, 23, 42, 0.76);
}

.compact-hero {
  max-width: 920px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
}

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

.category-cover-stack img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 16px;
}

.filter-panel button {
  min-height: 46px;
  padding: 0 22px;
}

.movie-card.is-hidden {
  display: none;
}

.search-page-panel {
  padding: 24px;
  margin-bottom: 28px;
}

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

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

.detail-main {
  min-width: 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.28));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-shell.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 48px rgba(249, 115, 22, 0.45);
  font-size: 30px;
}

.video-toolbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.video-shell:hover .video-toolbar,
.video-shell:focus-within .video-toolbar {
  opacity: 1;
  pointer-events: auto;
}

.video-toolbar button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  padding: 8px 12px;
  cursor: pointer;
}

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

.detail-card h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 18px;
}

.detail-card h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.lead-text {
  color: #e2e8f0 !important;
  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

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

.side-poster-card,
.side-panel {
  padding: 18px;
}

.side-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: #111827;
}

.side-poster-card h2 {
  margin: 16px 0 8px;
}

.side-poster-card p {
  color: var(--muted);
}

.side-related {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.side-related:last-child {
  border-bottom: 0;
}

.side-related img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
}

.side-related span {
  font-weight: 700;
  line-height: 1.35;
}

.related-grid .movie-card.compact p {
  display: none;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  text-align: center;
}

.footer-inner p {
  max-width: 760px;
  margin: 12px auto;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0;
  color: var(--soft);
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  font-size: 13px;
}

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

  .nav-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-thumbs {
    display: none;
  }

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

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

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

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

@media (max-width: 820px) {
  .nav-inner {
    height: 66px;
  }

  .nav-search {
    display: none;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content {
    bottom: 86px;
  }

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

  .hero-dots {
    left: 28px;
    right: auto;
    bottom: 36px;
  }

  .quick-search-panel,
  .split-section,
  .category-overview-card,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .quick-search-panel {
    margin-top: 22px;
  }

  .wide-search {
    flex-direction: column;
  }

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

  .content-section,
  .page-hero,
  .detail-card {
    padding: 22px;
  }

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

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

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

  .ranking-card {
    grid-template-columns: 42px 74px 1fr;
  }

  .ranking-card img {
    width: 74px;
    height: 104px;
  }

  .video-toolbar {
    display: none;
  }
}

@media (max-width: 520px) {
  .page-wrap,
  .nav-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 22px, 1280px);
  }

  .logo span:last-child {
    font-size: 15px;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-meta {
    gap: 7px;
  }

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

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

  .movie-card p,
  .mini-tags {
    display: none;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}
