/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Fallback to system fonts if Beausite is not available */

/* Podcast Archive Container */
.podcast-archive-container {
    --primary-color: #5FC3D2;
    --play-button-color: #5FC3D2;
    --card-background: #ffffff;
    --text-color: #1f2937;
    --secondary-text-color: #6b7280;
    --border-color: #e5e7eb;
    --background-color: #ffffff;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    padding: 0px 20px 0px 20px;
    background: var(--background-color);
    min-height: 100vh;
}

/* Header Container Layout */
.podcast-header-container {
    display: flex;
    margin-top: 30px;
    align-items: flex-start;
    gap: 40px;
}

.podcast-header-left {
    flex: 0 0 60%;
    max-width: 60%;
}

.podcast-header-right {
    max-width: 40%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.podcast-header-right p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: pre-wrap; /* Preserve line breaks from textarea */
}

/* Header Section */
.podcast-archive-header {
    text-align: left;
    margin-bottom: 40px;
}

.archive-title {
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 64px;
    font-weight: 300;
    margin: 0;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.archive-description {
    font-size: 18px;
    color: var(--secondary-text-color);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters Section */
.podcast-filters {
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    max-height: 155px;
    /*overflow-y: scroll;*/
    width: 100%;
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

@media (max-width: 768px){
    .filters-wrapper {width: 190%}
}

.category-filters-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.category-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.category-pill {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-text-color);
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    outline: none;
    white-space: nowrap;
}

.category-pill:hover {
    color: var(--secondary-text-color);
    background: #f3f4f6;
    border-color: #d1d5db;
}

.category-pill.active {
    background: #DCFAFF;
    color: #46AAB9;
    border-color: #46AAB9;
}

/* Search, Sort & Results Row — full width, search+sort left (60%), results right */
.search-results-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.search-sort-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 60%;
    max-width: 60%;
}

.search-container {
    position: relative;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.sort-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 0.5px solid #D7D7D7;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 300;
    color: #1A1A1A;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease;
    outline: none;
    font-family: inherit;
}

.sort-dropdown-toggle:hover,
.sort-dropdown-toggle.open {
    border-color: #46AAB9;
}

.sort-chevron {
    transition: transform 0.2s ease;
    color: #919191;
}

.sort-chevron-open {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: white;
    border: 0.5px solid #D7D7D7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 50;
    overflow: hidden;
    padding: 4px 0;
}

.sort-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 300;
    color: #1A1A1A;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    font-family: inherit;
    transition: background 0.15s;
}

.sort-dropdown-item:hover {
    background: #f3f4f6;
}

.sort-dropdown-item.active {
    font-weight: 500;
    color: #46AAB9;
}

.search-input {
    width: 100% !important;
    box-sizing: border-box;
    padding: 10px 40px 10px 40px !important;
    border: 0.5px solid #D7D7D7 !important;
    border-radius: 12px !important;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
    outline: none;
    font-weight: 300;
}

.search-input:focus {
    border: 0.5px solid #46AAB9 !important;
    color: #1A1A1A;
}

.search-input::placeholder {
    color: #919191;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.results-counter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--secondary-text-color);
    font-weight: 300;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
}

.results {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    color: #4c4c4c;
}

/* Podcast Grid */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto 30px;
}

/* Dynamic grid columns */
.podcast-grid[style*="grid-template-columns"],
.skeleton-grid[style*="grid-template-columns"] {
    /* Allow inline styles to override */
}

/* Podcast Card */
.podcast-card {
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.podcast-card-image {
    border-radius: 25px;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    /*background: #f3f4f6;*/
}

.podcast-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180.14deg, rgba(0, 0, 0, 0) 72.17%, rgba(0, 0, 0, 0.1) 99.88%);
    z-index: 1;
    pointer-events: none;
}

.podcast-card-image > img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Waveform Icon */
.podcast-card-image .podcast-waveform-icon {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    width: 20px !important;
    height: 20px !important;
    z-index: 3;
    object-fit: contain !important;
    pointer-events: none;
}

/* Play Overlay */
.podcast-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 2;
}

.podcast-card:hover .podcast-play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-button {
    padding: 0px;
    width: 40px;
    height: 40px;
    background: #5FC3D2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.podcast-card:hover .play-button {
    width: 30%;
    border-radius: 24px;
    justify-content: space-between;
}

.play-button-label{
    display: none;
}

.podcast-card:hover .play-button-label {
    margin-left: 10px;
    display: block;
}

.podcast-card:hover .play-button-icon{
    margin-right: 10px;
}

.play-button svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

/* Duration Badge */
.podcast-duration-badge {
    position: absolute;
    bottom: 24px;
    right: 20px;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 400;
    z-index: 3;
}

/* Card Content */
.podcast-card-content {
    padding: 16px 4px;
}

.podcast-category-tag {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.podcast-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.podcast-title {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    margin-top: 8px;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-bottom: 64px;
}

.show-more-btn {
    padding: 14px 32px;
    color: #000000;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    color: #5FC3D2;
    text-decoration: underline;
}

/* Loading States */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--secondary-text-color);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loaders */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto 40px;
}

.skeleton-card {
    overflow: hidden;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    border-radius: 12px;
    width: 100%;
    padding-bottom: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 16px;
}

.skeleton-category {
    width: 80px;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-title {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title.short {
    width: 70%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ================== DETAIL VIEW STYLES ================== */

/* Detail View Container */
.podcast-detail-view {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px;
    animation: fadeIn 0.5s ease;
    box-sizing: border-box;
}

/* Detail Header with Back Button */
.detail-header {
    margin-bottom: 32px;
}

.back-to-grid-btn {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    color: #4C4C4C;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.back-to-grid-btn:hover{
    color: #5FC3D2;
    text-decoration: underline;
    outline: none;
}

/* Detail Hero Section */
.podcast-detail-hero {
    display: grid;
    grid-template-columns: 50% 1fr;
    align-items: start;
    gap: 48px;
    margin-bottom: 48px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Detail Image */
.podcast-detail-image {
    position: relative;
    width: 100%;
  aspect-ratio: 16 / 9;       /* modern browsers */
  padding-bottom: 56.25%; /* Maintain square aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.podcast-detail-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: none;
    opacity: 0.95;
}

.hero-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.hero-play-btn svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    margin-left: 4px;
}

/* Detail Info */
.podcast-detail-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-breadcrumb {
    display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.breadcrumb-category {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #4C4C4C;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-subcategory {
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-title {
    font-size: 40px;
    font-weight: 300;
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.detail-description-wrapper {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-description {
    margin: 0;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1A1A1A;
    white-space: pre-line;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.detail-description:not(.expanded) {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    max-height: 7.5em;
    text-overflow: ellipsis;
}

.detail-description.expanded {
    max-height: none;
    overflow: visible;
    display: block;
}

.detail-read-more-toggle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #46AAB9;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.detail-read-more-toggle:hover {
    opacity: 0.8;
}

/* Listen Podcast Button */
.listen-podcast-btn {
    padding: 14px 32px;
    background: #5FC3D2;
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    border: none;
    border-radius: 200px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    justify-content: center;
}

.listen-podcast-btn:hover {
    background: #5FC3D2;
    transform: translateY(-2px);
}

/* Platform Buttons */
.platform-buttons {
    display: flex;
    padding-top: 20px;
    /*padding-bottom: 20px;*/
    gap: 16px;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
}

.spotify-btn {
    padding: 14px 32px;
    background: #F4F1F1;
    color: #4C4C4C;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 200px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    justify-content: center;
}

.spotify-btn:hover {
    background: #F4F1F1;
    transform: translateY(-2px);
}

.apple-btn {
    padding: 14px 32px;
    background: #F4F1F1;
    color: #4C4C4C;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 200px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    justify-content: center;
}

.apple-btn:hover {
    background: #F4F1F1;
    transform: translateY(-2px);
}

.platform-btn svg {
    width: 20px;
    height: 20px;
}

/* Video Section for Detail View */
.detail-video-section {
    width: 100%;
}

.detail-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: #000;
}

.detail-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Audio Player Widget - Removed as audio-only podcasts don't need this */
.audio-player-widget {
    display: none;
}

.play-pause-btn {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    transform: scale(1.1);
}

.play-pause-btn svg {
    width: 20px;
    height: 20px;
    color: white;
    margin-left: 2px;
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--secondary-text-color);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

/* Related Episodes Section */
.related-episodes-section {
    margin-top: 64px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.related-episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.related-episodes-header h3 {
    font-size: 40px;
    font-weight: 300;
    font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    margin: 0;
}

.related-episodes-nav {
    display: flex;
    gap: 8px;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000000;
    padding: 0px;
    transition: all 0.2s ease;
}

.scroll-btn:hover {
    color: #5FC3D2;
    background: #f3f4f6;
}

.related-episodes-wrapper {
    width: 100%;
    overflow: hidden;
}

.related-episodes-scroll {
    --related-gap: 16px;
    display: grid;
    grid-auto-flow: column;
    gap: var(--related-gap);
    grid-auto-columns: calc((100% - (var(--related-gap) * 2)) /3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.related-episodes-scroll::-webkit-scrollbar {
    display: none;
}

/* Use same podcast card styles for related episodes */
.related-episodes-scroll .podcast-card {
    width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* Related Episode Card */
.related-episode-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.related-episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-episode-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f3f4f6;
}

.related-episode-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180.14deg, rgba(0, 0, 0, 0) 72.17%, rgba(0, 0, 0, 0.1) 99.88%);
    z-index: 1;
    pointer-events: none;
}

.related-episode-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.related-episode-card:hover .episode-play-overlay {
    opacity: 1;
}

.play-icon-small {
    width: 48px;
    height: 48px;
    background: #5FC3D2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.play-icon-small svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.episode-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 3;
}

.related-episode-content {
    padding: 12px;
}

.episode-category-tag {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.episode-subtitle {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.episode-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .podcast-detail-view {
        padding: 30px;
    }

    .podcast-detail-hero {
        grid-template-columns: 45% 1fr;
        gap: 36px;
    }
}

@media (max-width: 1024px) {
    .podcast-grid,
    .skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .podcast-detail-view {
        padding: 24px;
    }

    .podcast-detail-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .podcast-detail-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding-bottom: 0;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .podcast-header-container {
        flex-direction: column;
        gap: 0px;
    }

    .podcast-header-left,
    .podcast-header-right {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .podcast-header-right {
        padding: 20px 0px;
    }

    .archive-title {
        font-size: 36px;
    }

    .podcast-filters {
        max-width: 150%;
        max-height: none;
        overflow-x: scroll;
    }

    .category-filter-row {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .podcast-grid,
    .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }


    .search-results-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-sort-group {
        flex: 1 1 100%;
        max-width: 100%;
        gap: 8px;
    }

    .podcast-detail-view {
        padding: 20px;
    }

    .podcast-detail-info {
        overflow: visible;
    }

    .detail-description-wrapper {
        overflow: visible;
    }

    .detail-description:not(.expanded) {
        -webkit-line-clamp: 3;
        max-height: 4.5em;
    }

    .podcast-detail-image {
        max-width: 350px;
        height: 350px;
    }

    .detail-title, .related-episodes-header h3 {
        font-family: 'Beausite Fit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 28px;
    }

    .platform-buttons {
        flex-direction: column;
    }

    .related-episode-card {
        flex: 0 0 240px;
    }
    .related-episodes-scroll {
        grid-auto-columns: 100%;
    }
}

@media (max-width: 480px) {
    .search-input,
    .sort-dropdown-toggle {
        font-size: 16px;
    }

    .archive-title {
        font-size: 28px;
    }

    .podcast-grid,
    .skeleton-grid {
        grid-template-columns: 1fr;
    }

    .podcast-detail-view {
        padding: 16px;
    }

    .podcast-detail-image {
        max-width: 300px;
        height: 300px;
    }

    .detail-title, .related-episodes-header h3 {
        font-size: 24px;
    }

    .related-episode-card {
        flex: 0 0 200px;
    }
    .related-episodes-scroll {
        grid-auto-columns: 100%;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-text-color);
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.clear-filters-btn {
    padding: 10px 24px;
    background: #5FC3D2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 16px;
}

.clear-filters-btn:hover {
    background: #5FC3D2;
}

/* Error State */
.error-container {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-text-color);
}

.error-container h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #ef4444;
}

.retry-btn {
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.retry-btn:hover {
    background: #2563eb;
}

/* Pagination (Hidden - replaced with Show More) */
.pagination {
    display: none;
}

/* ================== GLOBAL AUDIO PLAYER ================== */

.global-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Progress Bar */
.player-progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.player-progress-bar:hover {
    height: 8px;
}

.player-progress-fill {
    height: 100%;
    background: #5FC3D2;
    transition: width 0.1s linear;
    position: relative;
}

.player-progress-bar:hover .player-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #5FC3D2;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Player Controls Container */
.player-controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.player-top-row {
    display: contents;
}

.player-bottom-row {
    display: contents;
}

/* Track Info */
.player-track-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 12px;
    margin-left: 32px;
    margin-right: 16px;
}

.player-track-image {
    width: 80px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    object-fit: cover;
}

.player-track-details {
    flex: 1;
    min-width: 0;
}

.player-track-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.player-track-category {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin: 0;
}

/* Center Controls */
.player-center-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-skip-btn {
    padding: 8px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.player-skip-btn:hover:not(:disabled) {
    background: #f3f4f6;
    color: #1f2937;
}

.player-skip-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.player-skip-btn svg {
    width: 52px;
    height: 52px;
}

.player-play-pause-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4b5563;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 12px;
}

.player-play-pause-btn:hover {
    background: #6b7280;
}

.player-play-pause-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.player-play-pause-btn svg {
    width: 24px;
    height: 24px;
}

/* Right Controls */
.player-right-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}

.player-time-display {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    white-space: nowrap;
}

/* Volume Control */
.player-volume-container {
    position: relative;
    display: flex;
    align-items: center;
}

.player-volume-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgb(107, 114, 128);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.player-volume-btn:hover {
    background: #f3f4f6;
    color: rgb(107, 114, 128);
}

.player-volume-slider-container {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
}

.player-volume-slider {
    width: 80px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #46AAB9;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.player-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #46AAB9;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.player-close-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgb(107, 114, 128);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    margin-right: 24px;
}

.player-close-btn:hover {
    background: #f3f4f6;
    color: rgb(107, 114, 128);
}

.podcast-filters::-webkit-scrollbar {
  width: 6px;
    height: 6px;
}

.podcast-filters::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.podcast-filters::-webkit-scrollbar-thumb {
  background: #46AAB9;
  border-radius: 3px;
}

.podcast-filters::-webkit-scrollbar-thumb:hover {
  background: #3a9aa9;
}

.platform-buttons a {
    text-decoration: none;
}

/* Responsive Design for Global Player */
@media (max-width: 768px) {
    .player-controls-container {
        flex-direction: column;
        padding: 12px 0;
        gap: 12px;
    }

    .player-top-row {
        display: flex;
        width: 100%;
    }

    .player-track-info {
        width: 100%;
        margin-left: 20px;
        margin-right: 20px;
        gap: 12px;
    }

    .player-track-image {
        width: 60px;
        flex-shrink: 0;
    }

    .player-track-details {
        flex: 1;
        min-width: 0;
    }

    .player-track-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .player-track-category {
        font-size: 11px;
    }

    .player-bottom-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
        align-items: center;
        padding: 0 20px;
        gap: 0;
    }

    .player-center-controls {
        grid-column: 2;
        display: flex;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }

    .player-skip-btn {
        width: 48px;
        height: 48px;
    }

    .player-skip-btn svg {
        width: 48px;
        height: 48px;
    }

    .player-play-pause-btn {
        width: 48px;
        height: 48px;
    }

    .player-right-controls {
        grid-column: 3;
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        align-items: center;
    }

    .player-time-display {
        font-size: 12px;
    }

    .player-close-btn {
        margin-right: 0;
    }

    .player-volume-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .player-controls-container {
        flex-direction: column;
        padding: 12px 0;
        gap: 12px;
    }

    .player-top-row {
        display: flex;
        width: 100%;
    }

    .player-track-info {
        width: 100%;
        margin-left: 16px;
        margin-right: 16px;
        gap: 10px;
    }

    .player-track-image {
        width: 48px;
        flex-shrink: 0;
    }

    .player-track-details {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .player-track-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .player-track-category {
        font-size: 10px;
    }

    .player-bottom-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
        align-items: center;
        padding: 0 16px;
        gap: 0;
    }

    .player-center-controls {
        grid-column: 2;
        display: flex;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }

    .player-skip-btn {
        width: 40px;
        height: 40px;
    }

    .player-skip-btn svg {
        width: 40px;
        height: 40px;
    }

    .player-play-pause-btn {
        width: 44px;
        height: 44px;
    }

    .player-right-controls {
        grid-column: 3;
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        align-items: center;
    }

    .player-time-display {
        font-size: 11px;
    }

    .player-close-btn {
        margin-right: 0;
        width: 32px;
        height: 32px;
    }

    .player-close-btn svg {
      