/**
 * Public styles for the OpenAI Text-to-Speech plugin.
 */
.wp-openai-tts-player {
  margin-bottom: 10px;
  background-color: #e53935;
  color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, .3);
  min-width: 0;
}

.wp-openai-tts-player-inner {
  padding: 16px 12px 8px;
  min-width: 0;
}

.wp-openai-tts-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.wp-openai-tts-play-button {
  background-color: white;
  color: #e53935;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.wp-openai-tts-play-button:hover {
  background-color: #f5f5f5;
}

.wp-openai-tts-play-icon {
  width: 30px;
  height: 30px;
  margin-left: 5px;
}

.wp-openai-tts-pause-icon {
  width: 40px;
  height: 40px;
  margin-left: 0px;
}

.wp-openai-tts-pause-icon {
  display: none;
}

.wp-openai-tts-playing .wp-openai-tts-play-icon {
  display: none;
}

.wp-openai-tts-playing .wp-openai-tts-pause-icon {
  display: block;
}

.wp-openai-tts-progress-container {
  flex-grow: 1;
  position: relative; /* container for spectrum overlay */
  padding: 0;
  margin: 0;
  min-width: 0;
}

.wp-openai-tts-progress-container,
.wp-openai-tts-info,
.wp-openai-tts-title-container {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.wp-openai-tts-spectrum {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 30px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 4px;
  z-index: 5;
}

.wp-openai-tts-playing .wp-openai-tts-spectrum {
  opacity: 0.7;
}

.wp-openai-tts-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.wp-openai-tts-current-time,
.wp-openai-tts-duration {
  font-size: 12px;
  font-weight: 500;
}

.wp-openai-tts-title-container {
  white-space: nowrap;
  overflow: hidden;
  padding: 0 15px;
  flex-grow: 1;
  margin-left: 8px;
  margin-right: 8px;
  min-width: 0;
}

.wp-openai-tts-title-wrapper {
  display: inline-block;
  white-space: nowrap;
  will-change: transform; /* Hint GPU for smooth animations */
  transform: translateZ(0); /* Enable hardware acceleration */
  min-width: 0;
}

.wp-openai-tts-marquee-content {
  display: inline-block;
  flex-shrink: 0;
  /* No padding-right here, margin is applied to author */
  min-width: 0;
}

.wp-openai-tts-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: white;
  display: inline-block;
  white-space: nowrap;
  min-width: 0;
}

.wp-openai-tts-author {
  opacity: 0.8;
  font-size: 15px;
  font-weight: 600;
  margin-left: 5px;
  margin-right: 50px;
  display: inline-block;
  white-space: nowrap;
  min-width: 0;
}

.wp-openai-tts-title-container:hover .wp-openai-tts-title-wrapper {
  /* animation-play-state: paused; */
}

.wp-openai-tts-progress {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wp-openai-tts-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.wp-openai-tts-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.wp-openai-tts-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  min-width: 0;
  flex-wrap:wrap;
}

.wp-openai-tts-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
} 

.wp-openai-tts-logo{
  max-width: 24px;
  border-radius: 5px;
  filter: invert(1) drop-shadow(3px 3px 3px rgb(0 0 0 / 20%));
  margin-right: 10px;
}

#content-container .wp-openai-tts-player .wp-openai-tts-player-inner .wp-openai-tts-actions .wp-openai-tts-logo-container p {
  margin-left: 5px;
  font-family: 'Georgia';
  padding-bottom: 0px!important;
  font-size: 16px!important;
}

.wp-openai-tts-playback-controls {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.wp-openai-tts-restart,
.wp-openai-tts-back,
.wp-openai-tts-forward,
.wp-openai-tts-playback-rate {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  position: relative;
}

.wp-openai-tts-restart svg,
.wp-openai-tts-back svg,
.wp-openai-tts-forward svg {
  width: 24px;
  height: 24px;
  transition: color 0.2s;
}

.wp-openai-tts-restart:hover,
.wp-openai-tts-back:hover,
.wp-openai-tts-forward:hover,
.wp-openai-tts-playback-rate:hover {
  color: white;
}

/* Tooltip styles */
.wp-openai-tts-restart:hover::after,
.wp-openai-tts-back:hover::after,
.wp-openai-tts-forward:hover::after,
.wp-openai-tts-playback-rate:hover::after,
.wp-openai-tts-download:hover::after {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 5px;
}

/* Add arrow to tooltip */
.wp-openai-tts-restart:hover::before,
.wp-openai-tts-back:hover::before,
.wp-openai-tts-forward:hover::before,
.wp-openai-tts-playback-rate:hover::before,
.wp-openai-tts-download:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
  margin-bottom: 0px;
}

.wp-openai-tts-restart svg {
  width: 24px;
  height: 24px;
}

#post-content .wp-openai-tts-actions a.wp-openai-tts-download {
  color: white !important;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  margin-top: 2px;
  position: relative;
}

.wp-openai-tts-download:hover {
  color: white;
  text-decoration: underline;
}

.wp-openai-tts-audio {
  display: none;
}

/* Screen reader text */
.screen-reader-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  /* .wp-openai-tts-actions {
    gap: 2%;
  } */
  .wp-openai-tts-download {
    /* order: 3;
    flex-basis: 49%;
    text-align: center; */
    display: none;
  }
  /* .wp-openai-tts-logo-container {
    order: 4;
    flex-basis: 49%;
  } */
}

@media (max-width: 768px) {
  .wp-openai-tts-actions {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .wp-openai-tts-playback-controls {
    gap: unset;
    width: unset;
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) {
  .wp-openai-tts-player {
    margin-top: 10px;
  }
}

/* Playlist Styles */
.wp-openai-tts-playlist-container {
  background: #ffffff;
  color: #333;
  padding: 0;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 1200px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

/* Main player section (when audio is playing) */
.wp-openai-tts-playlist-main-player {
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f0;
}

.wp-openai-tts-playlist-main-player .wp-openai-tts-player {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Playlist header */
.wp-openai-tts-playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.wp-openai-tts-playlist-header-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wp-openai-tts-playlist-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.wp-openai-tts-playlist-count {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  margin-left: auto;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* RSS Feed Link */
.wp-openai-tts-rss-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wp-openai-tts-rss-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.wp-openai-tts-rss-link svg {
  width: 20px;
  height: 20px;
}

/* Playlist items container */
.wp-openai-tts-playlist {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 440px;
  overflow-y: auto;
  background: white;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Individual playlist item */
.wp-openai-tts-playlist-item {
  background-color: white;
  padding: 1rem 3rem 1rem 2rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}

.wp-openai-tts-playlist-item:hover {
  background-color: #fef8f8;
  border-left: 3px solid #e53935;
  padding-left: calc(2rem + 2px);
}

.wp-openai-tts-playlist-item.active {
  background-color: #fff5f5;
  border-left: 3px solid #e53935;
  padding-left: calc(2rem + 2px);
}

/* Play icon */
.wp-openai-tts-playlist-item-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fef4f4;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.wp-openai-tts-playlist-item:hover .wp-openai-tts-playlist-item-image {
  background-color: #e53935;
}

.wp-openai-tts-playlist-item-image .wp-openai-tts-play-icon {
  width: 14px;
  height: 14px;
  color: #e53935;
  transition: all 0.2s ease;
  opacity: 1;
}

/* Now Playing indicator */
.wp-openai-tts-now-playing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Sound bars animation */
.wp-openai-tts-sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.wp-openai-tts-sound-bars span {
  width: 3px;
  height: 100%;
  background-color: #e53935;
  border-radius: 1px;
  animation: soundBar 0.8s ease-in-out infinite;
}

.wp-openai-tts-sound-bars span:nth-child(1) {
  animation-delay: 0s;
}

.wp-openai-tts-sound-bars span:nth-child(2) {
  animation-delay: 0.2s;
}

.wp-openai-tts-sound-bars span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes soundBar {
  0%, 100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Active/playing state */
.wp-openai-tts-playlist-item.playing .wp-openai-tts-play-icon {
  opacity: 0;
}

.wp-openai-tts-playlist-item.playing .wp-openai-tts-now-playing {
  opacity: 1;
}

.wp-openai-tts-playlist-item.playing .wp-openai-tts-playlist-item-image {
  background-color: #e53935;
}

.wp-openai-tts-playlist-item.playing .wp-openai-tts-sound-bars span {
  background-color: white;
}

.wp-openai-tts-playlist-item:hover .wp-openai-tts-playlist-item-image .wp-openai-tts-play-icon {
  color: white;
}

/* Item info */
.wp-openai-tts-playlist-item-info {
  flex: 1;
  min-width: 0;
}

.wp-openai-tts-playlist-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  color: #333;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Now Playing label */
.wp-openai-tts-now-playing-label {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e53935;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-right: 0;
  padding: 4px 12px;
  background-color: #fef4f4;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.2;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.wp-openai-tts-playlist-item.playing .wp-openai-tts-now-playing-label {
  display: inline-block;
  animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), gentlePulse 2s ease-in-out infinite;
}

/* Subtle shimmer effect for Now Playing label */
.wp-openai-tts-now-playing-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.6) translateX(-10px);
  }
  50% {
    transform: scale(1.1) translateX(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 200%;
  }
}

@keyframes gentlePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}


.wp-openai-tts-playlist-item-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animate the title container */
.wp-openai-tts-playlist-item-title {
  display: flex;
  align-items: center;
  gap: 0;
  transition: gap 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wp-openai-tts-playlist-item.playing .wp-openai-tts-playlist-item-title {
  gap: 0.5rem;
}

.wp-openai-tts-playlist-item:hover .wp-openai-tts-playlist-item-title {
  color: #e53935;
}

.wp-openai-tts-playlist-item-meta {
  font-size: 0.8rem;
  color: #666;
  font-weight: 400;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.wp-openai-tts-playlist-item-author {
  color: #666;
}

.wp-openai-tts-playlist-item-date {
  color: #999;
}

/* Actions container */
.wp-openai-tts-playlist-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Duration - now inline with other meta */
.wp-openai-tts-playlist-item-duration {
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
  display: inline;
}

@media (max-width: 480px) {
  .wp-openai-tts-playlist-item-duration {
    font-size: 0.65rem;
  }
}

/* Edit Audio link (admin only) - absolute positioned */
.wp-openai-tts-edit-audio-absolute {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #999;
  background-color: rgba(0, 0, 0, 0.02);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  opacity: 0;
  z-index: 10;
}

.wp-openai-tts-playlist-item:hover .wp-openai-tts-edit-audio-absolute {
  opacity: 1;
}

.wp-openai-tts-edit-audio-absolute:hover {
  background-color: #f5f5f5;
  color: #333;
  transform: scale(1.1);
}

.wp-openai-tts-edit-audio-absolute svg {
  width: 14px;
  height: 14px;
}

/* Read Article link */
.wp-openai-tts-read-article {
  font-size: 0.8rem;
  color: #e53935;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wp-openai-tts-read-article:hover {
  background-color: #fef4f4;
  border-color: #e53935;
  text-decoration: none;
}

.wp-openai-tts-read-article svg {
  flex-shrink: 0;
}

/* Loading state */
.wp-openai-tts-playlist-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

.wp-openai-tts-playlist-item.loading .wp-openai-tts-playlist-item-image {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* No playlist message */
.wp-openai-tts-no-playlist {
  padding: 3rem 2rem;
  background-color: #fafafa;
  color: #666;
  font-weight: 400;
  text-align: center;
}

/* Custom scrollbar for playlist */
.wp-openai-tts-playlist::-webkit-scrollbar {
  width: 6px;
}

.wp-openai-tts-playlist::-webkit-scrollbar-track {
  background: #f8f8f8;
}

.wp-openai-tts-playlist::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}

.wp-openai-tts-playlist::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

/* Loading more indicator */
.wp-openai-tts-loading-more {
  text-align: center;
  padding: 1rem 2rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.wp-openai-tts-load-more-btn {
  background: white;
  color: #e53935;
  border: 1px solid #e53935;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-openai-tts-load-more-btn:hover {
  background: #e53935;
  color: white;
}

.wp-openai-tts-loading-more.loading {
  opacity: 0.6;
}

/* Responsive design */
@media (max-width: 992px) {
  .wp-openai-tts-playlist-header {
    padding: 1.25rem 1.5rem;
  }
  
  .wp-openai-tts-playlist-title {
    font-size: 1.15rem;
  }
  
  .wp-openai-tts-playlist-item {
    padding: 0.9rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .wp-openai-tts-playlist-container {
    margin: 1rem 0;
  }
  
  .wp-openai-tts-playlist-header {
    padding: 1rem;
  }
  
  .wp-openai-tts-playlist-header-left {
    min-width: 0;
    flex-wrap: wrap;
  }
  
  .wp-openai-tts-playlist-item {
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
  }

  .wp-openai-tts-playlist-title {
    font-size: 1.1rem;
  }

  .wp-openai-tts-playlist-count {
    font-size: 0.8rem;
  }

  .wp-openai-tts-playlist-item-title {
    font-size: 0.9rem;
  }
  
  .wp-openai-tts-playlist-item-info {
    flex: 1 1 100%;
    /* margin-bottom: 0.5rem; */
  }
  
  .wp-openai-tts-playlist-item-actions {
    flex: 1 1 auto;
    justify-content: flex-start;
    margin-left: 48px;
  }
  
  .wp-openai-tts-rss-link {
    width: 32px;
    height: 32px;
  }
  
  .wp-openai-tts-rss-link svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .wp-openai-tts-playlist-header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .wp-openai-tts-playlist-header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
  }
  
  .wp-openai-tts-playlist-title {
    font-size: 0.9rem;
    line-height: 1.2;
    margin: 0;
  }
  
  .wp-openai-tts-playlist-count {
    font-size: 0.7rem;
    margin-left: 0;
    margin-right: 0;
  }
  
  .wp-openai-tts-rss-link {
    flex: 0 0 auto;
  }

  .wp-openai-tts-playlist-item {
    padding: 0.75rem;
    flex-wrap: wrap;
    position: relative;
  }
  
  .wp-openai-tts-playlist-item.playing {
    padding-top: 1.75rem;
  }
  
  .wp-openai-tts-playlist-item-image {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
  }
  
  .wp-openai-tts-playlist-item-info {
    flex: 1 1 calc(100% - 40px);
    margin-bottom: 0.15rem;
  }
  
  .wp-openai-tts-playlist-item-title {
    font-size: 0.85rem;
    margin-bottom: 0.05rem;
    flex-wrap: wrap;
  }
  
  .wp-openai-tts-playlist-item-title-text {
    white-space: normal;
    word-break: break-word;
  }
  
  .wp-openai-tts-playlist-item-meta {
    font-size: 0.65rem;
    flex-wrap: wrap;
    line-height: 1.2;
    gap: 0;
  }
  
  /* Mobile-specific Now Playing styling */
  .wp-openai-tts-playlist-item.playing .wp-openai-tts-now-playing-label {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    padding: 2px 10px;
    margin: 0;
  }

  .wp-openai-tts-playlist-item-actions {
    gap: 0.4rem;
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    padding-left: calc(24px + 0.5rem);
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
  }
  
  .wp-openai-tts-read-article {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .wp-openai-tts-edit-audio-absolute {
    width: 24px;
    height: 24px;
    opacity: 1;
  }
  
  .wp-openai-tts-edit-audio-absolute svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 360px) {
  .wp-openai-tts-playlist-container {
    margin: 0.5rem 0;
  }
  
  .wp-openai-tts-playlist-header {
    padding: 0.75rem;
  }
  
  .wp-openai-tts-playlist-item {
    padding: 0.6rem;
  }
  
  .wp-openai-tts-playlist-title {
    font-size: 0.9rem;
  }
  
  .wp-openai-tts-playlist-item-title {
    font-size: 0.8rem;
  }
  
  .wp-openai-tts-playlist-item-meta {
    font-size: 0.65rem;
  }
  
  .wp-openai-tts-read-article {
    font-size: 0.7rem;
  }
}

/* Add subtle item animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wp-openai-tts-playlist-item {
  animation: slideIn 0.3s ease-out;
  animation-fill-mode: backwards;
}

.wp-openai-tts-playlist-item:nth-child(1) { animation-delay: 0.05s; }
.wp-openai-tts-playlist-item:nth-child(2) { animation-delay: 0.1s; }
.wp-openai-tts-playlist-item:nth-child(3) { animation-delay: 0.15s; }
.wp-openai-tts-playlist-item:nth-child(4) { animation-delay: 0.2s; }
.wp-openai-tts-playlist-item:nth-child(5) { animation-delay: 0.25s; }
.wp-openai-tts-playlist-item:nth-child(6) { animation-delay: 0.3s; }
.wp-openai-tts-playlist-item:nth-child(7) { animation-delay: 0.35s; }
.wp-openai-tts-playlist-item:nth-child(8) { animation-delay: 0.4s; }
.wp-openai-tts-playlist-item:nth-child(9) { animation-delay: 0.45s; }
.wp-openai-tts-playlist-item:nth-child(10) { animation-delay: 0.5s; }