* {
    box-sizing: border-box;
}

.main-site {
    position: relative;
    min-height: 100vh;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

.page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 18, 30, 0.95) 0%,
        rgba(18, 24, 34, 0.92) 50%,
        rgba(199, 23, 134, 0.1) 100%
    );
    z-index: 1;
}

.page-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 20%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* پروفایل کاربر */
.user-header {
    position: relative;
    z-index: 10;
    padding: 80px 0 60px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(199, 23, 134, 0.3);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(199, 23, 134, 0.1) 100%
    );
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #c71786;
    box-shadow: 0 10px 30px rgba(199, 23, 134, 0.3);
    position: relative;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details {
    flex: 1;
    color: #fff;
}

.details .username {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #c71786);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.details .list-title {
    font-size: 22px;
    font-weight: 600;
    color: #c71786;
    margin-bottom: 12px;
}

.details .list-desc {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.list-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.count-items {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c71786, #a90f6b);
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(199, 23, 134, 0.3);
}

.movies-section {
    position: relative;
    z-index: 10;
    padding: 60px 0;
    background: rgba(18, 24, 34, 0.3);
    backdrop-filter: blur(5px);
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.movie-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    border-color: rgba(199, 23, 134, 0.5);
}

.movie-image-wrapper {
    position: relative;
    overflow: hidden;
}

.movie-poster {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.1);
}

.movie-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 152, 0, 0.9));
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.movie-info {
    height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(199, 23, 134, 0.1));
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.movie-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 12px;
    font-weight: 600;
}

.badge.dubbed {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.badge.subbed {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff;
}

/* Overlay Effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(199, 23, 134, 0.9) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.movie-card:hover .overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.overlay-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.overlay-content p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c71786, #a90f6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(199, 23, 134, 0.4);
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Error */
.error-message {
    text-align: center;
    padding: 80px 40px;
    color: #fff;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(0, 0, 0, 0.3));
    border-radius: 20px;
    border: 1px solid rgba(220, 53, 69, 0.3);
    grid-column: 1 / -1;
}

.error-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #dc3545;
}

.error-message p {
    font-size: 16px;
    opacity: 0.8;
}

/* pegination */
.pagination-section {
    position: relative;
    z-index: 10;
    padding: 40px 0 60px;
    background: rgba(18, 24, 34, 0.3);
    backdrop-filter: blur(5px);
}

.yc-pagination {
    text-align: center;
}

.yc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-width: 48px;
}

.yc-pagination .page-numbers:hover,
.yc-pagination .page-numbers.current {
    background: linear-gradient(135deg, #c71786, #a90f6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(199, 23, 134, 0.4);
    border-color: #c71786;
}

/* Responsive */
@media (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .user-header {
        padding: 60px 0 40px;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    
    .details .username {
        font-size: 24px;
    }
    
    .details .list-title {
        font-size: 20px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .movie-poster {
        height: 240px;
    }
    
    .movies-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .profile-info {
        padding: 25px 15px;
    }
    
    .details .username {
        font-size: 20px;
    }
    
    .details .list-title {
        font-size: 18px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .movie-poster {
        height: 200px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeInUp 0.6s ease forwards;
}

.movie-card:nth-child(1) { animation-delay: 0.1s; }
.movie-card:nth-child(2) { animation-delay: 0.2s; }
.movie-card:nth-child(3) { animation-delay: 0.3s; }
.movie-card:nth-child(4) { animation-delay: 0.4s; }
.movie-card:nth-child(5) { animation-delay: 0.5s; }
.movie-card:nth-child(6) { animation-delay: 0.6s; }