/* Spinner de carregamento */
.spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Começamos oculto */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-text {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.spinner-icon {
    width: 50px;
    height: 50px;
    border: 5px solid #444;
    border-top-color: #2196F3;
    border-radius: 50%;
    animation: spinner 1s linear infinite;
    margin: 0 auto;
}

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

/* Estilos para resultados do TMDB com similaridade */
.tmdb-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.tmdb-item:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
}

.tmdb-item.selected {
    border-color: #4CAF50;
    background: #f8fff8;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.tmdb-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.tmdb-poster-placeholder {
    width: 60px;
    height: 90px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
}

.tmdb-content {
    flex: 1;
    min-width: 0;
}

.tmdb-title {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.tmdb-info {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}
