/* Sticky Sidebar Styles */
.sticky-sidebar {
    position: sticky;
    top: 8rem;
    /* Increased offset for more clearance from menu */
    height: fit-content;
    max-height: calc(100vh - 10rem);
    /* Adjusted for new top offset */
    overflow-y: auto;
}

.sidebar-video-container {
    width: 100%;
}

.sidebar-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.sidebar-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.sidebar-actions .btn {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.sidebar-actions .btn-primary {
    background: #1E3D6B;
    border: none;
    color: white;
}

.sidebar-actions .btn-primary:hover {
    background: #F8606A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 96, 106, 0.3);
}

.sidebar-actions .btn-outline-primary {
    background: transparent;
    border: 2px solid #1E3D6B;
    color: #1E3D6B;
}

.sidebar-actions .btn-outline-primary:hover {
    background: #F8606A;
    border-color: #F8606A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 96, 106, 0.3);
}

.sidebar-rating .text-muted a {
    color: #F8606A !important;
    font-weight: 500;
}

.sidebar-rating .text-muted a:hover {
    color: #e54951 !important;
    text-decoration: underline !important;
}

.star-rating-display-sidebar {
    position: relative;
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1;
}

.star-rating-display-sidebar .stars-background {
    color: #e9ecef;
}

.star-rating-display-sidebar .stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffc107;
    overflow: hidden;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }

    .sidebar-video-wrapper {
        padding-bottom: 45%;
        /* Adjust aspect ratio for mobile */
    }

    /* Hide sidebar on mobile - content moved to mobile sections */
    .sidebar-video-container,
    .sidebar-rating,
    .sidebar-actions {
        display: none;
    }

    /* Mobile action bar styling */
    .mobile-action-bar {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-action-bar .btn {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-action-bar .btn-primary {
        background: #1E3D6B;
        border: none;
        color: white;
    }

    .mobile-action-bar .btn-outline-primary {
        background: transparent;
        border: 2px solid #1E3D6B;
        color: #1E3D6B;
    }

    /* Add bottom padding to body to account for fixed action bar */
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 576px) {
    .sticky-sidebar .bg-white {
        margin-bottom: 1rem !important;
    }

    .sidebar-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}