/* Keep Watching Section */
.keep-watching-container {
    position: relative;
    margin: 30px auto;
    width: 90%;
    max-width: 1000px;
    padding: 20px 0;
}

.keep-watching-container h2 {
    font-size: 1.8rem;
    color: #d3d3d3;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

/* Keep Watching Grid Layout */
.keep-watching-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 20px 0;
}

/* Individual Keep Watching Item */
.keep-watching-item {
    background: linear-gradient(145deg, #1a1a2e, #232342);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6), 0 3px 5px rgba(100, 0, 150, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
}

.keep-watching-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8), 0 4px 8px rgba(100, 0, 150, 0.3);
}

.keep-watching-poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #000;
}

/* High-quality image styling */
.keep-watching-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

/* Scale effect on hover */
.keep-watching-item:hover .keep-watching-poster-container {
    transform: scale(1.02);
}

/* Overlay for Hover Effect */
.keep-watching-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 0, 50, 0.85);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.keep-watching-item:hover .keep-watching-overlay {
    opacity: 1;
}

/* Overlay Content */
.keep-watching-content {
    color: #e0e0e0;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(20, 20, 30, 0.9);
    max-width: 90%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.keep-watching-content h3 {
    font-size: 1rem;
    margin: 0;
    margin-bottom: 5px;
    color: #bb86fc;
    font-weight: 600;
}

.keep-watching-content p {
    font-size: 0.8rem;
    margin: 0;
    color: #b3b3b3;
}


/* No Items Placeholder */
.keep-watching-items .no-items {
    color: #8888aa;
    text-align: center;
    font-size: 1rem;
    padding: 20px;
    font-style: italic;
    grid-column: span 5;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .keep-watching-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .keep-watching-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .keep-watching-icon {
        font-size: 1rem;
        padding: 5px;
        top: 8px;
        right: 8px;
    }

    .keep-watching-content h3 {
        font-size: 0.9rem;
    }

    .keep-watching-content p {
        font-size: 0.7rem;
    }
}

/* Dark-Themed Edit Mode Button */
.edit-mode-button {
    background-color: rgba(30, 30, 45, 0.9);
    color: var(--text-color);
    padding: 10px 20px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.edit-mode-button:hover {
    background-color: var(--accent-dark);
    color: var(--accent-hover);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
    .edit-mode-button {
        top: 15px;
        right: 15px;
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}
/* Progress Bar */
.progress-bar {
    width: 90%;
    height: 6px;
    background: #444;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px auto 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #bb86fc, #ff79c6);
    transition: width 0.3s ease-in-out;
}

/* TV Info (Season and Episode Icons) */
.tv-info {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.tv-info .season-icon,
.tv-info .episode-icon {
    font-size: 0.9rem;
    background: rgba(30, 30, 45, 0.9);
    color: #ff79c6;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    font-weight: bold;
}
/* Section Headings */
.movies-section h2,
.tv-shows-section h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
}

/* Separate the sections */
.movies-section,
.tv-shows-section {
    margin-bottom: 40px;
}

/* Empty section placeholder */
.movies-section p,
.tv-shows-section p {
    font-size: 1rem;
    color: #888;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
}
