* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e6f3ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #4a90e2;
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%;
    pointer-events: none;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.podcast-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.podcast-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.podcast-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.podcast-links svg {
    width: 24px;
    height: 24px;
}

.controls {
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-container input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: #4a90e2;
}

.search-container button {
    padding: 12px 24px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-container button:hover {
    background: #357abd;
}

.genre-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.genre-btn {
    padding: 8px 16px;
    border: 2px solid #4a90e2;
    border-radius: 20px;
    background: white;
    color: #4a90e2;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.genre-btn:hover {
    background: #e3f2fd;
}

.genre-btn.active {
    background: #4a90e2;
    color: white;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.error {
    text-align: center;
    padding: 20px;
    background: #fee;
    color: #c33;
    border-radius: 6px;
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7fb3d3;
    background: white;
    border-radius: 12px;
    border: 1px solid #b8daff;
}

.genre-section {
    margin-bottom: 40px;
}

.genre-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c5282;
    border-bottom: 3px solid #4a90e2;
    padding-bottom: 10px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.episode-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #b8daff;
}

.episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
}

.episode-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c5282;
    line-height: 1.4;
}

.episode-date {
    font-size: 0.9em;
    color: #7fb3d3;
    margin-bottom: 15px;
}

.episode-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.episode-chapters {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8fbff;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.chapters-title {
    font-size: 0.9em;
    color: #2c5282;
    margin-bottom: 8px;
    font-weight: 600;
}

.chapters-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.chapters-list li {
    padding: 4px 0;
    padding-left: 16px;
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
    position: relative;
}

.chapters-list li::before {
    content: '•';
    color: #4a90e2;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.episode-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.audio-link,
.episode-link {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.audio-link {
    background: #4a90e2;
    color: white;
}

.audio-link:hover {
    background: #357abd;
}

.episode-link {
    background: #e3f2fd;
    color: #2c5282;
}

.episode-link:hover {
    background: #bbdefb;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .podcast-links {
        gap: 12px;
    }
    
    .podcast-links a {
        width: 40px;
        height: 40px;
    }
    
    .podcast-links svg {
        width: 20px;
        height: 20px;
    }
    
    .genre-buttons {
        justify-content: flex-start;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
    }
    
    .search-container input,
    .search-container button {
        width: 100%;
    }
    
    .genre-buttons {
        gap: 8px;
    }
    
    .genre-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .episode-links {
        flex-direction: column;
    }
    
    .audio-link,
    .episode-link {
        text-align: center;
    }
}

.developer-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.developer-link a {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.developer-link a:hover {
    background: rgba(53, 122, 189, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}