/**
 * MangaMaster — Home index (Blueprint 2026 — cinematic / gaming UI)
 */
:root {
    --home-accent: #e61c31;
    --home-accent-dim: rgba(230, 28, 49, 0.15);
    --home-cyan: #22d3ee;
    --home-cyan-dim: rgba(34, 211, 238, 0.12);
    --home-bg-deep: #050507;
    --home-obsidian: #050507;
    --home-surface: rgba(255, 255, 255, 0.04);
    --home-border: rgba(255, 255, 255, 0.09);
    --home-glass: rgba(18, 20, 28, 0.55);
    --home-text: #f4f4f5;
    --home-muted: #a1a1aa;
    --home-radius: 20px;
    --home-radius-lg: 28px;
    --home-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    --neon-cyan: #22d3ee;
    --cls-accent: #22d3ee;
    --cls-accent-rgb: 34, 211, 238;
    --cls-gold: #fbbf24;
    --px: 0;
    --py: 0;
}

/* Page atmosphere — Obsidian + slow nebula */
.home-index {
    position: relative;
    z-index: 0;
    padding-bottom: 3rem;
    font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

.home-index::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(230, 28, 49, 0.11), transparent 58%),
        radial-gradient(ellipse 70% 45% at 100% 40%, rgba(34, 211, 238, 0.07), transparent 52%),
        radial-gradient(ellipse 55% 40% at 0% 75%, rgba(99, 102, 241, 0.08), transparent 48%),
        radial-gradient(ellipse 60% 50% at 40% 100%, rgba(230, 28, 49, 0.05), transparent 50%),
        linear-gradient(180deg, var(--home-obsidian) 0%, #0a0a10 42%, var(--home-obsidian) 100%);
    animation: homeNebulaShift 42s ease-in-out infinite alternate;
}

@keyframes homeNebulaShift {
    0% {
        filter: hue-rotate(0deg);
        transform: scale(1);
    }

    100% {
        filter: hue-rotate(18deg);
        transform: scale(1.02);
    }
}

.home-index::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    .home-index::before {
        animation: none;
    }
}

/* Filter / search banner */
.home-filter-banner {
    max-width: 72rem;
    margin: 0 auto 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--home-radius-lg);
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-filter-banner h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-text);
    letter-spacing: -0.02em;
}

.home-filter-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--home-muted);
}

.home-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--home-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--home-border);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.home-filter-clear:hover {
    background: var(--home-accent-dim);
    border-color: rgba(230, 28, 49, 0.35);
    color: #fff;
}

/* Ticker */
.image-ticker-wrap {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.1rem 0;
    border-radius: var(--home-radius-lg);
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.image-ticker-wrap::before,
.image-ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4rem;
    z-index: 2;
    pointer-events: none;
}

.image-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--home-obsidian), transparent);
}

.image-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--home-obsidian), transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: homeTickerSlide 55s linear infinite;
}

.image-ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
}

.image-ticker-wrap:has(.ticker-item-premium:hover) .ticker-item-premium:not(:hover) {
    opacity: 0.34;
    filter: grayscale(0.35) brightness(0.65);
}

@keyframes homeTickerSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-item-premium {
    width: 220px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--home-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.35s ease, filter 0.35s ease;
}

.ticker-item-premium:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.ticker-item-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72);
    transition: filter 0.3s ease;
}

.ticker-item-premium:hover img {
    filter: brightness(0.95);
}

.ticker-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.badge-neon-cyan {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(34, 211, 238, 0.95);
    color: #042f2e;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.35);
}

.ticker-manga-name {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* V13.2 Golden Store Buyers Ticker */
.ticker-item-gold {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(217, 119, 6, 0.05) 100%);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
    animation: goldShimmer 3s infinite alternate;
}

.ticker-item-gold:hover {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
    transform: translateY(-4px);
}

.ticker-item-gold .ticker-banner-img {
    filter: brightness(0.65) saturate(0.8);
}

.ticker-item-gold:hover .ticker-banner-img {
    filter: brightness(0.8) saturate(1.1);
}

@keyframes goldShimmer {
    0% { box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1); }
    100% { box-shadow: 0 4px 25px rgba(251, 191, 36, 0.25); }
}

.badge-gold {
    background: linear-gradient(135deg, #fde68a, #f59e0b) !important;
    color: #451a03 !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4) !important;
    border: none !important;
}

/* Hero (Swiper) */
.mm-hero-slider {
    padding: 0 0 3rem;
    overflow: visible;
}

.hero-parallax-root {
    --px: 0;
    --py: 0;
    perspective: 1200px;
}

.hero-premium-console {
    display: flex;
    position: relative;
    min-height: 420px;
    height: auto;
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 22, 30, 0.72) 0%, rgba(12, 14, 20, 0.88) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--home-shadow), 0 0 0 1px rgba(34, 211, 238, 0.06) inset;
    margin-bottom: 0;
}

.hero-parallax-layer {
    transition: transform 0.35s ease-out;
}

.hero-console-left.hero-parallax-layer {
    transform: translate3d(calc(var(--px) * 18px), calc(var(--py) * 10px), 0);
}

.hero-console-left {
    flex: 1;
    min-width: 0;
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-rank-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-cyan);
    background: var(--home-cyan-dim);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
}

.hero-title-main {
    margin: 0 0 1rem;
    font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--home-text);
}

.hero-desc-main {
    margin: 0 0 1.75rem;
    max-width: 32rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--home-muted);
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--home-accent) 0%, #b91c1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(230, 28, 49, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(230, 28, 49, 0.45);
    color: #fff;
}

.hero-console-right {
    width: 42%;
    min-height: 320px;
    position: relative;
    background-size: cover;
    background-position: center top;
}

.hero-console-right.hero-render-stack {
    background-image: none !important;
    overflow: hidden;
    transform: translate3d(calc(var(--px) * -22px), calc(var(--py) * -14px), 0);
}

.hero-bg-blurred {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center top;
    filter: blur(26px) saturate(1.15);
    opacity: 0.62;
    transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -6px), 0) scale(1.08);
    pointer-events: none;
}

.hero-cover-main {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -8px), 0);
    pointer-events: none;
}

.hero-console-right.hero-render-stack::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to left, transparent 0%, rgba(5, 5, 7, 0.2) 40%, rgba(5, 5, 7, 0.95) 100%);
    pointer-events: none;
}

.hero-console-right:not(.hero-render-stack)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, transparent 0%, rgba(7, 8, 12, 0.15) 45%, rgba(7, 8, 12, 0.92) 100%);
}

.hero-holo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.hero-holo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(34, 211, 238, 0.08);
}

.hero-holo-rating {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fde68a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 18px rgba(251, 191, 36, 0.12);
}

.hero-floating-bubble {
    animation: heroBubbleFloat 5s ease-in-out infinite;
}

@keyframes heroBubbleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-parallax-layer,
    .hero-bg-blurred,
    .hero-cover-main,
    .hero-console-right.hero-render-stack {
        transform: none !important;
        transition: none !important;
    }

    .hero-floating-bubble {
        animation: none;
    }
}

.hero-comment-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 5;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 280px;
}

.hero-comment-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--cls-gold);
    margin-bottom: 0.35rem;
}

.hero-comment-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #d4d4d8;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(800%);
    }
}

/* Section heading */
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.home-section-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-cyan);
    margin-bottom: 0.35rem;
}

.home-section-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--home-text);
}

.home-link-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--home-muted);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.home-link-all:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--home-border);
}

/* Main grid */
.home-index .mm-main-layout {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 320px);
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .home-index .mm-main-layout {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .home-index .mm-sidebar {
        position: sticky;
        top: 5.5rem;
        align-self: start;
    }
}

.mm-update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

.mm-update-card {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mm-update-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.mm-update-thumb {
    position: relative;
    display: block;
    width: 100px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mm-update-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.mm-update-card:hover .mm-update-thumb img {
    transform: scale(1.08);
}

.mm-glass-panel {
    background: var(--home-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mm-smart-card.mm-glass-panel {
    background: rgba(12, 14, 20, 0.65);
}

.mm-thumb-stack {
    position: relative;
    flex-shrink: 0;
}

.mm-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.5rem 0.55rem 0.45rem;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 7, 0.25) 35%, rgba(5, 5, 7, 0.92) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mm-smart-card:hover .mm-thumb-overlay {
    opacity: 1;
}

.mm-thumb-snippet,
.mm-thumb-genres {
    margin: 0 0 0.35rem;
    font-size: 0.62rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mm-thumb-genres {
    color: rgba(34, 211, 238, 0.85);
    font-weight: 700;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.mm-thumb-overlay-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.mm-thumb-rating {
    font-size: 0.65rem;
    font-weight: 800;
    color: #fde68a;
}

.mm-thumb-cta {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
}

.mm-read-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3;
}

.mm-read-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--home-cyan), var(--home-accent));
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
    transition: width 0.4s ease;
}

.mm-ch-hot {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 1px 6px;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(135deg, #e61c31, #f97316);
    box-shadow: 0 0 12px rgba(230, 28, 49, 0.55);
    animation: mmHotPulse 2s ease-in-out infinite;
}

@keyframes mmHotPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(230, 28, 49, 0.5);
    }

    50% {
        box-shadow: 0 0 16px rgba(249, 115, 22, 0.65);
    }
}

.mm-ch-new-badge {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 1px 7px;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    animation: mmNewPulse 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes mmNewPulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
    }
    50% {
        box-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
    }
}

.home-live-feed {
    margin-top: 1rem;
    padding: 1rem 1rem 0.85rem;
    border-radius: 16px;
}

.home-live-feed-title {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-cyan);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.home-live-feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-live-feed-list li {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    line-height: 1.4;
}

.home-live-dot {
    width: 6px;
    height: 6px;
    margin-top: 0.35rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    animation: homeDotPulse 2s ease-in-out infinite;
}

.home-live-line {
    color: var(--home-muted);
    text-decoration: none;
    display: block;
}

.home-live-line:hover {
    color: #fff;
}

.home-live-line strong {
    color: #e4e4e7;
}

.home-live-action {
    display: block;
    font-size: 0.68rem;
    opacity: 0.85;
}

.home-chat-hologram .chat-container {
    background: linear-gradient(165deg, rgba(18, 22, 32, 0.75) 0%, rgba(8, 9, 14, 0.92) 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(34, 211, 238, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mm-update-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.15rem 0.5rem 0.15rem 0.5rem;
}

.mm-update-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-text);
    text-decoration: none;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mm-update-title:hover {
    color: var(--home-cyan);
}

.mm-ch-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #d4d4d8;
    text-decoration: none;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mm-ch-tag:hover {
    background: var(--home-accent-dim);
    border-color: rgba(230, 28, 49, 0.35);
    color: #fff;
}

/* Sidebar widgets */
.elite-widget {
    border-radius: var(--home-radius);
    padding: 1.35rem 1.25rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
}

.elite-title {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--cls-gold);
    margin: 0 0 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.elite-player-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.5rem;
    margin-bottom: 0.35rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.elite-player-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--home-border);
}

.elite-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.elite-player-rank {
    position: absolute;
    left: -6px;
    top: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #18181b;
    border: 1px solid var(--home-border);
    color: #e4e4e7;
}

.elite-player-name {
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.elite-player-name:hover {
    color: var(--home-cyan);
}

.elite-player-score {
    font-size: 0.68rem;
    color: var(--home-muted);
    font-weight: 600;
}

.mm-widget-title {
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--home-text);
}

/* Chat panel */
.home-chat-section {
    margin-top: 3rem;
}

.chat-container {
    height: 560px;
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 20, 28, 0.95) 0%, rgba(10, 11, 16, 0.98) 100%);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow);
}

#chatBody {
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
}

/* Chat bubbles (JS + legacy) */
.chat-msg-row {
    display: flex;
    gap: 0.75rem;
    max-width: 92%;
    align-items: flex-end;
    position: relative;
    animation: msgFadeIn 0.28s ease;
}

@keyframes msgFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg-row.me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(34, 211, 238, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-avatar-wrap:hover {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.imperial-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.imperial-avatar-stack {
    border-radius: 50%;
    overflow: visible;
    width: 100%;
    height: 100%;
}

.imperial-target {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.imperial-frame {
    position: absolute;
    z-index: 2;
    inset: -15%;
    pointer-events: none;
}

.chat-bubble-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border-top-right-radius: 6px;
}

.me .chat-bubble-content {
    background: rgba(230, 28, 49, 0.2);
    border-color: rgba(230, 28, 49, 0.35);
}

.chat-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #e4e4e7;
    white-space: pre-wrap;
    word-break: break-word;
}

.me .chat-text {
    color: #fafafa;
}

.chat-reply-embed {
    border-right: 3px solid var(--home-cyan);
    border-left: none;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.mm-user-menu {
    position: fixed;
    z-index: 10000;
    min-width: 210px;
    padding: 0.5rem;
    border-radius: 14px;
    background: rgba(16, 18, 24, 0.98);
    border: 1px solid var(--home-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(14px);
    display: none;
}

.mm-user-menu.visible {
    display: block;
    animation: menuZoom 0.18s ease;
}

@keyframes menuZoom {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mm-user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.35rem 0.9rem;
    border-bottom: 1px solid var(--home-border);
    margin-bottom: 0.35rem;
}

.mm-user-menu-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.mm-user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #d4d4d8;
    text-decoration: none;
    transition: background 0.15s;
}

.mm-user-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

/* Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper pagination */
.heroSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: transform 0.2s, background 0.2s;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--home-accent);
    transform: scale(1.25);
}

/* Responsive hero */
@media (max-width: 900px) {
    .hero-premium-console {
        flex-direction: column;
        min-height: 0;
    }

    .hero-console-right {
        width: 100%;
        min-height: 220px;
        order: -1;
    }

    .hero-console-right::before {
        background: linear-gradient(to top, rgba(7, 8, 12, 0.95) 0%, transparent 70%);
    }

    .hero-console-left {
        padding: 1.5rem 1.25rem 2rem;
    }

    .hero-comment-overlay {
        position: relative;
        inset: auto;
        max-width: none;
        margin: -3rem 1rem 0;
    }
}

.home-index .elite-player-card>a.mm-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--home-border);
    color: var(--home-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.home-index .elite-player-card>a.mm-view-all:hover {
    color: #fff;
    background: var(--home-accent-dim);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Premium sidebar: Elite LB, fake feed, support, editor pick, 3D genres, chat
   ═══════════════════════════════════════════════════════════════════════════ */

/* —— Elite Leaderboard —— */
.elite-lb {
    border-radius: var(--home-radius-lg);
    padding: 1.15rem 1rem 1rem;
    background: linear-gradient(165deg, rgba(18, 22, 36, 0.78) 0%, rgba(8, 10, 18, 0.92) 100%);
    border: 1px solid rgba(0, 243, 255, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.elite-lb::before {
    content: "";
    position: absolute;
    inset: -40% 50% auto -20%;
    height: 120%;
    background: radial-gradient(circle, rgba(230, 28, 49, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.elite-lb__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.elite-lb__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(230, 28, 49, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    font-size: 1.1rem;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.15);
}

.elite-lb__title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}

.elite-lb__sub {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 243, 255, 0.75);
    margin-top: 0.15rem;
}

.elite-lb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.elite-lb__row {
    display: grid;
    grid-template-columns: 36px 52px 1fr 38px;
    align-items: center;
    gap: 0.5rem 0.45rem;
    padding: 0.55rem 0.35rem;
    margin-bottom: 0.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

.elite-lb__row:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 243, 255, 0.2);
}

.elite-lb__row--gold {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.12), inset 0 0 20px rgba(255, 215, 0, 0.04);
}

.elite-lb__row--silver {
    border-color: rgba(192, 192, 220, 0.4);
    box-shadow: 0 0 22px rgba(200, 200, 230, 0.1);
}

.elite-lb__row--bronze {
    border-color: rgba(205, 127, 50, 0.45);
    box-shadow: 0 0 22px rgba(205, 127, 50, 0.12);
}

.elite-lb__rank-badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.elite-lb__row--gold .elite-lb__rank-badge {
    color: #0a0a0f;
    background: linear-gradient(145deg, #ffe066, #d4a00a);
    border-color: #fff8dc;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.55);
}

.elite-lb__row--silver .elite-lb__rank-badge {
    color: #18181f;
    background: linear-gradient(145deg, #f4f4f8, #9ca3af);
    box-shadow: 0 0 14px rgba(200, 200, 230, 0.45);
}

.elite-lb__row--bronze .elite-lb__rank-badge {
    color: #1a0f05;
    background: linear-gradient(145deg, #e8a874, #a0522d);
    box-shadow: 0 0 14px rgba(205, 127, 50, 0.45);
}

.elite-lb__avatar-box {
    position: relative;
    width: 48px;
    height: 48px;
}

.elite-lb__stack {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: visible;
    position: relative;
}

.elite-lb__face {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.elite-lb__frame {
    position: absolute;
    inset: -18%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elite-lb__frame-media {
    width: 130%;
    height: 130%;
    object-fit: contain;
    pointer-events: none;
}

.elite-lb__meta {
    min-width: 0;
}

.elite-lb__name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #f4f4f5;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elite-lb__name:hover {
    color: #00f3ff;
}

.elite-lb__score {
    font-size: 0.65rem;
    color: var(--home-muted);
    margin-top: 0.12rem;
}

.elite-lb__score-num {
    font-weight: 900;
    color: #fde68a;
}

.elite-lb__dm {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.7rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.elite-lb__dm:hover {
    color: #fff;
    border-color: rgba(230, 28, 49, 0.45);
    background: rgba(230, 28, 49, 0.12);
}

.elite-lb__countdown {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(230, 28, 49, 0.08);
    border: 1px solid rgba(230, 28, 49, 0.28);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 24px rgba(230, 28, 49, 0.08);
}

.elite-lb__countdown-label {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fb7185;
    margin-bottom: 0.2rem;
}

.elite-lb__countdown-time {
    font-size: 1.05rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow: 0 0 12px rgba(230, 28, 49, 0.35);
}

.elite-lb__countdown-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f87171;
}

/* —— Fake server feed (vertical ticker) —— */
.home-fake-feed {
    border-radius: var(--home-radius);
    margin-bottom: 1.25rem;
    padding: 0.85rem 0.75rem 0.75rem;
    background: rgba(10, 12, 22, 0.72);
    border: 1px solid rgba(0, 243, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.home-fake-feed__title {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 243, 255, 0.9);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.home-fake-feed__viewport {
    max-height: 220px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
}

.home-fake-feed__list {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: homeFeedScroll 38s linear infinite;
}

@keyframes homeFeedScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.home-fake-feed__viewport:hover .home-fake-feed__list {
    animation-play-state: paused;
}

.home-fake-feed__item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.45rem 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    line-height: 1.45;
    color: #d4d4d8;
}

.home-fake-feed__pulse {
    width: 7px;
    height: 7px;
    margin-top: 0.35rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
    animation: feedLivePulse 1.4s ease-in-out infinite;
}

@keyframes feedLivePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.85);
    }
}

.home-fake-feed__text {
    flex: 1;
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    .home-fake-feed__list {
        animation: none;
    }
}

/* —— Support card —— */
.home-support-card {
    position: relative;
    border-radius: var(--home-radius-lg);
    margin-bottom: 1.25rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(230, 28, 49, 0.65), rgba(251, 191, 36, 0.35));
    box-shadow: 0 18px 48px rgba(230, 28, 49, 0.2);
}

.home-support-card__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 30%, rgba(251, 191, 36, 0.12), transparent 55%);
    pointer-events: none;
}

.home-support-card__inner {
    position: relative;
    border-radius: calc(var(--home-radius-lg) - 1px);
    padding: 1.25rem 1.1rem;
    background: linear-gradient(165deg, rgba(20, 12, 18, 0.96) 0%, rgba(12, 10, 16, 0.98) 100%);
    text-align: center;
}

.home-support-card__crest {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.65rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(230, 28, 49, 0.35), rgba(251, 191, 36, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    font-size: 1.15rem;
    box-shadow: 0 0 24px rgba(230, 28, 49, 0.25);
}

.home-support-card__h {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 900;
    background: linear-gradient(90deg, #fecaca, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-support-card__p {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    line-height: 1.65;
    color: rgba(228, 228, 231, 0.88);
}

.home-support-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #1a0508;
    background: linear-gradient(180deg, #ffe066 0%, #f59e0b 45%, #d97706 100%);
    border: 1px solid rgba(255, 248, 220, 0.5);
    box-shadow: 0 4px 0 #92400e, 0 8px 28px rgba(251, 191, 36, 0.45);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-support-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #92400e, 0 14px 36px rgba(251, 191, 36, 0.55);
    color: #1a0508;
}

.home-support-card__btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #92400e, 0 6px 16px rgba(251, 191, 36, 0.35);
}

/* —— Floating support —— */
.home-support-fab {
    position: fixed;
    z-index: 9990;
    bottom: 1.25rem;
    inset-inline-end: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem 0.65rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    color: #fff8e7;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    border: 1px solid rgba(253, 224, 71, 0.45);
    box-shadow: 0 12px 40px rgba(185, 28, 28, 0.55), 0 0 24px rgba(251, 191, 36, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-support-fab:hover {
    transform: translateY(-3px) scale(1.02);
    color: #fff;
    box-shadow: 0 16px 48px rgba(185, 28, 28, 0.6), 0 0 32px rgba(251, 191, 36, 0.35);
}

.home-support-fab__ring {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(0, 243, 255, 0.25);
    animation: fabRing 2.8s ease-out infinite;
    pointer-events: none;
}

@keyframes fabRing {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

.home-support-fab i {
    font-size: 1rem;
    color: #fde68a;
}

.home-support-fab__txt {
    position: relative;
    z-index: 1;
}

/* —— Editor mini cards —— */
.editor-pick {
    margin-bottom: 1.25rem;
}

.editor-pick__title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.75rem;
}

.editor-pick__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.editor-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.55rem;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.editor-mini-card:hover {
    border-color: rgba(0, 243, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.18);
    transform: translateY(-2px);
}

.editor-mini-card__img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.editor-mini-card:hover .editor-mini-card__img {
    transform: scale(1.06);
}

.editor-mini-card__title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #a1a1aa;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.editor-mini-card:hover .editor-mini-card__title {
    color: #fff;
}

/* —— 3D genre buttons —— */
.genre-box {
    margin-bottom: 1rem;
}

.genre-box__title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.75rem;
}

.genre-3d-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.genre-3d {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(0);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35), 0 8px 16px rgba(0, 0, 0, 0.25);
}

.genre-3d:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.genre-3d:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 3px 8px rgba(0, 0, 0, 0.2);
}

.genre-3d--0 {
    background: linear-gradient(180deg, #e11d48, #9f1239);
}

.genre-3d--1 {
    background: linear-gradient(180deg, #0891b2, #164e63);
}

.genre-3d--2 {
    background: linear-gradient(180deg, #7c3aed, #4c1d95);
}

.genre-3d--3 {
    background: linear-gradient(180deg, #059669, #064e3b);
}

.genre-3d--4 {
    background: linear-gradient(180deg, #d97706, #78350f);
}

.genre-3d--5 {
    background: linear-gradient(180deg, #6366f1, #312e81);
}

/* —— Global chat revamp —— */
.home-gc {
    position: relative;
}

.home-gc-shell {
    min-height: 520px;
    max-height: 640px;
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    background: linear-gradient(165deg, #1a1d2e 0%, #0f1118 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(139, 92, 246, 0.15), 0 0 40px rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.home-gc-top {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
}

.home-gc-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.8), 0 0 0 3px rgba(74, 222, 128, 0.2);
    animation: gcLivePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.home-gc-top-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.home-gc-online-pill {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(139, 92, 246, 0.95);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.home-gc-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
    padding: 1.25rem 1rem;
    overflow-y: auto;
    min-height: 280px;
    max-height: 420px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, transparent 100%);
}

.gc-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
}

.gc-them {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.gc-me {
    justify-content: flex-start;
}

.home-gc-avatar-slot {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 50%;
    line-height: 0;
}

.home-gc-avatar-stack {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: visible;
}

.home-gc-face {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
}

.home-gc-frame {
    position: absolute;
    inset: -18%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-gc-frame-media {
    width: 130%;
    height: 130%;
    object-fit: contain;
    pointer-events: none;
}

.gc-stack {
    max-width: min(78%, 420px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gc-name {
    font-size: 0.65rem;
    font-weight: 900;
    color: #71717a;
    padding-inline: 2px;
}

.gc-bubble {
    border-radius: 18px;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: right;
    direction: rtl;
    border: 1px solid transparent;
}

.gc-bubble--them {
    background: rgba(15, 18, 28, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gc-bubble--me {
    background: linear-gradient(145deg, rgba(230, 28, 49, 0.92), rgba(127, 29, 29, 0.95));
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff7f7;
    box-shadow: 0 0 24px rgba(230, 28, 49, 0.25);
}

.gc-bubble--me.alt-cyan {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.35), rgba(8, 51, 68, 0.9));
    border-color: rgba(0, 243, 255, 0.35);
}

.gc-me-actions {
    margin-top: 0.35rem;
    display: flex;
    justify-content: flex-end;
}

.gc-del {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
    font-size: 0.65rem;
}

.gc-del:hover {
    color: #fff;
}

.home-gc-foot {
    padding: 1rem 1.1rem 1.15rem;
    border-top: 1px solid rgba(0, 243, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
}

.home-gc-reply {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.65rem;
    background: rgba(230, 28, 49, 0.08);
    border: 1px solid rgba(230, 28, 49, 0.2);
}

.home-gc-reply.hidden {
    display: none !important;
}

.home-gc-reply-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
}

.home-gc-input {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 7.5rem 0.65rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 243, 255, 0.18);
    background: rgba(10, 12, 20, 0.75);
    color: #fafafa;
    font-size: 0.88rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-gc-input:focus {
    border-color: rgba(0, 243, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.12);
}

.home-gc-input-actions {
    position: absolute;
    left: 0.45rem;
    bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.home-gc-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.home-gc-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.home-gc-send {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #e11d48, #991b1b);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.45);
    transition: transform 0.15s;
}

.home-gc-send:hover {
    transform: scale(1.06);
}

.home-gc-emoji-slot {
    margin-top: 0.5rem;
}

em-emoji-picker {
    --background: #12121a;
    --border-color: rgba(0, 243, 255, 0.2);
    --rgb-accent: 0, 243, 255;
}

/* ═══════════════════════════════════════════════════════════════
   V14 GLOBAL CHAT — ELITE GLASSMORPHIC DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* ── Chat Section Container ── */
.home-chat-section {
    position: relative;
    z-index: 1;
}

/* ── Glass Shell ── */
.home-gc-shell {
    position: relative;
    border-radius: 28px;
    background: linear-gradient(165deg, rgba(12, 14, 22, 0.82) 0%, rgba(6, 8, 14, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.12),
        0 0 80px rgba(139, 92, 246, 0.06),
        0 30px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
    min-height: 460px;
    max-height: 640px;
}

.home-gc-shell::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    animation: gcBorderShimmer 6s ease-in-out infinite;
}

@keyframes gcBorderShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.home-gc-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 35% at 15% 0%, rgba(139, 92, 246, 0.08), transparent 60%),
        radial-gradient(ellipse 40% 40% at 85% 100%, rgba(236, 72, 153, 0.05), transparent 55%);
    z-index: 0;
}

/* ── Top Bar ── */
.home-gc-top {
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem;
    border-bottom: none;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, transparent 100%);
}

.home-gc-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.3), transparent);
}

.home-gc-top-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f4f4f5;
    letter-spacing: -0.01em;
}

.home-gc-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.7), 0 0 4px rgba(34, 197, 94, 1);
    animation: gcLivePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes gcLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

.home-gc-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(139, 92, 246, 0.95);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 999px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* ── Chat Body (Messages Area) ── */
.home-gc-body {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 280px;
    max-height: 420px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, 0.2) transparent;
}

.home-gc-body::-webkit-scrollbar {
    width: 5px;
}

.home-gc-body::-webkit-scrollbar-track {
    background: transparent;
}

.home-gc-body::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.15);
    border-radius: 10px;
}

.home-gc-body::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.3);
}

/* ── Message Row Layout ── */
.gc-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 85%;
    animation: gcMsgSlide 0.35s ease-out;
    transition: background 0.2s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 14px;
}

.gc-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

@keyframes gcMsgSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Me = right side */
.gc-row.gc-me {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* Others = left side */
.gc-row.gc-them {
    align-self: flex-start;
    flex-direction: row;
}

/* ── Avatar ── */
.home-gc-avatar-slot {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.home-gc-avatar-slot:hover {
    transform: scale(1.08);
}

.home-gc-avatar-stack {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
}

.home-gc-face {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.home-gc-frame {
    position: absolute;
    inset: -6px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-gc-frame-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Message Stack (name + bubble) ── */
.gc-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    max-width: 100%;
}

.gc-name {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--neon-cyan);
    margin-bottom: 0.1rem;
    padding: 0 0.25rem;
}

/* ── Bubble Styles ── */
.gc-bubble {
    position: relative;
    padding: 0.7rem 0.95rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-word;
    max-width: 100%;
    transition: box-shadow 0.3s ease;
}

/* My messages — elegant purple glow */
.gc-bubble--me {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(109, 40, 217, 0.12) 100%);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 18px 18px 6px 18px;
    color: #f4f4f5;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.gc-bubble--me:hover {
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.35);
}

/* Other messages — frosted glass */
.gc-bubble--them {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px 18px 18px 6px;
    color: #e4e4e7;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.gc-bubble--them:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.gc-bubble .chat-text {
    font-size: 0.88rem;
    line-height: 1.6;
}

.gc-bubble .chat-text img {
    max-width: 140px;
    display: block;
    margin: 6px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Admin/Action Tools ── */
.gc-me-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gc-row:hover .gc-me-actions {
    opacity: 1;
}

.gc-del {
    background: none;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.gc-del:hover {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

/* ── Reply Embed ── */
.chat-reply-embed {
    border-right: 3px solid rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.06);
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
    margin-bottom: 0.45rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.chat-reply-embed:hover {
    background: rgba(139, 92, 246, 0.12);
}

/* ── Footer / Input Area ── */
.home-gc-foot {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.home-gc-reply {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    font-size: 0.78rem;
    color: #a1a1aa;
}

.home-gc-reply-close {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding: 4px;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.home-gc-reply-close:hover {
    color: #f43f5e;
}

.home-gc-input {
    width: 100%;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    padding-left: 120px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.04);
    outline: none;
    max-height: 120px;
    transition: border-color 0.25s, box-shadow 0.25s;
    direction: rtl;
}

.home-gc-input::placeholder {
    color: #52525b;
}

.home-gc-input:focus {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.home-gc-input-actions {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.home-gc-icon-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    color: #71717a;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.home-gc-icon-btn:hover {
    color: rgba(139, 92, 246, 0.95);
    background: rgba(139, 92, 246, 0.1);
}

.home-gc-send {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: none;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-gc-send:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.home-gc-emoji-slot {
    margin-top: 0.5rem;
}

em-emoji-picker {
    --background: #12121a;
    --border-color: rgba(34, 211, 238, 0.2);
    --rgb-accent: 34, 211, 238;
    width: 100%;
    max-width: 100%;
}

/* ── User Context Menu ── */
.mm-user-menu {
    position: fixed;
    z-index: 25000;
    min-width: 200px;
    padding: 0.5rem;
    border-radius: 16px;
    background: rgba(15, 15, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    gap: 0.15rem;
}

.mm-user-menu.active {
    display: flex;
}

.mm-user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.25rem;
}

.mm-user-menu-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34, 211, 238, 0.3);
}

.mm-user-menu-header span {
    font-size: 0.85rem;
    font-weight: 800;
    color: #f4f4f5;
}

.mm-user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.mm-user-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f4f4f5;
}

.mm-user-menu-item i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Responsive (Mobile) ── */
@media (max-width: 640px) {
    .home-gc-shell {
        border-radius: 18px;
        min-height: 350px;
        max-height: 500px;
    }

    .home-gc-body {
        padding: 0.85rem 0.65rem;
        min-height: 220px;
        max-height: 350px;
    }

    .gc-row {
        max-width: 92%;
        gap: 0.5rem;
    }

    .home-gc-avatar-stack,
    .home-gc-face {
        width: 34px;
        height: 34px;
    }

    .gc-bubble {
        padding: 0.6rem 0.8rem;
        font-size: 0.82rem;
    }

    .home-gc-input {
        padding-left: 100px;
        font-size: 0.82rem;
    }

    .home-gc-top {
        padding: 0.75rem 1rem;
    }

    .home-gc-top-title {
        font-size: 0.85rem;
    }
}

/* ── Hide the floating support FAB permanently ── */
.floating-support-btn, .home-support-fab {
    display: none !important;
}

/* User Title Badges (V1.1 — Gaming UI Master) */
.user-title-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2.5px 8px;
    margin: 0 8px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--title-color, var(--home-cyan));
    color: var(--title-color, var(--home-cyan));
    box-shadow: 0 0 10px var(--title-glow, rgba(34, 211, 238, 0.3));
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    line-height: 1;
    z-index: 10;
}

/* Global Shine Layer for all badges (Enhanced) */
.user-title-badge::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent
    );
    transition: none;
    z-index: 11;
}

/* Specific Shine Animation for Legendary/Important badges */
.user-title-badge.legendary::after,
.user-title-badge--shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 255, 255, 0.45), 
        transparent
    );
    transform: rotate(25deg);
    animation: userBadgeSweep 3s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    z-index: 12;
}

@keyframes userBadgeSweep {
    0% { left: -120%; }
    25% { left: 160%; }
    100% { left: 160%; }
}

/* Rarity Color Overrides */
.user-title-badge.legendary {
    --title-color: #facc15; /* Yellow/Gold */
    --title-glow: rgba(250, 204, 21, 0.5);
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(250,204,21,0.08) 100%);
    border-width: 1.5px;
}

.user-title-badge.epic {
    --title-color: #e879f9; /* Pink/Purple */
    --title-glow: rgba(232, 121, 249, 0.45);
}

.user-title-badge.rare {
    --title-color: #38bdf8; /* Blue */
    --title-glow: rgba(56, 189, 248, 0.4);
}

/* Animation for the glow itself */
@keyframes userBadgePulse {
    from { box-shadow: 0 0 8px var(--title-glow); }
    to { box-shadow: 0 0 16px var(--title-glow); }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERHAUL (V14.6 Premium)
   ========================================================================== */

@media (max-width: 768px) {
    /* 0. DEBUG BORDER (Remove after verification) */
    .home-index {
        border: 4px solid var(--home-cyan) !important;
    }

    /* 1. Global Spacing & Typography */
    .home-index {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .home-section-head {
        margin-bottom: 1.25rem;
        padding: 0 5px;
    }

    .home-section-head h2 {
        font-size: 1.25rem;
        letter-spacing: -0.01em;
    }

    .home-section-kicker {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    /* 2. Leaderboard (Elite 10.0) Mobile Optimization */
    .elite-lb {
        padding: 1.25rem 0.75rem;
        border-radius: 24px;
        margin-bottom: 2rem;
        width: 100% !important; /* Ensure it doesn't overflow */
        max-width: 100% !important;
    }

    .elite-lb__head {
        margin-bottom: 1.5rem;
        padding: 0 5px;
    }

    .elite-lb__title {
        font-size: 1.1rem;
    }

    .elite-lb__sub {
        font-size: 0.6rem;
    }

    .elite-lb__row {
        padding: 14px 12px;
        gap: 15px;
        border-radius: 16px;
        margin-bottom: 10px;
        background: rgba(255, 255, 255, 0.02);
    }

    .elite-lb__name {
        font-size: 1.05rem !important; /* Larger for readability */
        font-weight: 850 !important;
        line-height: 1.2;
    }

    .elite-lb__score {
        font-size: 0.8rem !important;
        margin-top: 4px;
        opacity: 0.8;
    }

    .elite-lb__score-num {
        font-size: 0.9rem;
        font-weight: 900;
        color: var(--home-cyan);
    }

    .elite-lb__rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        font-weight: 900;
    }

    .elite-lb__avatar-box {
        width: 52px;
        height: 52px;
    }

    .elite-lb__dm {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        background: rgba(230, 28, 49, 0.1);
        color: var(--home-accent);
        border-radius: 12px;
    }

    /* 3. Manga Updates Grid */
    .mm-update-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.25rem;
        padding: 0 5px;
    }

    .mm-update-card {
        padding: 1rem;
        gap: 1.25rem;
        border-radius: 20px;
    }

    .mm-update-thumb {
        width: 115px;
        height: 160px;
        border-radius: 14px;
    }

    .mm-update-body {
        padding-top: 5px;
    }

    .mm-update-title {
        font-size: 1.15rem !important;
        font-weight: 900 !important;
        margin-bottom: 12px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

    .mm-ch-tag {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
    }

    /* 4. General Chat (Home GC) */
    .home-gc {
        margin-top: 3rem;
        margin-bottom: 3rem;
        padding: 0 5px;
    }

    .home-gc-shell {
        border-radius: 24px;
        height: 550px; /* Fixed height for better control */
    }

    .home-gc-top {
        padding: 12px 15px;
    }

    .home-gc-top-title {
        font-size: 0.95rem;
    }

    .home-gc-body {
        padding: 15px 12px;
    }

    .gc-bubble {
        padding: 12px 16px;
        font-size: 0.92rem;
        border-radius: 18px;
    }

    .home-gc-input {
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 0 0 24px 24px;
    }

    /* 5. Support Card */
    .home-support-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
        margin-bottom: 2rem;
    }

    .home-support-card__h {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .home-support-card__p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* 6. VIP Ticker */
    .vip-ticker-wrap {
        padding: 15px 0;
        border-radius: 18px;
        margin-bottom: 2.5rem;
    }

    .vip-card {
        min-width: 260px;
        padding: 14px;
        gap: 12px;
    }

    .vip-name {
        font-size: 0.95rem;
    }

    .vip-avatar-box {
        width: 55px;
        height: 55px;
    }

    /* 7. Filter Banner & Meta */
    .home-filter-banner {
        padding: 1.5rem;
        border-radius: 22px;
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
        gap: 1.25rem;
    }

    .home-filter-clear {
        width: 100%;
        justify-content: center;
        padding: 0.85rem;
        font-size: 0.85rem;
    }

    /* 8. Editor Pick & Genres */
    .editor-pick, .genre-box {
        padding: 1.5rem 1rem;
        border-radius: 22px;
    }
    
    .genre-3d {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* 9. Hero Slider Fixed-Width Fix */
    .premium-card-slide {
        width: 100% !important;
        max-width: 340px !important; /* Cap it for better aesthetic on large phones */
        height: 440px !important;
        margin: 0 auto;
    }

    .mm-hero-slider-container {
        padding: 15px 10px 45px 10px;
    }

    /* 10. Imperial Frame Glow Fix */
    .home-gc-frame {
        width: 120% !important; /* Slightly smaller for chat bubbles */
        height: 120% !important;
    }

    .elite-lb__frame {
        width: 130% !important;
    }
    
    /* 11. Global Layout Cleanup */
    .home-index .mm-main-layout {
        gap: 1.5rem;
    }
}

/* Extra Tight for Ultra-Small Devices (iPhone SE, etc) */
@media (max-width: 400px) {
    .mm-update-thumb {
        width: 100px;
        height: 140px;
    }
    
    .mm-update-title {
        font-size: 1.05rem !important;
    }
    
    .elite-lb__name {
        font-size: 0.95rem !important;
    }
    
    .vip-card {
        min-width: 220px;
    }
}
