body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(10px);
}

header h1 {
    color: #c084fc;
    letter-spacing: 1px;
}


input {
    padding: 10px 15px;
    width: 260px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #1e1b4b;
    color: white;
}

input::placeholder {
    color: #a78bfa;
}

button {
    padding: 10px 18px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #a855f7;
}

/* GRID */
#movieContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 25px;
}

/* CARD */
.movie-card {
    background: rgba(30, 27, 75, 0.6);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

/* IMAGE */
.movie-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* INFO */
.movie-info {
    padding: 12px;
}

.movie-info h3 {
    margin: 0;
    font-size: 16px;
    color: #e9d5ff;
}

.movie-info p {
    margin: 5px 0;
    color: #c4b5fd;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    margin: 5% auto;
    padding: 25px;
    width: 60%;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

.modal-content h2 {
    color: #c084fc;
}

.modal-content img {
    border-radius: 10px;
    margin-bottom: 15px;
}

/* SLIDER */
.slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.slider img {
    width: 180px;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

.slider img:hover {
    transform: scale(1.1);
}

/* OTT BADGE */
.ott {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
}
.loader {
    text-align: center;
    font-size: 20px;
    color: #c084fc;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(15, 12, 41, 0.9);
}

.logo {
    color: #c084fc;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

select {
    padding: 10px;
    border-radius: 8px;
    background: #1e1b4b;
    color: white;
    border: 1px solid #7c3aed;
    cursor: pointer;
}

select:hover {
    box-shadow: 0 0 10px #a855f7;
}

.details-container {
    display: flex;
    gap: 40px;
    padding: 20px;
}

.details-left {
    flex: 2;
}

.details-left h1 {
    color: #c084fc;
}

.plot {
    margin-top: 15px;
    line-height: 1.6;
}

.details-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-right img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.3s;
}

.details-right img:hover {
    transform: scale(1.05);
}

.ott {
    color: #a855f7;
    font-weight: bold;
}

.ott {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
}

/* DETAILS WRAPPER */
.details-wrapper {
    padding: 30px;
}

/* TOP SECTION */
.details-top {
    max-width: 800px;
}

.details-top h1 {
    color: #c084fc;
}

.plot {
    margin-top: 15px;
    line-height: 1.6;
}


.star {
    color: gold;
    font-size: 18px;
}


.ott {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.poster-row {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.poster-row img {
    width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.3s;
}

.poster-row img:hover {
    transform: scale(1.05);
}

.poster-row {
    overflow-x: auto;
}

/* WRAPPER */
.details-wrapper {
    padding: 30px;
    text-align: center;
}

/* CENTER DETAILS */
.details-top {
    max-width: 700px;
    margin: 0 auto;
}

.details-top h1 {
    color: #c084fc;
    margin-bottom: 15px;
}

.plot {
    margin-top: 15px;
    line-height: 1.6;
}

/* STAR */
.star {
    color: gold;
    font-size: 18px;
}

/* OTT BADGE */
.ott {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

/* 🔥 POSTER ROW FULL WIDTH */
.poster-row {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
}

/* BIGGER POSTERS */
.poster-row img {
    width: 280px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
    transition: 0.3s;
}

.poster-row img:hover {
    transform: scale(1.08);
}

.hero {
    height: 400px;
    display: flex;
    align-items: center;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.hero-overlay {
    max-width: 600px;
}

.hero h1 {
    font-size: 40px;
    color: #e9d5ff;
}
/* MAIN CARD */
.details-card {
    display: flex;
    gap: 40px;
    padding: 30px;
    max-width: 1000px;
    margin: 30px auto;
    background: rgba(30, 27, 75, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* LEFT POSTER */
.details-left img {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
}

/* RIGHT DETAILS */
.details-right {
    flex: 1;
}

.details-right h1 {
    color: #c084fc;
    margin-bottom: 10px;
}

.plot {
    margin-top: 15px;
    line-height: 1.6;
}

/* STAR */
.star {
    color: gold;
}

/* OTT */
.ott {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* GALLERY TITLE */
.gallery-title {
    text-align: center;
    margin-top: 20px;
}

/* POSTER ROW */
.poster-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    justify-content: center;
}

.poster-row img {
    width: 250px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    transition: 0.3s;
}

.poster-row img:hover {
    transform: scale(1.05);
}

/* MAIN LAYOUT */
.details-card {
    display: flex;
    gap: 40px;
    padding: 30px;
    max-width: 1100px;
    margin: auto;
}

/* LEFT SIDE */
.details-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* MAIN POSTER */
.main-poster {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
}

/* 🔥 IMAGE GRID */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.image-grid img {
    width: 145px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* RIGHT SIDE */
.details-right {
    flex: 1;
}

.details-right h1 {
    color: #c084fc;
}

/* STAR */
.star {
    color: gold;
}

/* OTT */
.ott {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    padding: 5px 12px;
    border-radius: 20px;
}

/* GRID LAYOUT */
.big-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* BIG POSTERS */
.big-grid img {
    width: 300px;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.3s;
}

/* HOVER EFFECT */
.big-grid img:hover {
    transform: scale(1.05);
}
.big-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.big-grid img {
    width: 300px;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
}
.footer {
    text-align: center;
    padding: 20px;
    background: #0f0c29;
    margin-top: 40px;
}

.footer .link {
    color: #a855f7;
    text-decoration: none;
    margin: 0 5px;
}

.footer .link:hover {
    text-decoration: underline;
}
.page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.page h1 {
    color: #a855f7;
    margin-bottom: 20px;
}

.page h2 {
    margin-top: 30px;
}