/* Video Player Component Styles */
.player-btn {
    transition: all 0.3s ease;
}

.player-btn.active {
    background-color: #e50914 !important;
    border-color: #e50914 !important;
    color: white !important;
}

.player-btn:hover:not(.active) {
    background-color: #2f2f2f;
    border-color: #e50914;
    color: white;
}

/* Floating Recommendations Button */
.floating-recommendations-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-recommendations-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(229, 9, 20, 0.6);
}

.floating-recommendations-btn i {
    font-size: 20px;
    animation: sparkle 2s infinite;
}

.floating-recommendations-btn .badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Recommendation Card in Modal */
.recommendation-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.recommendation-card a {
    display: block;
    text-decoration: none;
}

.recommendation-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.no-poster-rec {
    width: 100%;
    aspect-ratio: 2/3;
    background: #2f2f2f;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #666;
}

.rec-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    padding: 40px 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-card:hover .rec-overlay {
    opacity: 1;
}

.recommendation-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.rec-overlay h6 {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rec-overlay small {
    font-size: 12px;
}

/* Episode Item Styles */
.episode-item {
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #404040;
}

.episode-item:hover {
    background: #2f2f2f !important;
}

.episode-item.active-episode {
    background: #2f2f2f;
    border-left: 4px solid #e50914;
}

.episode-grid-item {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #2f2f2f;
}

.episode-grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-recommendations-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .floating-recommendations-btn .btn-text {
        display: none;
    }

    .floating-recommendations-btn i {
        margin-right: 0;
    }
}
