/* ==========================================================================
   BANDRACK PORTAL STYLES (CSS Starter Token-Driven & Zero Utility Salad)
   Feuille de styles dédiée au portail public bandrack.live
   ========================================================================== */

@import url(https://fonts.bunny.net/css?family=albert-sans:900|montserrat:200,400,400i,900|lacquer:400|museomoderno:400);

* {
  box-sizing: border-box;
}

:root {
  --clr-primary: #b1c02c;
  --clr-on-primary: var(--clr-dark);
  --clr-secondary: #c5e1ea;
  --clr-on-secondary: var(--clr-dark);
  --clr-dark: #252525;
  --clr-bg: #1c0a00;
  --clr-surface: #1c0a00;
  --clr-surface-alt: #190e08;
  --clr-border: #1e293b;
  --clr-text-default: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-light: #f8fafc;

  /* Aliases CSSS pour le portail (compatibilité et personnalisation descendante) */
  --portal-surface: var(--clr-surface, #141c2e);
  --portal-surface-alt: var(--clr-surface-alt, #0c1220);
  --portal-border: var(--clr-border, #1e293b);
  --portal-text: var(--clr-text-default, #e2e8f0);
  --portal-text-muted: var(--clr-text-muted, #94a3b8);
  --portal-light: var(--clr-light, #f8fafc);

  --container-padding: .3rem;

  --font-sans: 'montserrat', sans-serif;
  --headings-font: 'MuseoModerno', display;

  --nav-a-text-decoration: none;
  --nav-align-items: baseline;

  /* Tokens pour .card */
  --card-padding: 1rem;
  --card-border-clr: color-mix(in srgb, var(--clr-bg) 80%, var(--clr-primary));
  --card-border-width: 0;
  --card-bg: #ffffff10;
  --card-shadow: 3px 3px 1rem #00000050;
  --card-header-padding: 0 0 .3rem;
  --card-header-border: 1px solid #ffffff09;
  --card-body-padding: 0;
  --card-footer-padding: 0;
  --card-radius: 0.5rem;
}

@media (max-width: 1024px) {
  :root {
    --container-padding: 0;
  }
}

.portal-body {
  /* background-color: var(--clr-bg, #0b0f19); */
  background-image: linear-gradient(to bottom right in oklab, #1e2b33, #0f1118);
  color: var(--portal-text, #e2e8f0);
}

.section-header {
  padding: var(--section-header-padding, 0);
}

@media (max-width: 1024px) {
  .section-header {
    --section-header-padding: 2rem;
  }
}

/* ==========================================================================
   App Layout (Sidebar Desktop & Mobile Bottom Nav) - CSS Starter Compliant
   ========================================================================== */

:where(.portal-app-layout.has-sidebar) {
  min-height: 100vh;
  --sidebar-width: 260px;
  --sidebar-container-gap: 0;
  --sidebar-bg: transparent;
  --sidebar-padding: 1.5rem 1rem;
  --sidebar-position: sticky;
  --sidebar-top: 0;
  --sidebar-align-self: stretch;
  --sidebar-height: 100vh;
  --sidebar-overflow-y: auto;
  --sidebar-border-right: none;
  --sidebar-z-index: 100;
  --sidebar-display: none;
  --sidebar-flex-direction: column;
  --sidebar-justify-content: space-between;
  --sidebar-max-width: var(--sidebar-width, 260px);
}

@media (min-width: 992px) {
  :where(.portal-app-layout.has-sidebar) {
    --sidebar-container-flex-direction: row;
    flex-direction: row;
    --sidebar-display: flex;
  }
}

.sr-honeypot {
  display: none;
}

.sidebar-top {
  --nav-align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-brand-wrapper {
  padding: 0.25rem 0.5rem;
}

.sidebar-brand {
  display: inline-block;
  text-decoration: none;
}

.sidebar-brand .brand-logo {
  max-height: 2.75rem;
  width: auto;
}

/* ==========================================================================
   SIDEBAR NAVIGATION (:where(.sidebar .nav) CSS STARTER COMPLIANT)
   Configurée à 100% via les variables natives CSSS (--nav-* et --nav-link-*)
   ========================================================================== */
:where(.sidebar .nav) {
  --nav-flex-direction: column;
  --nav-gap-vertical: 0.35rem;
  --nav-margin-block: 0;
  --nav-padding: 0;
  --nav-link-display: flex;
  --nav-link-align-items: center;
  --nav-link-justify-content: flex-start;
  --nav-link-gap: 0.75rem;
  --nav-link-padding: 0.35rem 0.25rem;
  --nav-link-radius: var(--radius-2, 8px);
  --nav-link-color: var(--portal-text-muted, #94a3b8);
  --nav-link-font-size: 0.92rem;
  --nav-link-font-weight: 500;
  --nav-link-text-decoration: none;
  --nav-link-transition: all 0.15s ease;
  --nav-link-color-hover: #ffffff;
  --nav-link-bg-hover: rgba(255, 255, 255, 0.05);
  --nav-link-color-active: var(--clr-primary, #b1c02c);
  --nav-link-bg-active: rgba(177, 192, 44, 0.12);
  --nav-link-font-weight-active: 700;
  --nav-link-indicator-color: var(--clr-primary, #b1c02c);
  --nav-link-indicator-width: 3px;
  --nav-link-indicator-inset-top: 15%;
  --nav-link-indicator-inset-bottom: 15%;
}

:where(.sidebar .nav) .nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
}

:where(.sidebar .nav) .nav-link-text {
  flex: 1;
  font-family: var(--headings-font);
}

:where(.sidebar .nav) .nav-link-external .badge {
  --badge-font-size: 0.68rem;
  --badge-padding-inline: 6px;
  --badge-padding-block: 2px;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--portal-border, #1e293b);
}

.sidebar-user-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.5rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-primary, #b1c02c);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--portal-light, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-status {
  font-size: 0.75rem;
  color: var(--clr-primary, #b1c02c);
}

.sidebar-user-actions,
.sidebar-auth-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Zone principale fluide */
.portal-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* background-image: linear-gradient(to bottom right in oklab, #1e2b33, #0f1118); */
}

@media (max-width: 991px) {
  .portal-main-area {
    padding: .3rem;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

/* En-tête mobile compact (< 992px) : logo centré - basse spécificité CSSS */
:where(.portal-mobile-header) {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background-image: linear-gradient(to bottom right in oklab, #3c5767, #090f18);
  border-bottom: 1px solid var(--portal-border, #1e293b);
  min-height: 54px;
}

@media (min-width: 992px) {
  :where(.portal-mobile-header) {
    display: none;
  }
}

:where(.portal-mobile-header) .mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

:where(.portal-mobile-header) .mobile-brand .brand-logo {
  max-height: 2.25rem;
  width: auto;
  display: block;
}

:where(.portal-mobile-header) .mobile-header-actions {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Barre d'outils basse Mobile (< 992px) configurée via le modificateur natif CSSS 1.33.0 .toolbar-bottom */
:where(.portal-bottom-bar.toolbar) {
  background-image: linear-gradient(to bottom right in oklab, #3c5767, #090f18);
  --toolbar-bg-translucent: color-mix(in srgb, var(--portal-surface, #141c2e) 94%, transparent);
  --toolbar-border-clr: var(--portal-border, #1e293b);
  --toolbar-min-height: 3.5rem;
  --toolbar-padding: 0.35rem 0.5rem;
  --toolbar-justify-content: space-around;
  --toolbar-align-items: center;
  --toolbar-gap: 0;
  --toolbar-z-index: 1000;
}

.portal-mobile-header {
  padding-top: 0.8rem;
}

@media (min-width: 992px) {
  :where(.portal-bottom-bar.toolbar) {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.35rem 0.75rem;
  color: var(--portal-text-muted, #94a3b8);
  text-decoration: none;
  background: none;
  border: none;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
  user-select: none;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--clr-primary, #b1c02c);
}

.bottom-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

:where(.portal-hero) {
  --hero-padding: 5rem 0 4.5rem 0;
  --hero-bg: radial-gradient(circle at 50% 15%, rgba(225, 29, 72, 0.18), transparent 65%), var(--clr-bg, #0b0f19);
  border-bottom: 1px solid var(--portal-border, #1e293b);
}

.portal-hero-content {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.portal-hero .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0;
  color: var(--portal-light, #f8fafc);
}

.portal-hero .hero-subtitle {
  font-size: 1.2rem;
  color: var(--portal-text-muted, #94a3b8);
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.portal-section {
  padding-block: .5rem;
  border-bottom: 1px solid var(--portal-border, #1e293b);
}

.portal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 1024px) {
  .card {
    --card-border-width: 0;
  }
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

:where(.portal-card) {
  --card-overflow: hidden;
  --card-padding: 0;
  --card-content-gap: 0;
  --card-header-padding: 1.25rem 1.25rem 0.5rem 1.25rem;
  --card-header-bg: transparent;
  --card-header-border: none;
  --card-body-padding: 0.5rem 1.25rem 1.25rem 1.25rem;
  --card-footer-padding: 1rem 1.25rem;
  --card-footer-bg: rgba(0, 0, 0, 0.25);
  --card-footer-border: 1px solid var(--portal-border, #1e293b);
}

.portal-card-media {
  height: 175px;
  overflow: hidden;
  background: #060911;
}

.portal-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-card .card-header {
  align-items: flex-start;
  gap: 0.5rem;
}

.portal-card .card-title {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -1px;
}

.portal-card-link {
  color: var(--portal-light, #f8fafc);
  text-decoration: none;
}

.portal-card-link:hover {
  color: var(--clr-primary, #e11d48);
}

.portal-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--portal-text-muted, #94a3b8);
  margin: 0;
}

.portal-card-tagline {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--portal-text, #e2e8f0);
  margin: 0;
}

.portal-card-desc {
  font-size: 0.9rem;
  color: var(--portal-text-muted, #94a3b8);
  margin: 0;
}

.portal-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.portal-card-stats {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.portal-card .card-footer {
  align-items: center;
}

.portal-card-slug {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--portal-text-muted, #94a3b8);
}

/* ==========================================================================
   PORTAL AGENDA SECTION (Concerts & Tournées)
   ========================================================================== */
.portal-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 960px;
  margin-inline: auto;
}

:where(.portal-agenda-item) {
  --card-display: flex;
  --card-flex-direction: row;
  --card-align-items: center;
  --card-content-gap: 1.5rem;
  --card-padding: 1.25rem 1.5rem;
  --card-margin-bottom: 0;
  --card-hover-border-clr: var(--clr-primary, #e11d48);
  --card-hover-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --group-align-items: flex-start;
}

.portal-agenda-date {
  --font-size-multiplier: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: calc(76px * var(--font-size-multiplier));
  padding: 0.6rem 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--portal-border, #1e293b);
  border-radius: 0.5rem;
  text-align: center;
  flex-shrink: 0;
}

.portal-agenda-location {
  --margin-block: 0;
}

.portal-date-day {
  font-size: calc(1.6rem * var(--font-size-multiplier));
  font-weight: 800;
  line-height: 1;
  color: var(--portal-light, #f8fafc);
  font-family: var(--headings-font, sans-serif);
}

.portal-date-month {
  font-size: calc(0.8rem * var(--font-size-multiplier));
  font-weight: 700;
  color: var(--clr-primary, #e11d48);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.portal-date-year {
  font-size: calc(0.75rem * var(--font-size-multiplier));
  color: var(--portal-text-muted, #94a3b8);
}

@media (max-width: 800px) {
  .portal-agenda-date {
    --font-size-multiplier: 0.6;
  }
}

.portal-agenda-info {
  /* flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0; */
  --group-display: flex;
  --group-direction: column;
  --group-gap: 0.2rem;
}

.portal-agenda-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.portal-agenda-band {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-primary, #e11d48);
  text-decoration: none;
}

.portal-agenda-band:hover {
  text-decoration: underline;
}

.portal-agenda-title {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
}

.portal-agenda-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--portal-text-muted, #94a3b8);
}

.portal-agenda-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  :where(.portal-agenda-item) {
    --card-flex-direction: column;
    --card-align-items: flex-start;
    --card-content-gap: 1rem;
  }

  .portal-agenda-title {
    white-space: normal;
  }

  .portal-agenda-actions {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.5rem;
    border-top: 1px solid var(--portal-border, #1e293b);
  }
}

:where(.event-detail-card) {
  --card-overflow: hidden;
  --card-margin-bottom: 2rem;
  --card-padding: 0;
  --card-body-padding: 2rem;
}

:where(.event-artist-card) {
  --card-display: flex;
  --card-flex-direction: row;
  --card-align-items: center;
  --card-content-gap: 1rem;
  --card-padding: 1rem;
  --card-margin-bottom: 0;
}

:where(.event-share-card) {
  --card-padding: 1.5rem;
  --card-margin-bottom: 2rem;
  text-align: center;
}

.portal-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

:where(.portal-feature-card) {
  --card-header-padding: 1.75rem 1.75rem 0.75rem 1.75rem;
  --card-header-bg: transparent;
  --card-header-border: none;
  --card-body-padding: 0 1.75rem 1.75rem 1.75rem;
  --card-margin-bottom: 0;
}

.portal-feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.portal-feature-list {
  padding-left: 1.25rem;
  margin: 1.25rem 0 0 0;
  color: var(--portal-text-muted, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.6;
}

:where(.portal-register-wrapper) {
  --card-padding: 2.5rem;
  --card-margin-bottom: 0;
  max-width: 760px;
  margin-inline: auto;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .portal-form-grid {
    grid-template-columns: 1fr;
  }
}

.portal-form-full {
  grid-column: 1 / -1;
}

.portal-slug-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--clr-border, #334155);
  border-radius: var(--btn-radius, 0.5rem);
  background: var(--clr-bg, #0b0f19);
  overflow: hidden;
}

.portal-slug-prefix {
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--portal-text-muted, #94a3b8);
  font-size: 0.9rem;
  font-family: monospace;
  border-right: 1px solid var(--clr-border, #334155);
  white-space: nowrap;
}

.portal-slug-input-wrapper .form-control {
  --form-control-border-width: 0;
  --form-control-bg: transparent;
  width: 100%;
}

.portal-form-submit {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
}

.portal-footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--portal-border, #1e293b);
  background: var(--portal-surface-alt, #0c1220);
}

.portal-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .portal-footer-grid {
    grid-template-columns: 1fr;
  }
}

.portal-footer-title {
  font-size: 1.35rem;
  margin: 0 0 0.5rem 0;
  color: var(--portal-light, #f8fafc);
}

.portal-footer-text {
  color: var(--portal-text-muted, #94a3b8);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
}

.portal-footer-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--portal-light, #f8fafc);
  margin: 0 0 1rem 0;
}

.portal-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.portal-footer-list a {
  color: var(--portal-text-muted, #94a3b8);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.portal-footer-list a:hover {
  color: var(--clr-primary, #e11d48);
}

.portal-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--portal-border, #1e293b);
  text-align: center;
  color: var(--portal-text-muted, #94a3b8);
  font-size: 0.85rem;
}

/* ==========================================================================
   Mon Fil Live (Feed d'actualités suivies) & Découverte Personnalisable
   ========================================================================== */

/* Feed Section */
.portal-feed-section {
  /* background-color: var(--portal-surface-alt, #0c1220);
  border-bottom: 1px solid var(--portal-border, #1e293b); */
  /* padding: 3.5rem 0; */
}

.feed-post-card {
  position: relative;
}

.followed-bands-bar-wrapper {
  background-color: var(--portal-surface, #141c2e);
  border: 1px solid var(--portal-border, #1e293b);
  border-radius: var(--radius-3, 12px);
  padding: 1.25rem;
}

.followed-bands-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.followed-bar-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--portal-light, #f8fafc);
}

.followed-bar-title svg {
  color: #ef4444;
}

.followed-bands-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.followed-band-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--portal-border, #1e293b);
  color: var(--portal-text, #e2e8f0);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.followed-band-pill:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--clr-primary, #b1c02c);
  color: #ffffff;
}

.followed-band-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e293b;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}

.followed-band-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.followed-bands-modal-list {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--portal-border, #1e293b);
  animation: fadeIn 0.2s ease;
}

.followed-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

:where(.followed-item-card) {
  --card-display: flex;
  --card-flex-direction: row;
  --card-align-items: center;
  --card-content-gap: 0.75rem;
  --card-padding: 0.65rem 0.85rem;
  --card-margin-bottom: 0;
  --card-bg: rgba(0, 0, 0, 0.2);
}

.followed-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.followed-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.followed-item-info {
  flex: 1;
  min-width: 0;
}

.followed-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--portal-light, #f8fafc);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.followed-item-name:hover {
  color: var(--clr-primary, #b1c02c);
}

.followed-item-sub {
  font-size: 0.78rem;
  color: var(--portal-text-muted, #94a3b8);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.followed-item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feed-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--portal-light, #f8fafc);
}

:where(.feed-post-title) {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--clr-light, #f8fafc);
}

.feed-post-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feed-post-main {
  width: 100%;
  min-width: 0;
}

.feed-post-media-col {
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .feed-post-body.has-media {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .feed-post-body.has-media .feed-post-main {
    flex: 1 1 52%;
    min-width: 0;
  }
  .feed-post-body.has-media .feed-post-media-col {
    flex: 0 0 320px;
    width: 320px;
    max-width: 48%;
    min-width: 260px;
  }
}

:where(.feed-post-content) {
  --clamp-max-height: 245px;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: var(--clr-text-default, #f8fafc);
  word-break: break-word;
  transition: max-height 0.35s ease;
}

@media (max-width: 768px) {
  :where(.feed-post-content) {
    --clamp-max-height: 72px;
  }
}

.feed-post-content.is-clamped {
  --clamp-max-height: 245px;
  max-height: var(--clamp-max-height);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}

@media (max-width: 768px) {
  .feed-post-content.is-clamped {
    --clamp-max-height: 72px;
  }
}

.feed-post-content.is-expanded {
  max-height: 4000px;
  -webkit-mask-image: none;
  mask-image: none;
}

.post-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary, #e11d48);
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 0.35rem;
  border-radius: var(--radius-1, 4px);
  transition: all 0.15s ease;
}

.post-read-more-btn:hover {
  text-decoration: underline;
  background: rgba(225, 29, 72, 0.08);
}

.post-read-more-btn .read-more-icon {
  transition: transform 0.25s ease;
}

/* --- Médias des publications --- */
:where(.feed-post-media) {
  margin-bottom: 0;
}

.feed-media-image-wrapper {
  border-radius: var(--radius-2, 8px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--clr-border, #1e293b);
  max-height: 340px;
}

.feed-media-img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.feed-media-img:hover {
  transform: scale(1.02);
}

/* Vidéo responsive 16:9 */
.video-16-9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-2, 8px);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--clr-border, #1e293b);
}

.video-16-9 iframe,
.video-16-9 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

/* Galerie de photos avec carousel */
.feed-media-gallery-slider {
  position: relative;
  border-radius: var(--radius-2, 8px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--clr-border, #1e293b);
}

.feed-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-gallery-track::-webkit-scrollbar {
  display: none;
}

.feed-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.feed-gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.feed-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--clr-border, #1e293b);
}

.feed-gallery-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-text-muted, #94a3b8);
  letter-spacing: 0.05em;
}

.feed-gallery-nav-btn {
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

/* Audio Player */
.feed-media-audio-box {
  padding: 0.85rem;
  border-radius: var(--radius-2, 8px);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--clr-border, #1e293b);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feed-audio-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.feed-audio-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clr-primary, #e11d48);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-audio-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-audio-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-light, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-audio-artist {
  font-size: 0.78rem;
  color: var(--clr-text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-audio-player {
  width: 100%;
  height: 36px;
}

.feed-media-audio-embed {
  border-radius: var(--radius-2, 8px);
  overflow: hidden;
}

/* Pied de carte du post & actions */
:where(.feed-post-footer) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--clr-border, #1e293b);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feed-post-actions,
.feed-post-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-highlighted {
  animation: postHighlightAnim 2.2s ease forwards;
}

@keyframes postHighlightAnim {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.8); }
  50% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
  100% { box-shadow: none; }
}

:where(.feed-agenda-embedded) {
  border: none;
  background: transparent;
  padding: 0;
}

:where(.feed-event-desc) {
  font-size: 0.88rem;
  color: var(--clr-text-muted, #94a3b8);
  margin: 0.35rem 0 0 0;
  line-height: 1.45;
}

:where(.feed-event-footer) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--clr-border, #1e293b);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feed-posts-list {
  --card-group-grid-template-columns: 1;
}

@media (max-width: 500px) {
  .feed-posts-list {
    gap: .3rem;
  }
}

.feed-empty-events {
  padding: 2.5rem;
  text-align: center;
  background-color: var(--portal-surface, #141c2e);
  border: 1px dashed var(--portal-border, #1e293b);
  border-radius: var(--radius-3, 12px);
  color: var(--portal-text-muted, #94a3b8);
}

.feed-empty-events svg {
  margin-bottom: 0.75rem;
  color: #64748b;
}

:where(.feed-welcome-box, .feed-guest-box) {
  --card-padding: 2rem;
  --card-margin-bottom: 0;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.icon.feed-welcome-icon,
.icon.feed-guest-icon {
  --icon-size: 52px;
  --icon-bg: rgba(177, 192, 44, 0.12);
  color: var(--clr-primary, #b1c02c);
  flex-shrink: 0;
  margin: 0 0 1rem 0;
}

.feed-guest-content .icon.feed-guest-icon {
  margin: 0;
}

.feed-welcome-title,
.feed-guest-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--portal-light, #f8fafc);
}

.feed-welcome-text,
.feed-guest-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--portal-text-muted, #94a3b8);
  margin-bottom: 1.5rem;
}

:where(.feed-guest-box) {
  --card-display: flex;
  --card-flex-direction: row;
  --card-align-items: center;
  --card-justify-content: space-between;
  --card-content-gap: 1.5rem;
  text-align: left;
  flex-wrap: wrap;
}

.feed-guest-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 280px;
}

.feed-guest-content .feed-guest-text {
  margin-bottom: 0;
}

.feed-guest-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Discovery Section */

.discovery-toolbar {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.discovery-genres-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 500;
  background-color: var(--portal-surface, #141c2e);
  border: 1px solid var(--portal-border, #1e293b);
  color: var(--portal-text-muted, #94a3b8);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.genre-pill:hover {
  border-color: var(--portal-text, #e2e8f0);
  color: #ffffff;
}

.genre-pill.active {
  background-color: var(--clr-primary, #b1c02c);
  border-color: var(--clr-primary, #b1c02c);
  color: #0b0f19;
  font-weight: 700;
}

.genre-pill .genre-count {
  font-size: 0.72rem;
  opacity: 0.75;
  padding: 1px 5px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.2);
}

.discovery-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.discovery-subfilters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn-group {
  display: inline-flex;
  gap: 0.25rem;
}

.discovery-prefs-panel {
  background-color: var(--portal-surface, #141c2e);
  border: 1px solid var(--portal-border, #1e293b);
  border-radius: var(--radius-3, 12px);
  padding: 1.5rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.2s ease;
}

.discovery-prefs-header h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--portal-light, #f8fafc);
}

.discovery-prefs-header h4 svg {
  color: #f59e0b;
}

.discovery-prefs-header p {
  margin: 0 0 1rem 0;
  font-size: 0.88rem;
}

.discovery-prefs-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.pref-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--portal-text-muted, #94a3b8);
  cursor: pointer;
}

.pref-checkbox-label input {
  cursor: pointer;
}

.discovery-prefs-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-card-footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ==========================================================================
   In-App Artist Page View (Dual View Architecture)
   ========================================================================== */

:where(.artist-in-app-bar) {
  background-color: var(--portal-surface, #141c2e);
  border-bottom: 1px solid var(--portal-border, #1e293b);
  padding: 0.65rem 1rem;
}

@media (min-width: 992px) {
  :where(.artist-in-app-bar) {
    position: sticky;
    top: 0;
    z-index: 95;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.in-app-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.in-app-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.in-app-bar-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.in-app-artist-name {
  font-weight: 700;
  color: var(--portal-light, #f8fafc);
  font-size: 0.95rem;
}

.in-app-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.in-app-standalone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

/* Adaptations en mode In-App : masquage des barres de navigation autonomes de l'EPK */
.in-app-view .site-nav-bar,
.in-app-view .mobile-bottom-bar-wrapper {
  display: none !important;
}

/* Visuel optionnel d'événement dans l'agenda / fil portail */
.portal-agenda-poster {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.portal-agenda-poster-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-2, 6px);
  object-fit: cover;
  border: 1px solid var(--portal-border, #1e293b);
  background-color: var(--portal-surface-alt, #0c1220);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.portal-agenda-poster:hover .portal-agenda-poster-img {
  transform: scale(1.05);
  border-color: var(--clr-primary, #b1c02c);
}

/* ==========================================================================
   Subscription & Auth Modal (CSS Starter native .modal token overrides)
   ========================================================================== */

:where(.sub-modal) {
  --modal-bg: var(--portal-surface, #141c2e);
  --modal-text-color: var(--portal-text, #e2e8f0);
  --modal-border-radius: var(--radius-3, 12px);
  --modal-max-width: 480px;
  --modal-width: 92vw;
  --modal-max-height: min(90vh, calc(100dvh - 2rem));
  --modal-top: 0;
  --modal-margin-block: auto;
  --modal-align-items: center;
  --modal-overflow: auto;
  --modal-backdrop-filter: blur(6px);
  --modal-header-bg: var(--portal-surface, #141c2e);
  --modal-header-shadow: none;
  --modal-header-color: var(--portal-light, #f8fafc);
  --modal-header-border-bottom: 1px solid var(--portal-border, #1e293b);
  --modal-close-color: var(--portal-text-muted, #94a3b8);
  --modal-box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --modal-border: 1px solid var(--portal-border, #1e293b);
  background-color: rgba(0, 0, 0, 0.78);
}

:where(.sub-modal[hidden]) {
  display: none !important;
}

:where(.sub-modal .modal-title) {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

:where(.sub-modal .modal-desc) {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--portal-text-muted, #94a3b8);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.sub-auth-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-2, 6px);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.sub-auth-badge[hidden] {
  display: none !important;
}

.sub-auth-badge-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #34d399;
}

.sub-auth-badge-info strong {
  color: #ffffff;
}

.sub-label-hint {
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--portal-text-muted, #94a3b8);
}

.personas-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--portal-border, #334155);
  background-color: var(--clr-bg, #0b0f19);
  color: var(--portal-text-muted, #94a3b8);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.persona-chip:hover {
  border-color: var(--portal-text-muted, #94a3b8);
  color: var(--portal-light, #ffffff);
}

.persona-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.persona-chip-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--portal-border, #475569);
  color: transparent;
  transition: all 0.15s ease;
}

.persona-chip.active {
  border-color: var(--clr-primary, #b1c02c);
  background-color: rgba(177, 192, 44, 0.12);
  color: var(--portal-light, #ffffff);
}

.persona-chip.active .persona-chip-indicator {
  background-color: var(--clr-primary, #b1c02c);
  border-color: var(--clr-primary, #b1c02c);
  color: #000000;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--portal-text-muted, #94a3b8);
  cursor: pointer;
  line-height: 1.45;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.18rem;
  cursor: pointer;
}

.rgpd-consent {
  padding: 0.6rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--portal-border, #334155);
  border-radius: var(--radius-2, 6px);
}

.sub-rgpd-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--portal-text-muted, #64748b);
  line-height: 1.45;
  margin-top: 1rem;
  margin-bottom: 0;
}

.sub-rgpd-notice svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.sub-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-2, 6px);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.sub-alert[hidden] {
  display: none !important;
}

.sub-alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.sub-alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

:where(.followed-card.is-unfollowed) {
  opacity: 0.55;
  filter: grayscale(0.5);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.follow-band-btn.active {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Composant Toast / Notification non-bloquante avec action (Undo pattern)
   Conforme CSS Starter (tokens, :where low-specificity, responsive)
   ========================================================================== */
:where(.wb-toast-container) {
  position: fixed;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  width: calc(100vw - 3rem);
  pointer-events: none;
}

@media (max-width: 991px) {
  :where(.wb-toast-container) {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
  }
}

:where(.wb-toast) {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--clr-surface, #1e293b);
  color: var(--clr-text-default, #f8fafc);
  border: 1px solid var(--clr-border, #334155);
  border-radius: var(--radius-2, 8px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

:where(.wb-toast.wb-toast-visible) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

:where(.wb-toast.wb-toast-leaving) {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

:where(.wb-toast-content) {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

:where(.wb-toast-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-primary, #6366f1);
}

:where(.wb-toast-success .wb-toast-icon) {
  color: var(--clr-success, #10b981);
}

:where(.wb-toast-msg) {
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}

:where(.wb-toast-actions) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

:where(.wb-toast-action) {
  --btn-padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

:where(.wb-toast-close) {
  background: transparent;
  border: none;
  padding: 0.25rem;
  color: var(--clr-text-muted, #94a3b8);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-1, 4px);
  transition: color 0.15s ease, background-color 0.15s ease;
}

:where(.wb-toast-close:hover) {
  color: var(--clr-text-default, #fff);
  background-color: rgba(255, 255, 255, 0.08);
}

:where(.wb-toast-progress) {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: var(--clr-primary, #6366f1);
  opacity: 0.7;
  transform-origin: left;
  animation: wbToastProgress linear forwards;
}

:where(.wb-toast-success .wb-toast-progress) {
  background-color: var(--clr-success, #10b981);
}

@keyframes wbToastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.pwa-install-btn[hidden] {
  display: none !important;
}

@media (display-mode: standalone),
(display-mode: window-controls-overlay),
(display-mode: fullscreen) {
  .pwa-install-btn {
    display: none !important;
  }
}

/* ==========================================================================
   Discovery Search Field (Artiste / Concert / Lieu)
   ========================================================================== */
.discovery-search-wrapper {
  position: relative;
  width: 100%;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  color: var(--portal-text-muted, #94a3b8);
  pointer-events: none;
  z-index: 2;
}

.discovery-search-input {
  width: 100%;
  padding-left: 2.85rem;
  padding-right: 2.75rem;
  height: 48px;
  background-color: var(--portal-surface, #141c2e);
  border: 1px solid var(--portal-border, #1e293b);
  border-radius: var(--radius-3, 10px);
  color: var(--portal-text, #e2e8f0);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discovery-search-input:focus {
  outline: none;
  border-color: var(--clr-primary, #b1c02c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-primary, #b1c02c) 20%, transparent);
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--portal-text-muted, #94a3b8);
  cursor: pointer;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.search-clear-btn:hover {
  color: var(--portal-light, #ffffff);
  background-color: rgba(255, 255, 255, 0.08);
}

.search-clear-btn[hidden] {
  display: none !important;
}

/* ==========================================================================
   Mobile Bottom Navigation & Drawer Menu (< 992px)
   ========================================================================== */
.portal-bottom-bar .bottom-nav-item.active {
  color: var(--clr-primary, #b1c02c);
}

.portal-bottom-bar .bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: 18%;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}

.portal-mobile-drawer {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100vw;
  width: 100%;
}

.portal-mobile-drawer::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.portal-mobile-drawer .modal-dialog-bottom {
  margin: auto auto 0 auto;
  max-width: 100%;
  width: 100%;
  animation: drawerSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.portal-mobile-drawer .modal-content {
  border-radius: var(--radius-4, 16px) var(--radius-4, 16px) 0 0;
  border-bottom: none;
  background-color: var(--portal-surface, #141c2e);
  max-height: 85vh;
  overflow-y: auto;
}

.portal-mobile-drawer-body {
  padding: 0.75rem 1rem 2rem 1rem;
}

.portal-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-drawer-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-2, 8px);
  color: var(--portal-text, #e2e8f0);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.portal-drawer-item:hover,
.portal-drawer-item:focus {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--portal-light, #ffffff);
}

.portal-drawer-item.active {
  background-color: color-mix(in srgb, var(--clr-primary, #b1c02c) 15%, transparent);
  color: var(--clr-primary, #b1c02c);
  font-weight: 600;
}

.portal-drawer-icon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  flex-shrink: 0;
}

.portal-drawer-text {
  flex: 1;
}

.portal-drawer-divider {
  height: 1px;
  background-color: var(--portal-border, #1e293b);
  margin: 0.6rem 0;
}

/* ==========================================================================
   Page « Mes artistes suivis » & KPI Summary
   ========================================================================== */
.portal-followed-section .followed-summary-bar {
  /* background-color: var(--portal-surface, #141c2e);
  border: 1px solid var(--portal-border, #1e293b); */
}

.followed-summary-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.followed-kpi-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.followed-kpi-item {
  display: flex;
  flex-direction: column;
}

.followed-kpi-num {
  font-family: var(--headings-font, 'MuseoModerno', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-primary, #b1c02c);
  line-height: 1.1;
}

.followed-kpi-label {
  font-size: 0.78rem;
  color: var(--portal-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.followed-summary-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Mixed Feed Cards (Actus & Concerts)
   ========================================================================== */
.feed-event-announcement-card {
  /* border-left: 3px solid var(--clr-success, #10b981); */
}

.feed-agenda-embedded .portal-agenda-title a {
  color: inherit;
  text-decoration: none;
}

.feed-agenda-embedded .portal-agenda-title a:hover {
  color: var(--clr-primary, #b1c02c);
}