:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --dark: #0a0a0a;
    --dark-lighter: #1a1a1a;
    --card-bg: rgba(26, 26, 26, 0.95);
    --text: #ffffff;
    --text-muted: #a3a3a3;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Navbar styles */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border) !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    -webkit-text-fill-color: initial;
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

/* Card styles */
.card {
    background: rgba(17, 17, 17, 0.8);
    border: none;
    transition: transform 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 300px;
    object-fit: cover;
}

.card-body {
    background: rgba(17, 17, 17, 0.8);
}

.card-title {
    color: #fff;
    margin-bottom: 0.5rem;
}

/* Featured movie */
.featured {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    margin-bottom: 4rem;
    border-radius: 8px;
    overflow: hidden;
}

.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.95),
        rgba(10, 10, 10, 0.7)
    );
}

.featured-content {
    position: relative;
    max-width: 800px;
    padding: 6rem 2rem;
}

.featured-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.featured-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Movie detail */
.backdrop {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: -200px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.movie-info {
    position: relative;
    padding: 0 1rem;
}

.movie-info .card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: none;
}

.movie-info .poster {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Genre tags */
.genre {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    color: #fff;
}

/* Custom button styles */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-color: var(--border);
    color: var(--text);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Form controls */
.form-control {
    background: var(--dark-lighter) !important;
    border: 1px solid var(--border);
    color: var(--text) !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control:focus {
    background: var(--dark-lighter) !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-select {
    background-color: var(--dark-lighter) !important;
    border: 1px solid var(--border);
    color: var(--text) !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
}

/* Rating and info badges */
.rating {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #ffd700;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin: 0;
}

/* Footer */
footer {
    background: var(--dark) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-muted);
    padding: 3rem 0;
}

footer .footer-brand {
    max-width: 600px;
    margin-bottom: 3rem;
}

footer .navbar-brand {
    font-size: 1.75rem;
    color: var(--primary) !important;
    margin-bottom: 1rem;
    display: inline-block;
}

footer h5 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-weight: 600;
}

.footer-sections-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0;
    }

    footer .footer-brand {
        margin-bottom: 2rem;
    }

    .footer-sections-wrapper {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 2rem 0;
    }

    footer .footer-brand {
        margin-bottom: 1.5rem;
    }

    .footer-sections-wrapper {
        gap: 2rem;
        margin: 0 -0.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-section {
        flex: 0 0 calc(50% - 1rem);
        min-width: 0;
        padding: 0 0.5rem;
    }

    footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    background-color: var(--dark-lighter) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text) !important;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.page-item.disabled .page-link {
    background-color: var(--dark) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Responsive text */
@media (max-width: 768px) {
    .featured-content h1 {
        font-size: 2.5rem;
    }
    
    .featured-content .lead {
        font-size: 1.125rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .backdrop {
        height: 300px;
        margin-bottom: -150px;
    }
    
    .movie-info {
        padding: 0;
    }
}

/* Watch Options */
#watch-options .card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}

#watch-options .card:hover {
    transform: translateY(-5px);
}

#watch-options .card-title {
    color: #fff;
}

/* Hover Effects */
.hover-light:hover {
    color: #fff !important;
    opacity: 0.8;
}

/* Trailer Section */
.ratio-16x9 {
    border-radius: 10px;
    overflow: hidden;
}

/* Cast Section */
.cast-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Responsive Styles */
/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .featured-content h1 {
        font-size: 2rem;
    }

    .featured-content .lead {
        font-size: 1rem;
    }

    .featured {
        min-height: 50vh;
    }

    .featured-content {
        padding: 3rem 1rem;
    }

    .card-img-top {
        height: 200px;
    }

    .backdrop {
        height: 200px;
        margin-bottom: -100px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .genre {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }

    .cast-image {
        width: 80px;
        height: 80px;
    }

    /* For movie/content cards in grid */
    .row .col-6,
    .row .col-sm-6,
    .row .col-md-3,
    .row .col-lg-3 {
        width: 50% !important; /* Force 2 columns */
        padding: 0.5rem;
    }

    /* Exception for movie detail poster */
    .movie-info .col-md-3,
    .movie-info .col-lg-3 {
        width: 100% !important; /* Full width for detail poster */
    }

    /* Adjust card spacing and size */
    .card {
        margin-bottom: 1rem;
    }

    /* Grid cards image height */
    .card-img-top {
        height: 180px;
    }

    /* Exception for movie detail poster */
    .movie-info .poster {
        width: 100%;
        height: auto;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    .card-body {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .card-text {
        font-size: 0.8rem;
    }
}

/* Small devices (tablets, 577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .featured-content {
        padding: 4rem 1.5rem;
    }

    .card-img-top {
        height: 250px;
    }
}

/* Medium devices (tablets/small laptops, 769px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .featured-content h1 {
        font-size: 3rem;
    }

    .featured {
        min-height: 60vh;
    }
}

/* Large devices (desktops, 993px to 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .featured-content {
        max-width: 700px;
    }
}

/* Container padding adjustments */
@media (max-width: 992px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Grid adjustments */
@media (max-width: 768px) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col, [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Form controls responsive adjustments */
@media (max-width: 576px) {
    .form-control, .form-select, .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
} 