:root {
    --x-top-bar: 70px;
    --y-news-banner: 42px;
    --z-bottom-bar: 0px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0; /* Handled by section padding */
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Glassmorphic Showcase Card */
.showcase-card {
    background: rgba(25, 25, 30, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.showcase-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 215, 0, 0.5);
    background: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-image-wrapper img {
    transform: scale(1.1);
}

.showcase-name {
    font-family: 'Lobster', cursive;
    font-size: 2.2em;
    color: #fff;
    margin: 0 0 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.showcase-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.showcase-name a:hover {
    color: #FFD700;
}

/* Elegant Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-pill {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 0.85em;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Glass Filter */
.glass-filter {
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}

.glass-filter:focus,
.glass-filter:hover {
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.1);
}

.glass-filter option {
    background: #1a1a1a;
    color: #fff;
}

.filter-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.filter-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #FFD700;
    font-size: 0.8em;
}

/* Inline Filter */
.custom-dropdown {
    position: relative;
    display: inline-block;
    font-size: 1.05em;
    padding: 4px 30px 4px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-weight: bold;
    backdrop-filter: blur(5px);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    user-select: none;
    z-index: 20;
    /* Ensure this is firmly above showcase card */
}

.custom-dropdown::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #FFD700;
    font-size: 0.7em;
    opacity: 0.8;
}

.custom-dropdown:hover,
.custom-dropdown.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.custom-dropdown-options {
    position: absolute;
    top: 42px;
    /* Fixed pixel distance rather than % to fix flex bug */
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-dropdown-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.custom-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

.custom-option {
    padding: 10px 20px;
    color: #fff;
    font-weight: normal;
    text-shadow: none;
    font-size: 0.95em;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.custom-option:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

/* Floating Arrows */
.showcase-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.nav-arrow:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.showcase-nav {
    flex-direction: column;
    gap: 20px;
}

.showcase-card {
    order: -1;
    width: 100%;
    box-sizing: border-box;
}

.mobile-arrows {
    display: flex;
    gap: 20px;
    order: 1;
    justify-content: center;
    width: 100%;
}

/* Hide desktop arrows */
.nav-arrow.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .showcase-nav {
        flex-direction: row;
        gap: 30px;
    }
    .showcase-card {
        order: unset;
        width: auto;
    }
    .mobile-arrows {
        display: none !important;
    }
    .nav-arrow.desktop-only {
        display: flex;
    }
}

.breaking-news-banner {
    background: rgba(25, 25, 30, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 6px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    position: relative;
    z-index: 990; /* Must be below top-bar (1000) */
    display: block !important;
    visibility: visible !important;
}

.breaking-news-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breaking-badge {
    background: linear-gradient(45deg, #FF0000, #990000);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.85em;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: flash 2s infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.breaking-source {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9em;
}

.breaking-title {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.breaking-title:hover {
    color: #FFD700;
    text-decoration: none;
}

.breaking-related {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.breaking-related-label {
    color: #aaa;
}

.breaking-related-link {
    color: #FFD700;
    text-decoration: none;
    border: 1px solid rgba(255, 215, 0, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.breaking-related-link:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.breaking-news-content {
    gap: 10px;
    text-align: center;
}

.breaking-title {
    font-size: 0.95em;
}

.daily-duel-mobile-banner {
    display: block !important;
}

@media (min-width: 768px) {
    .breaking-news-content {
        gap: 15px;
        text-align: left;
    }
    .breaking-title {
        font-size: 1.05em;
    }
    .daily-duel-mobile-banner {
        display: none !important;
    }
}

/* Orbital System Styles */
.showcase-card.orbital-system {
    width: 500px;
    height: 500px;
    max-width: 90vw;
    max-height: 90vw;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

.showcase-card.orbital-system:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.orbital-core {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.orbital-core .showcase-image-wrapper {
    width: 170px;
    height: 170px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    overflow: visible;
    background: transparent;
    position: relative;
}

.orbital-core .showcase-image-wrapper>a>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    border-radius: 50%;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.orbital-core .showcase-image-wrapper:hover>a>img {
    transform: scale(1.15);
}

/* ===== Name Overlay on Personality Image ===== */
.orbital-name-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 4px 14px 6px;
    text-align: center;
    z-index: 15;
    min-width: 100px;
    max-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.overlay-name {
    font-family: 'Lobster', cursive;
    font-size: 1em;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overlay-name:hover {
    color: #FFD700;
}

.overlay-categories {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
}

.overlay-cat-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    display: block;
}

.overlay-cat-icon img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    display: block;
    border-radius: 50%;
}

.overlay-cat-icon:hover {
    transform: scale(1.2);
    border-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* ===== Dropdown Category Images ===== */
.dropdown-cat-img {
    width: 22px !important;
    height: 22px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    object-fit: cover !important;
    vertical-align: middle;
    display: inline-block !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.custom-option {
    display: flex;
    align-items: center;
}

/* ===== Simplified Trending Showcase ===== */
.trending-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    margin: 30px 0;
}

.trending-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    position: relative;
    padding: 0;
    max-width: 900px;
}

.trending-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    max-width: min(240px, 45vh);
    max-height: 45vh;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
    border: 3px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease, box-shadow 0.4s ease;
}

.trending-image-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.5), 0 12px 35px rgba(0, 0, 0, 0.6);
}

.trending-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trending-image-link:hover img {
    transform: scale(1.1);
}

.trending-info {
    text-align: left;
    margin-top: 0;
    flex: 1;
}

.trending-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.trending-name:hover {
    color: #FFD700;
}

.trending-categories {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.trending-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 12px 2px 2px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.75em;
    transition: all 0.3s ease;
}

.trending-cat-pill:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    color: #FFD700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.trending-cat-pill img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.trending-cat-pill span {
    white-space: nowrap;
}

.trending-showcase {
    gap: 15px;
    padding: 0 10px;
}

.trending-image-link {
    width: 150px;
    height: 150px;
}

.trending-name {
    font-size: 1.2em;
}

@media (min-width: 768px) {
    .trending-showcase {
        gap: 20px;
        padding: 0 20px;
    }
    .trending-image-link {
        width: auto;
        height: auto;
        max-width: min(240px, 45vh);
        max-height: 45vh;
    }
    .trending-name {
        font-size: 1.5em;
    }
}

/* ===== Profiles Header (compact) ===== */
.profiles-header {
    margin-top: 5px;
    margin-bottom: 2px !important;
    font-size: 1.25em !important;
}

/* New Extracted Styles */
.hero-search-wrapper input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.1em;
    outline: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#hero-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: 10px;
    overflow: hidden;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    text-align: left;
}

.no-personality-message {
    text-align: center;
    color: #aaa;
    z-index: 10;
}

.orbital-info-panel {
    margin-top: 30px;
    text-align: center;
    z-index: 10;
}

.live-activity-loading {
    color: #aaa;
    font-style: italic;
}

.pulse-section {
    padding: 0 20px;
    background: linear-gradient(to bottom, rgba(15, 15, 20, 0.6), rgba(5, 5, 10, 0.8));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-container {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
    align-content: flex-start;
}

.pulse-col {
    flex: 1;
    min-width: 300px;
}

.pulse-title {
    font-family: 'Lobster', cursive;
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.pulse-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    color: #fff;
    height: 75px;
    box-sizing: border-box;
}

.pulse-card:hover {
    transform: translateX(10px);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.pulse-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.pulse-info h4 {
    margin: 0 0 3px;
    font-size: 1em;
    font-family: 'Lobster', cursive;
}

.pulse-stats {
    font-size: 0.85em;
    color: #aaa;
    display: flex;
    gap: 10px;
}

.pulse-stats .likes {
    color: #4CAF50;
}

.pulse-stats .dislikes {
    color: #F44336;
}

.live-feed-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 12px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: #fff;
    height: 75px;
    box-sizing: border-box;
    font-size: 0.85em;
    animation: slideInFeed 0.5s ease-out;
    gap: 12px;
}

.live-feed-item:hover {
    transform: translateX(10px);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.live-feed-item img {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.5); /* Match pulse-img */
}

@keyframes slideInFeed {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.arena-cta-section {
    position: relative;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(ellipse at center, rgba(40, 30, 20, 0.9) 0%, rgba(15, 15, 20, 0.95) 70%, #0a0a0f 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

.arena-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.arena-title {
    font-family: 'Lobster', cursive;
    font-size: 3.2em;
    color: #FFD700;
    margin-bottom: 15px;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.arena-title-btn {
    display: inline-block;
    font-family: 'Lobster', cursive;
    font-size: 3em;
    color: #FFD700;
    text-decoration: none;
    margin-bottom: 15px;
    padding: 12px 40px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.8);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.2), inset 0 2px 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    cursor: pointer;
}

.arena-title-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.4), inset 0 2px 15px rgba(255, 255, 255, 0.2);
    border-color: #FFD700;
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}

.arena-subtitle {
    font-size: 1.3em;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.arena-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.35em;
    padding: 16px 45px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #111;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    animation: arena-pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.arena-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.5), inset 0 2px 15px rgba(255, 255, 255, 0.8);
    color: #000;
    animation: none;
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes arena-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 165, 0, 0), inset 0 2px 10px rgba(255, 255, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0), inset 0 2px 10px rgba(255, 255, 255, 0.6);
    }
}

.arena-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    display: inline-block;
}

.arena-icon-right {
    transform: scaleX(-1);
}

.arena-preview-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 50px;
    height: 200px;
    position: relative;
    z-index: 2;
}

.preview-portrait {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

.preview-vs {
    font-family: 'Lobster', cursive;
    font-size: 4em;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.8);
    animation: pulseVs 1.5s infinite alternate;
    margin: 0 -45px;
    z-index: 5;
    position: relative;
}

@keyframes pulseVs {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.9;
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }

    100% {
        transform: scale(1.15) translateY(-5px);
        opacity: 1;
        text-shadow: 0 0 35px rgba(255, 0, 0, 1), 0 0 10px rgba(255, 215, 0, 0.8);
    }
}

.nav-arrow:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* ===== Section Height Constraints ===== */
.hero-section,
.featured-profiles,
.pulse-section,
.categories-section,
.arena-cta-section {
    height: calc(100vh - var(--z-bottom-bar));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.hero-section {
    padding-top: calc(var(--x-top-bar) + var(--y-news-banner));
}

.featured-profiles,
.pulse-section,
.categories-section,
.arena-cta-section {
    padding-top: var(--x-top-bar);
}

/* ===== Categories Explorer (Vertical List + Preview) ===== */
.categories-section {
    padding: var(--x-top-bar) 0 0 !important;
    overflow: hidden !important;
    background: radial-gradient(circle at right bottom, rgba(20, 20, 30, 0.8), rgba(5, 5, 10, 1));
}

.explorer-container {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 0;
    max-width: 1600px;
    margin: 0 auto 20px auto;
    gap: 30px;
    padding: 20px 40px 20px 220px; /* Increased left padding to clear the fixed TOC */
    box-sizing: border-box;
    align-items: center;
    position: relative;
    z-index: 2;
}

.explorer-container {
    padding-left: 20px; /* Base for mobile */
}

.categories-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    border-right: 1px solid rgba(255, 215, 0, 0.1);
    padding-right: 10px;
}

.categories-sidebar-split {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.categories-list-col {
    display: flex;
    flex-direction: column;
}

.categories-image-col {
    display: none; /* Hide the duplicated image on mobile */
}

@media (min-width: 1024px) {
    .categories-sidebar {
        flex: 0 0 280px; /* narrowed slightly so content fits better */
        padding-right: 20px;
    }
}

@media (min-width: 768px) {
    .explorer-container {
        padding-left: 100px; /* Adapted for narrow icon TOC */
    }
}

.explorer-title {
    font-family: 'Lobster', cursive;
    font-size: 2.2em;
    color: #FFD700;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    text-align: left;
}

.categories-vertical-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    scrollbar-width: none;
}

.categories-vertical-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    user-select: none;
}

.category-item:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(10px);
}

.category-item.active {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
    transform: translateX(10px);
}

.cat-number {
    font-size: 0.8em;
    color: rgba(255, 215, 0, 0.5);
    font-weight: 700;
}

.cat-name {
    font-size: 1.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.category-item.active .cat-name,
.category-item:hover .cat-name {
    color: #FFD700;
}

/* Preview Panel */
.category-preview-panel {
    flex: 1;
    height: 100%;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#preview-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(40px);
    transition: opacity 0.4s ease;
}

.preview-content {
    position: relative;
    z-index: 2;
    padding: 20px 40px; /* Made smaller vertically */
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px; /* was 30px */
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.preview-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.preview-cat-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 25vh; /* Reduced height to make room for bottom figures */
    border-radius: 20px;
    object-fit: contain;
    border: 2px solid rgba(255, 215, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
}

.preview-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px; /* Reduced to avoid pushing title down */
}



.preview-figures-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    justify-content: center;
}

.figures-title {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
    font-weight: 800;
    text-align: center; /* Center on modern layout */
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Base mobile */
    gap: 12px;
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    .figures-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.figure-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.figure-mini-card:hover {
    transform: translateY(-10px);
}

.mini-card-img-wrapper {
    width: 100%;
    aspect-ratio: 1;              /* square on mobile */
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    /* Image rendered as background so cover+position always works */
    background-size: cover;
    background-position: center top;  /* portrait: top-aligned; landscape: h-centered */
    background-repeat: no-repeat;
    background-color: rgba(255,255,255,0.03);
}

.figure-mini-card:hover .mini-card-img-wrapper {
    border-color: #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

/* img is kept in DOM for accessibility (alt text) but hidden visually */
.mini-card-img-wrapper img {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Zoom effect on hover goes on the background */
.figure-mini-card:hover .mini-card-img-wrapper {
    background-size: 110%;
}



.figure-mini-card span {
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    text-align: center;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.figure-mini-card:hover span {
    color: #FFD700;
}

/* Animations */
.fading {
    opacity: 0 !important;
    transform: translateY(15px) !important;
}

/* Center the tightly grouped content */
.featured-profiles,
.pulse-section,
.categories-section {
    justify-content: center;
    gap: 15px; /* ensure gap exists for next btn */
}

/* laptop / small height fixes */
/* laptop / small height fixes */
@media (max-height: 850px) and (min-width: 1024px) {
    .categories-sidebar {
        flex: 1.2;
    }
    .explorer-title {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    .category-item {
        padding: 4px 12px;
        gap: 8px;
    }
    .cat-name {
        font-size: 0.9em;
    }
    .preview-content {
        padding: 15px;
        gap: 10px;
    }
    .preview-main {
        gap: 15px;
        margin-bottom: 0px;
    }
    .figures-grid {
        gap: 10px;
    }
    .figure-mini-card {
        gap: 5px;
    }
    .mini-card-img-wrapper {
        border-radius: 10px;
    }
    .preview-cat-img {
        max-height: 100px;
    }
}

.explorer-container {
    padding: var(--x-top-bar) 20px 80px 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
    gap: 20px;
}
.categories-sidebar {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 0 0 15px 0;
    max-height: none;
}
.explorer-title {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 15px;
}
.categories-vertical-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.category-item {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 0.85em;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
}
.category-item .cat-number {
    display: none;
}
.category-preview-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: none;
    border-radius: 20px;
}
.preview-content {
    padding: 20px;
    gap: 20px;
}
.preview-cat-img {
    max-width: 100%;
    max-height: 30vh;
}
.figures-grid {
    gap: 12px;
}
.figure-mini-card span {
    font-size: 0.8em;
}


@media (min-width: 1024px) {
    .explorer-container {
        padding: 15px 40px 15px 100px; /* Reduced from 200px because TOC is now narrow */
        flex-direction: row;
        align-items: center;
        overflow-y: visible;
        gap: 20px;
    }
    .categories-sidebar {
        flex: 1.2;
        width: auto;
        border-right: 1px solid rgba(255, 215, 0, 0.1);
        border-bottom: none;
        padding-right: 20px;
    }
    .categories-sidebar-split {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    .categories-list-col {
        flex: 1;
    }
    .categories-image-col {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
    }
    .explorer-title {
        font-size: 1.5em; /* Shrink to see 10 categories */
        text-align: left;
        margin-bottom: 10px;
    }
    .categories-vertical-list {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0px; /* Shrink gap to see 10 categories */
    }
    .category-item {
        padding: 4px 15px; /* Shrink padding to see 10 categories */
        font-size: 0.85em;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
    }
    .category-item .cat-number {
        display: inline;
    }
    .category-preview-panel {
        flex: 1;
        height: 100%;
        border-radius: 30px;
    }
    .preview-content {
        padding: 20px;
        gap: 10px;
        justify-content: center;
    }
    .preview-cat-img {
        max-height: 40vh; /* Make category image larger since it has its own column */
        max-width: 100%;
        width: auto;
        height: auto;
        border: 2px solid rgba(255, 215, 0, 0.4);
        border-radius: 20px;
    }
    .figures-title {
        margin-top: 15px; /* Push TOP FIGURES text down */
    }
    .figures-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    .mini-card-img-wrapper {
        width: 80px;  /* Uniform size for all TOP FIGURES thumbnails */
        max-width: 80px;
        height: 80px; /* Enforce square so aspect-ratio:1 is consistent */
        margin: 0 auto;
    }
    .figure-mini-card span {
        font-size: 0.8em;
    }
}



/* Hide scrollbar but keep functionality */
.hero-section::-webkit-scrollbar,
.featured-profiles::-webkit-scrollbar,
.pulse-section::-webkit-scrollbar,
.categories-section::-webkit-scrollbar,
.arena-cta-section::-webkit-scrollbar {
    display: none;
}

.hero-section,
.featured-profiles,
.pulse-section,
.categories-section,
.arena-cta-section {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===== Hero Layout (Content centered, TOC right) ===== */
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
    margin: auto;
}

/* ===== Table of Contents — Fixed Left Sidebar ===== */
.section-toc {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 5dvh 10px 20px 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    min-width: unset;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.toc-label {
    display: none;
}

.toc-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.toc-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s ease;
}

.toc-text {
    font-size: 0.8em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.toc-link:hover .toc-icon-wrapper,
.toc-link.active .toc-icon-wrapper {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.toc-link:hover .toc-text,
.toc-link.active .toc-text {
    color: #FFD700;
}

.toc-link::before {
    display: none;
}

/* ===== Section Next Button (Chevron Down + Label) ===== */
.section-next-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 5px;
    padding: 4px 18px 6px;
    border-radius: 25px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounceDown 2s infinite ease-in-out;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.section-next-label {
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 215, 0, 0.7);
    white-space: nowrap;
}

.section-next-btn i {
    font-size: 1em;
}

.section-next-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
    animation: none;
}

.section-next-btn:hover .section-next-label {
    color: #FFD700;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ===== Mobile Adjustments ===== */
/* ===== Mobile Base Rules ===== */
.hero-layout {
    flex-direction: column;
    gap: 20px;
}
.hero-section,
.featured-profiles,
.pulse-section,
.categories-section,
.arena-cta-section {
    padding: 20px 10px;
    min-height: calc(100vh - 70px);
}
.pulse-container {
    gap: 15px;
}
.pulse-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}
.pulse-card {
    height: 60px;
    margin-bottom: 8px;
    padding: 6px;
}
.pulse-img {
    width: 38px;
    height: 38px;
    border-width: 1px;
}
.pulse-info h4 {
    font-size: 0.9em;
    margin-bottom: 2px;
}
.pulse-stats {
    font-size: 0.75em;
}
.live-feed-item {
    height: 60px;
    margin-bottom: 8px;
    padding: 6px;
    font-size: 0.75em;
}
.live-feed-item img {
    width: 38px;
    height: 38px;
    min-width: 38px;
}
.section-toc {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    padding: 15px 10px;
    gap: 15px;
}
.toc-link {
    white-space: nowrap;
}
.toc-link:hover {
    transform: none;
}
.toc-link::before {
    display: none;
}
.section-next-btn {
    padding: 6px 16px 8px;
    margin: 10px auto 8px;
}
.section-next-label {
    font-size: 0.65em;
}

/* ===== Tablette (768px+) Rules ===== */
@media (min-width: 768px) {
    .hero-layout {
        flex-direction: row;
        gap: 0;
    }
    .hero-section,
    .featured-profiles,
    .pulse-section,
    .categories-section,
    .arena-cta-section {
        padding: 60px 20px;
        min-height: unset;
    }
    .pulse-container {
        gap: 40px;
    }
    .pulse-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .pulse-card {
        height: 75px;
        margin-bottom: 12px;
        padding: 10px;
    }
    .pulse-img {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }
    .pulse-info h4 {
        font-size: 1.1em;
        margin-bottom: 5px;
    }
    .pulse-stats {
        font-size: 0.9em;
    }
    .live-feed-item {
        height: 75px;
        margin-bottom: 12px;
        padding: 10px;
    }
    .live-feed-item img {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    .section-toc {
        position: fixed;
        transform: translateY(-50%);
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        border-top: none;
        padding: 5dvh 10px 20px 10px;
        gap: 20px;
    }
    .toc-label {
        display: none;
    }
    .toc-link {
        white-space: nowrap;
    }
    .toc-link:hover {
        transform: none;
    }
    .toc-link::before {
        display: none;
    }
    .section-next-btn {
        padding: 4px 18px 6px;
        margin: 0 auto 5px;
    }
    .section-next-label {
        font-size: 0.75em;
    }
}