@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff3700;
}

body {
    background: #000;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("image/Gemini_Generated_Image_o1du03o1du03o1du.png") center/cover no-repeat;
    filter: blur(2px) brightness(0.6);
    z-index: -1;
}

/* HEADER */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 100px;
    z-index: 10;
}

.logo {
    width: 80px;
    border: none;
}

.nav {
    display: flex;
}

.nav li {
    list-style: none;
    margin: 0 10px;
}

.nav li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.nav li:hover a {
    color: var(--primary);
}

.search {
    position: relative;
    width: 300px;
    height: 40px;
}

.search input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    outline: none;
    border-radius: 4px;
    padding: 0 10px 0 45px !important;
    backdrop-filter: blur(10px);
}

.search input::placeholder {
    color: #fff;
}

.search i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    color: #fff;
}

.icon-cart {
    margin-left: 20px;
    cursor: pointer;
    position: relative;
}

.icon-cart svg {
    width: 28px;
    height: 28px;
    fill: none;
    color: #fff;
    transition: 0.3s;
}

.icon-cart:hover svg {
    color: var(--primary);
}

.icon-cart span {
    display: flex;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: -10px;
}

/* MOVIE SECTIONS */
.movie-section {
    margin-top: 140px; /* Space below header */
    padding: 20px 60px;
}

.movie-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.movie-row {
    display: flex;
    gap: 15px;
    overflow: visible;
    scrollbar-width: none;
    position: relative;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

.movie-card {
    min-width: 180px;
    max-width: 180px;
    border-radius: 10px;
    overflow: visible;
    background: transparent;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(20px);
    z-index: 1;
    position: relative;
}

.movie-card img {
    width: 180px;
    height: 250px;
    display: block;
    border-radius: 10px;
}

.movie-card p {
    font-size: 14px;
    text-align: center;
    padding: 5px 0;
}

.movie-card:hover {
    transform: scale(1.08);
    z-index: 999;
}

.add-cart-btn {
     display: block;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 10px auto;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

.add-cart-btn:hover {
    background: #444;
}

/* CART */
.cart {
    display: none;
    background: transparent;
    color: #fff;
    padding: 20px;
    position: fixed;
    right: 20px;
    top: 80px;
    width: 320px;
    border-radius: 10px;
    z-index: 100;
    backdrop-filter: blur(50px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.cart h2 {
    text-align: center;
    margin-bottom: 10px;
}

.cart ul {
    list-style: none;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
}

.cart ul li {
    display: flex;
    align-items: center;
    background: #222;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    justify-content: space-between;
}

.cart ul li img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 10px;
}

.cart ul li span {
    flex: 1;
    font-size: 14px;
}

.cart button {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
     padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s, color 0.3s;
}

.cart button:hover {
    background: var(--primary);
    color: #fff;
}

.cart button.remove-btn {
    background: transparent;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

.cart button.remove-btn:hover {
    color: darkred;
}

#cart-total {
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
}

.empty-cart-message {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

.search input:focus {
    box-shadow: 0 0 5px var(--primary);
}

.rating {
    text-align: center;
    margin: 5px 0;
    cursor: pointer;
}

.rating i {
    color: #777;   /* default gray */
    margin: 0 2px;
    font-size: 16px;
    transition: color 0.2s;
}

.rating i.active {
    color: gold;   /* selected stars turn gold */
}

.close-cart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s;
}

.close-cart-btn:hover {
    color: var(--primary);
}

.Checkout{
     background-color: var(--primary) !important;
    color: #fff !important;
    margin-left: 90px;
    border: 1px solid var(--primary) !important;
}

.Checkout:hover {
    background-color: #444 !important;
    border: 1px solid #444 !important;
}

/* Trailer Section */
.trailer-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px;
    border-radius: 10px;
    display: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trailer-section video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.trailer-section h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
}

.trailer-section p {
    color: #ccc;
    text-align: justify;
    margin-bottom: 15px;
    font-size: 14px;
}

.close-trailer-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.close-trailer-btn:hover {
    color: var(--primary);
}