:root {
    --crimson: #af1616;
    --dark-bg: #1a1a1a;
    --card-bg: #121212;
}

body {
    margin: 0;
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything horizontally */
   
}
#wallpaper{
    background-image: url('crimsongamerbw.png');
    width: 100%;
}




/* Header Adjustments */
header {
    width: 100%;
    border-bottom: 4px solid var(--crimson);
    background: linear-gradient(90deg, var(--crimson) 43%, var(--dark-bg) 100%);
    padding: 15px 0;
    z-index: 1050;
}

#wallpaper{
    background-image: url('crimsongamerbw.png');
    width: 100%;
}

/* Container for alignment */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4); /* Transparent glass effect */
    border-radius: 4px;
    padding: 2px;
    border-left: 3px solid #af1616; /* Crimson accent line */
    transition: all 0.3s ease;
}

.input-search {
    width: 200px;
    height: 42px;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 45px 0 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Placeholder Styling */
.input-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* The Animated Search Icon */
.btn-search {
    position: absolute;
    right: 5px;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #af1616;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- THE GLOW EFFECTS --- */

/* Expand and Glow when the container is hovered or input is focused */
.search-box:hover, 
.search-box:focus-within {
    background: rgba(175, 22, 22, 0.1);
    box-shadow: 0 0 15px rgba(175, 22, 22, 0.4);
    border-left: 3px solid #ff0000;
}

.input-search:focus {
    width: 320px; /* Expands smoothly */
}

.search-box:focus-within .btn-search {
    color: #fff;
    background: #af1616;
    box-shadow: 0 0 10px #af1616;
}
/*********************LOGIN SEGMENT ******************************************************/
.btn-login {
    background: #af1616;
    color: white;
    padding: 5px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.btn-login:hover {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.btn-registration-link {
    font-size: 10px;
    color: #666;
    text-decoration: none;
    margin-top: 5px;
}

.btn-registration-link:hover {
    color: #af1616;
}

.nav-link-custom {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-link-custom:hover {
    color: #af1616;
}

.user-avatar-mini {
    width: 35px;
    height: 35px;
    background: #af1616;
    color: white;
    border-radius: 4px; /* Matches your 'tech' feel better than a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-mini:hover{
    box-shadow: 0 0 15px rgba(175, 22, 22, 0.6);
    transform: translateY(-2px);
    color: white;
}
.user-avatar-mini:hover::after {
    position:absolute;
    margin-top: 67px;
    font-size: .5rem;
    content: "ACCOUNT";
    padding: 10px;
    background-color: #0b0a0a;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgb(170, 26, 26);
}

.logOut {
    width: 35px;
    height: 35px;
    background: #0a2574;
    color: white;
    border-radius: 4px; /* Matches your 'tech' feel better than a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.logOut:hover {
    box-shadow: 0 0 15px rgba(22, 45, 175, 0.6);
    transform: translateY(-2px);
    color: white;
    
}

.hover-red:hover {
    color: #af1616 !important;
}

/*******************************************************************************************/



/* Mobile responsive tweak */
@media (max-width: 768px) {
    .input-search:focus {
        width: 180px;
    }
}


/* Centering Containers */
.topReel-container, .reel-wrapper, .container {
    width: 100%;
    max-width: 1300px; /* Limits width on ultra-wide screens */
    margin: 0 auto;
}

/* Hero Section */
.topReel {
    margin: 25px 0;
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid #2e2b2b;
}
.hero-container {
    min-height: 450px; /* Matches your layout height */
    background-size: cover;
    background-position: center;
    position: relative;
}
#topMainReel {
    position: relative;
    min-height: 450px; 
    display: block;
}
.hero-controls button {
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3) !important;
}

.hero-controls button:hover {
    background: rgba(220, 53, 69, 0.8) !important; /* Match your danger/red theme */
    border-color: white !important;
    transform: scale(1.1);
}

.hero-stats {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* If commentDisplayTotal has its own positioning, this resets it */
.hero-stats * {
    position: static !important; 
    margin: 0 !important;
}



.hero-text-limit h1 {
    font-weight: 900;
}

/* Add a slight zoom effect on hover for the whole container */
.hero-container:hover {
    transition: all 1s ease;
    background-size: 105%; /* Subtle zoom */
     
}



.letter-spacing-2 {
    letter-spacing: -1px; /* Tighter tracking for titles often looks more professional */
}


.topReel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Highlights Reel */

/* Update the Reel Container for Horizontal Scrolling */
.reel {
    grid-area: reel;
    display: flex;
    flex-direction: row; /* Horizontal layout */
    flex-wrap: nowrap;   /* Don't drop to next line */
    overflow-x: auto;    /* Allow side-scrolling */
    overflow-y: hidden;  /* Keep it neat vertically */
    width: 100%;         /* Fill the container */
    max-width: 1300px;
    padding: 20px 0;
    scrollbar-width:auto; /* For Firefox */
    scrollbar-color: #af1616 #1a1a1a;
}

/* Define the size of the cards in the reel */
.reel-card-wrapper {
    flex: 0 0 400px; /* Each card is exactly 400px wide and won't shrink */
    height: 500px;   /* Increased height to ensure no data is cut off */
}

/* Custom Scrollbar for Chrome/Safari/Edge */
.reel::-webkit-scrollbar {
    height: 8px;
}
.reel::-webkit-scrollbar-thumb {
    background: #af1616;
    border-radius: 10px;
}

.reel-card-wrapper:hover {
    border-color: #2e39cd !important; /* Red border on hover */
    box-shadow: 0 0 35px rgba(28, 35, 163, 0.783);
    transition: all 0.3s ease;
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(175, 22, 22, 0.4);
}



/* Sidebar & Ads */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Sticks below the header */
}

.partner-display-slot {
    background-color: #222;
    min-height: 250px;
    border: 1px dashed #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trending-container {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 4px;
}

.trending-rank {
    font-size: 1.5rem;
    font-weight: 900;
    color: #af1616;
    margin-right: 15px;
    font-family: 'Arial Black', sans-serif;
    min-width: 40px;
}

.trending-link {
    color: #eee;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.2;
    display: block;
    transition: 0.2s;
}

.trending-link:hover {
    color: #af1616;
}

.trending-meta {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
    text-transform: uppercase;
}



/* Footer Styling */
footer {
    width: 100%;
    background: linear-gradient(90deg, var(--crimson) 43%, #fcfbfd 100%);
    padding: 20px 0;
    margin-top: auto;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}



.footer-social-links a {
    color: #ffffff;
    transition: all 0.3s ease-in-out;
    opacity: 0.8;
}

.footer-social-links a:hover {
    color: #1d39eb !important; /* Crimson Red */
    opacity: 1;
    transform: translateY(-2px); /* Makes the icon lift up slightly */
    filter: drop-shadow(0 0 8px #f8f8f8); /* Adds a gaming neon glow */
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .topReel {
        height: 300px;
        margin: 15px;
    }
    .reel {
        justify-content: flex-start;
        padding: 10px;
    }
  .hero-container {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }


}