/**
 * Enhanced Episodes Page Styles for Cinefilosos
 * Comprehensive styling for discovery, filtering, and episode browsing
 */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(244, 4, 156, 0.1);
    padding: 15px 0;
    margin-top: 80px; /* Account for fixed header */
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--magenta);
}

.breadcrumb li[aria-current="page"] {
    color: var(--white);
    font-weight: 500;
}

/* Episodes Page Layout */
.episodes-page {
    padding: 40px 0 80px;
    min-height: calc(100vh - 160px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--magenta), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Search and Filters Section */
.search-filters-section {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(244, 4, 156, 0.1);
    border-radius: 16px;
    padding: 30px;
}

/* Advanced Search */
.advanced-search {
    margin-bottom: 30px;
    position: relative;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 24px 16px 55px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--magenta);
    box-shadow: 0 0 0 4px rgba(244, 4, 156, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
}

.search-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: var(--magenta);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(244, 4, 156, 0.2);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

/* Filter Controls */
.filters-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 25px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.filter-icon {
    font-size: 1.1rem;
}

.filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--magenta);
    box-shadow: 0 0 0 3px rgba(244, 4, 156, 0.1);
}

.filter-select option {
    background: var(--black);
    color: var(--white);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-clear {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-clear:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.results-summary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

#results-count {
    color: var(--magenta);
    font-weight: 600;
}

/* Quick Access Section */
.quick-access {
    margin-bottom: 50px;
}

.quick-access h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--magenta);
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-access-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 4, 156, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.quick-access-card:hover {
    background: rgba(244, 4, 156, 0.1);
    border-color: var(--magenta);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 4, 156, 0.2);
}

.card-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 4, 156, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.card-content h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--magenta);
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Episodes Grid */
.episodes-grid-section {
    margin-bottom: 50px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(244, 4, 156, 0.2);
    border-top: 3px solid var(--magenta);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Episode Card */
.episode-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 4, 156, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.episode-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--magenta);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(244, 4, 156, 0.2);
}

.episode-card-content {
    padding: 25px;
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.episode-number {
    background: rgba(244, 4, 156, 0.2);
    color: var(--magenta);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--black);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

.episode-title {
    margin: 0 0 15px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.episode-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.episode-title a:hover {
    color: var(--magenta);
}

.movie-info {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 4px solid var(--magenta);
}

.movie-title {
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 8px;
    font-size: 1rem;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.movie-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.episode-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(244, 4, 156, 0.2);
    color: var(--magenta);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag:hover {
    background: rgba(244, 4, 156, 0.3);
    border-color: var(--magenta);
    transform: translateY(-1px);
}

.tag-more {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: default;
}

.episode-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.episode-actions .btn-primary {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-results p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    line-height: 1.5;
}

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

.btn-load-more {
    background: rgba(244, 4, 156, 0.1);
    border: 2px solid var(--magenta);
    color: var(--magenta);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-load-more:hover {
    background: var(--magenta);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 4, 156, 0.3);
}

/* Featured Tags Section */
.featured-tags-section {
    margin-bottom: 50px;
}

.featured-tags-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--magenta);
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.featured-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 4, 156, 0.2);
    border-radius: 25px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.featured-tag:hover {
    background: rgba(244, 4, 156, 0.1);
    border-color: var(--magenta);
    transform: translateY(-2px);
}

.tag-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.tag-count {
    background: var(--magenta);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .filters-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        margin-top: 70px;
        padding: 12px 0;
    }
    
    .episodes-page {
        padding: 30px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .search-filters-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .filters-container {
        padding: 20px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-access-card {
        padding: 16px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .episode-card-content {
        padding: 20px;
    }
    
    .movie-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .episode-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .episode-meta {
        justify-content: center;
    }
    
    .featured-tags {
        gap: 8px;
    }
    
    .featured-tag {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 14px 20px 14px 45px;
        font-size: 0.9rem;
    }
    
    .episode-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .movie-info {
        padding: 12px;
    }
    
    .episode-tags {
        gap: 4px;
    }
    
    .tag,
    .tag-more {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .episode-card,
    .quick-access-card,
    .featured-tag,
    .tag,
    .btn-load-more,
    .filter-clear,
    .search-input,
    .filter-select {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
    
    .episode-card:hover,
    .quick-access-card:hover,
    .featured-tag:hover,
    .tag:hover,
    .btn-load-more:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .episode-card,
    .quick-access-card,
    .search-filters-section {
        border-width: 2px;
    }
    
    .tag,
    .featured-tag {
        border-width: 2px;
    }
}

/* Themes Page Styles */
.themes-page {
    padding: 40px 0 80px;
    min-height: calc(100vh - 160px);
}

/* Theme Categories */
.theme-categories {
    margin-bottom: 50px;
}

.theme-categories h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--magenta);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 4, 156, 0.2);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover,
.category-card:focus {
    background: rgba(244, 4, 156, 0.1);
    border-color: var(--magenta);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(244, 4, 156, 0.2);
    outline: none;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--magenta), var(--cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before,
.category-card:focus::before {
    opacity: 1;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.category-content h3 {
    color: var(--white);
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.category-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 15px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.category-count {
    color: var(--magenta);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Theme Search */
.theme-search {
    margin-bottom: 40px;
    text-align: center;
}

.theme-search .search-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.theme-search .search-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--white);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.theme-search .search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--magenta);
    box-shadow: 0 0 0 4px rgba(244, 4, 156, 0.1);
}

.theme-search .search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.2s ease;
}

.theme-search .search-clear:hover {
    color: var(--magenta);
}

/* All Themes Section */
.all-themes {
    margin-bottom: 50px;
}

.all-themes h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--magenta);
}

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

/* Theme Card */
.theme-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 4, 156, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.theme-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--magenta);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 4, 156, 0.2);
}

/* Theme card category colors */
.theme-card.personality {
    border-left: 4px solid #ff6b6b;
}

.theme-card.trauma {
    border-left: 4px solid #ff8e53;
}

.theme-card.identity {
    border-left: 4px solid #45b7d1;
}

.theme-card.relationships {
    border-left: 4px solid #96ceb4;
}

.theme-card.cognition {
    border-left: 4px solid #a8e6cf;
}

.theme-card.existential {
    border-left: 4px solid #dda0dd;
}

.theme-card.other {
    border-left: 4px solid var(--magenta);
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.theme-category {
    font-size: 1.5rem;
}

.theme-count {
    background: rgba(244, 4, 156, 0.2);
    color: var(--magenta);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.theme-title {
    color: var(--white);
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: capitalize;
}

.theme-description {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 15px;
    line-height: 1.4;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-episodes {
    margin-bottom: 15px;
}

.episodes-preview {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
}

.episode-preview {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-preview:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.episode-title {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 500;
}

.movie-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.more-episodes {
    text-align: center;
    color: var(--magenta);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 8px;
}

.theme-actions {
    display: flex;
    gap: 10px;
}

.theme-actions .btn-sm {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    text-align: center;
}

/* Featured Theme */
.featured-theme {
    background: rgba(244, 4, 156, 0.05);
    border: 1px solid rgba(244, 4, 156, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.featured-theme h2 {
    color: var(--magenta);
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design for Themes */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .themes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .theme-card {
        padding: 15px;
    }
    
    .theme-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 15px;
    }
    
    .category-content h3 {
        font-size: 1.1rem;
    }
    
    .category-content p {
        font-size: 0.85rem;
    }
    
    .theme-card {
        padding: 12px;
    }
    
    .theme-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Print Styles */
@media print {
    .search-filters-section,
    .quick-access,
    .load-more-container,
    .featured-tags-section,
    .theme-search,
    .theme-actions {
        display: none;
    }
    
    .episode-card,
    .theme-card,
    .category-card {
        break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 20px;
    }
    
    .episodes-grid,
    .themes-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
}