/* 
   =====================================================================
   SPD UI ENHANCEMENTS - CUSTOM STYLES
   ===================================================================== 
*/

/* ---- Scroll progress bar ---- */
#spd-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #e8192c, #ff6b35, #e8192c);
    background-size: 200% 100%;
    z-index: 9999;
    transition: width .1s linear;
    animation: gradShift 2s linear infinite;
}

@keyframes gradShift {
    0% {
        background-position: 0% 0%
    }

    100% {
        background-position: 200% 0%
    }
}

/* ---- Pulse Badge (Live Content) ---- */
.spd-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    background: rgba(232, 25, 44, 0.9);
    padding: 4px 10px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(232, 25, 44, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spd-pulse::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: spdPulseDot 2s infinite;
}

@keyframes spdPulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.c-m0o9n.spd-live-tag {
    background: #3bba6e !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.c-m0o9n.spd-live-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: spdPulseDot 1.5s infinite;
}

/* ---- Hero enhancements ---- */
.c-z5x7c-c {
    overflow: hidden;
    position: relative;
}

.c-z5x7c-b {
    animation: spdKenBurns 30s infinite alternate ease-in-out;
    transform-origin: center;
}

@keyframes spdKenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.c-z5x7c-c::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    pointer-events: none;
    z-index: 2;
}

/* --- Hero Video Background --- */
.spd-hero-vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    opacity: 0;
    transition: opacity 1s;
    z-index: 0;
    pointer-events: none;
}

.spd-hero-vid.active {
    opacity: 0.6;
}

#hero-main-bg {
    z-index: 0;
}

/* --- Smart Hide Header --- */
.c-b1n3m.header-hidden {
    transform: translateY(-100%);
}

/* ---- Header link visibility enhancement ---- */
.c-b1n3m-l a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s;
}

.c-b1n3m-l a:hover {
    color: #fff !important;
}

.c-b1n3m-s a {
    color: rgba(255, 255, 255, 0.6) !important;
    background: #000 !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s;
}

.c-b1n3m-s a:hover {
    color: #fff !important;
}

/* ---- Skeleton Shimmer ---- */
.spd-skeleton {
    background: linear-gradient(90deg, #12121a 25%, #1a1a24 50%, #12121a 75%);
    background-size: 200% 100%;
    animation: spdShimmer 1.5s infinite;
    border: none !important;
}

@keyframes spdShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ---- Section label accent glow ---- */
.c-1a2b3::before {
    box-shadow: 0 0 8px rgba(232, 25, 44, .5);
}

/* ---- Card hover enhancement ---- */
.c-k9l0o-c {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.c-k9l0o-c:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, .14), 0 0 0 1px rgba(232, 25, 44, .12) !important;
}

/* ---- Feed card image zoom on hover ---- */
.c-p7o8c:hover .c-p7o8c-im img {
    transform: scale(1.06);
}

/* ---- Footer logo enhancement ---- */
.c-f2g4h-lo {
    background: linear-gradient(90deg, #fff 60%, rgba(255, 255, 255, .5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.c-f2g4h-lo span {
    background: linear-gradient(90deg, #e8192c, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Trending rank number glow ---- */
.c-r4t6y-ca-m .c-r4t6y-ra {
    color: rgba(232, 25, 44, .25);
    text-shadow: 0 0 40px rgba(232, 25, 44, .3);
}

/* ---- "Read Story" CTA button ---- */
.c-z5x7c-ct {
    background: rgba(232, 25, 44, .85);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, .15);
}

.c-z5x7c-c:hover .c-z5x7c-ct {
    background: #e8192c;
    box-shadow: 0 4px 18px rgba(232, 25, 44, .45);
}


/* ---- Release calendar buttons ---- */
.spd-cal-btn:hover {
    background: #e8192c;
    border-color: #e8192c;
    box-shadow: 0 4px 12px rgba(232, 25, 44, 0.4);
}

.spd-ics-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 10;
    font-size: 0.8rem;
    transition: all 0.3s;
    opacity: 0;
    transform: scale(0.8);
}

.spd-release-card:hover .spd-ics-btn {
    opacity: 1;
    transform: scale(1);
}

.spd-ics-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Hover Teaser Video Styling */
.spd-teaser-vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.spd-release-card:hover .spd-teaser-vid {
    opacity: 1;
}

.spd-release-card:hover img {
    opacity: 0.2;
}

/* ---- Newsletter box tweaks ---- */
.c-n3l6m-mo {
    background: linear-gradient(135deg, #0f0f14 0%, #1a1a24 60%, #0f0f14 100%) !important;
    border: 1px solid rgba(232, 25, 44, .2) !important;
}

.c-n3l6m-mo::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: rgba(232, 25, 44, .07);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

/* ---- Category filter active glow ---- */
.c-p5o0i-pi.c-a2s4d {
    box-shadow: 0 2px 14px rgba(232, 25, 44, .35);
}

/* ---- Sidebar trending item hover ---- */
.c-s7d3f-it:hover .c-s7d3f-lb {
    color: var(--red);
}

.c-s7d3f-it {
    transition: background .2s;
    border-radius: 6px;
    margin: 0 -6px;
    padding-left: 6px;
    padding-right: 6px;
}

.c-s7d3f-it:hover {
    background: rgba(232, 25, 44, .04);
}

/* ---- FAQ section enhancements ---- */
details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    font-size: 20px;
    color: #e8192c;
    font-weight: 300;
    line-height: 1;
}

details[open] summary::after {
    content: '−';
}

/* Release calendar additions */
.spd-release-card {
    position: relative !important;
}

.spd-cal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(-5px);
}

.spd-release-card:hover .spd-cal-btn {
    opacity: 1;
    transform: translateY(0);
}

.spd-release-card:hover .spd-play-ov {
    opacity: 1;
}

.spd-play-ov:hover {
    background: rgba(232, 25, 44, 0.4);
}

/* Countdown Badge */
.spd-release-countdown {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Barlow Condensed';
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    color: #e8192c;
    border: 1px solid #e8192c;
    z-index: 5;
    backdrop-filter: blur(5px);
}

/* OUT NOW Celebration Mode */
.spd-release-card.out-now {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    border: 2px solid #ffd700 !important;
    animation: spd-pulse-gold 2s infinite;
}

@keyframes spd-pulse-gold {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
}

.spd-release-card.out-now .spd-release-countdown {
    background: #ffd700;
    color: #000;
    border: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Platform specific themes */
.pt-playstation {
    --plat: #0070d1;
}

.pt-xbox {
    --plat: #107c10;
}

.pt-nintendo {
    --plat: #e60012;
}

.pt-streaming {
    --plat: #ffffff;
}

.pt-theaters {
    --plat: #e8c547;
}

.spd-release-card.pt-playstation,
.spd-release-card.pt-xbox,
.spd-release-card.pt-nintendo,
.spd-release-card.pt-theaters,
.spd-release-card.pt-streaming {
    border-bottom: 2px solid var(--plat);
}

.spd-release-card .spd-release-tag {
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--plat, #e8192c);
}

/* Trailer Modal */
#trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
}

#trailer-modal.active {
    display: flex;
    animation: modalIn .4s forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-wrap {
    width: 90%;
    max-width: 1100px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
}

.modal-close:hover {
    opacity: 1;
}

.modal-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

/* ---- Back-to-top button ---- */
#spd-totop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    width: 44px;
    height: 44px;
    background: #e8192c;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 18px rgba(232, 25, 44, .45);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s;
    font-size: 18px;
}

#spd-totop.visible {
    opacity: 1;
    transform: translateY(0);
}

#spd-totop:hover {
    background: #c9152a;
    transform: translateY(-3px) !important;
}

/* ---- Loader spinner style ---- */
.c-l9k8j-ri {
    border-width: 2px !important;
    box-shadow: 0 0 12px rgba(232, 25, 44, .25);
}

/* ---- Smooth image load fade-in ---- */
img {
    opacity: 0;
    transition: opacity .4s ease;
}

img.loaded {
    opacity: 1;
}

/* ---- Releases Section ---- */
.c-spd-releases {
    padding: 56px 0;
    background: #0a0a0f;
    border-top: 1px solid rgba(255, 255, 255, .03);
}

.spd-release-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.spd-release-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--r-md);
    padding: 16px;
    transition: transform .3s var(--ease), border-color .3s;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.spd-release-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    background: rgba(232, 25, 44, .05);
}

.spd-release-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(232, 25, 44, .4);
    z-index: 2;
}

.spd-release-th {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--ink-3);
}

.spd-release-th img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spd-release-bd h3 {
    color: #fff;
    font-family: var(--ff-d);
    font-size: 19px;
    letter-spacing: .02em;
    line-height: 1.1;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.spd-release-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .4);
}

@media (max-width: 600px) {
    .spd-release-scroll {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Mobile Quick Jump Strip ---- */
.spd-mobile-strip {
    display: none;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.spd-mobile-strip::-webkit-scrollbar {
    display: none;
}

.spd-strip-inner {
    display: flex;
    gap: 12px;
    padding: 0 15px;
    width: max-content;
}

.spd-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    min-width: 54px;
}

.spd-strip-item i {
    font-size: 16px;
    color: #fff;
    background: #000 !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spd-strip-item:hover {
    color: #e8192c;
}

.spd-strip-item:hover i {
    border-color: #e8192c;
    background: rgba(232, 25, 44, 0.1);
    color: #e8192c;
}

@media (max-width: 991px) {
    .spd-mobile-strip {
        display: block;
    }
}

/* ---- Release Calendar Filters ---- */
.cal-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cal-filter-btn.active {
    background: #e8192c;
    border-color: #e8192c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 25, 44, 0.4);
}

@media (max-width: 600px) {
    .spd-cal-filters {
        overflow-x: auto;
        padding-bottom: 5px;
        width: 100%;
    }

    .cal-filter-btn {
        flex-shrink: 0;
    }
}

/* ---- Hype Poll ---- */
.spd-poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spd-poll-opt {
    cursor: pointer;
    transition: opacity 0.3s;
}

.spd-poll-opt.voted {
    cursor: default;
}

.spd-poll-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.spd-poll-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.spd-poll-bar div {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.spd-poll-opt:not(.voted):hover .spd-poll-bar {
    background: rgba(255, 255, 255, 0.1);
}

.poll-card {
    transition: box-shadow 0.3s;
}

.poll-card:hover {
    box-shadow: 0 0 15px rgba(232, 25, 44, 0.15);
}

/* ---- AI Search Overlay ---- */
.spd-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.98);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    transition: opacity 0.3s;
    opacity: 0;
}

.spd-search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.search-close:hover {
    opacity: 1;
}

.search-content {
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    padding: 5px 30px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.search-input-wrap:focus-within {
    border-color: #e8192c;
    background: rgba(232, 25, 44, 0.05);
    box-shadow: 0 0 30px rgba(232, 25, 44, 0.1);
}

#spd-search-input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    height: 60px;
    outline: none;
}

.search-icon {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 15px;
}

.search-ai-pulse {
    background: linear-gradient(90deg, #a855f7, #e8192c);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 5px;
    animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    }

    100% {
        opacity: 0.8;
    }
}

.search-suggestions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.sugg-tag {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sugg-tag:hover {
    background: #e8192c;
    color: #fff;
}



/* ---- Saved Archive ---- */
.spd-save-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 12;
    opacity: 0;
    transition: all 0.3s;
    transform: scale(0.8);
    cursor: pointer;
}

.c-p7o8c:hover .spd-save-btn,
.spd-release-card:hover .spd-save-btn {
    opacity: 1;
    transform: scale(1);
}

.spd-save-btn:hover {
    background: #e8192c;
}

.spd-save-btn.saved {
    opacity: 1 !important;
    transform: scale(1) !important;
    color: #fff;
    background: #e8192c;
}

.saved-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
}

.saved-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.saved-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.saved-ti {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.saved-del {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    cursor: pointer;
}

.saved-del:hover {
    color: #e8192c;
}

/* Header Btn */
.spd-header-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.spd-header-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

/* ---- Mobile Quick Menu (Control Center) ---- */
.spd-quick-menu {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 20px;
    display: none;
    z-index: 10000;
    width: calc(100% - 50px);
    max-width: 400px;
    animation: qmIn .3s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: bottom right;
}

.spd-quick-menu.active {
    display: block;
}

@keyframes qmIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.qm-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 15px 5px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.qm-btn i {
    font-size: 20px;
    color: #e8192c;
}

.qm-btn span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.qm-btn:hover {
    background: rgba(232, 25, 44, 0.1);
    border-color: #e8192c;
}

.qm-btn:hover span {
    color: #fff;
}

.spd-qm-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #e8192c;
    color: #fff;
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(232, 25, 44, 0.4);
    display: none;
    /* Mobile Only */
    align-items: center;
    justify-content: center;
    z-index: 10001;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 22px;
}

.spd-qm-trigger:active {
    transform: scale(0.9);
}

.spd-qm-trigger.active {
    background: #fff;
    color: #000;
    transform: rotate(45deg);
}

/* ToTop adjustment when QM is active */
#spd-totop.visible {
    bottom: 95px;
}

@media (max-width: 991px) {
    .spd-qm-trigger {
        display: flex;
    }
}

/* --- Light Mode Overrides --- */
body.light-mode {
    background: #f8f9fa !important;
    color: #1a1a1a !important;
}

body.light-mode .c-b1n3m {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .c-b1n3m-l a {
    color: #333 !important;
}

body.light-mode .c-b1n3m-l a:hover {
    color: #e8192c !important;
}

body.light-mode .spd-quick-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .qm-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-mode .qm-btn span {
    color: #666;
}

body.light-mode .spd-qm-trigger {
    background: #333;
}

body.light-mode .spd-qm-trigger.active {
    background: #e8192c;
    color: #fff;
}

/* End of Enhancements */
