/* Base Styles */
body {
    background-color: black;
    color: #fff;
    font-family: Arial, sans-serif;
    margin-top: -80px;
    padding: 0;
    
    display: flex;
    justify-content: left;
}

.header {
    display: flex;
    justify-content: left; /* Center back button horizontally */
    align-items: left;
    background-color: black;
    padding: 5px 0;
    position: fixed;
    top: 100px;
    width: 100%;
    z-index: 1000;
}

.back-button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 40px;
    cursor: pointer;
    
}

.container {
    max-width: 100%;
    width: 100%;
    padding: 0px;
    margin-top: 95px; /* Space for fixed header */
}

.movie-poster {
    position: relative;
    margin: 30px 0;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.movie-poster video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.custom-controls {
    position: absolute;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: left;
    justify-content: left;
    padding: 10px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.custom-controls.visible {
    opacity: 1;
    pointer-events: auto;
}

.custom-controls button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.custom-controls svg {
    width: 44px;
    height: 44px;
    fill: white;
}

#play-icon { display: none; }

.progress-bar-container {
    width: 100%;
    height: 5px;
    background-color: #444;
    margin-top: -5px;
    position: relative;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: red;
    transition: width 0.1s linear;
    position: absolute;
    top: 0;
    left: 0;
}

.movie-title {
    font-size: 36px;
    margin: 10px 0;
    text-align: left;
}

.movie-info {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin: 10px 0;
}

.movie-buttons {
    display: flex;
    justify-content: left;
    margin: 20px 0;
}

.movie-buttons a {
    background-color: white;
    color: black;
    text-decoration: none;
    border: none;
    padding: 9px 25px;
    font-size: 18px;
    cursor: pointer;
}

.movie-description, .movie-credits {
    text-align: left;
    margin: 10px 0;
}

.movie-credits span {
    display: block;
    margin: 5px 0;
}