:root {
    --green: #00d9ff;
    --green-dark: #05a7c3;
    --safaricom-green: #00A85A;
    --red: #EE454A;
    --pink: #e91e63;
    --dark-red: #C0392B;
    --red: #ef4036;
    --navy: #081025;
    --bg: #030717;
    --card: #111834;
    --text: #f4f7ff;
    --muted: #93a4c3;
    --radius: 18px;
    --sidebar-bg: #1a1a1a;
    --background-secondary: #071738;
    --background-elevated-surface: rgba(14, 50, 139, .44);
}
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}

body {
    font-family: "Nunito", sans-serif;
    /* background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); */
    background: #0f0f0f;
    color: var(--text);
    overflow-x: hidden;

}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e, #16213e);
    background-size: 400% 400%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.loader-content {
    position: relative;
    text-align: center;
    z-index: 10001;
}

.loader-logo {
    margin-bottom: 30px;
}

.logo-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    border: 3px solid rgba(74, 158, 255, 0.3);
    border-radius: 50%;
    animation: ringRotate 2s linear infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-top: 3px solid #4a9eff;
    border-radius: 50%;
    animation: ringRotate 1.5s linear infinite reverse;
}

.logo-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a9eff, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.loader-text {
    margin-bottom: 40px;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: subtitleFade 2s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(74, 158, 255, 0.8), 0 0 40px rgba(74, 158, 255, 0.3);
    }
}

@keyframes subtitleFade {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.loader-progress {
    width: 300px;
    margin: 0 auto 30px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #007bff, #4a9eff);
    background-size: 200% 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShine 2s linear infinite;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.progress-percentage {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes progressShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4a9eff;
    border-radius: 50%;
    animation: float 6s linear infinite;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.8);
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: -1s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 40%;
    animation-delay: -2s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: -3s;
    animation-duration: 9s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: -4s;
    animation-duration: 7s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: -5s;
    animation-duration: 5s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2rem;
    }

    .loading-subtitle {
        font-size: 1rem;
    }

    .logo-ring {
        width: 100px;
        height: 100px;
    }

    .logo-inner {
        width: 70px;
        height: 70px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .loader-progress {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .loading-title {
        font-size: 1.8rem;
    }

    .logo-ring {
        width: 80px;
        height: 80px;
    }

    .logo-inner {
        width: 70px;
        height: 70px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .loader-progress {
        width: 200px;
    }
}


/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding: 0px 30px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #0bcbff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-container {
    position: relative;
}

.search-field {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #ffffff;
    padding: 8px 15px;
    width: 300px;
    outline: none;
    transition: all 0.3s;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-field:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4a9eff;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* let top bar right be min 600px on larger screens */
@media (min-width: 800px) {
    .top-bar-right {
        min-width: 600px;
    }
}

.profile-icons {
    display: flex;
    gap: 10px;
}

.profile-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #4a9eff, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.profile-icon:hover {
    transform: scale(1.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--sidebar-bg);
    border-right: 1px solid #253E61;
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;

}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar-content a {
    display: block;
    padding: 12px 14px;
    margin: 5px 0;
    font-size: 14px;
   
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--muted);
    margin: 12px;
    border-left: 4px solid transparent;
}

.sidebar-content a span:first-child {
    margin-right: 10px;
}

.sidebar-content a:hover {
    background: rgb(0 217 255 / 5%);
    color: #fff;
    /* border-left: 4px solid var(--green); */
    padding-left: 18px;
    border-radius: 30px;
}

.sidebar-content a.active {
    background: rgb(0 217 255 / 5%);
    color: #00d9ff;
    /* border-left: 4px solid var(--pink); */
    padding-left: 18px;
    border-radius: 30px;
}

/* Main Content */
.main-content {
    margin-top: 50px;
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 70px);
}

.main-content.sidebar-closed {
    margin-left: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .search-field {
        width: 200px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 998;
        display: none;
    }

    .overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .search-field {
        width: 150px;
    }

    .top-bar {
        padding: 0 10px;
    }
}

.sidebar-content a {
    text-decoration: none;
}

/* Hide scrollbar by default */
.sidebar::-webkit-scrollbar {
    width: 8px;
    background: transparent;
    /* Invisible scroll track */
}

.sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    /* Hide thumb by default */
    border-radius: 4px;
}

/* When hovering over sidebar, show colored scrollbar */
.sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 89, 0.16);
    /* scrollbar thumb color */
}

/* Optional: slight hover effect on the thumb itself */
.sidebar:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 168, 89, 0.16);
}

/* Smooth scrollbar appearance for Firefox */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.sidebar:hover {
    scrollbar-color: rgb(0 217 255 / 10%) transparent;
}

.signin-btn {
    background-color: transparent;
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 0px;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.signin-btn:hover {
    background-color: #357ab8;
}

hr.svelte-mpqqis {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.search {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search input {
    width: 100%;

    background-color: rgb(0 217 255 / 5%);
    border: 1px solid #3a3a3a;
    border-radius: 25px;
    color: #e0e0e0;
    font-size: 0.9rem;

    padding: 14px 16px 14px 46px;
    

}
.search input::placeholder {
    color: #888;
    font-size: 0.9rem;
}
/* focus */
.search input:focus {
    outline: none;
    border-color: #00d9ff;
    background-color: rgb(0 217 255 / 10%);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.search svg {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #00d9ff;

}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 1px;
}

.brand span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    font-size: 17px;
}
.top-bar .search-icon {
    display: none;
}

@media (max-width: 1080px) {

    .brand span {
        margin: 0 auto;
    }

    div.search {
        display: none;
    }
    /* SHOW SEARCH ICON */
    .top-bar .search-icon {
        display: block;
        cursor: pointer;
        color: #00d9ff;
    }
}


.recently-played-container {
    position: relative;
    /* padding: 0 50px; */
}

.recently-played-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.recently-played-scroll::-webkit-scrollbar {
    display: none;
}

.game-tiles-section {
    position: relative;
}

.game-card {
    flex: 0 0 15%;
    height: 140px;
    min-width: 240px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-tiles-flex .game-card {
    flex: 0 0 19%;
    height: 160px;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--background-elevated-surface);
    border-color: var(--safaricom-green);
    box-shadow: 0 0 25px rgba(0, 168, 90, 0.6);
}

.game-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    /* padding: 30px 20px 20px; */
    padding: 10px;
    transition: transform 0.4s ease-in-out, background 0.7s ease-in-out;
}

.game-card:hover .game-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    transform: translateY(0);
}

.game-card-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    /* margin-bottom: 12px; */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.game-card:hover .game-card-name {
    opacity: 1;
    transform: translateY(0);
}

.game-card-progress {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.game-card:hover .game-card-progress {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left {
    left: 0;
}

.scroll-btn-right {
    right: 0;
}

@media (max-width: 600px) {
    .game-card {
        flex: 0 0 70%;
        height: 180px;
    }

    .game-tiles-flex .game-card {
        flex: 0 0 48%;
        height: 200px;
        min-width: 48%;
    }
}

@media (max-width: 768px) {
    .recently-played-container {
        padding: 0;
    }

    .scroll-btn {
        display: none;
    }

    .game-card {
        flex: 0 0 60%;
        height: 200px;
    }

    .recently-played-scroll {
        gap: 15px;
        /* padding: 10px 20px; */
    }
}

@media (max-width: 950px) {
    .game-card {
        flex: 0 0 55%;
        height: 180px;
    }
}

@media (max-width: 1080px) {
    .game-card {
        flex: 0 0 40%;
        height: 200px;
    }

    .game-tiles-flex .game-card {
        flex: 0 0 48%;
        height: 150px;
    }
}

@media (max-width: 1250px) {
    .game-card {
        flex: 0 0 30%;
        height: 170px;
    }
}

@media (max-width: 1500px) {
    .game-card {
        flex: 0 0 27%;
        height: 150px;
    }
}

.game-tiles-section-title {
    color: #00FF00;
}

.game-tiles-section-header a.see-all-btn {
    margin-left: 10px;
    flex: 1;
    text-align: right;
    color: #00d9ff;
    text-decoration: none;
    font-weight: 600;
}

.game-tiles-section-header {
    /*margin-bottom: 10px;*/
}

/* hide scroll buttons by default, only show on hover of current scroll container */
.scroll-btn {
    display: none;
}

.recently-played-container:hover .scroll-btn {
    display: block;
}

.game-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.mobile-back-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

.game-banner {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
    display: flex;
    align-items: flex-end;
}

.banner-content {
    padding: 32px;
    width: 100%;
}

.game-title-large {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 16px 0;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.game-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rating-large {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    color: #ffd166;
    font-weight: 600;
}

.star {
    font-size: 1.4rem;
}

.players-count,
.file-size {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.play-btn-large {
    background: linear-gradient(90deg, #00d9ff, #0ab2da);
    border: none;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.play-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.bookmark-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bookmark-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.bookmark-btn[aria-pressed="true"] {
    background: rgba(255, 79, 129, 0.2);
    border-color: rgba(255, 79, 129, 0.5);
    color: #ff4f81;
}

.game-tags-section {
    margin-bottom: 32px;
}

.tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.game-tag {
    background: rgb(0 217 255 / 25%);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.game-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.game-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

.description-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.description-content p {
    margin-bottom: 16px;
}

.game-features {
    margin-top: 24px;
}

.game-features h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.game-features ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.game-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a9eff;
    font-weight: bold;
}

.info-card,
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.info-card h3,
.stats-card h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
}

.stats-grid-game-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a9eff;
    margin-bottom: 4px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.similar-games-section {
    margin-bottom: 48px;
}

.similar-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.similar-game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.similar-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(2, 6, 23, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.similar-game-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
}

.similar-game-info {
    padding: 16px;
}

.similar-game-title {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.similar-game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.similar-rating {
    color: #ffd166;
    font-size: 0.9rem;
}

.similar-genre {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-back-btn {
        display: flex;
    }

    .game-banner {
        height: 300px;
        margin-bottom: 20px;
    }

    .banner-content {
        padding: 20px;
    }

    .game-title-large {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .game-meta-row {
        gap: 16px;
        margin-bottom: 20px;
    }

    .action-buttons {
        gap: 12px;
    }

    .play-btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .bookmark-btn {
        padding: 14px;
    }

    .game-details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .similar-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .info-grid {
        gap: 12px;
    }

    .stats-grid-game-details {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .game-banner {
        height: 350px;
        border-radius: 12px;
    }

    .banner-content {
        padding: 16px;
    }

    .game-title-large {
        font-size: 1.5rem;
    }

    .game-meta-row {
        gap: 12px;
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .play-btn-large,
    .bookmark-btn {
        /* width: 100%; */
        justify-content: center;
        /* padding: 12px 20px; */
    }

    .tags-container {
        gap: 8px;
    }

    .game-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .info-card,
    .stats-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .similar-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 400px) {
    .game-tiles-flex .game-card {
        flex: 0 0 48%;
        height: 100px;
    }
}

.game-tiles-section-title {
    color: var(--muted);
    /*margin-bottom: 15px;*/
    font-size: 11px;
}

.game-tiles-section-title i {
    font-size: 10px;
    margin: 0px 5px;
    color: chartreuse;
    color: #6B95CD;
}

/* Alert class */
.alert {
    background-color: #f44336;
    /* Red */
    color: white;
    padding: 15px;
    margin: auto;
    border-radius: 5px;
    position: fixed;
    z-index: 1;
    bottom: 50px;
    left: 16px;
    right: 16px;
    max-width: 480px;
    text-align: center;
}

.alert.success {
    background-color: #4BB543;
}

/* Green */

.alert.info {
    background-color: #2196F3;
}

/* Blue */

.alert.warning {
    background-color: #ff9800;
}

/* Orange */

.alert.danger {
    background-color: rgb(244 67 54 / 60%);
}

/* Red */

.alert.closebtn {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.alert.closebtn:hover {
    color: black;
}

.alert.closebtn:after {
    content: "×";
    font-size: 20px;
    line-height: 20px;
    position: absolute;
    right: 10px;
    top: 0;
}

.alert.closebtn:hover:after {
    color: black;
}

/* Profile Header Styles */
.profile-header {
    margin-bottom: 32px;
}

.profile-banner {
    position: relative;
    background: linear-gradient(135deg, #077eff 0%, #479dff 100%);
    border-radius: 20px;
    overflow: hidden;
    padding: 40px;
    min-height: 280px;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/><polygon fill="%23ffffff05" points="0,300 1000,0 1000,400 0,600"/></svg>');
    background-size: cover;
}

.profile-content {
    position: relative;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.profile-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.avatar-container {
    position: relative;
}

.avatar-ring {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #4a9eff, #007bff);
    animation: ringPulse 3s ease-in-out infinite;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
}

.status-indicator.online {
    background: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.edit-avatar-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.edit-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes ringPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(74, 158, 255, 0.6);
    }
}

.profile-info {
    flex: 1;
    color: white;
}

.player-name {
    font-size: 2.5rem;
    margin: 0 0 8px 0;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player-title {
    font-size: 1.2rem;
    margin: 0 0 24px 0;
    opacity: 0.9;
    font-weight: 500;
}

.profile-stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.stat-badge {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #0b4b94;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(90deg, #0a478d, #166dcb);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Level Section */
.level-section {
    margin-bottom: 32px;
}

.level-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
}

.level-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.level-badge {
    text-align: center;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    padding: 16px;
    border-radius: 12px;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.level-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.level-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.xp-info {
    flex: 1;
}

.xp-bar-container {
    margin-bottom: 8px;
}

.xp-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    border-radius: 6px;
    position: relative;
    transition: width 0.5s ease;
}

.xp-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: xpShimmer 2s linear infinite;
}

@keyframes xpShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.xp-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.next-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.streak-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
}

.streak-flame {
    font-size: 1.5rem;
    animation: flameFlicker 1.5s ease-in-out infinite;
}

@keyframes flameFlicker {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }
}

.streak-details {
    text-align: center;
}

.streak-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.streak-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Stats Dashboard */
.stats-dashboard {
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(2, 6, 23, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.stat-content h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.stat-value-large {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-trend.positive {
    color: #00ff88;
}

.stat-trend.negative {
    color: #ff6b6b;
}

/* Achievements */
.achievements-section {
    margin-bottom: 32px;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card.legendary {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
}

.achievement-card.epic {
    border-color: #9b59b6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(155, 89, 182, 0.1));
}

.achievement-card.rare {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
}

.achievement-card.common {
    border-color: #95a5a6;
    background: linear-gradient(135deg, rgba(149, 165, 166, 0.2), rgba(149, 165, 166, 0.1));
}

.achievement-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-card:hover .achievement-glow {
    opacity: 1;
}

.achievement-card.legendary .achievement-glow {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.achievement-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-info h4 {
    color: #ffffff;
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.achievement-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.achievement-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Favorite Games */
.favorite-games-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.manage-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manage-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.favorite-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.favorite-game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.favorite-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}

.game-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.favorite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.favorite-game-card:hover .favorite-overlay {
    opacity: 1;
}

.play-time {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.favorite-actions {
    display: flex;
    gap: 8px;
    align-self: flex-end;
}

.quick-play-fav,
.remove-fav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quick-play-fav {
    background: rgba(74, 158, 255, 0.9);
    color: white;
}

.quick-play-fav:hover {
    background: #4a9eff;
    transform: scale(1.1);
}

.remove-fav {
    background: rgba(255, 107, 107, 0.9);
    color: white;
}

.remove-fav:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.favorite-info {
    padding: 16px;
}

.favorite-info h4 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.favorite-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.achievement-count,
.rating {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Activity Section */
.activity-section {
    margin-bottom: 32px;
}

.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.activity-chart-card,
.recent-activity-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

.activity-chart-card h3,
.recent-activity-card h3 {
    color: #ffffff;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.activity-chart {
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
    margin-bottom: 12px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #4a9eff, #007bff);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.chart-bar::after {
    content: attr(data-hours) 'h';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.weekly-total {
    text-align: center;
    color: #00ff88;
    margin-top: 16px;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9eff, #007bff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: 500;
}

.activity-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        align-items: center;
    }

    .profile-stats-row {
        justify-content: center;
        gap: 24px;
    }

    .level-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .level-info {
        flex-direction: column;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .favorite-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .player-name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .profile-banner {
        padding: 24px;
        min-height: 240px;
    }

    .player-name {
        font-size: 1.8rem;
    }

    .profile-stats-row {
        flex-direction: column;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .favorite-games-grid {
        grid-template-columns: 1fr;
    }

    .chart-bars {
        height: 120px;
        gap: 8px;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

.sidebar-content a {
    text-decoration: none;
}
h3.tag-section-title{
    font-size: 1rem;
    color: #00c0e1;
    font-weight: bolder;
}
h3.tag-section-title span i{
    font-size: 20px;
    margin-right: 10px;
    color: var(--muted);
}


/* SEARCH MODAL & RESULTS */

    .search-results-modal {
        position: fixed;
        top: 80px; /* Space for topbar */
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        overflow-y: auto;
        animation: fadeIn 0.2s ease;
    }

    .search-results-content {
        max-width: 800px;
        margin: 20px auto;
        background: linear-gradient(135deg, #077eff 0%, #479dff 100%);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .search-results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .search-results-header h3 {
        margin: 0;
        color: #fff;
        font-size: 1.5rem;
    }

    .close-search-results {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px 10px;
        transition: color 0.3s;
    }

    .close-search-results:hover {
        color: #0bcbff;
    }

    .search-results-body {
        padding: 20px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .search-loading {
        text-align: center;
        padding: 40px;
        color: #0bcbff;
        font-size: 1.2rem;
    }

    .search-results-list {
        display: grid;
        gap: 15px;
    }

    .search-result-item {
        display: flex;
        align-items: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        transition: all 0.3s;
        text-decoration: none;
    }

    .search-result-item:hover {
        background: rgba(0, 168, 89, 0.1);
        transform: translateX(5px);
    }

    .search-result-image {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        object-fit: cover;
        margin-right: 15px;
        flex-shrink: 0;
        background: rgba(0, 0, 0, 0.4);
    }

    .search-result-info {
        flex: 1;
    }

    .search-result-title {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .search-result-meta {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
    }

    .no-results {
        text-align: center;
        padding: 60px 20px;
        color: rgba(255, 255, 255, 0.5);
    }

    .no-results i {
        font-size: 3rem;
        margin-bottom: 15px;
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @media (max-width: 768px) {
        .search-results-modal {
            top: 70px;
        }
        
        .search-results-content {
            margin: 10px;
            border-radius: 8px;
        }
        
        .search-result-image {
            width: 100px;
            height: 100px;
        }
    }

    @media (max-width: 480px) {
        .game-card{
            min-width: 180px;
            height: 130px;
        }
    }

    .card {
            background: #111834;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            min-width: 200px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        }

        .card-image {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }

        .card-content {
            padding: 8px 0px;
        }

        .card-title {
            font-size: .8rem;
            color: var(--muted);
            text-align: center;
            margin: 0;
            font-weight: bold;
            /* ONLY SPAN ONE LINE */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

        }

        @media (max-width: 768px) {
            .section-title {
                font-size: 1.5rem;
            }

            .card-title {
                font-size: 1.1rem;
            }
        }
        .sidebar-content a span i{
            color: #00d9ff;
        }
        .game-tiles-flex{
            margin-top: 20px;
        }
        @media (max-width: 480px) {
            .card{
                min-width: calc(48vw - 20px);
                max-width: 47%;
            }
            
        }
    