/* --- STRIP ORIZZONTALE --- */
.poster-strip { 
    display: flex; 
    width: 100%;
    height: 16.5vw; /* Scalabile (approx 310px su 1080p) */
    overflow: hidden; /* Disabilita scroll nativo */
    overflow-y: hidden;
    align-items: center;
    justify-content: flex-start; /* Allineamento manuale con transform */
    padding: 1vw 3vw; /* Scalabile (approx 20px 60px) */
    gap: 1.5vw; /* Scalabile (approx 30px) */
    box-sizing: border-box;
    position: relative;
}

.strip-card { 
    width: 8.6vw; /* Scalabile (approx 166px) */
    height: 12.9vw; /* Scalabile (approx 249px) */
    aspect-ratio: 2/3;
    background-color: #333;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer; 
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.1s;
    transform: translateX(calc(-100% - 1.5vw)); /* Shift statico scalabile (buffer sx) */
    transform-origin: center bottom;
}

.strip-card:focus, .strip-card:hover, .strip-card.selected {
    transform: translateX(calc(-100% - 1.5vw)) scale(1.1); /* Mantiene lo shift + scale */
    border-color: #2196F3;
    outline: none !important;
    z-index: 2;
}

.strip-img { 
    width: 100%; height: 100%; 
    background-size: cover; background-position: center center;
    border-radius: 2px;
}

.strip-badge {
    position: absolute; bottom: 16px; right: 4px; /* Alzato ulteriormente */
    padding: 2px 5px; border-radius: 3px;
    font-size: 11px; font-weight: bold;
    background-color: #2196F3; color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- BARRA VISTO --- */
.progress-container {
    position: absolute; bottom: 6px; left: 8px; width: calc(100% - 16px); height: 4px;
    background-color: rgba(255, 255, 255, 0.3); /* Sfondo barra */
    z-index: 3;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.5);
    border-radius: 2px;
}
.progress-container .progress-fill {
    height: 100%;
    background-color: #FFFFFF; /* Bianco per contrasto */
    border-radius: 2px 0 0 2px;
}

/* --- PLACEHOLDER CARD (SKELETON) --- */
.strip-card.placeholder {
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 32px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}
.strip-card.placeholder::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%); animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* --- SPINNER CARICAMENTO CARD --- */
.card-loader {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex; justify-content: center; align-items: center;
    z-index: 10; border-radius: 8px; pointer-events: none;
}
.card-loader::after {
    content: ""; width: 30px; height: 30px;
    border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid #fff;
    border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- FRECCE DI NAVIGAZIONE --- */
.strip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 5;
    cursor: pointer;
    user-select: none;
    display: none; /* Nascoste di default */
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.strip-arrow.left {
    left: 10px;
}

.strip-arrow.right {
    right: 10px;
}

/* --- CONTEXT MENU --- */
.context-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 200;
    display: flex; justify-content: center; align-items: center;
}

.context-menu {
    background: #222; border: 1px solid #444; border-radius: 8px;
    width: 300px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; gap: 10px;
}

.context-menu-title {
    font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 10px;
    text-align: center; border-bottom: 1px solid #444; padding-bottom: 10px;
}

.context-subtitle {
    font-size: 12px; color: #aaa; margin-top: 5px; text-transform: uppercase;
}

.context-btn {
    background: #333; color: #eee; border: none; padding: 12px;
    text-align: left; border-radius: 4px; cursor: pointer;
    font-size: 14px; transition: background 0.2s;
}

.context-btn:hover, .context-btn:focus {
    background: #2196F3; color: #fff; outline: none !important; border: none !important; box-shadow: none !important;
}

.context-separator {
    height: 1px; background: #444; margin: 5px 0;
}

.context-info {
    color: #888; font-style: italic; font-size: 13px; text-align: center;
}