* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --btn-bg: rgba(30, 30, 30, 0.95);
    --btn-border: rgba(255,255,255,0.08);
    --card-bg: #1a1a1a;
    --card-border: rgba(255,255,255,0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.55);
    --text-muted: rgba(255,255,255,0.38);
    --accent: #f97316;
}

body {
    background-color: #000;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Image Layer */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    filter: blur(50px) brightness(0.07) saturate(0);
    z-index: 0;
    transform: scale(1.15);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.9) 30%,
        #000 70%
    );
    z-index: 0;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 560px;
    padding: 0 0 48px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1;
    position: relative;
}

/* ===========================
   PROFILE BANNER
   =========================== */
.profile-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: 24px;
    aspect-ratio: 3/4;
    max-height: 520px;
    background: #000;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}


.banner-title {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #fff;
    text-shadow:
        0 2px 8px rgba(0,0,0,1),
        0 4px 24px rgba(0,0,0,0.9),
        0 0 60px rgba(0,0,0,0.8);
    text-transform: uppercase;
    z-index: 2;
}

/* Fade transparente na base do banner */
.profile-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to bottom, transparent 0%, #000 100%);
    z-index: 1;
    pointer-events: none;
}

/* ===========================
   LINKS SECTION
   =========================== */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 20px;
}

/* Section Labels */
.section-label {
    text-align: center;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    padding: 12px 0 4px 0;
    font-style: italic;
    line-height: 1.1;
}

.section-sublabel {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 0px;
    margin-bottom: 8px;
    font-style: italic;
    line-height: 1.3;
}

.sublabel-tag {
    color: var(--text-muted);
    font-weight: 400;
    font-style: normal;
}

/* ===========================
   LINK BUTTONS (full-width with icon)
   =========================== */
.link-button {
    display: flex;
    align-items: center;
    background: #ffffff;
    color: #111;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 26px;
    gap: 14px;
    transition: transform 0.18s ease, filter 0.18s ease;
    min-height: 56px;
    position: relative;
    overflow: hidden;
}

.link-button:hover {
    transform: scale(1.025);
    filter: brightness(0.96);
}

.link-button:active {
    transform: scale(0.98);
}

/* Remove tap highlight no mobile */
.link-button,
.card {
    -webkit-tap-highlight-color: transparent;
}

/* Icon on the left */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.btn-icon-youtube {
    background: #ff0000;
}

/* Text content */
.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 40px; /* balance the icon on the left */
}

.btn-line1 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #111;
    text-transform: uppercase;
    line-height: 1.2;
}

.btn-line2 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(0,0,0,0.55);
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1.2;
}

.btn-line3 {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: rgba(0,0,0,0.45);
    text-transform: uppercase;
    margin-top: 1px;
    line-height: 1.2;
}

/* Tall button variant (3 lines) */
.link-button-tall {
    min-height: 70px;
}

/* ===========================
   HORIZONTAL CAROUSEL
   =========================== */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;

    /* Scrollbar visível e estilizada */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08);
}

.carousel:active,
.carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* desativa snap durante drag para ficar mais fluido */
}

/* Scrollbar customizada no Chrome/Safari/Edge */
.carousel::-webkit-scrollbar {
    height: 4px;
}

.carousel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.6);
}

/* Mobile: esconde a scrollbar (usa o swipe natural) */
@media (hover: none) and (pointer: coarse) {
    .carousel {
        scrollbar-width: none;
        cursor: default;
    }
    .carousel::-webkit-scrollbar {
        display: none;
    }
}

/* ===========================
   SCRIPT CARDS (inside carousel)
   =========================== */
.card {
    min-width: 160px;
    max-width: 160px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, filter 0.18s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.card:hover {
    transform: scale(1.03);
    filter: brightness(0.97);
}

.card:active {
    transform: scale(0.97);
}

/* Card image area */
.card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Emoji placeholder for cards without image */
.card-img-placeholder {
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* Card text body */
.card-body {
    padding: 10px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.card-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(0,0,0,0.5);
    text-transform: uppercase;
    line-height: 1.2;
}

.card-game {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(0,0,0,0.4);
    text-transform: uppercase;
    line-height: 1.2;
}

/* ===========================
   FOLDER (ACCORDION)
   =========================== */
.folder-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    margin-bottom: 0px;
    gap: 12px;
}

.folder-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

.folder-arrow {
    margin-left: auto;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.folder-btn.is-open {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.folder-btn.is-open .folder-arrow {
    transform: rotate(180deg);
}

.folder-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
}

.folder-content.is-open {
    grid-template-rows: 1fr;
}

.folder-inner {
    overflow: hidden;
}

/* Adjust carousel when inside folder to fit nicely */
.folder-content .carousel {
    padding-top: 12px;
    padding-bottom: 4px;
}

/* ===========================
   BARRA DE BUSCA
   =========================== */
.search-wrapper {
    padding: 0 16px;
    margin-bottom: 8px;
    animation: fadeSlideUp 0.45s ease both;
    animation-delay: 0.03s;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50px;
    padding: 0 14px;
    gap: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
}

.search-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.search-bar:focus-within .search-icon {
    color: rgba(255, 255, 255, 0.65);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 13px 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.search-empty {
    display: none;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    padding: 24px 0 8px;
    font-style: italic;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    text-align: center;
    font-size: 11px;
    color: #ffffff;
    letter-spacing: 0.5px;
    padding: 8px 16px 0;
    margin-top: 8px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 400px) {
    .card {
        min-width: 145px;
    }

    .banner-title {
        font-size: 36px;
    }

    .profile-banner {
        max-height: 440px;
    }
}

@media (min-width: 560px) {
    .profile-banner {
        border-radius: 16px;
        margin: 16px 0 24px 0;
    }
}

/* ===========================
   ANIMAÇÃO DE ENTRADA
   =========================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-banner {
    animation: fadeSlideUp 0.45s ease both;
}

.links-section {
    animation: fadeSlideUp 0.45s ease both;
}

.links-section:nth-child(2) { animation-delay: 0.05s; }
.links-section:nth-child(3) { animation-delay: 0.10s; }
.links-section:nth-child(4) { animation-delay: 0.15s; }
.links-section:nth-child(5) { animation-delay: 0.20s; }
.links-section:nth-child(6) { animation-delay: 0.25s; }
.links-section:nth-child(7) { animation-delay: 0.30s; }
.links-section:nth-child(8) { animation-delay: 0.35s; }

