:root {
  --color-bg: #020617;
  --color-surface: #0f172a;
  --color-surface-soft: #111c31;
  --color-line: rgba(148, 163, 184, 0.18);
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
  --color-soft: #cbd5e1;
  --color-primary: #2563eb;
  --color-accent: #22d3ee;
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(34, 211, 238, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(20px);
}

.header-inner,
.footer-inner,
.footer-bottom,
.section-inner,
.hero-content,
.page-hero-inner,
.detail-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.24);
}

.logo-text {
  font-size: 19px;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--color-soft);
  font-weight: 650;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.12);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.9);
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #ffffff;
}

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

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav-link {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.12) 100%),
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.38), transparent 28rem);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  padding: 96px 0 72px;
}

.hero-eyebrow,
.page-eyebrow,
.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.82), rgba(8, 145, 178, 0.82));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.22);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.button,
.button-secondary,
.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button {
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.24);
}

.button-secondary {
  min-height: 52px;
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.64);
}

.button-small {
  min-height: 38px;
  padding: 0 15px;
  color: #ffffff;
  background: rgba(34, 211, 238, 0.14);
}

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

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(100%, 560px);
  margin-top: 30px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  color: #ffffff;
  outline: none;
  background: transparent;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.44);
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-control--prev {
  left: 24px;
}

.hero-control--next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.25s ease, background-color 0.25s ease;
}

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

.section {
  padding: 74px 0;
}

.section--compact {
  padding: 42px 0;
}

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

.section-header h2,
.panel h2,
.detail-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-header p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

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

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster img {
  filter: saturate(1.14);
  transform: scale(1.06);
}

.movie-score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
}

.movie-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.movie-desc {
  margin: 9px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 60px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span,
.detail-tag,
.info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(34, 211, 238, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.feature-panel {
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.30), rgba(8, 145, 178, 0.18)),
    rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow-card);
}

.feature-panel .section-inner {
  padding: 42px 0;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 12%, rgba(34, 211, 238, 0.26), transparent 12rem),
    rgba(15, 23, 42, 0.86);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  border-color: rgba(34, 211, 238, 0.48);
  transform: translateY(-4px);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
}

.category-card span {
  display: block;
  color: var(--color-muted);
  line-height: 1.65;
}

.category-card small {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: #67e8f9;
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

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

.rank-item:hover {
  border-color: rgba(34, 211, 238, 0.52);
  transform: translateX(4px);
}

.rank-number {
  color: #67e8f9;
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  height: 88px;
  border-radius: 13px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
}

.rank-score {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.55);
  font-weight: 800;
}

.page-hero {
  padding: 82px 0 46px;
  border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 78% 16%, rgba(34, 211, 238, 0.20), transparent 26rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.16));
}

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

.stat-card,
.panel,
.detail-card,
.player-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.stat-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  color: #ffffff;
  font-size: 30px;
}

.stat-card span {
  color: var(--color-muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.76);
}

.filter-search span {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: #ffffff;
  outline: none;
  background: rgba(2, 6, 23, 0.66);
}

.filter-input {
  padding: 0 14px;
}

.filter-select {
  padding: 0 36px 0 14px;
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: #67e8f9;
  font-weight: 800;
}

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

.compact-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.compact-card span {
  overflow: hidden;
  color: #ffffff;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card small {
  color: var(--color-muted);
}

.detail-hero {
  padding: 42px 0;
}

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

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76)),
    rgba(0, 0, 0, 0.18);
}

.play-layer.is-hidden {
  display: none;
}

.play-button-core {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 24px 60px rgba(34, 211, 238, 0.28);
  font-size: 28px;
}

.player-message {
  padding: 14px 18px;
  color: var(--color-muted);
  background: rgba(2, 6, 23, 0.68);
}

.detail-card {
  overflow: hidden;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info {
  padding: 20px;
}

.detail-info-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-info-row:last-child {
  border-bottom: 0;
}

.detail-info-row span:first-child {
  color: var(--color-muted);
}

.detail-info-row span:last-child {
  color: #ffffff;
  font-weight: 700;
}

.detail-section {
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
}

.detail-section + .detail-section {
  margin-top: 22px;
}

.detail-section p {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.9;
}

.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

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

.pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.pagination-links a {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  color: var(--color-soft);
  background: rgba(15, 23, 42, 0.66);
}

.pagination-links a:last-child {
  text-align: right;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 44px;
  padding: 48px 0;
}

.footer-brand p {
  margin: 18px 0 0;
  color: var(--color-muted);
  line-height: 1.75;
}

.footer-links {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.footer-links a {
  display: block;
  margin: 9px 0;
  color: var(--color-muted);
}

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

.footer-category-grid {
  columns: 2;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  color: var(--color-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.86);
}

.back-to-top.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  display: none;
  padding: 30px;
  color: var(--color-muted);
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-lg);
}

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

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

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel {
    min-height: 76vh;
  }

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

  .hero-search,
  .filter-panel,
  .rank-layout,
  .footer-links {
    grid-template-columns: 1fr;
  }

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

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid,
  .movie-grid,
  .movie-grid--six,
  .compact-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-control {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .footer-bottom,
  .section-inner,
  .hero-content,
  .page-hero-inner,
  .detail-shell {
    width: min(100% - 22px, var(--container));
  }

  .logo-text {
    font-size: 16px;
  }

  .hero-actions,
  .detail-actions,
  .pagination-links,
  .footer-bottom {
    flex-direction: column;
  }

  .hero-search {
    border-radius: 24px;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid--six,
  .compact-grid,
  .category-grid,
  .related-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 34px 56px 1fr;
  }

  .rank-score {
    display: none;
  }
}

.panel {
  padding: 24px;
}

.category-overview-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  gap: 16px;
}

.category-overview-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.overview-links {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.overview-links a {
  overflow: hidden;
  color: var(--color-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-links a:hover {
  color: #ffffff;
}
