/* ==================================================
   BELLA WILDHERZ – GEMEINSAME MEDIEN-ICONS
   Podcast · Lied · Ellys Tierfakten · Naturfunke
================================================== */

.format-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.format-icon {
  position: relative;
  min-width: 0;
  min-height: 82px;
  padding: 9px 4px 8px;
  border: 1.5px solid rgba(59, 94, 50, .11);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  text-decoration: none;
  color: #46533d;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.format-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 94, 50, .22);
  box-shadow: 0 8px 18px rgba(26, 36, 22, .08);
  color: var(--forest);
}

.format-icon-img {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 43px;
}

.format-icon-img img {
  display: block;
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.format-icon-label {
  width: 100%;
  min-width: 0;
  font-size: .67rem;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.format-podcast {
  background: #fff0ed;
  border-color: rgba(184, 74, 53, .16);
}

.format-lied {
  background: #f5f1ff;
  border-color: rgba(104, 79, 153, .16);
}

.format-tierfakten {
  background: #eef6f3;
  border-color: rgba(55, 112, 93, .18);
}

.format-naturfunke {
  background: #fff7dc;
  border-color: rgba(170, 121, 28, .18);
}

.format-icon.is-unavailable {
  opacity: .58;
  filter: saturate(.55);
  cursor: default;
  box-shadow: none;
}

.format-icon.is-unavailable:hover {
  transform: none;
  color: #46533d;
  border-color: rgba(59, 94, 50, .11);
  box-shadow: none;
}

.format-icon-state {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  color: #65705f;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 360px) {
  .format-icons {
    gap: 5px;
  }

  .format-icon {
    min-height: 76px;
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 14px;
  }

  .format-icon-img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .format-icon-img img {
    width: 34px;
    height: 34px;
  }

  .format-icon-label {
    font-size: .6rem;
  }
}
