/**
 * Tommy Shutter Podcasts Web Interface
 * File: /podcasts/podcasts.css
 * Version: 04052025.1600
 * Date: 04-05-2025
 * Code Revision: Version 11.9
 *
 * BEST PRACTICES:
 * - Use responsive design principles for all screen sizes
 * - Maintain consistent color scheme with the rest of the site
 * - Follow BEM naming convention for CSS classes
 * - Minimize use of !important declarations
 * - Use media queries for responsive adjustments
 */

#podcast-container {
   background-color: rgba(0, 0, 0, 0.753);
max-width:1024px;
margin:0 auto
}

@keyframes pulse {
   0% { opacity: 0.3; }
   100% { opacity: 0.5; }
}

@keyframes float {
   0% { transform: translateY(-10px); }
   100% { transform: translateY(10px); }
}

.main-content-wrapper {
   position: relative;
   padding: 2rem 1rem;
   max-width: 1000px;
   margin: 0 auto;
   background:transparent!important;
}

/* Episode list item styling */
.episode-item {
   display: flex;
   padding: 1.5rem 0;
   transition: background-color 0.2s ease;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-item:hover {
   background-color: rgba(255, 255, 255, 0.03);
}

/* Episode cover art styling */
.episode-cover {
   width: 100px;
   height: 100px;
   border-radius: 4px;
   object-fit: cover;
   flex-shrink: 0;
   margin-right: 1.5rem;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Episode content area */
.episode-content {
   flex-grow: 1;
   min-width: 0; /* Prevent flex items from overflowing */
}

h3.podcast-title {
   font-size: 1.75rem;
   font-weight: 600;
   margin: 0 0 0.5rem 0;
   color: #f59e0b; /* amber-500 */
   line-height: 1.2;
}

.episode-meta {
   display: flex;
   flex-wrap: wrap;
   color: #a8a29e; /* stone-400 */
   font-size: 0.875rem;
   margin-bottom: 0.75rem;
}

.episode-meta > span {
   margin-right: 1rem;
}

/* Episode description styling */
.episode-description {
   color: #d6d3d1; /* stone-300 */
   font-size: 0.9375rem;
   line-height: 1.6;
   margin-bottom: 1rem;
   max-height: 4.8rem; /* Show about 3 lines */
   overflow: hidden;
   position: relative;
}

.episode-description.expanded {
   max-height: 800px;
   transition: max-height 0.5s ease;
}

.fade-overlay {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 24px;
   background: linear-gradient(to bottom, rgba(28, 25, 23, 0), rgba(28, 25, 23, 1));
   pointer-events: none;
}

.episode-description.expanded .fade-overlay {
   display: none;
}

/* Read more button */
.read-more-toggle {
   color: #f59e0b; /* amber-500 */
   font-size: 0.875rem;
   cursor: pointer;
   display: inline-block;
   font-weight: 500;
}

.read-more-toggle:hover {
   text-decoration: underline;
}

/* Play button styling */
.play-button {
   display: inline-flex;
   align-items: center;
   cursor: pointer;
   color: #f59e0b; /* amber-500 */
   background-color: rgba(41, 37, 36, 0.4);
   padding: 0.5rem 1rem;
   border-radius: 2rem;
   margin-top: 0.5rem;
   font-weight: 500;
   transition: all 0.2s ease;
   border: 1px solid rgba(245, 158, 11, 0.3);
}

.play-button:hover {
   background-color: rgba(245, 158, 11, 0.2);
}

.play-button .play-icon {
   width: 1.25rem;
   height: 1.25rem;
   margin-right: 0.5rem;
}

/* Audio player container */
.audio-player-container {
   margin: 1rem 0;
   background-color: rgba(41, 37, 36, 0.4);
   border-radius: 0.5rem;
   padding: 0.75rem;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sort controls */
#sort-controls {
   background-color: rgba(41, 37, 36, 0.4);
   padding: 0.75rem 1rem;
   border-radius: 0.5rem;
   margin-bottom: 1.5rem;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

#sort-select {
   background-color: rgba(41, 37, 36, 0.6);
   color: #e7e5e4;
   border: 1px solid rgba(255, 255, 255, 0.2);
   padding: 0.375rem 0.75rem;
   border-radius: 0.25rem;
   font-size: 0.875rem;
}

/* Folder filter styling */
.folder-filter {
   background-color: rgba(41, 37, 36, 0.4);
   padding: 0.75rem 1rem;
   border-radius: 0.5rem;
   margin-bottom: 1.5rem;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

.folder-filter select {
   background-color: rgba(41, 37, 36, 0.6);
   color: #e7e5e4;
   border: 1px solid rgba(255, 255, 255, 0.2);
   padding: 0.375rem 0.75rem;
   border-radius: 0.25rem;
   font-size: 0.875rem;
   min-width: 180px;
}

/* Episode information formatting */
.episode-folder, .episode-album {
   font-style: italic;
   color: #d6d3d1;
   opacity: 0.8;
}

/* Pagination styling */
#pagination {
   margin-top: 2rem;
   display: flex;
   justify-content: center;
   align-items: center;
}

.page-number {
   width: 2rem;
   height: 2rem;
   display: flex;
   align-items: center;
   justify-content: center;
   background-color: rgba(41, 37, 36, 0.4);
   margin: 0 0.25rem;
   border-radius: 0.25rem;
   cursor: pointer;
   transition: all 0.2s ease;
   font-size: 0.875rem;
}

.page-number.active {
   background-color: #f59e0b; /* amber-500 */
   color: #1c1917;
   font-weight: bold;
}

.page-number:hover:not(.active) {
   background-color: rgba(245, 158, 11, 0.2);
}

#prev-page, #next-page {
   background-color: rgba(41, 37, 36, 0.4);
   color: #e7e5e4;
   border: 1px solid rgba(255, 255, 255, 0.2);
   padding: 0.375rem 0.75rem;
   border-radius: 0.25rem;
   cursor: pointer;
   transition: all 0.2s ease;
}

#prev-page:hover, #next-page:hover {
   background-color: rgba(41, 37, 36, 0.6);
}

#prev-page:disabled, #next-page:disabled {
   opacity: 0.5;
   cursor: not-allowed;
}

/* Loading and error states */
#loading-message, #error-message {
   text-align: center;
   padding: 2rem;
   font-style: italic;
}

#error-message {
   color: #ef4444; /* red-500 */
   background-color: rgba(239, 68, 68, 0.1);
   border-radius: 0.5rem;
}

/* Player status indicator */
#player-status {
   background-color: rgba(28, 25, 23, 0.9);
   border-radius: 0.5rem;
   padding: 0.75rem;
   text-align: center;
   margin-top: 1rem;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Additional mobile optimizations */
@media (max-width: 640px) {
   .episode-item {
      flex-direction: column;
   }
   
   .episode-cover {
      margin-right: 0;
      margin-bottom: 1rem;
      zoom:3.5;margin:0 auto!important
   }
   
   h3.podcast-title {
      font-size: 1.5rem;
   }
   
   .folder-filter, #sort-controls {
      flex-direction: column;
      align-items: flex-start;
zoom:3
   }
   
   .folder-filter label, #sort-controls label {
      margin-bottom: 0.5rem;
   }
   
   .folder-filter select, #sort-select {
      width: 100%;
   }
   
   #pagination {
      flex-wrap: wrap;
   }

  header {display:none}
  main   {margin:0 auto;width:100%!important;padding:0;zoom:.6}
 .episode-content {margin:0 auto;zoom:2;text-align:center!important;width:80%}

}

/* Added episode numbering */
.episode-number {
   font-size: 0.75rem;
   color: #a8a29e;
   margin-bottom: 0.25rem;
}

.episode-description.expanded {overflow-y:scroll!important}

/**
 * Fixed CSS for Collapsible Panels
 * This ensures proper transitions for the panels
 */

/* Collapsible panel styling for different colored headers */
.collapsible-panel {
    overflow: hidden;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(36, 33, 31, 0.6);
}

.collapsible-panel-content {
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.75rem 0.75rem;
    font-weight: 600;
}

.toggle-icon {
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
}

.collapsible-panel.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* Color variants for section headers */
.toggle-btn.text-emerald-300 {
    background-color: rgba(16, 185, 129, 0.15);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.toggle-btn.text-blue-300 {
    background-color: rgba(59, 130, 246, 0.15);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.toggle-btn.text-purple-300 {
    background-color: rgba(168, 85, 247, 0.15);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.toggle-btn.text-red-300 {
    background-color: rgba(248, 113, 113, 0.15);
    border-bottom: 1px solid rgba(248, 113, 113, 0.3);
}

.toggle-btn.text-pink-300 {
    background-color: rgba(249, 168, 212, 0.15);
    border-bottom: 1px solid rgba(249, 168, 212, 0.3);
}

.toggle-btn.text-yellow-300 {
    background-color: rgba(252, 211, 77, 0.15);
    border-bottom: 1px solid rgba(252, 211, 77, 0.3);
}

.toggle-btn.text-amber-300 {
    background-color: rgba(245, 158, 11, 0.15);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}