@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&display=swap");
:root {
  --bg: #dfdfdf;
  --panel: #eceff2;
  --panel-strong: #c9c9c9;
  --ink: #101217;
  --ink-soft: #363a42;
  --muted: #69717c;
  --line: #7b8798;
  --line-dark: #191c22;
  --blue: #005dff;
  --red: #ed2f45;
  --yellow: #f2c84b;
  --dark: #222429;
  --sidebar-width: 220px;
  --topbar-height: 66px;
  --cut: 20px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

* {
  scrollbar-color: var(--red) #c8c8c8;
  scrollbar-width: auto;
}

*::-webkit-scrollbar {
  width: 18px;
  height: 18px;
}

*::-webkit-scrollbar-track {
  background: #c8c8c8;
}

*::-webkit-scrollbar-thumb {
  border: 4px solid #c8c8c8;
  background: linear-gradient(135deg, #ff4757 0 18%, var(--red) 18% 82%, #9d1022 82% 100%);
  border-radius: 0;
}

*::-webkit-scrollbar-corner {
  background: #c8c8c8;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[data-list-link] {
  cursor: pointer;
}

[data-list-link]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.page-shell {
  min-height: 100vh;
}

.cut-corners {
  position: relative;
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.cut-corners::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  padding: var(--cut-border-width, 1px);
  background: var(--cut-border-color, var(--line-dark));
  clip-path: inherit;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  content: "";
}

.ui-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
  flex: 0 0 auto;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(220px, var(--sidebar-width)) minmax(260px, 720px) auto;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  background: var(--bg);
}

.topbar-left,
.topbar-actions,
.brand {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 18px;
  min-width: 0;
}

.brand {
  gap: 12px;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark,
.footer-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #111722;
  color: #fff;
  font-weight: 950;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.profile-button,
.save-button,
.rail-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #a6adba;
  background: #e8e8e8;
  color: var(--ink);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.icon-button:hover,
.profile-button:hover,
.save-button:hover,
.rail-button:hover {
  border-color: var(--ink);
}

.menu-button {
  gap: 4px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.profile-button {
  border-color: #111722;
  background: #111722;
  color: #fff;
  font-weight: 900;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #a8b4c4;
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.search-form .ui-icon {
  position: absolute;
  left: 38px;
  color: var(--ink);
}

.search-form input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px 0 76px;
  color: var(--ink);
}

.search-form input::placeholder {
  color: #737d8a;
}

.topbar-actions {
  justify-content: flex-end;
  gap: 12px;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 34px 26px 28px;
  background: #cfcfcf;
  clip-path: polygon(0 0, 100% 0, 100% 19%, 86% 23%, 86% 72%, 100% 76%, 100% 96%, 86% 100%, 0 100%);
}

.sidebar-main {
  display: grid;
  align-content: start;
  gap: 28px;
}

.sidebar-nav,
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.sidebar-bottom {
  gap: 18px;
}

.sidebar-separator {
  width: 126px;
  height: 1px;
  background: #a7adb7;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 148px;
  min-height: 37px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-link .ui-icon {
  width: 19px;
  height: 19px;
}

.nav-link span {
  overflow-wrap: anywhere;
}

.nav-link.active::after {
  position: absolute;
  bottom: -4px;
  left: 32px;
  width: 64px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.subscription-panel {
  display: grid;
  gap: 18px;
  width: 142px;
  min-height: 98px;
  margin: 2px 0 0;
  padding: 12px;
  background: #e3e3e3;
}

.subscription-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.subscription-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.subscription-label .ui-icon {
  width: 16px;
  height: 16px;
}

.subscription-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-head > .ui-icon {
  width: 12px;
  height: 12px;
}

.subscription-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #111722;
  color: #fff;
  font-size: 0;
}

.subscription-user strong,
.subscription-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-user strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.subscription-user small {
  display: none;
}
.sidebar-backdrop {
  position: fixed;
  z-index: 35;
  inset: var(--topbar-height) 0 0;
  display: none;
  background: rgba(16, 18, 23, 0.45);
}

.site-main {
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
}

.content-shell {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 28px 48px 0;
}

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

.hero-panel {
  min-height: 430px;
  border: 1px solid #8b98a9;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(0, 93, 255, 0.08) 72% 73%, transparent 73%),
    var(--bg);
  --cut: 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(560px, 100%);
  min-height: 430px;
  padding: 56px 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-text {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.hero-stats strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--ink);
}

.save-button {
  background: transparent;
}

.hero-list {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-option {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 82px;
  border: 2px solid var(--blue);
  background: var(--bg);
  padding: 9px 14px 9px 9px;
  --cut: 16px;
}

.hero-option:hover,
.hero-option.active {
  background: #e8edf5;
}

.option-thumb,
.card-media,
.mini-media {
  display: block;
  width: 100%;
  background-color: #aeb8c6;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 18%, transparent 18% 42%, rgba(0, 0, 0, 0.2) 42% 44%, transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 15px);
}

.option-thumb {
  aspect-ratio: 1;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.tone-blue {
  background-color: #2f6dff;
}

.tone-red {
  background-color: #d9374b;
}

.tone-yellow {
  background-color: #e8b93c;
}

.tone-black {
  background-color: #171b24;
}

.hero-option strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.analytics-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(124px, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding: 32px;
  background: var(--dark);
  --cut: 26px;
}

.metric-card {
  min-height: 150px;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #eef1f4;
  color: var(--ink);
  --accent: var(--blue);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-icon {
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.metric-delta {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.sparkline {
  width: 100%;
  height: 38px;
  margin-top: 4px;
  background: rgba(0, 93, 255, 0.08);
  color: var(--accent);
}

.sparkline path,
.sparkline circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}

.sparkline circle {
  fill: currentColor;
}

.accent-blue {
  --accent: var(--blue);
}

.accent-red {
  --accent: var(--red);
}

.accent-yellow {
  --accent: #c99a12;
}

.content-section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-head a {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-dot {
  width: 14px;
  height: 14px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.section-dot.blue {
  background: var(--blue);
}

.section-dot.red {
  background: var(--red);
}

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

.versus-card:is(a),
.mini-card:is(a) {
  display: block;
  color: inherit;
  text-decoration: none;
}
.versus-card,
.mini-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #d9e0e8;
  --cut: 18px;
}

.card-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line-dark);
}

.card-body {
  padding: 15px;
}

.card-body h3,
.mini-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.card-body p {
  margin: 7px 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.card-body a {
  color: var(--blue);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.wide-banner {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  margin-top: 46px;
  padding: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, 0.08) 18% 19%, transparent 19% 54%, rgba(0, 93, 255, 0.36) 54% 55%, transparent 55%),
    linear-gradient(90deg, #111722, #27303c 52%, #ed2f45);
  --cut: 26px;
}

.wide-banner h2 {
  max-width: 540px;
  margin: 0;
  font-size: 48px;
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
}

.category-section {
  display: grid;
  gap: 26px;
  margin-top: 46px;
}

.category-row {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.category-tile {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  --cut: 22px;
}

.category-tile::before,
.category-tile::after {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 18px solid rgba(255, 255, 255, 0.18);
  content: "";
  transform: rotate(45deg);
}

.category-tile::before {
  top: -44px;
  right: -28px;
}

.category-tile::after {
  bottom: -58px;
  left: -42px;
}

.category-tile.blue {
  background: var(--blue);
}

.category-tile.red {
  background: var(--red);
}

.category-tile span {
  position: relative;
  font-size: 82px;
  line-height: 0.85;
  font-weight: 950;
}

.category-tile strong {
  position: relative;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-wrap {
  position: relative;
  min-width: 0;
}

.card-rail {
  display: grid;
  grid-auto-columns: minmax(178px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: auto;
}

.card-rail::-webkit-scrollbar {
  display: block;
}

.mini-card {
  min-width: 178px;
}

.mini-media {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line-dark);
}

.mini-card h3,
.mini-card p {
  padding: 0 13px;
}

.mini-card h3 {
  margin-top: 13px;
}

.mini-card p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rail-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  background: #f0f2f5;
}

.rail-button.prev {
  left: -12px;
}

.rail-button.next {
  right: -12px;
}

.footer {
  margin-top: 62px;
  background: #080a0f;
  color: #fff;
}

.cut-footer {
  clip-path: polygon(0 28px, 44px 0, 100% 0, 100% 100%, 0 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 64px;
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 76px 48px 46px;
}

.footer-brand {
  display: grid;
  gap: 14px;
}

.footer-mark {
  background: var(--red);
}

.footer-brand h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}

.footer-brand p {
  margin: 0;
  color: #aeb7c5;
  font-weight: 600;
}

.footer-brand > a {
  color: #72a4ff;
  font-weight: 800;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #8e98a8;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

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

.footer-links section {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.footer-links a {
  color: #7f8da1;
  font-size: 14px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1540px);
  margin: 0 auto;
  border-top: 1px solid #242a34;
  padding: 20px 48px 26px;
  color: #5791ff;
  font-size: 13px;
  font-weight: 800;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: minmax(190px, 220px) minmax(180px, 1fr) auto;
    padding: 0 22px;
  }

  .content-shell {
    padding-right: 32px;
    padding-left: 32px;
  }

  .analytics-band {
    grid-template-columns: repeat(4, minmax(124px, 1fr));
  }
}

@media (max-width: 1120px) {
  :root {
    --sidebar-width: 220px;
  }

  .topbar {
    grid-template-columns: auto minmax(160px, 1fr) auto;
  }

  .sidebar {
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .sidebar-backdrop {
    display: block;
  }

  .site-main {
    margin-left: 0;
  }

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

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

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

  .footer {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .topbar {
    gap: 12px;
    padding: 0 14px;
  }

  .brand-name {
    display: none;
  }

  .search-form {
    height: 40px;
  }

  .search-form .ui-icon {
    left: 22px;
  }

  .search-form input {
    padding-left: 56px;
  }

  .content-shell {
    padding: 20px 18px 0;
  }

  .hero-copy,
  .hero-panel {
    min-height: 360px;
  }

  .hero-copy {
    padding: 38px 28px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

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

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

  .category-tile {
    min-height: 150px;
  }

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

  .footer-inner {
    gap: 34px;
    padding: 66px 22px 36px;
  }

  .footer-bottom {
    flex-direction: column;
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 560px) {
  :root {
    --topbar-height: 64px;
  }

  .topbar {
    grid-template-columns: auto minmax(96px, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }

  .topbar-left {
    gap: 8px;
  }

  .brand-mark,
  .profile-button,
  .icon-button,
  .save-button {
    width: 36px;
    height: 36px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .topbar-actions .icon-button {
    display: none;
  }

  .search-form {
    height: 38px;
  }

  .search-form .ui-icon {
    left: 13px;
  }

  .search-form input {
    padding-left: 40px;
  }

  .search-form input::placeholder {
    color: transparent;
  }

  .hero-grid,
  .hero-panel,
  .hero-copy,
  .hero-list {
    min-width: 0;
  }

  .hero-text {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .sidebar {
    width: min(88vw, var(--sidebar-width));
    padding-right: 46px;
  }

  .hero-copy,
  .hero-panel {
    min-height: 330px;
  }

  .hero-copy {
    padding: 32px 22px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-list,
  .card-grid,
  .analytics-band {
    grid-template-columns: 1fr;
  }

  .hero-option {
    grid-template-columns: 64px minmax(0, 1fr);
  }

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

  .section-head h2 {
    font-size: 24px;
  }

  .wide-banner {
    min-height: 210px;
    padding: 24px;
  }

  .wide-banner h2 {
    font-size: 34px;
  }

  .rail-button {
    display: none;
  }
}
/* Shared layout refinements requested after auth pass. */
.topbar {
  background: #cfcfcf;
}

.topbar .search-form {
  position: absolute;
  top: 50%;
  left: 50vw;
  width: min(46vw, 720px);
  transform: translate(-50%, -50%);
}

.footer.cut-footer {
  width: calc(100% + var(--sidebar-width));
  margin-left: calc(-1 * var(--sidebar-width));
}

.discover-shell {
  padding-top: 0;
}

@media (max-width: 1120px) {
  .footer.cut-footer {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .topbar .search-form {
    width: min(42vw, 360px);
  }
}

@media (max-width: 560px) {
  .topbar .search-form {
    width: min(38vw, 170px);
  }
}



/* Header auth modal and menu alignment refinements. */
.topbar {
  grid-template-columns: minmax(220px, var(--sidebar-width)) minmax(0, 1fr) auto;
}

.topbar-actions {
  grid-column: 3;
  justify-self: end;
  margin-left: auto;
}

.auth-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.auth-header-button .ui-icon {
  width: 18px;
  height: 18px;
}

.auth-header-button em {
  color: var(--ink);
  font-style: normal;
}

.menu-button.icon-button {
  width: 19px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  clip-path: none;
  gap: 2px;
}

.menu-button.icon-button:hover {
  border-color: transparent;
}

.menu-button span {
  width: 16px;
  height: 2px;
}

.auth-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
}

body.auth-modal-open {
  overflow: hidden;
}

body.auth-modal-open .auth-modal {
  display: grid;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 18, 23, 0.52);
  backdrop-filter: blur(2px);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(92vh, 940px);
  overflow: auto;
  border: 1px solid #c7d0dc;
  background: #f7f8fa;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 58px) 30px;
  color: var(--ink);
  --cut: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.auth-modal-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  background: #111722;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.auth-modal-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1;
  font-weight: 950;
  text-align: center;
}

.auth-modal-copy {
  max-width: 470px;
  margin: 16px auto 30px;
  color: #778397;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.35;
  font-weight: 650;
  text-align: center;
}

.auth-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 62px;
  margin-bottom: 28px;
  border: 1px solid #c9d3df;
  background: rgba(255, 255, 255, 0.55);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}

.auth-modal-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #6f7b8e;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-modal-tabs button + button {
  border-left: 1px solid #d4dbe4;
}

.auth-modal-tabs .is-active {
  color: var(--blue);
}

.auth-modal-tabs .is-active::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  background: var(--blue);
  content: "";
}

.auth-modal-form {
  display: grid;
  gap: 16px;
}

.auth-modal-form[hidden] {
  display: none;
}

.auth-modal-field {
  display: grid;
  gap: 8px;
}

.auth-modal-field label {
  color: #6f7b8e;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-modal-control {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  min-height: 62px;
  border: 1px solid #cfd7e2;
  background: rgba(255, 255, 255, 0.62);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.auth-modal-control > .ui-icon {
  align-self: center;
  justify-self: center;
  color: #738196;
}

.auth-modal-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

.auth-modal-control input::placeholder {
  color: #a2acbb;
}

.auth-modal-eye {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #738196;
}

.auth-modal-forgot {
  justify-self: end;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.auth-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 70px;
  margin-top: 8px;
  border: 0;
  background: linear-gradient(135deg, #1f91ff, #0861ff 72%, #257bff);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.auth-modal-legal {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  border-top: 1px solid #cfd7e1;
  padding-top: 20px;
  color: #7c8799;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.auth-modal-legal a {
  color: var(--blue);
}

@media (max-width: 1320px) and (min-width: 1121px) {
  .topbar {
    padding-left: 28px;
  }
}

@media (max-width: 820px) {
  .auth-header-button .ui-icon {
    display: none;
  }
}

@media (max-width: 560px) {
  .auth-modal {
    padding: 12px;
  }

  .auth-modal-panel {
    max-height: 94vh;
    padding: 28px 18px;
  }

  .auth-modal-control {
    min-height: 56px;
  }

  .auth-modal-submit {
    min-height: 62px;
    font-size: 18px;
  }
}

.menu-button.icon-button {
  align-content: center;
  place-items: center;
  row-gap: 2px;
}

/* Footer content and folded sidebar subscriptions. */
@media (min-width: 1121px) {
  .footer.cut-footer .footer-inner,
  .footer.cut-footer .footer-bottom {
    width: min(calc(100% - var(--sidebar-width)), 1540px);
    margin-right: 0;
    margin-left: var(--sidebar-width);
  }
}

.subscription-panel {
  width: fit-content;
  max-width: 148px;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

.subscription-head {
  grid-template-columns: minmax(0, 1fr) 12px;
  width: fit-content;
  max-width: 148px;
  min-height: 37px;
  color: var(--ink);
  font-size: 10px;
}

.subscription-label {
  gap: 12px;
}

.subscription-label .ui-icon {
  width: 19px;
  height: 19px;
}

.subscription-head > .ui-icon {
  transition: transform 160ms ease;
}

.subscription-panel:not(.is-open) .subscription-head > .ui-icon {
  transform: rotate(180deg);
}

.subscription-user {
  display: none;
  margin-left: 31px;
}

.subscription-panel.is-open .subscription-user {
  display: flex;
}

/* Requested input bevels and header auth contrast. */
.auth-header-button {
  min-height: 42px;
  border: 1px solid #111722;
  background: #111722;
  color: #fff;
  padding: 0 14px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.auth-header-button em,
.auth-header-button .ui-icon {
  color: #fff;
}

.search-form,
.discover-search,
.auth-control,
.auth-modal-control,
input:not([type="checkbox"]):not([type="range"]),
textarea {
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

/* Global light border pass. */
:root {
  --line: #cfd7e2;
  --line-dark: #cfd7e2;
  --line-soft: #d6dde7;
}

*,
*::before,
*::after {
  border-color: var(--line-soft) !important;
}

.cut-corners::before {
  background: var(--line-soft);
}

[class*="-hero"]:not(.profile-hero),
[class*="-hero"]:not(.profile-hero)::before {
  clip-path: none !important;
}

.notification-header-button {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  color: var(--ink);
  padding: 0;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}

.auth-header-button[data-auth-signed-in="true"] {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  overflow: hidden;
  background: #dce3ec;
  color: var(--ink);
  font-size: 0;
}

.auth-header-button[data-auth-signed-in="true"]::before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background-color: #c8d2df;
  background-image: var(--auth-avatar);
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  content: var(--auth-initial);
}

.auth-header-button[data-auth-signed-in="true"] > * {
  display: none;
}

.topbar-actions:has(.auth-header-button[data-auth-signed-in="true"]) .notification-header-button {
  display: grid;
}

/* Requested border and home hero image bevel pass. */
:root {
  --line: #aeaeae;
  --line-dark: #aeaeae;
  --line-soft: #aeaeae;
}

*,
*::before,
*::after {
  border-color: #aeaeae !important;
}

.cut-corners::before {
  background: #aeaeae;
}

.hero-panel.cut-corners {
  overflow: hidden;
  background-position: center;
  background-size: cover;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

/* Goal final light borders and header polish. */
:root {
  --line: #d6dde7;
  --line-dark: #d6dde7;
  --line-soft: #d6dde7;
}

*,
*::before,
*::after {
  border-color: #d6dde7 !important;
}

.cut-corners::before {
  background: #d6dde7;
}

.search-form,
.topbar .search-form {
  background: #f5f6f7;
}

.menu-button.icon-button,
.menu-button.icon-button .ui-icon {
  color: #000;
}

.hero-copy,
.hero-copy h1,
.hero-copy .hero-text,
.hero-stats,
.hero-stats strong,
.hero-actions .text-action {
  color: #fff;
}
/* Goal mobile rail and square categories pass. */
.creator-link,
.discover-card .creator-link,
.versus-card .creator-link,
.mini-card .creator-link {
  color: var(--red) !important;
}

.card-rail {
  grid-auto-columns: minmax(240px, 280px);
  align-items: stretch;
}

.mini-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 240px;
}

.mini-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line-soft);
}

.mini-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px;
}

.mini-card-body h3,
.mini-card-body p {
  margin: 0;
  padding: 0;
}

.mini-card-body p {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.category-tile {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

@media (max-width: 620px) {
  .hero-list {
    display: grid !important;
    visibility: visible;
    opacity: 1;
    grid-template-columns: 1fr;
    width: 100%;
  }
}
@media (min-width: 1121px) {
  body.sidebar-collapsed {
    --sidebar-width: 74px;
  }

  body.sidebar-collapsed .sidebar {
    align-items: center;
    padding-inline: 12px;
  }

  body.sidebar-collapsed .nav-link {
    grid-template-columns: 20px;
    justify-content: center;
    width: 46px;
    padding-inline: 0;
  }

  body.sidebar-collapsed .nav-link span,
  body.sidebar-collapsed .subscription-label span,
  body.sidebar-collapsed .subscription-user,
  body.sidebar-collapsed .sidebar-separator,
  body.sidebar-collapsed .subscription-head > .ui-icon {
    display: none;
  }

  body.sidebar-collapsed .subscription-head {
    justify-content: center;
    width: 46px;
    padding-inline: 0;
  }
}

.versus-card.cut-corners,
.mini-card.cut-corners {
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.versus-card.cut-corners::before,
.mini-card.cut-corners::before {
  clip-path: inherit;
}

/* Current goal sidebar/header/font pass. */
body,
button,
input,
textarea,
select {
  font-family: "Chakra Petch", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.nav-link,
.subscription-head {
  position: relative;
}

.nav-link::after,
.subscription-head::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  width: auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  content: "";
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after,
.subscription-head:hover::after,
.subscription-head:focus-visible::after,
.subscription-panel.is-open .subscription-head::after {
  transform: scaleX(1);
}

.sidebar-main,
.sidebar-nav {
  gap: 21px;
}

.subscription-panel {
  margin-top: 0;
}

.auth-header-button,
.auth-header-button[data-auth-signed-in="true"],
.notification-header-button {
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}

.hero-option {
  border: 2px solid var(--blue);
  color: inherit;
  font: inherit;
  text-align: left;
}

/* Current goal sidebar active red specificity fix. */
.nav-link.active::after {
  right: 0;
  bottom: -5px;
  left: 0;
  width: auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(1);
}

/* Legal and settings pages pass. */
[data-owner-admin-link][hidden],
[data-owner-admin-separator][hidden] {
  display: none !important;
}

.legal-shell,
.settings-shell {
  display: grid;
  gap: 28px;
  max-width: 1280px;
}

.legal-hero,
.settings-hero {
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  padding: clamp(24px, 5vw, 48px);
  --cut: 28px;
}

.legal-hero h1,
.settings-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.92;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-hero p,
.settings-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 650;
}

.legal-hero > span {
  display: inline-flex;
  margin-top: 22px;
  border: 1px solid var(--line-soft);
  background: #fff;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-index,
.legal-card,
.settings-panel {
  border: 1px solid var(--line-soft);
  background: rgba(238, 241, 244, 0.8);
  --cut: 20px;
}

.legal-index {
  position: sticky;
  top: calc(var(--topbar-height) + 24px);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.legal-index a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
}

.legal-card h2,
.settings-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-card h2:not(:first-child) {
  margin-top: 30px;
}

.legal-card p,
.settings-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
}

.legal-card a {
  color: var(--red);
  font-weight: 950;
}

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

.settings-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.settings-actions-panel {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.settings-actions-panel .settings-panel-head,
.settings-actions-panel .settings-note {
  grid-column: 1 / -1;
}

.settings-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
}

.settings-panel-head span,
.settings-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-panel label:not(.settings-toggle) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-panel input:not([type="checkbox"]),
.settings-panel textarea,
.settings-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-soft);
  background: #f7f8fa;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.settings-panel textarea {
  min-height: 108px;
  padding-top: 12px;
  resize: vertical;
}

.settings-toggle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.settings-toggle input {
  width: 38px;
  height: 22px;
  accent-color: var(--red);
}

.settings-toggle.is-disabled {
  color: var(--muted);
  opacity: 0.68;
}

.site-compact-cards .card-grid,
.site-compact-cards .discover-grid,
.site-compact-cards .creation-grid {
  gap: 14px;
}

.site-compact-cards .card-body,
.site-compact-cards .discover-card-body,
.site-compact-cards .mini-card-body {
  padding: 12px;
}

.site-reduced-motion *,
.site-reduced-motion *::before,
.site-reduced-motion *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
}

@media (max-width: 920px) {
  .legal-layout,
  .settings-grid,
  .settings-actions-panel {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
  }
}

/* Current goal rail/grid controls and auth preview pass. */
.card-grid-wrap {
  position: relative;
  min-width: 0;
}

.card-grid[data-grid-rail] {
  --grid-gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  grid-template-columns: none;
  gap: var(--grid-gap);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-grid[data-grid-rail]::-webkit-scrollbar,
.card-rail::-webkit-scrollbar {
  display: none;
}

.card-grid[data-grid-rail] > *,
.card-rail > * {
  min-width: 0;
  scroll-snap-align: start;
}

.grid-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  background: #eef1f4;
  color: var(--ink);
  transform: translateY(-50%);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.grid-arrow-left {
  left: -14px;
}

.grid-arrow-right {
  right: -14px;
}

.category-row {
  gap: 18px;
}

.category-tile {
  width: 100%;
  height: auto;
  align-self: start;
  aspect-ratio: 1 / 1;
}

.card-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mini-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.mini-media {
  aspect-ratio: 16 / 10;
}

body.auth-required-preview .site-main {
  opacity: 0.42;
  filter: blur(1px);
  pointer-events: none;
}

@media (max-width: 1120px) {
  .card-grid[data-grid-rail] {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

  .card-rail {
    grid-auto-columns: calc((100% - 36px) / 3);
  }
}

@media (max-width: 760px) {
  .card-rail {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

@media (max-width: 620px) {
  .hero-list {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .card-grid[data-grid-rail],
  .card-rail {
    grid-auto-columns: 100%;
  }

  .grid-arrow,
  .rail-button {
    display: grid;
    width: 38px;
    height: 38px;
  }

  .grid-arrow-left,
  .rail-button.prev {
    left: 4px;
  }

  .grid-arrow-right,
  .rail-button.next {
    right: 4px;
  }
}
/* Global loading states: skeletons and infinite-scroll loader. */
.skeleton-card {
  pointer-events: none;
  overflow: hidden;
  border-color: var(--line-soft, #c7d0dc) !important;
  background: #e8edf2 !important;
}

.skeleton-block,
.skeleton-media,
.skeleton-line {
  display: block;
  position: relative;
  overflow: hidden;
  background: #d7dee7;
}

.skeleton-block::after,
.skeleton-media::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  animation: skeleton-sweep 1.15s ease-in-out infinite;
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.skeleton-line {
  height: 11px;
  max-width: 100%;
}

.skeleton-line.wide {
  width: 82%;
}

.skeleton-line.mid {
  width: 58%;
}

.skeleton-line.short {
  width: 38%;
}

.infinite-loader {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 54px;
  color: var(--red);
}

.card-rail .infinite-loader {
  min-width: 120px;
  height: 100%;
}

.loader-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  animation: loader-pulse 900ms ease-in-out infinite;
}

.loader-dot:nth-child(2) {
  animation-delay: 120ms;
}

.loader-dot:nth-child(3) {
  animation-delay: 240ms;
}

.infinite-loader button {
  border: 1px solid var(--line-soft, #c7d0dc);
  background: #fff;
  color: var(--red);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

@keyframes skeleton-sweep {
  100% {
    transform: translateX(100%);
  }
}

@keyframes loader-pulse {
  0%, 100% {
    opacity: 0.36;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block::after,
  .skeleton-media::after,
  .skeleton-line::after,
  .loader-dot {
    animation: none;
  }
}