* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, p {
    font-family: "Poppins", sans-serif;
    color: #faf9f6;
}

body {
    background-color: #c62828;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    box-sizing: border-box;
    background: #c62828;
    box-shadow: 0 5px 15px rgba(140, 0, 0, 0.4);
    border-radius: 8px;
    width: fill;
    margin: 15px 20px;
    z-index: 100;
    position: static;
    padding: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.navbar a {
    font-family: "Poppins", sans-serif;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.paradise-logo {
    display: flex;
    align-items: center;
}

.paradise-logo img {
    width: 45px;
    height: 45px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar a:not(:first-child) {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar a:not(:first-child) i {
    margin-right: 8px;
}

.navbar a:not(:first-child):hover {
    font-size: 18px;
    color: #484c51;
    background-color: #e7928f;
    border-radius: 10px;
    scale: 1.05;
}

.navbar a:first-child {
    padding: 10px 25px;
    font-size: 26px;
    font-weight: 650;
    margin-right: auto;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar a:first-child:hover {
    transform: translateX(10px);
    color: #484c51;
    background-color: #e7928f;
    border-radius: 10px;
    scale: 1.1;
}

main {
    flex: 1;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.search-container {
    margin: 30px auto;
    width: 100%;
    max-width: 800px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#search {
    padding: 12px 20px;
    border: 2px solid #fff;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    width: 70%;
    outline: none;
    transition: all 0.3s ease;
}

#search:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.movie {
    width: 200px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.movie:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.movie img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.movie h2 {
    font-size: 1rem;
    padding: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-btn {
    width: 100%;
    padding: 8px;
    border: none;
    background-color: #a01f1f;
    color: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.watch-btn:hover {
    background-color: #d32f2f;
}

#player-section {
    display: none;
    margin: 30px auto;
    width: 90%;
    max-width: 1000px;
}

.player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;  /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.movie-details {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.movie-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.movie-overview {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.source-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.source-btn {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.source-btn.active {
    background-color: #a01f1f;
    border-color: #a01f1f;
}

.source-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.source-btn.active:hover {
    background-color: #d32f2f;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.close-player {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.close-player:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.load-more {
    margin: 30px auto;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.load-more:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    p {
        font-size: 1.2rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    
    #search {
        width: 100%;
    }
    
    .movie {
        width: 160px;
    }
    
    .movie img {
        height: 240px;
    }
    
    .navbar a:not(:first-child) span {
        display: none;
    }
    
    .source-selector {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .source-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .movie {
        width: 140px;
    }
    
    .movie img {
        height: 210px;
    }
    
    .movie h2 {
        font-size: 0.9rem;
    }
}