:root {
    --bg-dark: #0a0a0a;
    --surface: #161616;
    --accent: #e50914; /* Netflix Red for high-end feel */
    --text-main: #ffffff;
    --text-dim: #b3b3b3;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- Improved Video Player --- */
.video-player-container {
    max-width: 1200px;
    margin: 40px auto;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.video-frame-area {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-frame-area iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Metadata Section --- */
.player-content-area {
    padding: 30px;
}

.player-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.player-metadata {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--text-dim);
}

.player-metadata span {
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Recommendation Grid (Modern Layout) --- */
.container {
    max-width: 1250px;
    margin: 50px auto;
    padding: 0 20px;
}

.container h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

#recommendationGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
/* --- Portrait Movie Cards --- */
.movie-link {
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1f1f1f;
}

.movie-poster-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-link:hover .movie-poster-container::after {
    opacity: 1;
}

.movie-poster-container {
    position: relative;
    aspect-ratio: 2/3; /* Forces Perfect Portrait */
    overflow: hidden;
}

.movie-poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    padding: 12px;
}

.movie-info h3 {
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.movie-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Hover Effects */
.movie-link:hover {
    transform: scale(1.08);
    z-index: 10;
}

.movie-link:hover .movie-card {
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}


/* --- Modern Explore Section --- */
.explore-footer {
    position: relative;
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    margin-top: -100px; /* Overlaps bottom of grid for a fade effect */
    z-index: 5;
}

.explore-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.explore-container h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 400;
}

.btn-explore {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    background: #fff; /* White button on dark theme is very premium */
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn-explore i {
    font-size: 1.2rem;
}

.btn-explore:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4);
}

/* Add a subtle glow behind the button */
.explore-glow {
    position: absolute;
    width: 200px;
    height: 100px;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
}

.movie-description-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-heading {
    font-size: 1.2rem;
    color: #E50914; /* Accent color */
    margin-bottom: 10px;
    font-weight: 600;
}

.movie-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #CCCCCC; /* Softer white for easier reading */
    max-width: 800px;
}

/* Ensure the player metadata has some spacing */
.player-metadata {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.9rem;
}