:root {
    --primary-magenta: #cc00cc;
    --dark-bg: #111111;
    --card-bg: #1a1a1a;
    --text-grey: #aaaaaa;
    --border-purple: #3d1a3d;
}

body {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
}

/* Gradient Background for the whole main area */
.library-main {
    background: linear-gradient(180deg, #ffffff 0%, #f9f0ff 100%);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Archive Header */
.archive-header {
    background-color: #1a1a1a;
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 70px;
    /* Adjust for navbar */
}

.archive-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.archive-header h1 span.magenta {
    color: #d600d6;
}

.archive-header p {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Filter Bar */
.filter-section {
    margin-top: -30px;
    margin-bottom: 50px;
}

.filter-container {
    background: white;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-wrapper input {
    width: 100%;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px 40px 10px 15px;
    background: #fbfbfb;
    font-size: 0.85rem;
    color: #666;
}

.search-wrapper .bi-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-size: 0.9rem;
}

.filter-dropdowns {
    display: flex;
    gap: 15px;
}

.filter-dropdowns select {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px 35px 10px 15px;
    background: #fbfbfb;
    font-size: 0.85rem;
    color: #888;
    min-width: 140px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Episode Cards */
.episode-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.episode-card-link:hover {
    color: inherit;
}

.episode-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-purple);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.episode-card:hover {
    transform: translateY(-5px);
    border-color: #d600d6;
}

.video-thumbnail {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d600d6;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.episode-info {
    color: white;
    padding: 0 5px;
}

.episode-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.guest-name-archive {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.guest-title-archive {
    display: inline;
    font-weight: 400;
    color: #888;
}

.episode-desc-archive {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.archive-tag {
    background: #252525;
    color: #777;
    font-size: 0.7rem;
    padding: 4px 12px;
    border: 1px solid #333;
    border-radius: 50px;
    font-weight: 500;
}

.view-episode-link {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    margin-top: auto;
}

.view-episode-link:hover {
    color: #d600d6;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.btn-load-more {
    background-color: #d600d6;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background-color: #b300b3;
    transform: translateY(-2px);
    color: white;
}

@media (max-width: 991px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-dropdowns {
        flex-wrap: wrap;
    }

    .filter-dropdowns select {
        flex: 1;
    }
}
