/* =====================================================
   FORTSÄTT TITTA - STARTSIDAN FIX
   Lägg till denna kod i SLUTET av styles.css
   ===================================================== */

/* Gör om korten till vertikal layout som ämnessidans kort */
#continueWatchingRow .video-card {
    min-width: 280px;
    max-width: 320px;
    width: 300px;
    height: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thumbnail-sektionen - SEPARAT från text */
#continueWatchingRow .video-card .video-thumbnail {
    position: relative;
    width: 100%;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

/* Thumbnail-bilden */
#continueWatchingRow .video-card .video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* KRITISK FIX: Video-info UNDER thumbnail, inte ovanpå */
#continueWatchingRow .video-card .video-info {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    background: transparent;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#continueWatchingRow .video-card .video-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0;
}

#continueWatchingRow .video-card .video-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    margin-bottom: 0;
}

#continueWatchingRow .video-card .video-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    opacity: 1;
}

/* Progress bar längst ner */
#continueWatchingRow .video-card .progress-bar {
    position: relative;
    bottom: auto;
    left: auto;
    height: 4px;
    background: #e50914;
    border-radius: 0;
}

/* Duration badge */
#continueWatchingRow .video-card .video-duration {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: auto;
    left: auto;
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 5;
}

/* Play-knapp */
#continueWatchingRow .video-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

#continueWatchingRow .video-card:hover .play-button {
    opacity: 1;
}

/* Thumbnail ikon */
#continueWatchingRow .video-card .thumbnail-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    z-index: 1;
}

/* Hover-effekt */
#continueWatchingRow .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.4);
}

#continueWatchingRow .video-card:hover .video-thumbnail-img {
    transform: scale(1.05);
}

/* Responsiv */
@media (max-width: 768px) {
    #continueWatchingRow .video-card {
        min-width: 260px;
        max-width: 280px;
        width: 270px;
    }
    
    #continueWatchingRow .video-card .video-thumbnail {
        height: 150px;
        min-height: 150px;
        max-height: 150px;
    }
    
    #continueWatchingRow .video-card .video-info {
        padding: 12px;
    }
    
    #continueWatchingRow .video-card .video-title {
        font-size: 14px;
    }
}

/* Light mode */
body.light-mode #continueWatchingRow .video-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 250, 0.95));
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode #continueWatchingRow .video-card .video-title {
    color: #333;
}

body.light-mode #continueWatchingRow .video-card .video-description {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode #continueWatchingRow .video-card .video-meta {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode #continueWatchingRow .video-card .play-button {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}
