.yl-podcast-widget {
  width: 100%;
}

.yl-podcast-featured {
  margin-bottom: 40px;
}

.featured-episode-container {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.featured-episode-image {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.featured-episode-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 0 0 60px 0;
}

.featured-episode-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.featured-episode-content .episode-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
  flex-shrink: 0;
}

.featured-episode-content .episode-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.3;
  flex-shrink: 0;
}

.featured-episode-content .episode-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  max-height: calc(1.6em * 9);
  word-wrap: break-word;
}

.episode-listen-on {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

a.view-episodes-btn {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.2s ease;
  background: #85a866;
}

a.view-episodes-btn:hover {
  color: #6b8e6b;
  text-decoration: underline;
}

.or-listen-text {
  font-size: 14px;
  color: #666;
  margin: 0 4px;
}

.episode-listen-on span:not(.or-listen-text) {
  font-size: 14px;
  color: #666;
}

.listen-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #010101;
  transition: transform 0.2s;
}

.listen-link:hover {
  transform: scale(1.1);
}

.listen-link i {
  font-size: 32px;
}

.yl-podcast-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.yl-podcast-episode-card {
  background-color: #f2f6ef;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 790px;
  min-height: 200px;
  border-bottom-right-radius: 40px;
  border: 2px solid #cadabe;
  position: relative;
}

.yl-podcast-episode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.episode-card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  height: 100%;
  margin-bottom: 24px;
}

.episode-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.episode-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.episode-meta .episode-number {
  font-size: 16px;
  font-weight: 600;
  color: #5b7c44;
  display: block;
}

.episode-date-duration {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.episode-date-duration .episode-date::after {
  content: "-";
  margin-left: 4px;
}

.episode-card-content .episode-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #000;
}

.episode-card-content .episode-description {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.episode-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.episode-play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  color: #85a866;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}

.episode-play-button:hover {
  transform: scale(1.1);
  background-color: #85a866;
  color: white;
}

.episode-play-button i {
  font-size: 24px;
}

.episode-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  gap: 12px;
}

.player-play-pause-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #fff;
  color: #1db954;
  border: 2px solid #cadabe;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.player-play-pause-large:hover {
  transform: scale(1.05);
  border-color: #1db954;
}

.player-play-pause-large i {
  font-size: 28px;
}

.player-controls-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: flex-start;
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.player-progress-row .current-time {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 45px;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background-color: #cadabe;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background-color: #1db954;
  width: 0%;
  transition: width 0.1s;
  border-radius: 3px;
}

.player-time-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

.player-time-volume .total-time {
  font-weight: 500;
}

.player-rewind-forward {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.player-rewind,
.player-forward {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #666;
  border: 2px solid #cadabe;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
  position: relative;
}

.player-rewind:hover,
.player-forward:hover {
  border-color: #1db954;
  color: #1db954;
}

.player-rewind i,
.player-forward i {
  font-size: 10px;
  line-height: 1;
}

.player-rewind span,
.player-forward span {
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  margin-top: 1px;
}

.player-volume-toggle {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
}

.player-volume-toggle:hover {
  color: #1db954;
}

.player-volume-toggle i {
  font-size: 16px;
}

.yl-podcast-error,
.yl-podcast-empty {
  padding: 20px;
  text-align: center;
  background-color: #f8f8f8;
  border-radius: 8px;
  color: #666;
}

/* Floating Player */
.yl-podcast-floating-player {
  position: fixed;
  bottom: 0px;
  right: 0px;
  max-width: calc(100vw - 40px);
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: 790px;
  height: 160px;
  opacity: 1;
  padding: 12px 24px;
}

.yl-podcast-floating-player.hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.floating-player-content {
  display: flex;
  align-items: stretch;
  gap: 16px;
  height: 100%;
  position: relative;
}

.floating-player-thumbnail {
  width: 120px;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  display: none;
}

.floating-player-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-player-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.floating-player-header {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.floating-player-share,
.floating-player-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  color: #666;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  padding: 0;
}

.floating-player-share:hover,
.floating-player-close:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.floating-player-share i,
.floating-player-close i {
  font-size: 12px;
}

.floating-player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 80px;
}

.floating-player-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.floating-player-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-player-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.floating-current-time {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 45px;
}

.floating-progress-bar {
  flex: 1;
  height: 6px;
  background-color: #cadabe;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.floating-progress-fill {
  height: 100%;
  background-color: #1db954;
  width: 0%;
  transition: width 0.1s;
  border-radius: 3px;
}

.floating-player-time-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}

.floating-player-time-volume .floating-total-time {
  font-weight: 500;
}

.floating-volume-toggle {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.floating-volume-toggle:hover {
  color: #1db954;
}

.floating-volume-toggle i {
  font-size: 16px;
}

.floating-player-rewind-forward {
  display: flex;
  gap: 8px;
  align-items: center;
}

.floating-rewind,
.floating-forward {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #666;
  border: 2px solid #cadabe;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
}

.floating-rewind:hover,
.floating-forward:hover {
  border-color: #1db954;
  color: #1db954;
}

.floating-rewind i,
.floating-forward i {
  font-size: 10px;
  line-height: 1;
}

.floating-rewind span,
.floating-forward span {
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  margin-top: 1px;
}

.floating-play-pause-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #85a866;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s;
  z-index: 5;
}

.floating-play-pause-button:hover {
  background-color: #cadabe;
  color: #85a866;
}

.floating-play-pause-button i {
  font-size: 28px;
}

@media (max-width: 1024px) {
  .yl-podcast-floating-player {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    max-width: 790px;
  }
}

@media (max-width: 768px) {
  .featured-episode-container {
    flex-direction: column;
  }

  .featured-episode-image img {
    max-width: 100%;
  }

  .yl-podcast-episodes-list {
    align-items: stretch;
    gap: 16px;
  }

  .yl-podcast-episode-card {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    max-height: none;
    min-height: auto;
    border-bottom-right-radius: 20px;
  }

  .episode-card-content {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
  }

  .episode-info {
    width: 100%;
  }

  .episode-meta {
    margin-bottom: 8px;
  }

  .episode-date-duration {
    font-size: 13px;
    margin-bottom: 0;
  }

  .episode-card-content .episode-title {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .episode-card-content .episode-description {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
  }

  .episode-controls {
    width: 100%;
    justify-content: flex-end;
    margin-top: 12px;
    position: absolute;
    top: 0;
    right: 16px;
  }

  .episode-play-button {
    width: 40px;
    height: 40px;
  }

  .episode-play-button i {
    font-size: 20px;
  }

  .episode-player {
    max-width: 100%;
    width: 100%;
    margin-top: 12px;
  }

  .floating-player-thumbnail {
    display: none !important;
  }

  .yl-podcast-floating-player {
    width: 100%;
    right: 0;
    left: 0;
    height: auto;
    min-height: 120px;
    padding: 12px 16px;
  }

  .floating-player-content {
    gap: 12px;
  }

  .floating-player-thumbnail {
    width: 80px;
  }

  .floating-player-info {
    padding-right: 60px;
  }

  .floating-player-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .floating-player-progress-row {
    gap: 6px;
  }

  .floating-current-time {
    font-size: 12px;
    min-width: 40px;
  }

  .floating-player-time-volume {
    font-size: 12px;
    gap: 6px;
  }

  .floating-progress-bar {
    height: 4px;
  }

  .floating-play-pause-button {
    width: 40px;
    height: 40px;
    right: 0;
    top: 60%;
  }

  .floating-play-pause-button i {
    font-size: 24px;
  }

  .floating-rewind,
  .floating-forward {
    width: 28px;
    height: 28px;
  }

  .floating-rewind i,
  .floating-forward i {
    font-size: 9px;
  }

  .floating-rewind span,
  .floating-forward span {
    font-size: 7px;
  }

  .floating-player-header {
    gap: 6px;
  }

  .floating-player-share,
  .floating-player-close {
    width: 20px;
    height: 20px;
  }

  .floating-player-share i,
  .floating-player-close i {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .yl-podcast-floating-player {
    padding: 10px 12px;
    min-height: 100px;
  }

  .floating-player-content {
    gap: 8px;
  }

  .floating-player-thumbnail {
    width: 60px;
  }

  .floating-player-info {
    padding-right: 50px;
  }

  .floating-player-title {
    font-size: 14px;
    margin-bottom: 6px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .floating-player-controls {
    gap: 6px;
  }

  .floating-current-time {
    font-size: 11px;
    min-width: 35px;
  }

  .floating-player-time-volume {
    font-size: 11px;
  }

  .floating-play-pause-button {
    width: 40px;
    height: 40px;
  }

  .floating-play-pause-button i {
    font-size: 20px;
  }

  .floating-rewind,
  .floating-forward {
    width: 24px;
    height: 24px;
  }

  .floating-volume-toggle i {
    font-size: 14px;
  }
}
