/* ============================================ */
/* CSS VARIABLES */
/* ============================================ */

:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-orange: #FFA500;
    --color-red: #FF0000;
    --color-green: #41db51;
    --color-grey: #adadad;
    --color-darkgrey: #7c7c7c;
    --color-darkblue: #03035d;
}

/* ============================================ */
/* GLOBAL STYLES */
/* ============================================ */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Carter One', cursive;
    font-weight: normal;
}

body {
    min-height: 100vh;
    background-color: #418ec5;
    font-family: 'Carter One', cursive;
}

/* ============================================ */
/* NAVIGATION SIDEBAR */
/* ============================================ */

.main-menu {
    background: rgba(33, 33, 33, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(229, 229, 229, 0.2);
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100%;
    left: 0;
    width: 60px;
    overflow: hidden;
    transition: width 0.2s linear;
    transform: translateZ(0) scale(1, 1);
    z-index: 1000;
}

.main-menu:hover,
.main-menu.expanded {
    width: 250px;
    overflow: visible;
}

.logo-container {
    width: 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    overflow: hidden;
    transition: width 0.2s linear;
}

.main-menu:hover .logo-container {
    width: 250px;
}

.sidebar-logo {
    width: 50px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    transition: all 0.2s linear;
    display: block;
}

.main-menu:hover .sidebar-logo {
    width: 200px;
    max-height: 150px;
}

.main-menu > ul {
    margin: 7px 0;
    list-style: none;
    padding: 0;
}

.main-menu li {
    position: relative;
    display: block;
    width: 250px;
}

.main-menu li > a {
    position: relative;
    display: table;
    border-collapse: collapse;
    border-spacing: 0;
    color: #999;
    font-family: 'Carter One', cursive;
    font-size: 14px;
    text-decoration: none;
    transform: translateZ(0) scale(1, 1);
    transition: all 0.1s linear;
    padding: 0;
}

.main-menu .nav-icon {
    position: relative;
    display: table-cell;
    width: 60px;
    height: 36px;
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
}

.main-menu .nav-text {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    width: 190px;
    font-family: 'Carter One', cursive;
    font-weight: normal;
    letter-spacing: 1px;
}

.main-menu > ul.logout {
    position: absolute;
    left: 0;
    bottom: 0;
}

.main-menu li:hover > a,
.main-menu li.active > a {
    color: var(--color-white);
    background-color: var(--color-orange);
}

/* ============================================ */
/* CONTENT WRAPPER */
/* ============================================ */

.content-wrapper {
    margin-left: 60px;
    transition: margin-left 0.2s linear;
    padding: 20px;
}

.main-menu:hover ~ .content-wrapper {
    margin-left: 250px;
}

/* ============================================ */
/* MOVIES SECTION */
/* ============================================ */

.movies-container {
    margin-bottom: 40px;
}

.movies-scroll-title {
    color: var(--color-white);
    font-size: 28px;
    margin-bottom: 20px;
    font-family: 'Carter One', cursive;
}

.movies-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.movies-scroll::-webkit-scrollbar {
    height: 12px;
}

.movies-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.movies-scroll::-webkit-scrollbar-thumb {
    background: var(--color-orange);
    border-radius: 10px;
}

.movies-scroll::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}

.loading-message {
    color: var(--color-white);
    font-size: 18px;
    padding: 40px;
    text-align: center;
    width: 100%;
}

.loading-message i {
    margin-right: 10px;
}

.no-movies {
    color: var(--color-grey);
    font-size: 16px;
    padding: 40px;
    text-align: center;
    width: 100%;
}

.movie-card {
    min-width: 250px;
    max-width: 250px;
    background: rgba(33, 33, 33, 0.8);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.movie-card-poster {
    position: relative;
    overflow: hidden;
}

.movie-card-poster img {
    width: 90%;
    height: 90%;
    object-fit: fill;
    object-position: center;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster-img {
    transform: scale(1.05);
}

.movie-card-poster {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.movie-card-poster i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 165, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 40px;
    color: var(--color-white);
    margin-left: 5px;
}

.movie-card-title {
    color: var(--color-white);
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-family: 'Carter One', cursive;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Update the play-overlay section and add these new styles */

.movie-options {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-options {
    opacity: 1;
}

.movie-option-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 165, 0, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.movie-option-btn:hover {
    background: var(--color-orange);
    transform: scale(1.1);
}

.movie-option-btn i {
    font-size: 24px;
    color: var(--color-white);
}

.play-btn i {
    margin-left: 3px;
}

/* Notification styles */
.movie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(33, 33, 33, 0.95);
    color: var(--color-white);
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.movie-notification.show {
    transform: translateX(0);
}

.movie-notification.success {
    border-left: 4px solid var(--color-green);
}

.movie-notification.error {
    border-left: 4px solid var(--color-red);
}

.movie-notification i {
    font-size: 20px;
}

.movie-notification.success i {
    color: var(--color-green);
}

.movie-notification.error i {
    color: var(--color-red);
}

/* ============================================ */
/* MOVIE MODAL */
/* ============================================ */

.movie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.movie-modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(33, 33, 33, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: #cc0000;
    transform: rotate(90deg);
}

.modal-content h3 {
    color: var(--color-white);
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Carter One', cursive;
}

#movie-player {
    width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    background: #000;
}