/* Movie Row */
.movie-row {
    display: flex;
    gap: 20px;
    padding: 20px 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

/* Movie Item */
.movie-item {
    flex: 0 0 auto;
    width: 280px;
    height: 420px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    background: #1a1a1a;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 1;
    transition: opacity 0.3s;
}

.movie-item:focus .movie-info {
    display: none;
}

.movie-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

.movie-meta {
    font-size: 14px;
    color: #a3a3a3;
}

.movie-quality {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e50914;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Movie Details Popup */
.movie-details {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    padding: 20px;
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
    z-index: 20;
    min-height: 150px;
}

.movie-item:focus .movie-details {
    opacity: 1;
    transform: translateY(0);
}

.movie-details-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.movie-details-meta {
    font-size: 14px;
    color: #a3a3a3;
    margin-bottom: 10px;
}

.movie-details-desc {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

/* Continue Watching Badge */
.continue-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #e50914;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
}

.progress-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
}

.progress-indicator-bar {
    height: 100%;
    background: #e50914;
    transition: width 0.3s;
}

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

.load-more-btn {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

/* Favorite Button on Movie Card */
.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.favorite-btn:hover,
.favorite-btn:focus {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.1);
}

.favorite-btn.is-favorite {
    background: #e50914;
    border-color: #e50914;
}

/* Favorites Section */
.favorites-section {
    background: linear-gradient(to right, rgba(229, 9, 20, 0.1), transparent);
    border-left: 4px solid #e50914;
    padding-left: 20px;
    margin-bottom: 30px;
}

.favorites-section .section-title {
    color: #e50914;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites-section .section-title::before {
    content: '❤️';
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
