/* ─── RETROATIVO (NOVO FRONTEND) ────────────────────────── */
.retroativo-window-body {
    padding: 0;
    overflow: hidden !important;
    display: flex;
    min-height: 0;
    background: #050505;
    color: #e2e8f0;
    font-family: var(--ui-font-family, "Inter", sans-serif);
}

.retroativo-shell {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

/* SIDEBAR: SISTEMAS */
.retroativo-sidebar {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.retroativo-sidebar-header {
    display: none;
}

.retroativo-system-list {
    flex: 1;
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.retroativo-system-list::-webkit-scrollbar {
    display: none;
}
.retroativo-system-list::-webkit-scrollbar-thumb {
    display: none;
}

.retroativo-system-btn {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    width: auto;
    height: auto;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #cbd5e1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.retroativo-system-btn:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.06);
}

.retroativo-system-btn.is-active {
    color: color-mix(in srgb, var(--primary) 85%, #ffffff 15%);
    transform: scale(1.08);
}

.retroativo-system-thumb {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.retroativo-system-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.retroativo-system-icon-fallback {
    font-size: 38px;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.retroativo-system-name {
    display: none !important;
}

.retroativo-system-btn:hover .retroativo-system-icon,
.retroativo-system-btn:hover .retroativo-system-icon-fallback {
    transform: scale(1.08);
}

.retroativo-system-btn.is-active .retroativo-system-icon {
    transform: scale(1.12);
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--primary) 65%, transparent));
}

.retroativo-system-btn.is-active .retroativo-system-icon-fallback {
    transform: scale(1.12);
    text-shadow: 0 0 14px color-mix(in srgb, var(--primary) 65%, transparent);
}

/* MAIN VIEW: GAMES & HERO */
.retroativo-main-view {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
}

.retroativo-hero {
    position: relative;
    height: 440px;
    min-height: 440px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.retroativo-hero-bg {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retroativo-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.85;
}

.retroativo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020617 0%, rgba(2,6,23,0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 60px 40px;
    z-index: 2;
}

.retroativo-hero-content {
    max-width: 680px;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.retroativo-hero-system {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary, #4facfe);
    font-weight: 800;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.retroativo-hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 24px 0;
    text-shadow: 0 4px 16px rgba(0,0,0,0.9);
}

.retroativo-play-btn {
    appearance: none;
    border: 0;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.retroativo-play-btn i {
    font-size: 14px;
}

.retroativo-play-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.retroativo-play-btn:active {
    transform: scale(0.98);
}

.retroativo-play-btn[disabled] {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* GALLERY CAROUSEL */
.retroativo-gallery-section {
    padding: 44px 40px 40px 40px;
    z-index: 3;
    position: relative;
    margin-top: 0;
}

.retroativo-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    align-items: center;
}

.retroativo-card {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    outline: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.retroativo-card-media {
    width: 100%;
    aspect-ratio: var(--retroativo-cover-ratio, 3/4);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.retroativo-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
    opacity: 0.6;
}

.retroativo-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s;
    background: #1e293b;
}

.retroativo-card:hover .retroativo-card-media {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 32px rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.2);
}

.retroativo-card:focus .retroativo-card-media {
    border-color: #fff;
}

.retroativo-card.is-active .retroativo-card-media {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-8px) scale(1.04);
}

.retroativo-empty {
    width: 100%;
    grid-column: 1/-1;
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
}

.retroativo-hero-bg .retroativo-empty {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .retroativo-shell {
        grid-template-columns: 104px minmax(0, 1fr);
    }
    .retroativo-system-thumb { width: 54px; height: 54px; }
    .retroativo-hero { height: 340px; min-height: 340px; }
    .retroativo-hero-title { font-size: 36px; }
}

@media (max-width: 600px) {
    .retroativo-shell {
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-rows: none;
    }
    .retroativo-sidebar {
        flex-direction: column;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 0;
    }
    .retroativo-system-list {
        flex-direction: column;
        overflow: hidden;
        padding: 12px 0;
        gap: 10px;
    }
    .retroativo-system-btn {
        min-width: 0;
        background: transparent;
    }
    .retroativo-system-btn.is-active {
        background: transparent;
        box-shadow: none;
    }
    .retroativo-system-thumb { width: 46px; height: 46px; }
    .retroativo-gallery-section {
        padding: 32px 24px 24px 24px;
        margin-top: 0;
    }
}
