body {
    background-color: #151515; /* Plex dark background */
    color: #e5e5e5;
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.bg-plex {
    background-color: #151515;
}

.container {
    max-width: 1200px; /* Constrained width for index and details content */
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #202020;
}

.movie-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: filter 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(232, 170, 66, 0.2); /* Subtle Plex orange glow */
}

.movie-card:hover img {
    filter: brightness(50%);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #e5e5e5;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.movie-overlay h5 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.movie-overlay p {
    font-size: 0.95rem;
    margin: 5px 0;
}

.btn-plex-orange {
    background-color: #e8aa42; /* Plex orange */
    border: none;
    color: #151515;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn-plex-orange:hover {
    background-color: #d99b38; /* Warmer Plex orange hover */
}

.bg-plex-input {
    background-color: #2a2a2a !important;
    color: #e5e5e5 !important;
    border: none !important;
    border-radius: 6px;
}

.bg-plex-input::placeholder {
    color: #888 !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 5px rgba(232, 170, 66, 0.5);
    border-color: #e8aa42 !important;
}

/* Skeleton loading styles */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skeleton-card {
    height: 300px;
    background: #2a2a2a;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

[style*="color : #d3d3d3"] {
    color: #d3d3d3 !important;
}

/* Suggestions dropdown */
.suggestions {
    position: absolute;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.suggestion {
    cursor: pointer;
    padding: 5px 10px;
    min-height: 67px;
    display: flex;
    align-items: center;
}

.suggestion:hover {
    background-color: #3a3a2a;
}

.suggestion img {
    object-fit: cover;
    margin-right: 10px;
}

/* Movie Details Styling */
.movie-detail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1000;
}

.movie-detail-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    overflow-y: auto;
}

.movie-detail-container .container {
    position: relative;
    z-index: 1001; /* Ensure content is above the overlay */
}