/* Perspekt Media Carousel v2.3.2 - carousel.css */

.pmc-section {
  margin: 2.25rem 0;
  font-family: inherit;
}

.pmc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(22, 46, 88, 0.12);
}

.pmc-section-title {
  font-size: clamp(1.5rem, 1.08rem + 1.25vw, 2.35rem);
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #17345c;
  letter-spacing: 0.035em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.pmc-section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pmc-accent, #e24b4a);
  flex-shrink: 0;
}

.pmc-section-title::after {
  content: "";
  width: 64px;
  height: 4px;
  margin-left: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pmc-accent, #e24b4a) 0%, rgba(226, 75, 74, 0.12) 100%);
  flex-shrink: 0;
}

.pmc-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pmc-pager {
  min-width: 54px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.05);
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pmc-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pmc-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pmc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pmc-btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pmc-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(226, 75, 74, 0.42);
  background: #fff;
  color: var(--pmc-accent, #e24b4a);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.pmc-btn:disabled {
  opacity: 0.42;
  cursor: default;
  box-shadow: none;
}

.pmc-outer {
  overflow: hidden;
}

.pmc-track {
  display: flex;
  transition: transform 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.pmc-page {
  flex: 0 0 100%;
  min-width: 0;
}

.pmc-page--solo .pmc-hero {
  border-radius: 14px;
}

.pmc-hero {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  text-decoration: none;
  background: #111;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.pmc-hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease, opacity 0.18s ease;
}

.pmc-hero:hover .pmc-hero-img {
  transform: scale(1.03);
}

.pmc-hero-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a2a;
}

.pmc-hero-img.is-broken,
.pmc-item-thumb img.is-broken {
  opacity: 0;
}

.pmc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.08) 56%);
  pointer-events: none;
}

.pmc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.pmc-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-top: solid transparent;
  border-bottom: solid transparent;
  border-left: solid #fff;
}

.pmc-play--lg {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.pmc-play--lg::after {
  border-top-width: 9px;
  border-bottom-width: 9px;
  border-left-width: 14px;
}

.pmc-play--sm {
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.52);
}

.pmc-play--sm::after {
  border-top-width: 4px;
  border-bottom-width: 4px;
  border-left-width: 7px;
}

.pmc-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pmc-accent, #e24b4a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 6px;
  pointer-events: none;
}

.pmc-plat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
}

.pmc-plat--hero {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.48);
  padding: 4px 8px;
}

.pmc-plat--list {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.58);
  padding: 2px 6px;
  font-size: 8px;
}

.pmc-hero-text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 16px 16px;
  pointer-events: none;
}

.pmc-hero-eyebrow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.66);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 5px;
}

.pmc-hero-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.33;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pmc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e9edf2;
  border-top: none;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.pmc-list li {
  border-bottom: 1px solid #edf1f5;
}

.pmc-list li:last-child {
  border-bottom: none;
}

.pmc-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: background 0.18s ease;
}

.pmc-item:hover {
  background: #fafbfd;
}

.pmc-item-thumb {
  flex: 0 0 84px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a2a;
  position: relative;
}

.pmc-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.18s ease;
}

.pmc-item-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #1a1a2a;
}

.pmc-item-body {
  flex: 1;
  min-width: 0;
}

.pmc-item-title {
  font-size: 14px;
  font-weight: 650;
  color: #111827;
  line-height: 1.38;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pmc-item-meta {
  font-size: 11px;
  color: #98a2b3;
  margin: 0;
}

.pmc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.pmc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #d4d8de;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pmc-dot.active {
  background: var(--pmc-accent, #e24b4a);
  width: 28px;
}

.pmc-no-posts {
  color: #888;
  font-style: italic;
}

@media (max-width: 639px) {
  .pmc-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0.8rem;
  }

  .pmc-controls {
    width: 100%;
    justify-content: space-between;
  }

  .pmc-nav {
    margin-left: auto;
  }

  .pmc-section-title {
    gap: 10px;
    letter-spacing: 0.025em;
  }

  .pmc-section-title::after {
    width: 38px;
    height: 3px;
    margin-left: 2px;
  }
}

@media (min-width: 640px) {
  .pmc-hero-title {
    font-size: 20px;
  }

  .pmc-item-thumb {
    flex: 0 0 96px;
    height: 64px;
  }

  .pmc-item-title {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .pmc-hero-title {
    font-size: 24px;
  }

  .pmc-item {
    gap: 14px;
    padding: 14px 16px;
  }

  .pmc-item-thumb {
    flex: 0 0 112px;
    height: 72px;
  }
}

@media (min-width: 1024px) {
  .pmc-page {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.95fr);
    gap: 20px;
    align-items: start;
  }

  .pmc-page--solo {
    grid-template-columns: minmax(0, 1fr);
  }

  .pmc-page--solo .pmc-hero {
    border-radius: 18px;
  }

  .pmc-hero {
    min-height: 500px;
    aspect-ratio: auto;
    border-radius: 18px;
  }

  .pmc-hero-text {
    padding: 18px 22px 20px;
  }

  .pmc-hero-title {
    font-size: 30px;
    -webkit-line-clamp: 2;
  }

  .pmc-list {
    border-top: 1px solid #e9edf2;
    border-radius: 18px;
  }

  .pmc-item {
    gap: 16px;
    padding: 16px 18px;
    align-items: flex-start;
  }

  .pmc-item-thumb {
    flex: 0 0 132px;
    height: 84px;
    border-radius: 10px;
  }

  .pmc-item-title {
    font-size: 16px;
    -webkit-line-clamp: 3;
  }

  .pmc-item-meta {
    font-size: 12px;
  }
}

@media (min-width: 1280px) {
  .pmc-page {
    grid-template-columns: minmax(0, 1.72fr) minmax(360px, 0.98fr);
    gap: 24px;
  }

  .pmc-hero {
    min-height: 540px;
  }

  .pmc-hero-title {
    font-size: 34px;
  }

  .pmc-item-thumb {
    flex: 0 0 148px;
    height: 94px;
  }

  .pmc-item-title {
    font-size: 17px;
  }
}
