body {
    background-color: #212529;
}

.card {
    transition: background-color 0.2s ease;
    border: 1px solid transparent !important;
}

.card:hover {
    background-color: #f0f0f0;
}

.card-img-top {
    object-fit: cover;    
    background-color: #343a40; 
    border-radius: 4px;     
}

.card-title a {
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #00aaff !important; 
}

.search-container {
    position: relative;
}

#liveSearchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #343a40; 
    border: 1px solid #495057;
    border-radius: 0 0 .25rem .25rem;
    max-height: 400px;
    overflow-y: auto;
}

#liveSearchResults .result-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: #f8f9fa; 
    border-bottom: 1px solid #495057;
}

#liveSearchResults .result-item:last-child {
    border-bottom: none;
}

#liveSearchResults .result-item:hover {
    background-color: #495057;
}

#liveSearchResults .result-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: .25rem;
}

#liveSearchResults .result-item .title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-movies-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem; 
    scrollbar-width: thin;
    scrollbar-color: #dc3545 #212529;
}

.btn-outline-secondary {
    --bs-btn-color: #adb5bd;            
    --bs-btn-border-color: #adb5bd;     
    --bs-btn-hover-bg: #adb5bd;         
    --bs-btn-hover-color: #212529;      
    --bs-btn-active-bg: #adb5bd;       
    --bs-btn-active-border-color: #adb5bd;
}

footer.container p {
    color: #899198; 
}


@media (max-width: 768px) {
    
    .h1, h1 {
        font-size: 1.75rem;
    }

    .h5, h5 {
        font-size: 1.1rem;
    }

    main.container {
        margin-top: 1rem !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 991.98px) {
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid #444;
    }

    .navbar-nav .nav-item {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .navbar-collapse .d-flex {
        margin-top: 1rem;
    }
}