* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('https://ik.imagekit.io/nvhitcxlh/QQ.jpg?updatedAt=1732327372995');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Add overlay to make content more readable */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 101%;
    background: rgba(0, 0, 0, 0.7); /* Darkens the background */
    z-index: -1;
}



/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 70px;
    background-color: #000000;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.banner-container {
    margin-top: 90px;
}

@media screen and (max-width: 767px) {
    .banner-container {
        margin-top: 70px;
        display: none;
    }
    .header-buttons-container {
        display: none;
    }
}

/* Desktop header buttons */
.header-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-btn {
    min-width: 140px;
    text-align: center;
}



@media screen and (min-width: 768px) {
    .header-buttons {
        gap: 15px;
        margin-left: auto;
        padding-right: 20px;
    }

    .header-buttons-container {
        padding: 0 15px;
    }

    .header-btn {
        padding: 8px 20px;
        border-radius: 6px;
        color: #ffffff;
        font-family: 'Russo One', sans-serif;
        letter-spacing: 1px;
        text-decoration: none;
        background: #800000;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .header-btn::before {
        content: '';
        position: absolute;
        width: 40px;
        height: 100%;
        background: rgba(255, 255, 255, 0.3);
        transform: skewX(-20deg);
        animation: shine 2s infinite linear;
        filter: blur(3px);
    }

    .header-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 2px solid #960606;
        border-radius: 6px;
        animation: borderLight 1s infinite linear;
    }

    .header-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
    }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes borderLight {
    0% { border-color: #5b6e05; }
    50% { border-color: #ebe0a3; }
    100% { border-color: #5b6e05; }
}

.sidebar-open {
    position: absolute;
    left: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 25px;
    height: 20px;
}

.sidebar-open span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.sidebar-header h2 {
    font-family: 'Rajdhani', sans-serif;  /* Modern gaming style font */
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.logo-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    background: none;
    margin-top: 30px; /* This will push the banner below the header */
}

.main-banner {
    width: 100%;
    height: auto;
    margin-top: 50px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
    .main-banner {
        height: 200px; /* Adjusted height for mobile */
    }
    
    .banner-container {
        width: 100%;
    max-width: 100%;
    margin-top: 20px;
    overflow: hidden;
    }

    .marquee-container {
        margin-top: 2px;
    }
    
    .header {
        margin-bottom: 5px;
    }
}



.banner-container picture {
    width: 100%;
    display: block;
}

.marquee-container {
    width: 100%;
    padding: 0 30px;
    background: #470303;
    overflow: hidden;
    border-top: 1px solid #ffd700;    /* Gold top border */
    border-bottom: 1px solid #ffd700;
    margin-top: 20px;  /* Gold bottom border */
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    color: #fdfafa;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    padding: 8px 0;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.marquee-content:hover {
    animation-play-state: paused;
}


/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #850707cc;
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-header {
    margin-top: 20px;
}

.sidebar-search {
    margin: 20px 0;
    padding: 0 10px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    background: #253341;
    color: white;
}

.search-input::placeholder {
    color: #95a5a6;
}

.category-list {
    font-family: 'Rajdhani', sans-serif;
    max-height: 70vh; /* Limits height to 70% of viewport height */
    overflow-y: auto; /* Enables vertical scrolling */
    padding-right: 10px; /* Space for scrollbar */
    scrollbar-width: thin; /* For Firefox */
}

.category-list::-webkit-scrollbar {
    width: 6px;
}

.category-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.category-list::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.category-list li {
    margin-bottom: 15px;
}

.category-list li a {
    display: block;
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.category-list li a:hover {
    background: rgba(224, 236, 155, 0.1);
    color: #ffd700;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px;
    justify-content: center;
    max-width: 1200px;
}

/* Video Card Styles */
.video-card {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgb(114, 4, 4);
    padding: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgb(119, 2, 2);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    border-color: rgba(211, 224, 28, 0.6);
    box-shadow: 0 6px 12px rgba(255, 242, 64, 0.801);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Copyright footer for desktop */
.copyright-footer {
    display: none;
}

/* Desktop floating logo animation */
@keyframes pulseDesktop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile floating logos animation */
@keyframes pulseMobile {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media screen and (min-width: 768px) {
    .floating-logos {
        display: none;
    }
    .header-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
}

@media screen and (max-width: 767px) {
    .floating-logo-desktop {
        display: none;
    }
}

@media screen and (min-width: 768px) {
    .floating-logo-desktop {
        position: fixed;
        bottom: 60px; /* Increased from 30px to 120px */
        left: 30px;
        z-index: 999;
        width: 80px;
        height: 100px;
        border-radius: 0%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        animation: pulseDesktop 2s infinite;
        display: block;
    }
    .floating-logo-desktop:focus,
    .floating-logo-desktop:active {
        outline: none;
        border: none;
    }

    .floating-logo-desktop img {
        width: 100%;
        height: 100%;
        border-radius: 0%;
        object-fit: responsive;
    }
}

@media screen and (max-width: 767px) {
    .floating-logos {
        position: fixed;
        bottom: 120px;
        right: 10px;
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .floating-logo {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        animation: pulseMobile 2s infinite;
    }

    .floating-logo img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
}


@media screen and (min-width: 768px) {
    .footer-nav {
        display: none !important; /* Force hide the button footer */
    }

    .copyright-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 10px; /* Increased height */
        background: rgba(10, 10, 15, 0.95);
        font-family: 'Rajdhani', sans-serif; /* Gaming style font */
        font-size: 24px;
        font-weight: 500;
        color: #ffffff;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }
}


.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(70, 68, 68, 0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #ffffff;
}

.video-description {
    font-family: 'Poppins', sans-serif;  /* Modern, clean font */
    font-size: 14px;
    line-height: 1.4;
    color: #f3de65;
    margin-top: 8px;
}
.video-card:hover .video-description {
    color: #ee6060;
}

.video-tags {
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #6b6a6a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    color: #faf8f8;
}

/* Video Popup Styles */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.video-popup.show {
    display: flex;
}

.video-popup-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
}

.watermark img {
    width: 150px; /* adjust size as needed */
    height: auto;
    opacity: 0.3; /* 30% opacity - adjust between 0.0 to 1.0 */
}

.video-popup-close {
    position: absolute;
    top: -35px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

/* Keep these existing styles but enhance them */
.pagination {
    position: relative;
    background: rgba(0, 0, 0, 0.295);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 15px 5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    margin: 20px auto 70px auto;
    max-width: 100%;
}

@media screen and (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .page-number {
        min-width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        background: #850707;
        color: white;
        border-radius: 4px;
    }
    .page-number, 
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.page-dots {
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 2px;
}

.page-number, .pagination-btn {
    outline: none; /* Removes focus outline */
    user-select: none;
}

.pagination span {
    margin: 0 5px;
    padding: 8px 15px;
    background: #1a1a1a;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
}

/* Add these new styles */
.pagination-btn {
    padding: 8px 16px;
    background: linear-gradient(145deg, #850707, #6e0606);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    min-width: 35px;
    height: 35px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;  
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pagination-btn:hover {
    background: linear-gradient(145deg, #6e0606, #850707);
    transform: scale(1.05);
}

.pagination-btn:active {
    transform: scale(0.95);
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    background: #6e0b0b;
    color: #ffffff;
    transition: all 0.3s ease;
}

.page-numbers {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    padding: 5px 10px;
}

.page-numbers span {
    display: inline-block;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    background: #6e0b0b; /* Dark background */
    color: #ffffff;
}

.page-numbers span:hover {
    background: rgba(241, 11, 11, 0.568);
    
}

#currentPage {
    color: #f7f1f1; /* Makes current page number visible */
    background: #333333;
}

.page-number:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #6e0606, #850707);
}

.page-number.active {
    background: linear-gradient(145deg, #2c3e50, #243342);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Add loading animation */
.page-loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Enhance disabled state */
.pagination-btn:disabled {
    background: linear-gradient(145deg, #cccccc, #999999);
    cursor: not-allowed;
    opacity: 0.7;
}

.card-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.view-image-btn {
    width: 100%;
    padding: 8px 15px;
    background-color: #520e03;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-image-btn:hover {
    background-color: #fa9c43;
}

.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Lighter background */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-popup-content {
    position: relative;
    width: 800px; /* Fixed width */
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-popup-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
}

#popupImage {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hover effect for view image button */
.view-image-btn {
    transition: all 0.3s ease;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.view-image-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ripple effect */
.view-image-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.view-image-btn:active::after {
    width: 200%;
    height: 200%;
}

/* Icon animation */
.view-image-btn i {
    transition: transform 0.3s ease;
}

.view-image-btn:hover i {
    transform: rotate(360deg);
}



/* Responsive Styles */
@media screen and (max-width: 768px) {
    .header {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .logo {
        height: 40px;
    }
}

@media screen and (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(64, 220, 255, 0.2);
    z-index: 1000;
    gap: 10px; /* Adds space between buttons */
}

.footer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    z-index: 1;
}

.footer-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(90deg, #ff4d4d, #0a0a0a, #ff4d4d);
    background-size: 200% 100%;
    animation: borderGlow 2s linear infinite;
}
.footer-btn:hover::before {
    opacity: 1;
}

.footer-btn i {
    font-size: 16px;
    margin-right: 6px;
}

.footer-btn span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn {
    color: #ffffff;
    background: #800000; /* Dark red */
}

.wins-btn {
    color: #ffffff;
    background: #ff1a1a; /* Brighter red */
}

.register-btn {
    border-color: #f7faf9;
    color: #fcf9f9;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(64, 220, 255, 0.3);
    text-shadow: 0 0 8px currentColor;
}

.footer-btn:active {
    transform: translateY(1px);
}

/* Add this neon text effect on hover */
.footer-btn:hover span,
.footer-btn:hover i {
    animation: textFlicker 1.5s infinite alternate;
}

@keyframes textFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 8px currentColor;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

@media screen and (max-width: 480px) {
    .footer-btn {
        padding: 6px 12px;
    }

    .header-buttons-container {
        display: none;
    }
    
    .footer-btn span {
        font-size: 11px;
    }
    
    .footer-btn i {
        font-size: 14px;
        margin-right: 4px;
    }
}
@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.footer-btn:hover::before {
    animation-duration: 1s;
}