/* ===== Variables ===== */
:root {
    --primary-color: #e94560;
    --secondary-color: #533483;
    --dark-bg: #0f0f0f;
    --darker-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --hover-bg: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border-color: #2a2a2a;
    --gradient-1: linear-gradient(135deg, #e94560 0%, #533483 100%);
    --gradient-2: linear-gradient(135deg, #0f3460 0%, #533483 100%);
    --shadow-1: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-3: 0 16px 32px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 32px;
    -webkit-text-fill-color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
    margin-right: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 25px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.search-box i {
    color: var(--text-secondary);
    margin-left: 10px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 200px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.btn-subscription,
.btn-login,
.btn-admin {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-subscription {
    background: var(--gradient-1);
    color: var(--text-primary);
}

.btn-subscription:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.btn-login {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.btn-admin {
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 10px 15px;
}

.btn-admin:hover {
    background: #6a42a3;
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 70px;
    height: 80vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('https://via.placeholder.com/1920x1080/1a1a2e/eee?text=Hero+Background');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.4) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-1);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
    font-weight: 700;
}

.year,
.genre {
    color: var(--text-secondary);
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-info {
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-info {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-info:hover {
    border-color: var(--text-primary);
}

/* ===== Advertisement Banner ===== */
.ad-banner {
    background: var(--card-bg);
    padding: 20px 0;
    margin-top: 70px;
    border-bottom: 1px solid var(--border-color);
}

.ad-banner.top-banner {
    margin-top: 70px;
}

.ad-container {
    max-width: 970px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ad-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

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

.ad-container img {
    width: 100%;
    border-radius: 8px;
}

/* ===== Content Sections ===== */
.content-section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 32px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.content-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.content-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3);
}

.card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

.card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.card-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    transition: var(--transition);
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-card {
    flex: 1;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-play {
    background: var(--gradient-1);
    color: var(--text-primary);
}

.btn-play:hover {
    transform: scale(1.05);
}

.btn-add {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-add:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-large {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-color);
    border-color: transparent;
}

.modal-body {
    padding: 25px;
}

.btn-google-login {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-google-login:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.btn-google-login i {
    font-size: 20px;
}

.divider {
    text-align: center;
    margin: 25px 0;
    color: var(--text-secondary);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    right: 0;
}

.divider::after {
    left: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.modal-footer-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.modal-footer-text a {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

/* ===== Subscription Plans ===== */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.plan-card {
    background: var(--darker-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.2);
}

.plan-card.premium {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-1);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.plan-card.premium .plan-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
}

.plan-card.premium .plan-price {
    color: #ffd700;
}

.plan-price span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-features {
    margin-bottom: 25px;
}

.plan-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.plan-features i {
    font-size: 16px;
}

.plan-features .fa-check {
    color: #00ff88;
}

.plan-features .fa-times {
    color: #ff4444;
}

.btn-plan {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.plan-card.featured .btn-plan {
    background: var(--gradient-1);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
}

.plan-card.premium .btn-plan {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 48px;
    }
    
    .content-grid,
    .content-slider {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .search-box {
        flex: 1;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .content-grid,
    .content-slider {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-info {
        width: 100%;
        justify-content: center;
    }
    
    .content-grid,
    .content-slider {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ===== Scrollbar Styles ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-bg);
}

/* ===== Loading Spinner ===== */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 16px;
    line-height: 1.6;
}
