/* Premium Movie Page Styles */

:root {
    --netflix-red: #e50914;
    --deep-black: #141414;
    --card-glass: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-muted: #999999;
}

/* Hero Section */
.movie-hero {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.movie-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(20, 20, 20, 0.95) 0%,
            rgba(20, 20, 20, 0.8) 40%,
            rgba(20, 20, 20, 0.9) 70%,
            var(--bg-color) 100%);
    z-index: 1;
}

.movie-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Premium Video Player */
.premium-player-wrapper {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Player Tabs */
.premium-player-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.premium-tab {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-tab i {
    font-size: 1rem;
}

.premium-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.premium-tab.active {
    background: linear-gradient(135deg, var(--netflix-red), #b20710);
    border-color: var(--netflix-red);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.premium-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.5);
}

/* Player Container */
.premium-player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.premium-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Movie Info Card */
.movie-info-card {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.movie-title-main {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.movie-meta-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--netflix-red);
    font-size: 1.2rem;
}

.meta-item strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Rating Badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.rating-badge i {
    color: #000;
}

/* Genre Tags */
.genre-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--netflix-red);
    transform: translateY(-2px);
}

/* Overview Text */
.movie-overview {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Cast Section */
.premium-cast-section {
    margin-top: 60px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.section-title-premium {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-white);
}

.cast-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--netflix-red) rgba(255, 255, 255, 0.1);
}

.cast-carousel::-webkit-scrollbar {
    height: 8px;
}

.cast-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cast-carousel::-webkit-scrollbar-thumb {
    background: var(--netflix-red);
    border-radius: 10px;
}

.cast-card {
    min-width: 160px;
    text-align: center;
    transition: transform 0.3s ease;
}

.cast-card:hover {
    transform: scale(1.05);
}

.cast-image {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.cast-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.cast-character {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Similar Movies Grid */
.premium-similar-section {
    margin-top: 60px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.premium-movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.premium-movie-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.premium-movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.premium-movie-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.premium-movie-card:hover img {
    transform: scale(1.1);
}

.premium-movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.premium-movie-card:hover .premium-movie-overlay {
    transform: translateY(0);
}

.premium-movie-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.premium-movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .movie-title-main {
        font-size: 2rem;
    }

    .movie-info-card {
        padding: 25px;
    }

    .premium-player-wrapper {
        padding: 15px;
    }

    .premium-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .premium-movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}