/* Mobile Filter Modal for Explore */
.mobile-filter-btn {
    display: none;
}

.filter-modal {
    display: none;
}

@media (max-width: 768px) {
    .explore-sidebar {
        display: none !important;
    }

    .explore-main {
        grid-column: 1 / -1;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1.2rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-filter-btn:hover {
        background: #b20710;
        transform: translateY(-2px);
    }

    .explore-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .filter-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        z-index: 10000;
        animation: fadeIn 0.3s ease;
    }

    .filter-modal.active {
        display: flex;
        align-items: flex-end;
    }

    .filter-modal-content {
        width: 100%;
        max-height: 85vh;
        background: var(--bg-primary);
        border-radius: 20px 20px 0 0;
        animation: slideUp 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .filter-modal-header {
        padding: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .filter-modal-header h2 {
        font-size: 1.3rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .filter-modal-close {
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s ease;
    }

    .filter-modal-close:hover {
        color: var(--text-primary);
    }

    .filter-modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem;
    }

    .filter-modal-body .filter-group {
        margin-bottom: 1.5rem;
    }

    .filter-modal-footer {
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 1rem;
    }

    .filter-modal-footer .btn {
        flex: 1;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }
}

/* Details Page Mobile Responsive */
@media (max-width: 768px) {
    .details-hero {
        height: 50vh;
        min-height: 300px;
    }

    .details-container {
        padding: 1rem;
    }

    .details-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .details-poster {
        max-width: 200px;
        margin: 0 auto;
    }

    .details-info h1 {
        font-size: 1.8rem;
    }

    .details-meta {
        flex-wrap: wrap;
    }

    .details-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .details-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .seasons-list {
        grid-template-columns: 1fr;
    }

    .episod-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .episode-thumbnail {
        width: 100%;
        height: 180px;
    }

    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}