.otslr-podcast-hover-cards {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns, 4), 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .otslr-podcast-hover-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .otslr-podcast-hover-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.otslr-podcast-hover-card {
  overflow: hidden;
}

.otslr-podcast-hover-card__inner {
  position: relative;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Date Box */
.otslr-podcast-hover-card__date-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  z-index: 5;
  text-align: center;
  padding: 8px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Default State */
.otslr-podcast-hover-card__default {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.otslr-podcast-hover-card__default-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.otslr-podcast-hover-card__inner:hover .otslr-podcast-hover-card__default-overlay {
  opacity: 0;
}

.otslr-podcast-hover-card__default-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  text-align: center;
  width: 100%;
  padding-bottom: 80px;
}

/* Hover State */
.otslr-podcast-hover-card__hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.otslr-podcast-hover-card__inner:hover .otslr-podcast-hover-card__hover {
  opacity: 1;
}

.otslr-podcast-hover-card__inner:hover .otslr-podcast-hover-card__default {
  opacity: 0;
  z-index: 5;
}

.otslr-podcast-hover-card__hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 0.7);
  z-index: 1;
}

.otslr-podcast-hover-card__hover-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 100%;
}

/* Typography */
.otslr-podcast-hover-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.otslr-podcast-hover-card__author {
  margin: 12px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

/* Play Button */
.otslr-podcast-hover-card__play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  padding: 0 !important;
}

.otslr-podcast-hover-card__play-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.otslr-podcast-hover-card__play-button i {
  margin-left: 2px;
}

.otslr-podcast-hover-card__play-icon {
  width: 40px;
  height: 40px;
}

.otslr-podcast-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.otslr-podcast-modal.is-open {
  display: flex;
}

.otslr-podcast-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.otslr-podcast-modal__content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 32px));
  background: #ffffff;
  color: #111111;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.otslr-podcast-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.otslr-podcast-modal__heading {
  margin: 0 0 6px 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.otslr-podcast-modal__speaker {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.4;
  color: #2f2f2f;
}

.otslr-podcast-modal__player {
  margin-top: 8px;
}

body.otslr-podcast-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .otslr-podcast-hover-cards {
    gap: 16px;
  }

  .otslr-podcast-hover-card__inner {
    height: 250px;
  }

  .otslr-podcast-hover-card__title {
    font-size: 18px;
  }

  .otslr-podcast-hover-card__play-button {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .otslr-podcast-modal__content {
    width: calc(100vw - 20px);
    padding: 20px;
  }

  .otslr-podcast-modal__heading {
    font-size: 18px;
  }
}
