.search-container-new {
    max-width: 700px;
    margin: 0 auto;
}

.search-bar-wrapper {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: visible;
}

/* Input de recherche unifié */
.unified-search-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid rgba(68, 85, 102, 0.3);
    border-radius: 12px;
    background: var(--bg-card);
    color: #ffffff !important;
    font-size: 16px;
    transition: all 0.3s ease;
    -webkit-text-fill-color: #ffffff !important;
}

.unified-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.unified-search-input::placeholder {
    color: rgba(156, 163, 175, 0.7) !important;
    -webkit-text-fill-color: rgba(156, 163, 175, 0.7) !important;
}

/* Boutons de switch mode (Films et Acteurs côte à côte) */
.search-mode-switch {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background: var(--bg-card);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* État actif du bouton */
.search-mode-switch.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(147, 197, 253, 0.3));
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Tooltip discret */
.search-mode-switch::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -45px;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.search-mode-switch:hover::after {
    opacity: 1;
    bottom: -50px;
}

.search-mode-switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(147, 197, 253, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-mode-switch:hover::before {
    opacity: 1;
}

.search-mode-switch:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-mode-switch:active {
    transform: translateY(0) scale(0.95);
}

.mode-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Animation lors du switch */
.search-mode-switch.switching {
    animation: switchBounce 0.5s ease;
}

@keyframes switchBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(0.9) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(10deg); }
    75% { transform: scale(0.95) rotate(-5deg); }
}

/* Label du mode actuel — masqué */
.search-mode-label {
    display: none !important;
}

/* (styles mode-indicator / mode-text supprimés avec le label) */

/* Styles pour les cartes d'acteurs dans la grille */
.actor-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(12, 27, 48, 0.7);
}


.actor-card {
    position: relative;
}

.actor-popularity-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    letter-spacing: 0.2px;
    pointer-events: none;
}
.actor-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(37, 99, 235, 0.5);
}

.actor-photo {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #1f2327 0%, #14181c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.actor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.actor-card:hover .actor-photo img {
    transform: scale(1.1);
}

.actor-info {
    padding: 16px;
    background: var(--bg-card);
}

.actor-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actor-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.actor-department {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.actor-known-for {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Message quand la grille est vide */
.grid-empty-state {
    grid-column: 1 / -1;   /* span toute la largeur de la grille */
    width: 100%;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.grid-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.grid-empty-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
    .search-container-new {
        max-width: 100%;
    }

    .search-bar-wrapper {
        gap: 8px;
    }

    .unified-search-input {
        padding: 14px 18px;
        font-size: 15px;
    }

    .search-mode-switch {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .mode-icon {
        width: 22px;
        height: 22px;
    }

    .search-mode-label {
        margin-top: 12px;
        padding: 6px 12px;
    }

    .mode-indicator {
        font-size: 16px;
    }

    .mode-text {
        font-size: 11px;
    }

    .actor-card {
        border-radius: 12px;
    }

    .actor-info {
        padding: 12px;
    }

    .actor-name {
        font-size: 14px;
    }

    .actor-department {
        font-size: 10px;
        padding: 3px 8px;
    }

    .actor-known-for {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .unified-search-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .search-mode-switch {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .mode-icon {
        width: 20px;
        height: 20px;
    }

    .grid-empty-icon {
        font-size: 48px;
    }

    .grid-empty-title {
        font-size: 20px;
    }

    .grid-empty-text {
        font-size: 14px;
    }
}
/* ══════════════════════════════════════════════════════════════
   ACTEURS SPLASH — écran vide avant toute recherche
══════════════════════════════════════════════════════════════ */

.actors-splash-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: flex-start;     /* monter le message en haut */
    justify-content: center;
    padding-top: 60px;
    margin: 0 auto;
}

.actors-splash-message {
    text-align: center;
    animation: actorSplashMsgIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes actorSplashMsgIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.actors-splash-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.actors-splash-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.actors-splash-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .actors-splash-icon  { font-size: 52px; }
    .actors-splash-title { font-size: 20px; }
}