:root {
    --trailer-frame-width: calc(100vw - 380px);
    --trailer-frame-height: calc(var(--trailer-frame-width) * 0.5625);
    --trailer-left-margin: 190px;
    --detail-section-spacing: 40px;
}

/* Premium Navigation Links */
.nav-link {
    color: var(--text-muted);
    font-size: 15px;
    border-radius: 8px;
    background: transparent !important;
    border: none !important;
    padding: 12px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(212, 175, 55, 0.1) !important;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: var(--gold-primary) !important;
    background: rgba(212, 175, 55, 0.15) !important;
    font-weight: 600;
}

.nav-link.active::before {
    width: 100%;
    background: var(--gold-primary);
}

/* Premium Trailer Iframe */
.trailer-iframe {
    width: var(--trailer-frame-width);
    height: var(--trailer-frame-height);
    margin: 30px auto;
    margin-left: var(--trailer-left-margin);
    border-radius: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-depth);
    border: 2px solid var(--glass-border);
    background: var(--surface-card);
}

.trailer-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* Premium Movie Details Section */
.movie-details-container {
    background: var(--glass-medium);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin: var(--detail-section-spacing) 0;
    box-shadow: var(--shadow-depth);
}

.movie-info-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: var(--detail-section-spacing);
}

.movie-poster {
    border-radius: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-depth);
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.movie-poster:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--gold-primary);
}

.movie-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.movie-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.movie-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.movie-meta-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    color: var(--text-main);
    transform: translateY(-2px);
}

.movie-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-top: 20px;
}

.movie-genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.genre-badge {
    padding: 8px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-weight: 500;
}

.genre-badge:hover {
    background: var(--gold-gradient);
    border-color: var(--gold-primary);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Premium Action Buttons */
.movie-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-premium {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-premium-primary {
    background: var(--gold-gradient);
    color: var(--primary-bg);
    box-shadow: var(--shadow-glow);
}

.btn-premium-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    color: var(--primary-bg);
}

.btn-premium-secondary {
    background: var(--glass-medium);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-premium-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-3px);
}

/* Responsive Design */
@media only screen and (max-width: 1000px) {
    :root {
        --trailer-frame-width: calc(100vw - 40px);
        --trailer-frame-height: calc(var(--trailer-frame-width) * 0.5625);
        --trailer-left-margin: 0;
        --detail-section-spacing: 30px;
    }

    .trailer-iframe {
        margin-left: 0;
        border-radius: 12px;
    }

    .movie-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .movie-poster {
        max-width: 300px;
        margin: 0 auto;
    }

    .movie-title {
        font-size: 28px;
        text-align: center;
    }

    .movie-meta {
        justify-content: center;
    }

    .movie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .movie-details-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
}

@media only screen and (max-width: 600px) {
    .movie-title {
        font-size: 24px;
    }

    .movie-meta-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    .btn-premium {
        padding: 12px 24px;
        font-size: 14px;
    }

    .movie-description {
        font-size: 14px;
    }

    .genre-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* Premium Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-details-container {
    animation: slideInUp 0.6s ease-out;
}

.movie-info-grid>* {
    animation: slideInUp 0.8s ease-out;
}

/* Enhanced Badge Styling */
.tag-badge {
    background: var(--glass-light) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main) !important;
    padding: 8px 16px;
    margin: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: var(--gold-primary) !important;
    color: var(--primary-bg) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}