/**
 * Dirt Doctor Podcast Player Styles
 */

/* Main Container */
.dd-podcast-player-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #2b2d3a;
    border-radius: 20px;
    position: relative;
}

/* Sidebar - Subscribe Section */
.dd-podcast-sidebar {
    flex: 0 0 400px;
    background: #ffffff;
    border-radius: 40px;
    padding: 50px 40px;
    text-align: center;
    border: 4px solid #d32f2f;
}

.dd-podcast-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dd-podcast-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dd-podcast-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.dd-podcast-title-main {
    font-size: 48px;
    color: #d32f2f;
    display: block;
}

.dd-subscribe-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.dd-subscribe-highlight {
    background: #d32f2f;
    color: #ffffff;
    padding: 8px 20px;
    display: inline-block;
    border-radius: 5px;
}

.dd-platform-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dd-platform-btn {
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #333;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.dd-platform-btn:hover {
    background: #333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Main Content Area */
.dd-podcast-main {
    flex: 1;
    position: relative;
}

.dd-episodes-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

/* Responsive Design - Desktop */
@media (max-width: 1200px) {
    .dd-podcast-player-wrapper {
        flex-direction: column;
    }
    
    .dd-podcast-sidebar {
        flex: 1;
        max-width: 100%;
    }
    
    .dd-episodes-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive Design - Laptop */
@media (max-width: 979px) {
    .dd-podcast-player-wrapper {
        padding: 30px 15px;
        gap: 30px;
    }
    
    .dd-podcast-sidebar {
        padding: 40px 30px;
        border-radius: 30px;
    }
    
    .dd-episodes-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .dd-control-bar-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .dd-now-playing-info {
        flex: 1 1 100%;
    }
}

/* Responsive Design - Tablet */
@media (max-width: 767px) {
    .dd-podcast-player-wrapper {
        padding: 20px 15px;
        gap: 25px;
    }
    
    .dd-podcast-sidebar {
        padding: 30px 20px;
        border-radius: 25px;
    }
    
    .dd-podcast-logo {
        width: 150px;
        height: 150px;
    }
    
    .dd-podcast-title {
        font-size: 24px;
    }
    
    .dd-podcast-title-main {
        font-size: 36px;
    }
    
    .dd-subscribe-section h3 {
        font-size: 18px;
    }
    
    .dd-platform-buttons {
        gap: 10px;
    }
    
    .dd-platform-btn {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .dd-episodes-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .dd-episode-title {
        font-size: 11px;
    }
    
    .dd-episode-description {
        font-size: 10px;
    }
    
    .dd-all-media-btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 14px;
    }
    
    .dd-audio-control-bar {
        padding: 15px 10px;
    }
    
    .dd-control-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .dd-progress-container {
        order: -1;
        width: 100%;
    }
    
    .dd-player-controls {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .dd-podcast-player-wrapper {
        padding: 15px 10px;
    }
    
    .dd-podcast-logo {
        width: 120px;
        height: 120px;
    }
    
    .dd-podcast-title {
        font-size: 20px;
    }
    
    .dd-podcast-title-main {
        font-size: 28px;
    }
    
    .dd-subscribe-section h3 {
        font-size: 16px;
    }
    
    .dd-platform-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .dd-platform-btn {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .dd-episodes-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dd-control-btn {
        padding: 5px;
    }
    
    .dd-skip-back svg,
    .dd-skip-forward svg,
    .dd-mute-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .dd-navigation {
        gap: 10px;
    }
    
    .dd-nav-btn {
        width: 40px;
        height: 40px;
    }
}
/* Episode Cards */
/* Episode Cards - Scaled Down 50% */
.dd-episode-card {
    background: #3a3c4a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.dd-episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    border-color: #d32f2f;
}

.dd-episode-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #2b2d3a;
}

.dd-episode-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dd-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(211, 47, 47, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.dd-episode-card:hover .dd-play-overlay {
    background: rgba(211, 47, 47, 0.85);
    opacity: 1;
}

.dd-play-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.dd-play-btn:hover {
    transform: scale(1.2);
}

.dd-play-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    width: 30px;
    height: 30px;
}

.dd-episode-content {
    padding: 10px;
}

.dd-episode-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 1.3;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dd-episode-description {
    font-size: 11px;
    color: #b8b9c1;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dd-episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #888;
    gap: 5px;
}

.dd-episode-date,
.dd-episode-duration {
    background: #2b2d3a;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
}

/* Navigation Buttons */
.dd-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.dd-nav-btn {
    background: #3a3c4a;
    border: 2px solid #555;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-nav-btn:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: scale(1.1);
}

.dd-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dd-nav-btn:disabled:hover {
    background: #3a3c4a;
    border-color: #555;
    transform: scale(1);
}

/* All Media Button */
.dd-all-media-btn {
    display: inline-block;
    padding: 18px 60px;
    background: transparent;
    border: 3px solid #d32f2f;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.dd-all-media-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
}

/* Audio Control Bar */
.dd-audio-control-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1b26;
    border-top: 3px solid #d32f2f;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.dd-control-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.dd-now-playing-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 300px;
}

.dd-now-playing-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.dd-now-playing-text {
    flex: 1;
    min-width: 0;
}

.dd-now-playing-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dd-now-playing-time {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.dd-player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.dd-control-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-control-btn:hover {
    color: #d32f2f;
    transform: scale(1.1);
}

.dd-play-pause-btn {
    background: #d32f2f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.dd-play-pause-btn:hover {
    background: #b71c1c;
    color: #ffffff;
}

.dd-progress-container {
    flex: 1;
    min-width: 200px;
}

.dd-progress-bar {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #3a3c4a;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.dd-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #d32f2f;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dd-progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.8);
}

.dd-progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #d32f2f;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.dd-progress-bar::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.8);
}

/* Playing State */
.dd-episode-card.is-playing {
    border-color: #d32f2f;
    box-shadow: 0 0 30px rgba(211, 47, 47, 0.5);
}

.dd-episode-card.is-playing .dd-play-overlay {
    opacity: 1;
    background: rgba(211, 47, 47, 0.7);
}

/* Responsive Design - Tablet */
@media (max-width: 1200px) {
    .dd-podcast-player-wrapper {
        flex-direction: column;
    }
    
    .dd-podcast-sidebar {
        flex: 1;
        max-width: 100%;
    }
    
    .dd-episodes-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .dd-podcast-player-wrapper {
        padding: 20px 15px;
        gap: 30px;
    }
    
    .dd-podcast-sidebar {
        padding: 30px 20px;
        border-radius: 25px;
    }
    
    .dd-podcast-logo {
        width: 150px;
        height: 150px;
    }
    
    .dd-podcast-title {
        font-size: 24px;
    }
    
    .dd-podcast-title-main {
        font-size: 36px;
    }
    
    .dd-subscribe-section h3 {
        font-size: 18px;
    }
    
    .dd-platform-buttons {
        gap: 10px;
    }
    
    .dd-platform-btn {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .dd-episodes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dd-episode-title {
        font-size: 16px;
        min-height: auto;
    }
    
    .dd-all-media-btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 14px;
    }
    
    .dd-audio-control-bar {
        padding: 15px 10px;
    }
    
    .dd-control-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .dd-now-playing-info {
        flex: 1;
        width: 100%;
    }
    
    .dd-progress-container {
        order: -1;
        width: 100%;
    }
    
    .dd-player-controls {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dd-podcast-title {
        font-size: 20px;
    }
    
    .dd-podcast-title-main {
        font-size: 28px;
    }
    
    .dd-platform-buttons {
        grid-template-columns: 1fr;
    }
    
    .dd-control-btn {
        padding: 5px;
    }
    
    .dd-skip-back svg,
    .dd-skip-forward svg,
    .dd-mute-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Loading State */
.dd-loading {
    text-align: center;
    padding: 60px 20px;
    color: #ffffff;
    font-size: 18px;
}

.dd-loading::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Error State */
.dd-error {
    background: #ff5252;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px;
}