/* AUDITURA_DESKTOP_HOME_PARITY_V5
   Single desktop Home, ported from the real mobile .m-home wall and overlay.
   Intentionally independent of old hero/coverflow CSS and prior desktop
   design overrides. CSS transforms only; no backdrop-filter, no JS frames. */
:is(html:not([data-layout]),html[data-layout="desktop"]) .view-section[data-view="home"].auditura-desktop-home-ready {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .view-section[data-view="home"].auditura-desktop-home-ready > :not(.auditura-desktop-home):not(.home-search):not(.home-search-results) {
  display: none !important;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .view-section[data-view="home"] > .auditura-desktop-home {
  position: relative;
  display: block;
  isolation: isolate;
  height: max(430px, calc(100dvh - 162px));
  max-height: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #09090f;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .view-section[data-view="home"] > .auditura-desktop-home[hidden] {
  display: none !important;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--wall-cols, 5), minmax(0,1fr));
  grid-template-rows: minmax(0,1fr);
  gap: 8px;
  padding: 0 8px;
  box-sizing: border-box;
  overflow: hidden;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-column {
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  will-change: transform;
  animation: auditura-v5-wall-drift var(--wall-dur,80s) linear infinite;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-column.is-down .auditura-home-track {
  animation-direction: reverse;
}
@keyframes auditura-v5-wall-drift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(0,calc(-50% - 4px),0); }
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .view-section[data-view="home"]:not(.active) .auditura-home-track,
html.auditura-v5-page-hidden .auditura-home-track,
body.booting .auditura-home-track {
  animation-play-state: paused !important;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-cover {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #15151b;
  cursor: pointer;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-cover:hover { filter: brightness(1.16); }
/* Same dark overlay and centered stats as mobile, no expensive blur. */
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 24px 16px;
  margin: 0;
  box-sizing: border-box;
  background: rgba(0,0,0,.78);
  color: #fff;
  pointer-events: none;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay:has(> #stats-section:empty) { display: none !important; }
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay #stats-section {
  position: static !important;
  z-index: auto;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px 26px !important;
  max-width: min(770px,95%);
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay #stats-section .stat-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 76px;
  max-width: none;
  padding: 2px 2px 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  text-align: center;
  pointer-events: auto;
  cursor: default;
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay #stats-section .stat-card[role="button"] { cursor:pointer; }
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay #stats-section .stat-icon { display: none !important; }
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay #stats-section .stat-value {
  display: block;
  color: var(--accent-primary, #f5b83d) !important;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(21px,1.65vw,29px);
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay #stats-section .stat-label {
  position: relative;
  display: inline-block;
  margin-top: 4px;
  padding: 0 0 6px;
  color: rgba(235,235,245,.9) !important;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
:is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-overlay #stats-section .stat-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18%; right: 18%;
  height: 2px;
  background: var(--accent-primary, #f5b83d);
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  :is(html:not([data-layout]),html[data-layout="desktop"]) .auditura-home-track { animation: none !important; will-change: auto; }
}
