:root {
    --primary: #e60012;
    /* Nintendo Red */
    --primary-glow: rgba(230, 0, 18, 0.4);
    --secondary: #00d2ff;
    --bg-dark: #08080c;
    --bg-card: #12121a;
    --text-main: #f8f9fa;
    --text-dim: #a0a0b0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 25%, rgba(230, 0, 18, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(0, 210, 255, 0.05) 0%, transparent 45%);
    z-index: -1;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar */
.spd-top-nav {
    height: var(--nav-height);
    background: rgba(8, 8, 12, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 1.5rem;
    padding: 0 2rem;
}

.spd-top-nav a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 8px;
}

.spd-top-nav a:hover {
    color: #fff;
    background: var(--glass);
}

.spd-top-nav a.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(230, 0, 18, 0.1);
}

/* Hero Section */
.spd-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.spd-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(8, 8, 12, 1)), url('/assets/images/brand/nintendo-1.png') center/cover no-repeat;
    filter: brightness(0.7) contrast(1.2);
    animation: panHero 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes panHero {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

.spd-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.spd-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 0px;
    background: linear-gradient(to bottom, #fff 0%, #eee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(230, 0, 18, 0.3));
}

.spd-hero-subtitle {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 12px;
    font-size: 1rem;
    margin-top: -5px;
    opacity: 0.9;
}

/* Layout */
.spd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* Cards */
.spd-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.spd-post-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.spd-post-card.spd-visible {
    opacity: 1;
    transform: translateY(0);
}

.spd-post-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.spd-post-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.spd-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.spd-post-card:hover .spd-post-thumbnail {
    transform: scale(1.1);
}

.spd-post-meta {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.spd-post-category {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: block;
}

.spd-post-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    display: block;
}

.spd-post-excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Sidebar */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.6rem;
    margin-bottom: 2.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 15px;
    color: #fff;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.trending-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    align-items: center;
}

.trending-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--glass);
}

.trending-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #eee;
    line-height: 1.4;
}

/* Events Carousel */
.spd-events-carousel {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 300px;
    background: #000;
}

.spd-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.spd-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.spd-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spd-event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.spd-event-title {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 6px;
}

.spd-event-meta {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* YouTube Video */
.spd-youtube-video {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.spd-youtube-video iframe {
    width: 100%;
    height: 210px;
}

/* Ad Box */
.spd-ad-box {
    border: 1px dashed var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    background: #000;
    height: 300px;
}

.spd-ad-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
}

/* Switch Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spd-loading-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
    font-size: 2rem;
    color: var(--primary);
}

/* Footer */
.voidFooterRealm {
    width: 100%;
    background: #000;
    margin-top: 8rem;
    padding: 6rem 2rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.voidFooterRealm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(230, 0, 18, 0.1), transparent 70%);
    pointer-events: none;
}

.nebulaFooterCore {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 3fr 1fr;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.lunarLogoHub img {
    width: clamp(160px, 15vw, 220px);
    filter: brightness(0) invert(1);
    margin-bottom: 2.5rem;
}

.lunarLogoHub p {
    font-size: 0.95rem;
    color: var(--text-dim);
    max-width: 300px;
}

.astroNavCluster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 4rem;
}

.astroNavCluster ul {
    list-style: none;
}

.astroNavCluster li {
    margin-bottom: 1.2rem;
}

.astroNavCluster a {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 500;
}

.astroNavCluster a:hover {
    color: var(--primary);
    padding-left: 12px;
}

.cosmicSocialSphere h3 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 2.5rem;
    color: #fff;
}

.stellarSocialIcons {
    display: flex;
    gap: 1.5rem;
}

.stellarSocialIcons a {
    width: 54px;
    height: 54px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stellarSocialIcons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-10px) rotate(8deg);
    box-shadow: 0 20px 40px var(--primary-glow);
}

.stellarSocialIcons svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.stellarSocialIcons a:hover svg {
    fill: #000;
}

/* Responsive */
@media (max-width: 1200px) {
    .spd-container {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }

    .nebulaFooterCore {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

@media (max-width: 768px) {
    .spd-hero-title {
        font-size: 3.5rem;
    }

    .spd-hero {
        height: 400px;
    }

    .spd-top-nav {
        display: none;
    }

    .spd-hero-subtitle {
        letter-spacing: 8px;
        font-size: 0.9rem;
    }

    .spd-container {
        padding: 3rem 1.5rem;
    }
}