.gbme-carousel,
.gbme-carousel * { box-sizing: border-box; }

.gbme-carousel {
  --gbme-per-view: 7;
  --gbme-gap: 14px;
  --gbme-presse: #e05252;
  --gbme-radio: #3d78d8;
  --gbme-podcast: #8b62d6;
  --gbme-interview: #dd8a32;
  --gbme-video: #d83846;
  --gbme-dark: #062c3d;
  position: relative;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: "Figtree", Arial, sans-serif;
}

.gbme-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.gbme-filter {
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 44, 61, .06);
  color: var(--gbme-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.gbme-filter:hover { transform: translateY(-1px); }
.gbme-filter.is-active { background: var(--gbme-dark); color: #fff; }
.gbme-filter-presse:not(.is-active):hover { color: var(--gbme-presse); }
.gbme-filter-radio:not(.is-active):hover { color: var(--gbme-radio); }
.gbme-filter-podcast:not(.is-active):hover { color: var(--gbme-podcast); }
.gbme-filter-interview:not(.is-active):hover { color: var(--gbme-interview); }
.gbme-filter-video:not(.is-active):hover { color: var(--gbme-video); }

.gbme-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 5px 2px 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-y pinch-zoom;
}
.gbme-viewport::-webkit-scrollbar { display: none; }
.gbme-viewport:focus-visible { outline: 3px solid rgba(6,44,61,.22); outline-offset: 4px; border-radius: 24px; }

.gbme-track { display: flex; align-items: stretch; gap: var(--gbme-gap); min-width: min-content; }

.gbme-card {
  --gbme-topic: var(--gbme-presse);
  position: relative;
  flex: 0 0 calc((100% - (var(--gbme-gap) * (var(--gbme-per-view) - 1))) / var(--gbme-per-view));
  min-width: 0;
  aspect-ratio: 9 / 15;
  overflow: hidden;
  border: 0 !important;
  border-radius: 30px;
  background: var(--gbme-dark);
  scroll-snap-align: start;
  box-shadow: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.gbme-card[hidden] { display: none !important; }
.gbme-type-presse { --gbme-topic: var(--gbme-presse); }
.gbme-type-radio { --gbme-topic: var(--gbme-radio); }
.gbme-type-podcast { --gbme-topic: var(--gbme-podcast); }
.gbme-type-interview { --gbme-topic: var(--gbme-interview); }
.gbme-type-video { --gbme-topic: var(--gbme-video); }
.gbme-card:hover,
.gbme-card:focus-within { box-shadow: 0 12px 28px rgba(3,27,38,.13); }

.gbme-card-action {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.gbme-card-action::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(2,18,25,.04) 0%, rgba(2,18,25,.01) 30%, rgba(2,18,25,.48) 61%, rgba(2,18,25,.96) 100%);
  content: "";
  pointer-events: none;
}

.gbme-media,
.gbme-image,
.gbme-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.gbme-media { z-index: 1; background: var(--gbme-dark); }
.gbme-image { object-fit: cover; transform: scale(1.001); transition: transform .5s cubic-bezier(.22,.75,.24,1); }
.gbme-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, var(--gbme-topic), var(--gbme-dark) 78%);
}
.gbme-logo-bg {
  display: block;
  width: min(74%, 180px);
  max-height: 30%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.14));
  opacity: .94;
}

.gbme-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--gbme-topic);
  color: #fff;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
}

.gbme-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: 18px 15px 16px;
  pointer-events: none;
}
.gbme-date { margin-bottom: 7px; color: rgba(255,255,255,.82); font-size: 9px; line-height: 1.2; }
.gbme-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 680;
  letter-spacing: -.025em;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.gbme-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 11px; }
.gbme-source-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gbme-read-more { flex: 0 0 auto; color: var(--gbme-topic); font-size: 9px; font-weight: 760; line-height: 1.15; text-align: right; }

.gbme-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  background: rgba(3,27,38,.74);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  transform: translate(-50%,-50%);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.gbme-card:hover .gbme-play-icon,
.gbme-card:focus-within .gbme-play-icon { background: var(--gbme-video); transform: translate(-50%,-50%) scale(1.04); }
.gbme-play-icon svg { width: 23px; height: 23px; fill: currentColor; }

.gbme-arrow {
  position: absolute;
  top: calc(50% + 10px);
  z-index: 8;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gbme-dark);
  color: #fff;
  box-shadow: 0 9px 24px rgba(3,27,38,.23);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.gbme-arrow:hover { transform: translateY(-50%) scale(1.05); }
.gbme-prev { left: -18px; }
.gbme-next { right: -18px; }
.gbme-arrow[disabled] { opacity: .28; cursor: default; }
.gbme-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.gbme-load-more-wrap { display: flex; justify-content: center; margin-top: 8px; }
.gbme-load-more {
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gbme-dark);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.gbme-load-more:hover { transform: translateY(-1px); }
.gbme-load-more[hidden] { display: none !important; }
.gbme-filter:focus-visible,
.gbme-arrow:focus-visible,
.gbme-load-more:focus-visible,
.gbme-modal-close:focus-visible { outline: 3px solid rgba(6,44,61,.3); outline-offset: 3px; }

.gbme-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap; }
.gbme-modal[hidden] { display: none !important; }
.gbme-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 24px; }
.gbme-modal-backdrop { position: absolute; inset: 0; background: rgba(2,18,25,.84); backdrop-filter: blur(7px); }
.gbme-modal-dialog { position: relative; z-index: 1; width: min(1100px,94vw); }
.gbme-modal-close { position: absolute; top: -15px; right: -15px; z-index: 2; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--gbme-dark); font: inherit; font-size: 27px; line-height: 1; cursor: pointer; }
.gbme-player { width: 100%; overflow: hidden; border-radius: 20px; background: #000; box-shadow: 0 24px 70px rgba(0,0,0,.45); aspect-ratio: 16/9; }
.gbme-player iframe,
.gbme-player video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
body.gbme-modal-open { overflow: hidden; }

@media (max-width: 767px) {
  .gbme-filters { flex-wrap: nowrap; margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .gbme-filters::-webkit-scrollbar { display: none; }
  .gbme-filter { flex: 0 0 auto; }
  .gbme-prev { left: 4px; }
  .gbme-next { right: 4px; }
  .gbme-arrow { width: 38px; height: 38px; opacity: .92; }
  .gbme-modal { padding: 14px; }
  .gbme-modal-dialog { width: 100%; }
  .gbme-modal-close { top: -12px; right: -5px; }
}

@media (prefers-reduced-motion: reduce) {
  .gbme-viewport { scroll-behavior: auto; }
  .gbme-card,
  .gbme-image,
  .gbme-play-icon,
  .gbme-filter,
  .gbme-arrow,
  .gbme-load-more { transition: none !important; }
}
