/* ==========================================================================
   Pixel Academy — Course Hub (views/course.html)
   Page-scoped layer on top of pixel-v2.css tokens.
   Arabic-first, true RTL, mobile-first. Presentation only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page shell
   -------------------------------------------------------------------------- */
body.pxc-page {
  margin: 0;
  background: var(--pa-bg);
  /* The global header is fixed, so the page has to reserve its height or the
     content opens underneath it. --px-header-total is the measured height of
     the whole header, so this one value covers the stack. */
  padding-top: var(--px-header-total, 62px);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  body.pxc-page {
    padding-bottom: var(--pa-space-10);
  }
}

.pxc-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--pa-space-5) var(--pa-space-4) var(--pa-space-8);
}

@media (min-width: 768px) {
  .pxc-shell {
    padding-inline: var(--pa-space-6);
  }
}

/* --------------------------------------------------------------------------
   2. Top bar
   The compact internal header is shared with the rest of the course and
   lesson flow and lives in pixel-app-theme.css (.pa-appbar).
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   3. Page heading
   -------------------------------------------------------------------------- */
.pxc-head {
  margin-bottom: var(--pa-space-5);
}

body.pixel-v2 .pxc-head h1 {
  margin: 0 0 var(--pa-space-1);
  font-size: 1.375rem;
  font-weight: 800;
}

body.pixel-v2 .pxc-head p {
  margin: 0;
  font-size: var(--pa-fs-sm);
  color: var(--pa-text-muted);
}

@media (min-width: 768px) {
  body.pixel-v2 .pxc-head h1 {
    font-size: var(--pa-fs-2xl);
  }

  body.pixel-v2 .pxc-head p {
    font-size: var(--pa-fs-md);
  }
}

/* --------------------------------------------------------------------------
   4. Toolbar — segmented tabs + mobile filter trigger
   -------------------------------------------------------------------------- */
.pxc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pa-space-3);
  margin-bottom: var(--pa-space-5);
}

/* On laptop and desktop the section tabs follow the page instead of scrolling
   away, so switching between "all", "purchased courses" and "purchased
   lessons" never needs a trip back to the top.

   The offset is --px-header-total, the real app-bar height measured by
   pixel-student-shell.js (Safe Area already included), with the pre-script
   desktop height as the fallback. The bar keeps the page background behind it
   so cards scroll underneath it cleanly, and it is a plain sticky row — not a
   floating panel — so it covers nothing.

   Below 992px this rule does not apply and the toolbar stays exactly where it
   was: mobile already has the bottom navigation and the filter sheet. */
@media (min-width: 992px) {
  .pxc-toolbar {
    position: sticky;
    /* Clears everything fixed above it: the header's own measured height is
       the whole of what is fixed above this toolbar. */
    top: var(--px-stack-total, var(--px-header-total, 72px));
    z-index: 20;
    /* Block padding only: the shell's own inline padding already keeps the
       row aligned with the grid at every width, so no negative margin can
       fall out of step with a breakpoint. */
    padding-block: var(--pa-space-3);
    margin-bottom: var(--pa-space-4);
    background: var(--pa-bg);
    border-bottom: 1px solid var(--pa-border);
  }
}

/* --------------------------------------------------------------------------
   4b. Active teacher filter chip
   -------------------------------------------------------------------------- */
.pxc-activefilter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pa-space-3);
  margin-bottom: var(--pa-space-5);
}

.pxc-activefilter[hidden] {
  display: none;
}

.pxc-activefilter__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--pa-space-2);
  padding: 8px var(--pa-space-4);
  font-size: var(--pa-fs-sm);
  color: var(--pa-primary-ink);
  background: var(--pa-primary-050);
  border: 1px solid var(--pa-primary);
  border-radius: var(--pa-radius-pill);
}

.pxc-activefilter__label {
  color: var(--pa-text-2);
}

body.pixel-v2 .pxc-activefilter__clear {
  display: inline-flex;
  align-items: center;
  gap: var(--pa-space-2);
  min-height: 40px;
  padding: 6px var(--pa-space-3);
  font-family: var(--pa-font);
  font-size: var(--pa-fs-sm);
  font-weight: 700;
  color: var(--pa-text-2);
  background: transparent;
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-pill);
  cursor: pointer;
  transition: color var(--pa-t) var(--pa-ease),
    border-color var(--pa-t) var(--pa-ease);
}

body.pixel-v2 .pxc-activefilter__clear:hover {
  color: var(--pa-text);
  border-color: var(--pa-primary);
}


.pxc-tabs {
  display: flex;
  gap: var(--pa-space-1);
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px;
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-pill);
  box-shadow: var(--pa-shadow-xs);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pxc-tabs::-webkit-scrollbar {
  display: none;
}

body.pixel-v2 .pxc-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px var(--pa-space-3);
  font-family: var(--pa-font);
  font-size: var(--pa-fs-xs);
  font-weight: 700;
  color: var(--pa-text-2);
  background: transparent;
  border: 0;
  border-radius: var(--pa-radius-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--pa-t) var(--pa-ease),
    color var(--pa-t) var(--pa-ease);
}

body.pixel-v2 .pxc-tab:hover {
  color: var(--pa-primary-ink);
  background: var(--pa-primary-050);
}

body.pixel-v2 .pxc-tab[aria-selected="true"] {
  color: var(--pa-text-invert);
  background: var(--pa-primary);
  box-shadow: var(--pa-shadow-xs);
}

body.pixel-v2 .pxc-tab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (min-width: 576px) {
  body.pixel-v2 .pxc-tab {
    flex: 1 1 0;
    min-height: 44px;
    font-size: var(--pa-fs-md);
  }
}

/* Very small screens: tabs take a full row and share it evenly */
@media (max-width: 575.98px) {
  .pxc-tabs {
    flex: 1 1 100%;
  }

  body.pixel-v2 .pxc-tab {
    flex: 1 1 auto;
    padding: 6px var(--pa-space-2);
    font-size: 11px;
  }
}

body.pixel-v2 .pxc-filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--pa-space-2);
  min-height: var(--pa-touch);
  padding: 8px var(--pa-space-4);
  font-family: var(--pa-font);
  font-size: var(--pa-fs-sm);
  font-weight: 700;
  color: var(--pa-primary-ink);
  background: var(--pa-surface);
  border: 1px solid var(--pa-primary-100);
  border-radius: var(--pa-radius-pill);
  box-shadow: var(--pa-shadow-xs);
  cursor: pointer;
}

body.pixel-v2 .pxc-filter-btn:hover {
  background: var(--pa-primary-050);
}

body.pixel-v2 .pxc-filter-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (min-width: 992px) {
  .pxc-filter-btn {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   5. Layout — sidebar + results
   -------------------------------------------------------------------------- */
.pxc-layout {
  display: block;
}

@media (min-width: 992px) {
  .pxc-layout {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    gap: var(--pa-space-6);
    align-items: start;
  }

  /* Tabs without subject/teacher filters use the full width */
  .pxc-layout.pxc-layout--full {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pxc-results {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   6. Filter panel — desktop sidebar / mobile bottom sheet
   -------------------------------------------------------------------------- */
.pxc-filter {
  display: none;
}

.pxc-filter.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.pxc-filter__overlay {
  position: absolute;
  inset: 0;
  background: var(--pa-scrim);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.pxc-filter__panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  background: var(--pa-surface);
  border-radius: var(--pa-radius-xl) var(--pa-radius-xl) 0 0;
  box-shadow: var(--pa-shadow-lg);
  animation: pxc-sheet-up var(--pa-t-slow) var(--pa-ease);
}

@keyframes pxc-sheet-up {
  from {
    transform: translateY(16px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pxc-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pa-space-3);
  padding: var(--pa-space-4) var(--pa-space-5);
  border-bottom: 1px solid var(--pa-border);
}

body.pixel-v2 .pxc-filter__head h2 {
  margin: 0;
  font-size: var(--pa-fs-lg);
}

.pxc-filter__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--pa-space-4) var(--pa-space-5);
}

.pxc-filter__foot {
  display: flex;
  gap: var(--pa-space-3);
  padding: var(--pa-space-4) var(--pa-space-5)
    calc(var(--pa-space-4) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pa-border);
}

.pxc-filter__foot .pa-btn {
  flex: 1 1 0;
}

@media (min-width: 992px) {
  /* `inset: auto` clears the mobile sheet's `inset: 0`, so it has to come
     BEFORE the final `top` — the other way round the shorthand resets `top`
     to auto and the sidebar silently stops sticking.
     The offset follows --px-header-total, the real header height measured by
     pixel-student-shell.js (Safe Area already included, so it is never added
     twice). The fallback matches the desktop header before the shell runs. */
  .pxc-filter,
  .pxc-filter.is-open {
    display: block;
    position: sticky;
    inset: auto;
    /* Clears the app bar AND the sticky tab row above it. --pxc-toolbar-h is
       the toolbar's real rendered height, published by pixel-courses.js the
       same way the shell publishes --px-header-total. */
    top: calc(var(--px-stack-total, var(--px-header-total, 72px)) + var(--pxc-toolbar-h, 72px) + 16px);
    z-index: 1;
  }

  .pxc-filter[hidden],
  .pxc-filter.is-hidden {
    display: none;
  }

  .pxc-filter__overlay,
  .pxc-filter__close,
  .pxc-filter__foot {
    display: none;
  }

  .pxc-filter__panel {
    position: static;
    /* A sticky element taller than the viewport stops following the page, so
       the panel is bounded and the list inside it scrolls instead. That keeps
       the subject/teacher filter reachable for a long catalogue without ever
       growing into an oversized floating block. */
    max-height: calc(
      100vh - var(--px-stack-total, var(--px-header-total, 72px)) - var(--pxc-toolbar-h, 72px) - 40px
    );
    overflow: hidden;
    background: var(--pa-surface);
    border: 1px solid var(--pa-border);
    border-radius: var(--pa-radius-lg);
    box-shadow: var(--pa-shadow-sm);
    animation: none;
  }

  .pxc-filter__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: var(--pa-space-4);
  }
}

/* Hidden while a non-filterable tab is active */
.pxc-filter.is-hidden {
  display: none !important;
}

/* Subjects & teachers list */
.pxc-subjects {
  display: flex;
  flex-direction: column;
  gap: var(--pa-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pxc-subject__row {
  display: flex;
  align-items: center;
  gap: var(--pa-space-3);
  min-height: var(--pa-touch);
  padding: var(--pa-space-2) var(--pa-space-3);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  background: var(--pa-surface);
  transition: border-color var(--pa-t) var(--pa-ease),
    background-color var(--pa-t) var(--pa-ease);
}

.pxc-subject__row:hover {
  border-color: var(--pa-border-strong);
  background: var(--pa-surface-2);
}

.pxc-subject__row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--pa-primary);
  cursor: pointer;
}

body.pixel-v2 .pxc-subject__row label {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  font-size: var(--pa-fs-md);
  font-weight: 700;
  color: var(--pa-text);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.pxc-subject.is-selected > .pxc-subject__row {
  border-color: var(--pa-primary);
  background: var(--pa-primary-050);
}

.pxc-teachers {
  display: flex;
  flex-direction: column;
  gap: var(--pa-space-1);
  margin: var(--pa-space-2) 0 var(--pa-space-2);
  padding-inline-start: var(--pa-space-4);
  list-style: none;
  border-inline-start: 2px solid var(--pa-primary-100);
}

.pxc-teacher__row {
  display: flex;
  align-items: center;
  gap: var(--pa-space-3);
  min-height: var(--pa-touch);
  padding: 6px var(--pa-space-3);
  border-radius: var(--pa-radius-sm);
}

.pxc-teacher__row:hover {
  background: var(--pa-surface-3);
}

.pxc-teacher__row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--pa-primary);
  cursor: pointer;
}

body.pixel-v2 .pxc-teacher__row label {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  font-size: var(--pa-fs-sm);
  font-weight: 600;
  color: var(--pa-text-2);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.pxc-filter-note {
  margin: 0;
  font-size: var(--pa-fs-sm);
  color: var(--pa-text-muted);
}

/* --------------------------------------------------------------------------
   7. Result grid & course cards
   -------------------------------------------------------------------------- */
.pxc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pa-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pxc-grid[hidden] {
  display: none;
}

@media (min-width: 700px) {
  .pxc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .pxc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pxc-card {
  min-width: 0;
}

body.pixel-v2 .pxc-card .course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-lg);
  box-shadow: var(--pa-shadow-xs);
  transition: transform var(--pa-t) var(--pa-ease),
    box-shadow var(--pa-t) var(--pa-ease), border-color var(--pa-t) var(--pa-ease);
}

body.pixel-v2 .pxc-card .course-card:hover {
  transform: translateY(-2px);
  border-color: var(--pa-primary-100);
  box-shadow: var(--pa-shadow);
}

.pxc-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--pa-surface-3);
  overflow: hidden;
}

.pxc-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pxc-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--pa-space-2);
  flex: 1 1 auto;
  padding: var(--pa-space-4);
}

.pxc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pa-space-2);
}

body.pixel-v2 .pxc-card__title {
  margin: 0;
  font-size: var(--pa-fs-lg);
  font-weight: 800;
  line-height: 1.5;
  color: var(--pa-text);
  overflow-wrap: anywhere;
}

.pxc-card__teacher {
  display: flex;
  align-items: center;
  gap: var(--pa-space-2);
  min-width: 0;
}

body.pixel-v2 .pxc-card__teacher .author-name {
  display: inline-flex;
  align-items: center;
  gap: var(--pa-space-2);
  max-width: 100%;
  min-height: 32px;
  padding: 2px 0;
  font-family: var(--pa-font);
  font-size: var(--pa-fs-sm);
  font-weight: 700;
  color: var(--pa-primary-ink);
  background: none;
  border: 0;
  text-align: start;
  cursor: pointer;
  overflow-wrap: anywhere;
}

body.pixel-v2 .pxc-card__teacher .author-name:hover {
  color: var(--pa-primary-700);
  text-decoration: underline;
}

body.pixel-v2 .pxc-card__teacher .author-name i {
  color: var(--pa-text-muted);
  font-size: var(--pa-fs-xs);
}

.pxc-card__foot {
  margin-top: auto;
  padding-top: var(--pa-space-2);
}

body.pixel-v2 .pxc-card__cta {
  display: flex;
  width: 100%;
  min-height: var(--pa-touch);
}

/* Badges */
body.pixel-v2 .pxc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--pa-space-2);
  padding: 4px var(--pa-space-3);
  font-size: var(--pa-fs-xs);
  font-weight: 800;
  color: var(--pa-text-2);
  background: var(--pa-surface-3);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-pill);
  white-space: nowrap;
}

body.pixel-v2 .pxc-badge--price {
  color: var(--pa-primary-700);
  background: var(--pa-primary-050);
  border-color: var(--pa-primary-100);
}

body.pixel-v2 .pxc-badge--free {
  color: var(--pa-info);
  background: var(--pa-accent-050);
  border-color: var(--pa-info);
}

body.pixel-v2 .pxc-badge--owned {
  color: var(--pa-success);
  background: var(--pa-success-bg);
  border-color: var(--pa-success);
}

body.pixel-v2 .pxc-badge--date {
  color: var(--pa-text-muted);
  background: var(--pa-surface-2);
}

/* An offer entry the backend returned inside a course list. Deliberately the
   loudest badge on the card so it can never be mistaken for a plain course. */
body.pixel-v2 .pxc-badge--offer {
  color: var(--pa-text-invert);
  background: var(--pa-warning, #d97706);
  border-color: var(--pa-warning, #d97706);
}

/* --------------------------------------------------------------------------
   Owned-content sub-tabs (Level B)

   Only ever visible inside مشترياتي. They are styled as a quieter row than
   the Level A modes above them, because the choice they offer is a smaller
   one: not "browse or own", but "which of the two things I own".
   -------------------------------------------------------------------------- */
.pxc-subtabs {
  display: flex;
  gap: var(--pa-space-2);
  margin: 0 0 var(--pa-space-4);
  padding: 4px;
  background: var(--pa-surface-2);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-pill);
  overflow-x: auto;
  scrollbar-width: none;
}

.pxc-subtabs::-webkit-scrollbar {
  display: none;
}

.pxc-subtabs[hidden] {
  display: none;
}

body.pixel-v2 .pxc-subtab {
  flex: 1 1 0;
  /* The 44px floor is the touch target, not a decorative minimum. */
  min-height: 44px;
  min-width: max-content;
  padding: 6px var(--pa-space-4);
  font-family: var(--pa-font);
  font-size: var(--pa-fs-sm);
  font-weight: 700;
  white-space: nowrap;
  color: var(--pa-text-2);
  background: transparent;
  border: 0;
  border-radius: var(--pa-radius-pill);
  cursor: pointer;
  transition: background-color var(--pa-t) var(--pa-ease), color var(--pa-t) var(--pa-ease);
}

body.pixel-v2 .pxc-subtab:hover {
  color: var(--pa-primary-ink);
  background: var(--pa-primary-050);
}

body.pixel-v2 .pxc-subtab[aria-selected="true"] {
  color: var(--pa-text-invert);
  background: var(--pa-primary);
  box-shadow: var(--pa-shadow-xs);
}

body.pixel-v2 .pxc-subtab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.pixel-v2 .pxc-subtab:focus-visible {
  outline: 2px solid var(--pa-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   "ضمن عرض: <name>" — the Offer a purchased item came from.

   Rendered only when the backend actually sent an Offer name, so this block
   has no empty state to design for.
   -------------------------------------------------------------------------- */
.pxc-offerline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: calc(var(--pa-space-1) * -1) 0 var(--pa-space-2);
  font-size: var(--pa-fs-xs);
  line-height: 1.7;
  color: var(--pa-text-2);
}

.pxc-offerline__lead {
  opacity: 0.85;
}

.pxc-offerline strong {
  font-weight: 800;
  color: var(--pa-text);
  overflow-wrap: anywhere;
}

/* A purchased lesson carries the same badge as a purchased course. */
.pxc-lesson__tags {
  margin-bottom: var(--pa-space-2);
}

.pxc-card__error {
  margin: 0;
  font-size: var(--pa-fs-sm);
  font-weight: 700;
  color: var(--pa-danger);
}

.pxc-card__error[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   8. Purchased lesson cards
   -------------------------------------------------------------------------- */
.pxc-lessons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pa-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .pxc-lessons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .pxc-lessons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pxc-lesson {
  display: flex;
  flex-direction: column;
  gap: var(--pa-space-3);
  min-width: 0;
  padding: var(--pa-space-4);
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-lg);
  box-shadow: var(--pa-shadow-xs);
}

.pxc-lesson__top {
  display: flex;
  align-items: center;
  gap: var(--pa-space-3);
  min-width: 0;
}

.pxc-lesson__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font-size: var(--pa-fs-md);
  color: var(--pa-primary-ink);
  background: var(--pa-primary-050);
  border-radius: var(--pa-radius-sm);
}

body.pixel-v2 .pxc-lesson__title {
  margin: 0;
  min-width: 0;
  font-size: var(--pa-fs-md);
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.pixel-v2 .pxc-lesson__cta {
  display: flex;
  width: 100%;
  min-height: var(--pa-touch);
}

/* --------------------------------------------------------------------------
   9. States — loading / empty / error / skeletons
   -------------------------------------------------------------------------- */
.pxc-status {
  margin-bottom: var(--pa-space-4);
}

.pxc-status:empty {
  display: none;
}

.pxc-skeleton-card {
  overflow: hidden;
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius-lg);
}

.pxc-skeleton-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.pxc-skeleton-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--pa-space-3);
  padding: var(--pa-space-4);
}

.pxc-skeleton-line {
  height: 12px;
  border-radius: var(--pa-radius-pill);
}

.pxc-skeleton-line--lg {
  height: 18px;
  width: 80%;
}

.pxc-skeleton-line--sm {
  width: 45%;
}

.pxc-skeleton-line--btn {
  height: 40px;
  width: 100%;
  border-radius: var(--pa-radius);
}

.pxc-inline-loading {
  display: flex;
  align-items: center;
  gap: var(--pa-space-3);
  padding: var(--pa-space-4);
  font-size: var(--pa-fs-sm);
  color: var(--pa-text-muted);
}

/* --------------------------------------------------------------------------
   10. Bottom navigation
   -------------------------------------------------------------------------- */
.pxc-bottomnav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  background: var(--pa-surface);
  border-top: 1px solid var(--pa-border);
  box-shadow: var(--pa-shadow-up);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pxc-bottomnav__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

body.pixel-v2 .pxc-bottomnav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pa-text-muted);
  text-align: center;
}

body.pixel-v2 .pxc-bottomnav__link i {
  font-size: 1.05rem;
}

body.pixel-v2 .pxc-bottomnav__link[aria-current="page"] {
  color: var(--pa-primary-ink);
}

body.pixel-v2 .pxc-bottomnav__link:hover {
  color: var(--pa-primary-ink);
}

@media (min-width: 992px) {
  .pxc-bottomnav {
    display: none;
  }
}
