/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary: #6c63ff;
    --secondary: #ff4d4d;
    --accent: #32d74b;
    --light: #ffffff;
    --gray: #b0b0b0;
    --dark: #0a0a0a;
    --dark-transparent: rgba(10, 10, 10, 0.9);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

body.loaded .loading {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 100%);
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    max-width: 100%;
    margin: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    display: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    transition: background 0.3s ease;
}

.search-container:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-container input {
    background: none;
    border: none;
    color: var(--light);
    padding: 0.4rem;
    font-size: 0.9rem;
    outline: none;
    width: 100px;
}

.search-container input::placeholder {
    color: var(--gray);
}

.search-btn {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--light);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--primary);
    color: var(--light);
    border: none;
    box-shadow: var(--shadow);
}

.btn.primary:hover {
    background: #5a52cc;
    transform: translateY(-2px);
}

.btn.secondary {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn.secondary:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 1001;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.mobile-menu-container {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--primary);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-menu-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: var(--light);
}

.mobile-search {
    margin-bottom: 2rem;
}

.mobile-menu-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-footer a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-footer a:hover {
    color: var(--light);
}

/* Hero Section */
.hero {
    height: 50vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%), url('/api/placeholder/1920/1080');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    margin-top: 60px;
    position: relative;
}

.hero-content {
    max-width: 100%;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: var(--shadow);
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Content Section */
.content-section {
    padding: 1.5rem;
    max-width: 100%;
    margin: 0;
    margin-top: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-title span {
    color: var(--primary);
}

.view-all {
    color: var(--gray);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--light);
}

.content-slider {
    display: flex;
    gap: 10px; /* Reduced gap for tighter spacing */
    overflow-x: auto; /* Enable horizontal scrolling */
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.content-slider::-webkit-scrollbar {
    height: 8px;
}

.content-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.content-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.content-card {
    min-width: 200px; /* Consistent width */
    height: 300px; /* Consistent height */
    background: rgba(0, 0, 0, 0.8); /* Darker background for Netflix style */
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
}

.content-card:hover {
    transform: scale(1.05); /* Slight zoom effect */
}

.card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.content-card:hover .card-image img {
    opacity: 0.8; /* Slight fade on hover */
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--light);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow);
}

.play-btn:hover {
    background: #5a52cc;
    transform: scale(1.1);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light);
    text-align: left;
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta {
    display: flex;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.meta-dot {
    width: 3px;
    height: 3px;
    background: var(--gray);
    border-radius: 50%;
    margin-top: 0.2rem;
}

/* Video Player Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1003;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    width: 900px;
    background: var(--dark);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.video-js {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.video-info .meta {
    margin-bottom: 1rem;
}

.video-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.video-actions {
    display: flex;
    gap: 1.5rem;
}

/* Auth Modals */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
}

.auth-background.show {
    display: block;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1002;
}

.auth-modal.show {
    display: block;
}

.auth-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.auth-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-modal input {
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 0.9rem;
}

.auth-modal input::placeholder {
    color: var(--gray);
}

.auth-modal .btn {
    margin-top: 1rem;
}

.auth-modal .help-link,
.auth-modal .sign-up-link {
    color: var(--primary);
    text-decoration: none;
}

.auth-modal .help-link:hover,
.auth-modal .sign-up-link:hover {
    text-decoration: underline;
}

/* Notification System */
.notification {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--light);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    z-index: 1003;
    box-shadow: var(--shadow);
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.success {
    background: var(--accent);
    color: var(--dark);
}

.notification.error {
    background: var(--secondary);
}

.notification.warning {
    background: #ffcc00;
    color: #000;
}

.notification.info {
    background: #00b7ff;
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
}

.profile-img {
    font-size: 2rem;
    cursor: pointer;
    color: var(--light);
    transition: color 0.3s ease;
}

.profile-img:hover {
    color: var(--primary);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.user-profile.dropdown-active .dropdown-content {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    padding: 0.8rem 1rem;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.4rem 0;
}

.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Settings Modal Styles */
.settings-modal-content {
    max-width: 90% !important;
}

.settings-content {
    padding: 0 1rem 1rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.settings-item {
    margin-bottom: 1rem;
}

.settings-item label {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.settings-item input[type="text"],
.settings-item input[type="email"],
.settings-item input[type="password"] {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 0.9rem;
}

.settings-item input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

.settings-item input[type="password"]::placeholder {
    color: var(--gray);
}

.settings-item .checkbox {
    margin-top: 0.5rem;
}

.settings-actions {
    margin-top: 2rem;
    text-align: right;
}

.save-settings-btn {
    padding: 0.8rem 1.5rem;
}

/* Watchlist Modal Styles */
.watchlist-modal-content {
    max-width: 90% !important;
}

.watchlist-controls {
    padding: 0.5rem 1rem;
}

.watchlist-item img {
    width: 80px;
    height: 50px;
}

.watchlist-item-info h4 {
    font-size: 1rem;
}

/* Payment Modal Styles */
.payment-modal-content {
    max-width: 90% !important;
}

.user-welcome {
    color: var(--gray);
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.trial-info {
    background: rgba(50, 215, 75, 0.1);
    color: var(--accent);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Payment History Styles */
.payment-history-section {
    padding: 0 1rem;
}

.payment-history-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.payment-history-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-history-item {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-history-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.payment-history-info p strong {
    color: var(--light);
    margin-right: 0.5rem;
}

/* Payment Methods */
.payment-methods {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-methods h3 {
    margin-bottom: 0.5rem;
}

.selected-plan {
    color: var(--gray);
    margin-bottom: 2rem;
}

.payment-method-group {
    margin-bottom: 2rem;
}

.payment-method-group h4 {
    margin-bottom: 1rem;
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-money-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-option {
    display: block;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.payment-option input {
    display: none;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s;
}

.payment-option input:checked + .payment-option-content {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
}

.payment-option-name {
    font-weight: 500;
}

.payment-action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Bank Transfer Details */
.bank-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.bank-info {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.bank-info p {
    margin-bottom: 0.8rem;
}

.bank-note,
.mobile-note {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Mobile Money Instructions */
.mobile-money-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.mobile-money-instructions ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.mobile-money-instructions li {
    margin-bottom: 0.8rem;
}

.payment-confirmation {
    text-align: center;
    margin-top: 2rem;
}

.payment-processing h3 {
    margin-bottom: 1.5rem;
}

.payment-processing .error-message {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Confirm Modal Styles */
.confirm-modal-content {
    max-width: 400px !important;
}

.confirm-message {
    padding: 1rem 2rem;
    color: var(--gray);
    font-size: 1rem;
}

.confirm-actions {
    padding: 0 2rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 1rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .content-card {
        min-width: 180px;
        height: 270px;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links,
    .nav-actions {
        display: none;
    }
    .hero {
        height: 40vh;
        padding: 0 0.5rem;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .content-section {
        padding: 1rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .content-card {
        min-width: 150px;
        height: 225px;
    }
    .mobile-money-options {
        grid-template-columns: 1fr;
    }
    .watchlist-controls {
        flex-direction: column;
    }
    .watchlist-item {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 0.8rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .content-card {
        min-width: 120px;
        height: 180px;
    }
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    .modal-content {
        padding: 0.5rem;
    }
    .video-js {
        height: 120px;
    }
    .payment-action-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
}