/* Dark Mode Theme with Red/Black Gradients */
body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Navigation bar styling */
.navbar {
    background: linear-gradient(to right, #000000, #300808) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #500;
}

.navbar-brand {
    color: #ff3333 !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.navbar-dark .navbar-nav .nav-link {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ff6666;
}

/* Card styling */
.card {
    background: linear-gradient(145deg, #1a1a1a, #1a0808);
    border-color: #400;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card-header {
    background: linear-gradient(to right, #2d2d2d, #2d1515);
    border-color: #400;
}

.card-body {
    background-color: transparent;
}

.card-footer {
    background-color: rgba(30, 15, 15, 0.7);
    border-color: #400;
}

/* Container styling */
.container {
    background-color: rgba(20, 10, 10, 0.4);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Text colors */
.text-dark {
    color: #e0e0e0 !important;
}

.text-muted {
    color: #bb8888 !important;
}

/* Form controls */
.form-control {
    background-color: #2d2d2d;
    border-color: #500;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #2d2d2d;
    border-color: #800;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.25rem rgba(130, 0, 0, 0.25);
}

/* Buttons */
.btn-outline-light {
    border-color: #e0e0e0;
    color: #e0e0e0;
}

.btn-outline-light:hover {
    background: linear-gradient(to right, #600, #900);
    border-color: #900;
    color: #ffffff;
}

/* Primary buttons - with more specific selectors */
.btn.btn-primary {
    background: linear-gradient(to right, #800, #b00) !important;
    border-color: #900 !important;
    color: #ffffff !important;
    background-image: none !important; /* Override Bootstrap's background image */
}

.btn.btn-primary:hover, .btn.btn-primary:focus {
    background: linear-gradient(to right, #900, #c00) !important;
    border-color: #a00 !important;
    color: #ffffff !important;
    background-image: none !important;
}

.btn.btn-outline-primary {
    background: transparent !important;
    border-color: #900 !important;
    color: #ff6666 !important;
    background-image: none !important;
}

.btn.btn-outline-primary:hover, .btn.btn-outline-primary:focus {
    background: linear-gradient(to right, #800, #b00) !important;
    border-color: #900 !important;
    color: #ffffff !important;
    background-image: none !important;
}

/* Links */
a {
    color: #ff6666;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff9999;
    text-decoration: none;
}

a.text-dark {
    color: #e0e0e0 !important;
}

a.text-dark:hover {
    color: #ffffff !important;
}

/* Tables */
.table {
    color: #e0e0e0;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(80, 0, 0, 0.1);
}

.table td {
    color: rgb(255, 255, 255);
}

/* Dropdown menus */
.dropdown-menu {
    background: linear-gradient(145deg, #2d2d2d, #2d1515);
    border-color: #500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #e0e0e0;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #500;
    color: #ffffff;
}

.dropdown-divider {
    border-top-color: #500;
}

/* Video cards */
.video-card {
    background: linear-gradient(145deg, #1a1a1a, #1a0808);
    border-color: #400;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-duration {
    background-color: rgba(80, 0, 0, 0.7);
    color: #ffffff;
}

/* Pagination */
.pagination .page-link {
    background-color: #2d1515;
    border-color: #500;
    color: #e0e0e0;
}

.pagination .page-link:hover {
    background-color: #500;
    border-color: #700;
    color: #ffffff;
}

.pagination .page-item.active .page-link {
    background-color: #800;
    border-color: #800;
}

/* Alerts */
.alert-danger {
    background-color: #3d1c1c;
    border-color: #842029;
    color: #ea868f;
}

.alert-success {
    background-color: #1c3d1c;
    border-color: #2a8754;
    color: #75b798;
}

/* Modal */
.modal-content {
    background: linear-gradient(145deg, #2d2d2d, #2d1515);
    border-color: #500;
}

.modal-header, .modal-footer {
    border-color: #500;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a0808;
}

::-webkit-scrollbar-thumb {
    background: #500;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #700;
}

/* Footer styling */
footer {
    background: linear-gradient(to right, #000000, #300808) !important;
    border-top: 1px solid #500;
    margin-top: 30px !important;
}

/* Hover effects */
.btn, .nav-link, .card, .dropdown-item {
    transition: all 0.3s ease;
}

/* Video player styling */
/* Custom Play Button */
.video-container {
    position: relative;
    max-height: 70vh; /* 70% of viewport height */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.custom-play-button i {
    color: #fff;
    font-size: 40px;
}

.custom-play-button:hover {
    background-color: rgba(255, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}
#videoPlayer {
    max-height: 70vh;
    width: 100%;
    background-color: #000;
}

/* Related Videos Styling */
.related-videos-card {
    border-radius: 8px;
    overflow: hidden;
    border-color: #500;
}

.related-videos-card .card-header {
    background: linear-gradient(to right, #300808, #000000);
    padding: 12px 15px;
}

.related-video-item {
    transition: all 0.2s ease;
    background: linear-gradient(145deg, #1a1a1a, #1a0808);
}

.related-video-item:hover {
    background: linear-gradient(145deg, #201010, #2a1010);
}

.related-video-item:last-child {
    border-bottom: none !important;
}

.related-video-item img {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hover-red:hover {
    color: #ff6666 !important;
    text-decoration: none;
}

.duration-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 1px 4px;
    border-radius: 3px;
}

.video-meta, .video-stats {
    line-height: 1.2;
}

/* Responsive share buttons */
@media (max-width: 576px) {
    .share-buttons .btn, #likeBtn {
        padding: 0.375rem 0.5rem;
    }
    
    .share-buttons .btn i, #likeBtn i {
        font-size: 1.1rem;
    }
}