@font-face {
            font-family: 'Inter';
            src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
            font-weight: 400;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Inter';
            src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
            font-weight: 500;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Inter';
            src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
            font-weight: 600;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Inter';
            src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
            font-weight: 700;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Inter';
            src: url('fonts/inter-v20-latin-800.woff2') format('woff2');
            font-weight: 800;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: 'Fira Code';
            src: url('fonts/FiraCode.woff2') format('woff2');
            font-weight: 300 700;
            font-style: normal;
            font-display: swap;
        }

        :root {
            --bg-color: #0f1117;
            --card-bg: rgba(20, 22, 30, 0.4);
            --card-border: rgba(255, 255, 255, 0.08);
            --card-hover: rgba(255, 255, 255, 0.05);
            --text-main: #ffffff;
            --text-muted: #94a3b8;
            --accent: #818cf8;
            --accent-glow: rgba(129, 140, 248, 0.4);

            --status-online: #479a6d;
            --status-idle: #f5b358;
            --status-dnd: #ce3853;
            --status-offline: #817796;
        }

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


        .icon {
            width: 1em;
            height: 1em;
            display: inline-block;
            flex-shrink: 0;
            vertical-align: -0.125em;
            fill: currentColor;
        }

        .link-item>div {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .link-item .main-icon {
            width: 20px;
            height: 20px;
            min-width: 20px;
            margin-right: 0;
            color: white;
        }

        .link-item .external-icon {
            width: 0.7rem;
            height: 0.7rem;
        }

        .tech-box>.icon,
        .tech-box>svg {
            width: 1.8rem;
            height: 1.8rem;
        }

        .tm-top .icon,
        .tm-top svg {
            width: 32px;
            height: 32px;
        }

        .tt-icon .icon,
        .tt-icon svg {
            width: 1.3rem;
            height: 1.3rem;
        }

        .lb-header .icon,
        .trakt-header .icon,
        .spotify-label .icon,
        .trakt-share-label .icon,
        .trakt-share-btn .icon,
        .contact-btn .icon {
            width: 1.15em !important;
            height: 1.15em !important;
        }

        .spotify-icon-offline.icon {
            width: 2.5rem !important;
            height: 2.5rem !important;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            padding: 40px 20px;
            overflow-x: hidden;
            position: relative;
        }

        /* LUZES DE FUNDO */
        .bg-orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(100px);
            z-index: -1;
            opacity: 0.4;
            animation: floatOrb 12s infinite alternate ease-in-out;
        }

        .orb-1 {
            width: 400px;
            height: 400px;
            background: #4f46e5;
            top: -100px;
            left: -100px;
        }

        .orb-2 {
            width: 350px;
            height: 350px;
            background: #c026d3;
            bottom: -50px;
            right: -50px;
            animation-delay: -5s;
        }

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

            100% {
                transform: translate(40px, 60px) scale(1.1);
            }
        }

        /* ========================================= */
        /* GRID BENTO E LAYOUT                       */
        /* ========================================= */
        .bento-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
            max-width: 1050px;
            width: 100%;
        }

        /* VERSÃO DESKTOP */
        @media (min-width: 900px) {
            .bento-grid {
                grid-template-columns: repeat(4, 1fr);
                grid-auto-rows: min-content;
            }

            .intro-card {
                grid-column: 1 / 3;
                grid-row: 1;
            }

            .discord-card {
                grid-column: 3;
                grid-row: 1;
            }

            .links-card {
                grid-column: 4;
                grid-row: 1 / 3;
            }

            .photo-card {
                grid-column: 1;
                grid-row: 2;
            }

            .projects-card {
                grid-column: 2 / 4;
                grid-row: 2;
                overflow: hidden;
            }

            .spotify-card {
                grid-column: 1 / 3;
                grid-row: 3;
            }

            .letterboxd-card {
                grid-column: 3;
                grid-row: 3;
            }

            .trakt-card {
                grid-column: 4;
                grid-row: 3;
            }

            .contact-card {
                display: none !important;
            }

            .desktop-hide-link {
                display: none !important;
            }
        }

        /* VERSÃO MOBILE */
        @media (max-width: 899px) {
            body {
                padding: 40px 16px;
            }

            .bento-grid {
                display: flex;
                flex-direction: column;
                gap: 16px;
            }

            .card {
                width: 100%;
            }

            .photo-card {
                order: 1;
                width: 140px !important;
                height: 140px;
                min-height: 140px !important;
                border-radius: 50% !important;
                margin: 0 auto;
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                padding: 0 !important;
            }

            .photo-card img {
                border-radius: 50%;
            }

            .intro-card {
                order: 2;
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                text-align: center;
                padding: 10px 0 20px 0 !important;
            }

            .intro-card h1 {
                font-size: 1.8rem !important;
                justify-content: center;
            }

            .intro-card p {
                margin: 0 auto;
                font-size: 0.95rem;
            }

            .spotify-card {
                order: 3;
            }

            .letterboxd-card {
                order: 4;
            }

            .trakt-card {
                order: 5;
            }

            .projects-card {
                order: 6;
            }

            .discord-card {
                order: 7;
            }

            .links-card {
                order: 8;
            }

            .contact-card {
                order: 9;
                display: flex !important;
            }

            .desktop-only-link {
                display: none !important;
            }

            .mobile-hide-link {
                display: none !important;
            }

            .tech-tooltip {
                display: none !important;
            }

            .tech-box {
                pointer-events: none !important;
            }

            .projects-card {
                padding-bottom: 44px !important;
            }
        }

        /* CARD DE TECNOLOGIAS */
        .projects-card {
            position: relative;
            cursor: pointer;
        }

        .projects-card::after {
            content: 'Toque para ver mais detalhes ⛶';
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            position: absolute;
            bottom: 16px;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 0.75rem;
            color: var(--accent);
            opacity: 0.9;
        }

        @media (min-width: 900px) {
            .projects-card::after {
                content: 'Clique para abrir o diretório ⛶';
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .projects-card:hover::after {
                opacity: 0.9;
            }

            .projects-card h2::after {
                content: '←';
                display: inline-block;
                margin-left: 6px;
                color: var(--text-muted);
                font-size: 0.85em;
                font-weight: 700;
                opacity: 0;
                transform: translateX(-2px);
                transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
            }

            .projects-card:hover h2::after {
                opacity: 0.85;
                transform: translateX(0);
                color: var(--accent);
            }
        }

        /* CARTÕES BASE (Otimização de Performance Aplicada) */
        @keyframes fadeInSlideUp {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .card {
            background-color: var(--card-bg);
            /* Redução do blur para otimizar performance em GPUs mais fracas */
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 1px solid var(--card-border);
            border-radius: 24px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
            opacity: 0;
            animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }


        .card:hover {
            will-change: transform;
            border-color: var(--accent);
            background-color: rgba(255, 255, 255, 0.04);
            box-shadow: 0 0 24px var(--accent-glow);
            transform: translateY(-4px);
        }

        .photo-card {
            animation-delay: 0.1s;
        }

        .intro-card {
            animation-delay: 0.2s;
        }

        .spotify-card {
            animation-delay: 0.3s;
        }

        .letterboxd-card {
            animation-delay: 0.4s;
        }

        .trakt-card {
            animation-delay: 0.45s;
        }

        .projects-card {
            animation-delay: 0.5s;
        }

        .discord-card {
            animation-delay: 0.6s;
        }

        .links-card {
            animation-delay: 0.7s;
        }

        .contact-card {
            animation-delay: 0.8s;
        }

        @keyframes wave {
            0% {
                transform: rotate(0deg);
            }

            10% {
                transform: rotate(14deg);
            }

            20% {
                transform: rotate(-8deg);
            }

            30% {
                transform: rotate(14deg);
            }

            40% {
                transform: rotate(-4deg);
            }

            50% {
                transform: rotate(10deg);
            }

            60%,
            100% {
                transform: rotate(0deg);
            }
        }

        .waving-hand {
            display: inline-block;
            transform-origin: bottom right;
            animation: wave 2.5s infinite;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }
        }

        .cursor-blink {
            display: inline-block;
            width: 8px;
            height: 1.1em;
            background-color: var(--accent);
            vertical-align: middle;
            margin-left: 6px;
            animation: blink 1s infinite;
            border-radius: 2px;
        }

        .intro-card h1 {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .intro-card p {
            color: var(--text-muted);
            font-size: 1.05rem;
            line-height: 1.5;
            max-width: 100%;
            min-height: 48px;
        }

        /* CARROSSEL */
        @keyframes carouselScroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        .carousel-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 10px 0;
            margin-top: 10px;
            -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
        }

        .carousel-track {
            display: flex;
            width: max-content;
            gap: 16px;
            animation: carouselScroll 15s linear infinite;
        }

        .carousel-track:hover {
            animation-play-state: paused;
        }

        .tech-box {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            background-color: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--card-border);
            border-radius: 14px;
            font-size: 1.8rem;
            cursor: pointer;
            transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
            flex-shrink: 0;
        }

        .tech-box:hover {
            transform: scale(1.1);
            background-color: rgba(255, 255, 255, 0.1);
            border-color: var(--accent);
            box-shadow: 0 10px 20px var(--accent-glow);
        }

        /* TOOLTIP (APENAS DESKTOP) */
        .tech-tooltip {
            position: fixed;
            top: 0;
            left: 0;
            width: 250px;
            background-color: rgba(15, 17, 23, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 16px;
            z-index: 99999;
            opacity: 0;
            visibility: hidden;
            transform: translate(-50%, -10px) scale(0.95);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
            pointer-events: none;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .tech-tooltip.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, 15px) scale(1);
        }

        .tooltip-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tt-name {
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-main);
        }

        .tt-icon {
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tt-desc {
            font-size: 0.8rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .tt-badges {
            display: flex;
            gap: 8px;
        }

        .tech-badge {
            font-family: 'Fira Code', monospace;
            font-size: 0.60rem;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 6px;
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
        }

        .tt-badge-active {
            color: var(--accent);
            background-color: var(--accent-glow);
        }

        .tt-footer {
            margin-top: 4px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* MODAL DE TECNOLOGIAS ATUALIZADO */
        .tech-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 9999999;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            padding: 20px;
        }

        .tech-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .tech-modal-container {
            background-color: #121214;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            padding: 32px 24px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            transform: translateY(20px) scale(0.98);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
        }

        .tech-modal-overlay.active .tech-modal-container {
            transform: translateY(0) scale(1);
        }

        .tech-modal-header {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 8px;
            position: relative;
        }

        .tech-modal-header h3 {
            font-family: 'Inter', sans-serif;
            font-size: 1.2rem;
            color: var(--text-main);
            font-weight: 700;
            text-align: center;
        }

        .tech-modal-header .close-modal-btn {
            position: absolute;
            right: 0;
        }

        .close-modal-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.05);
            color: #a1a1aa;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.2s;
        }

        .close-modal-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .tech-modal-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }

        @media (min-width: 900px) {
            .tech-modal-container {
                max-width: 950px;
                padding: 40px;
            }

            .tech-modal-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
            }
        }

        .tech-modal-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            transition: border-color 0.2s ease, background-color 0.2s ease;
        }

        .tech-modal-card:hover {
            border-color: rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.04);
        }

        .tm-top {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .tm-top svg {
            font-size: 1.8rem;
            width: 32px;
            text-align: left;
        }

        .tm-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .tm-info h4 {
            font-size: 1.05rem;
            color: #f4f4f5;
            font-weight: 600;
        }

        .tm-info span {
            font-size: 0.75rem;
            color: #a1a1aa;
            font-weight: 500;
        }

        .tech-modal-card p {
            font-size: 0.85rem;
            color: #a1a1aa;
            line-height: 1.5;
            margin: 0;
        }

        /* DISCORD */
        .discord-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 12px;
        }

        .avatar-wrapper {
            position: relative;
            width: 48px;
            height: 48px;
            flex-shrink: 0;
        }

        .avatar-wrapper img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid transparent;
        }

        .status-indicator {
            position: absolute;
            bottom: -2px;
            right: -2px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 3px solid var(--bg-color);
            background-color: var(--status-offline);
            transition: background-color 0.5s;
        }

        .discord-info {
            overflow: hidden;
        }

        .discord-info h3 {
            font-family: 'Inter', sans-serif;
            font-size: 0.82rem;
            font-weight: 700;
            margin-bottom: 3px;
            color: var(--accent);
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .discord-info p {
            font-family: 'Inter', sans-serif;
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-muted);
            transition: color 0.5s;
        }

        .discord-activity-box {
            background-color: rgba(255, 255, 255, 0.03);
            border-radius: 16px;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            min-height: 70px;
            border: 1px solid transparent;
            transition: border 0.3s;
        }

        .card:hover .discord-activity-box {
            border-color: rgba(255, 255, 255, 0.05);
        }

        .activity-img {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .activity-details {
            display: flex;
            flex-direction: column;
            gap: 2px;
            overflow: hidden;
        }

        .activity-details strong {
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .activity-details span {
            font-size: 11px;
            color: var(--text-muted);
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }

        .not-doing-anything {
            font-family: 'Inter', sans-serif;
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-muted);
            font-style: normal;
            text-align: center;
            width: 100%;
        }

        /* SPOTIFY */
        .spotify-card {
            justify-content: center;
        }

        .spotify-playing {
            display: flex;
            align-items: center;
            gap: 20px;
            width: 100%;
        }

        .spotify-art {
            width: 72px;
            height: 72px;
            border-radius: 12px;
            object-fit: cover;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            animation: pulse-art 2s infinite alternate;
            flex-shrink: 0;
        }

        @keyframes pulse-art {
            0% {
                box-shadow: 0 4px 15px rgba(29, 185, 84, 0.1);
                transform: scale(1);
            }

            100% {
                box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
                transform: scale(1.02);
            }
        }

        @keyframes pulse-art-lf {
            0% {
                box-shadow: 0 4px 15px rgba(186, 0, 0, 0.1);
                transform: scale(1);
            }

            100% {
                box-shadow: 0 4px 20px rgba(186, 0, 0, 0.4);
                transform: scale(1.02);
            }
        }

        .spotify-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
            overflow: hidden;
        }

        .spotify-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #1DB954;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .spotify-track {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .spotify-artist {
            font-size: 0.85rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .equalizer {
            display: flex;
            align-items: flex-end;
            gap: 3px;
            height: 24px;
            margin-right: 10px;
            flex-shrink: 0;
        }

        .equalizer-bar {
            width: 4px;
            background-color: #1DB954;
            border-radius: 2px;
            animation: equalize 1s infinite ease-in-out;
        }

        .equalizer-bar:nth-child(1) {
            animation-delay: -0.2s;
        }

        .equalizer-bar:nth-child(2) {
            animation-delay: -0.4s;
        }

        .equalizer-bar:nth-child(3) {
            animation-delay: -0.6s;
        }

        .equalizer-bar:nth-child(4) {
            animation-delay: -0.8s;
        }

        @keyframes equalize {

            0%,
            100% {
                height: 6px;
            }

            50% {
                height: 24px;
            }
        }

        .spotify-offline {
            display: flex;
            align-items: center;
            gap: 16px;
            opacity: 0.5;
        }

        .spotify-icon-offline {
            font-size: 2.5rem;
            color: var(--text-muted);
            flex-shrink: 0;
        }

        .spotify-card {
            cursor: pointer;
            position: relative;
        }

        .spotify-card::after {
            content: '▶';
            position: absolute;
            right: 18px;
            bottom: 14px;
            font-size: 0.72rem;
            color: #1DB954;
            font-weight: 800;
            opacity: 0;
            transform: translateX(-3px);
            transition: opacity 0.25s ease, transform 0.25s ease;
            pointer-events: none;
            text-shadow: 0 0 12px rgba(29, 185, 84, 0.45);
        }

        .spotify-card:hover::after,
        .spotify-card:focus-visible::after {
            opacity: 0.9;
            transform: translateX(0);
        }

        .spotify-card:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 4px;
        }

        @media (max-width: 899px) {
            .spotify-card::after {
                opacity: 0.55;
                right: 16px;
                bottom: 12px;
            }
        }

        #spotify-history-modal {
            padding: 16px;
            align-items: center;
        }

        #spotify-history-modal .trakt-modal-container {
            width: min(820px, calc(100vw - 32px));
            max-width: 820px;
            max-height: calc(100dvh - 32px);
            overflow: hidden;
        }

        #spotify-history-modal .spotify-history-card {
            min-height: auto;
            max-height: calc(100dvh - 32px);
            padding: clamp(18px, 3vw, 30px);
            justify-content: flex-start;
            align-items: stretch;
            text-align: left;
            overflow: hidden;
        }

        .spotify-history-header {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            margin-bottom: 18px;
            padding: 0 46px;
            text-align: center;
        }

        .spotify-history-label {
            font-family: 'Fira Code', monospace;
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #ba0000;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .spotify-history-label .icon,
        .spotify-history-label svg {
            width: 1.5em !important;
            height: 1.5em !important;
            color: #ba0000;
            fill: currentColor;
        }

        .spotify-history-title {
            width: 100%;
            text-align: center;
            font-size: clamp(1.18rem, 2.2vw, 1.55rem);
            font-weight: 800;
            color: var(--text-main);
            line-height: 1.15;
        }

        .spotify-history-list {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
            max-height: calc(100dvh - 178px);
            overflow-y: auto;
            margin-right: calc(-1 * clamp(18px, 3vw, 30px));
            /* Empurra a barra pra borda direita */
            padding-right: clamp(18px, 3vw, 30px);
            /* Restaura o espaçamento para as músicas */
            padding-left: 2px;
            padding-top: 2px;
            padding-bottom: 2px;
        }

        .spotify-history-list::-webkit-scrollbar {
            width: 6px;
        }

        .spotify-history-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.16);
            border-radius: 999px;
        }

        .spotify-history-item {
            display: grid;
            grid-template-columns: clamp(62px, 7vw, 76px) minmax(0, 1fr) minmax(92px, 120px);
            align-items: center;
            place-items: center;
            align-content: center;
            gap: clamp(14px, 2vw, 20px);
            width: 100%;
            min-height: 112px;
            padding: clamp(16px, 2vw, 20px);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.035);
            border: 1px solid rgba(255, 255, 255, 0.07);
            min-width: 0;
            overflow: hidden;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
        }

        .spotify-history-item.is-now.spotify-history-source-spotify {
            border-color: rgba(29, 185, 84, 0.62);
            border-radius: 18px;
            box-shadow: 0 0 0 1px rgba(29, 185, 84, 0.22), 0 0 24px rgba(29, 185, 84, 0.32), inset 0 0 18px rgba(29, 185, 84, 0.06);
            background: rgba(29, 185, 84, 0.065);
        }

        .spotify-history-item.is-now.spotify-history-source-lastfm {
            border-color: rgba(186, 0, 0, 0.68);
            border-radius: 18px;
            box-shadow: 0 0 0 1px rgba(186, 0, 0, 0.24), 0 0 24px rgba(186, 0, 0, 0.34), inset 0 0 18px rgba(186, 0, 0, 0.07);
            background: rgba(186, 0, 0, 0.065);
        }

        .spotify-history-cover {
            width: clamp(62px, 7vw, 76px);
            height: clamp(62px, 7vw, 76px);
            border-radius: 13px;
            object-fit: cover;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.04);
        }

        .spotify-history-item.is-now.spotify-history-source-spotify .spotify-history-cover {
            box-shadow: 0 0 18px rgba(29, 185, 84, 0.35);
        }

        .spotify-history-item.is-now.spotify-history-source-lastfm .spotify-history-cover {
            box-shadow: 0 0 18px rgba(186, 0, 0, 0.38);
        }

        .spotify-history-info {
            min-width: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            align-self: center;
            gap: 5px;
            text-align: center;
        }

        .spotify-history-track {
            width: 100%;
            font-size: clamp(0.98rem, 1.8vw, 1.14rem);
            font-weight: 800;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
        }

        .spotify-history-artist,
        .spotify-history-meta {
            width: 100%;
            font-size: clamp(0.78rem, 1.4vw, 0.90rem);
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
        }

        .spotify-history-now {
            justify-self: end;
            align-self: center;
            text-align: right;
            font-size: clamp(0.58rem, 1.1vw, 0.70rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            white-space: nowrap;
        }

        .spotify-history-now.spotify-history-now-spotify {
            color: #1DB954;
        }

        .spotify-history-now.spotify-history-now-lastfm {
            color: #ba0000;
        }

        .spotify-history-empty {
            position: relative;
            z-index: 2;
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.5;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 14px;
            padding: 16px;
            text-align: center;
        }

        @media (max-width: 899px) {
            #spotify-history-modal {
                padding: 8px;
                align-items: center;
            }

            #spotify-history-modal .trakt-modal-container {
                width: calc(100dvw - 16px);
                max-width: calc(100dvw - 16px);
                max-height: calc(100dvh - 16px);
                border-radius: 20px;
            }

            #spotify-history-modal .spotify-history-card {
                padding: 16px 10px 10px;
                max-height: calc(100dvh - 16px);
            }

            .spotify-history-header {
                margin-bottom: 12px;
                padding: 0 38px;
                gap: 5px;
            }

            .spotify-history-label {
                font-size: 0.64rem;
                gap: 7px;
            }

            .spotify-history-title {
                font-size: 1.12rem;
            }

            .spotify-history-list {
                max-height: calc(100dvh - 126px);
                gap: 9px;
                margin-right: -10px;
                /* Compensa o padding de 10px do card pai */
                padding-right: 10px;
                /* Afasta os cards da barra de rolagem */
            }

            .spotify-history-item {
                grid-template-columns: 58px minmax(0, 1fr) auto;
                min-height: 98px;
                padding: 14px 10px;
                gap: 10px;
                border-radius: 15px;
            }

            .spotify-history-cover {
                width: 58px;
                height: 58px;
                border-radius: 11px;
            }

            .spotify-history-track {
                font-size: 0.92rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                display: block;
                line-height: 1.16;
            }

            .spotify-history-artist,
            .spotify-history-meta {
                font-size: 0.74rem;
            }

            .spotify-history-now {
                font-size: 0.58rem;
                letter-spacing: 0.35px;
            }

            #close-spotify-history-modal {
                top: 12px;
                right: 12px;
                width: 34px;
                height: 34px;
            }
        }

        @media (max-width: 430px) {
            .spotify-history-card {
                padding: 14px 8px 8px;
            }

            .spotify-history-header {
                margin-bottom: 10px;
                padding: 0 36px;
            }

            .spotify-history-title {
                font-size: 1.02rem;
            }

            .spotify-history-list {
                max-height: calc(100dvh - 116px);
                gap: 8px;
                margin-right: -8px;
                padding-right: 8px;
            }

            .spotify-history-item {
                grid-template-columns: 52px minmax(0, 1fr) auto;
                min-height: 90px;
                padding: 12px 8px;
                gap: 8px;
            }

            .spotify-history-cover {
                width: 52px;
                height: 52px;
            }

            .spotify-history-track {
                font-size: 0.84rem;
                line-height: 1.16;
            }

            .spotify-history-artist,
            .spotify-history-meta {
                font-size: 0.68rem;
            }

            .spotify-history-now {
                font-size: 0.52rem;
                max-width: 76px;
                text-align: right;
                white-space: normal;
                line-height: 1.05;
            }
        }

        @media (max-height: 680px) {
            .spotify-history-card {
                padding-top: 12px;
                padding-bottom: 8px;
            }

            .spotify-history-header {
                margin-bottom: 8px;
            }

            .spotify-history-list {
                max-height: calc(100dvh - 104px);
                gap: 7px;
            }

            .spotify-history-item {
                min-height: 74px;
                padding: 9px;
            }

            .spotify-history-cover {
                width: 50px;
                height: 50px;
            }

            .spotify-history-track {
                font-size: 0.82rem;
            }

            .spotify-history-artist,
            .spotify-history-meta {
                font-size: 0.66rem;
            }

            .spotify-history-now {
                font-size: 0.50rem;
            }
        }

        /* LETTERBOXD */
        .letterboxd-card {
            justify-content: center;
            cursor: pointer;
            position: relative;
        }

        .lb-header {
            font-family: 'Fira Code', monospace;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #FF8000;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .lb-content {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            width: 100%;
            overflow: hidden;
        }

        .lb-poster {
            width: 48px;
            height: 72px;
            border-radius: 6px;
            object-fit: cover;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .lb-content:hover .lb-poster {
            transform: scale(1.08) rotate(-2deg);
        }

        .lb-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-main);
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: color 0.3s;
            flex: 1;
        }

        .lb-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            overflow: hidden;
            flex: 1;
            min-width: 0;
        }

        .lb-rating,
        #lb-modal-rating {
            color: #00e054;
            letter-spacing: 1px;
            line-height: 1;
        }

        .lb-rating {
            display: block;
            font-size: 0.78rem;
            min-height: 0.9rem;
        }

        #lb-modal-rating {
            font-size: 1.08rem;
            min-height: 1.3rem;
            margin-top: -2px;
        }

        .lb-info .lb-title {
            flex: initial;
            width: 100%;
        }

        .lb-content:hover .lb-title {
            color: #FF8000;
        }

        .letterboxd-card::after {
            content: 'Abrir card ←';
            position: absolute;
            right: 18px;
            bottom: 14px;
            font-size: 0.68rem;
            color: #FF8000;
            /* Cor Laranja Oficial */
            font-weight: 700;
            opacity: 0;
            transition: opacity 0.25s ease, transform 0.25s ease;
            transform: translateX(3px);
            pointer-events: none;
        }

        .letterboxd-card:hover::after {
            opacity: 0.9;
            transform: translateX(0);
        }

        /* TRAKT */
        .trakt-card {
            justify-content: center;
            cursor: pointer;
            position: relative;
        }

        .trakt-header {
            font-family: 'Fira Code', monospace;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #ef4444;
            font-weight: 700;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .trakt-content {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            width: 100%;
            overflow: hidden;
        }

        .trakt-poster {
            width: 48px;
            height: 72px;
            border-radius: 6px;
            object-fit: cover;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        .trakt-card:hover .trakt-poster {
            transform: scale(1.08) rotate(-2deg);
        }

        .trakt-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
            overflow: hidden;
            flex: 1;
            min-width: 0;
        }

        .trakt-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.3s;
        }

        .trakt-card:hover .trakt-title {
            color: #ef4444;
        }

        .trakt-episode {
            font-size: 0.72rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .trakt-rating {
            font-size: 0.72rem;
            color: #facc15;
            letter-spacing: 1px;
            line-height: 1;
            min-height: 0.8rem;
        }

        .trakt-card::after {
            content: 'Abrir card ←';
            position: absolute;
            right: 18px;
            bottom: 14px;
            font-size: 0.68rem;
            color: #ef4444;
            /* Cor Vermelha Oficial */
            font-weight: 700;
            opacity: 0;
            transition: opacity 0.25s ease, transform 0.25s ease;
            transform: translateX(3px);
            pointer-events: none;
        }

        .trakt-card:hover::after {
            opacity: 0.9;
            transform: translateX(0);
        }

        /* MODAIS COMPARTILHADOS */
        .trakt-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.82);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 9999999;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            padding: 20px;
        }

        .trakt-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .trakt-modal-container {
            width: 100%;
            max-width: 420px;
            max-height: 90vh;
            overflow-y: auto;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.10);
            background: #121214;
            box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
            transform: translateY(20px) scale(0.98);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }

        .trakt-modal-overlay.active .trakt-modal-container {
            transform: translateY(0) scale(1);
        }

        .trakt-share-card {
            position: relative;
            min-height: 600px;
            padding: 22px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            text-align: center;
        }

        .trakt-share-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            filter: blur(24px);
            transform: scale(1.15);
            opacity: 0.35;
            z-index: 0;
        }

        .trakt-share-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(18, 18, 20, 0.75);
            z-index: 1;
        }

        .trakt-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 3;
            background: rgba(0, 0, 0, 0.42);
            border: 1px solid rgba(255, 255, 255, 0.14);
            color: #fff;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.2s;
        }

        .trakt-modal-close:hover {
            background: rgba(255, 255, 255, 0.12);
        }

        .trakt-share-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

        .trakt-share-label {
            font-family: 'Fira Code', monospace;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .label-trakt {
            color: #ef4444;
        }

        .label-lb {
            color: #FF8000;
        }

        .trakt-share-poster {
            width: 170px;
            height: 255px;
            object-fit: cover;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
            background: rgba(255, 255, 255, 0.04);
            margin: 10px 0;
        }

        .trakt-share-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--text-main);
            line-height: 1.12;
            margin-top: 6px;
        }

        .trakt-share-episode {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.35;
        }

        .trakt-share-rating {
            color: #facc15;
            letter-spacing: 2px;
            font-size: 1.05rem;
            min-height: 1.3rem;
        }

        .trakt-share-actions {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 10px;
            width: 100%;
            margin-top: 18px;
            position: relative;
            z-index: 2;
        }

        .trakt-share-btn {
            border: 1px solid rgba(255, 255, 255, 0.10);
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-main);
            text-decoration: none;
            border-radius: 12px;
            padding: 11px 12px;
            font-family: 'Inter', sans-serif;
            font-size: 0.82rem;
            font-weight: 700;
            line-height: 1;
            appearance: none;
            -webkit-appearance: none;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
            max-width: 250px;
        }

        .trakt-share-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.20);
            transform: translateY(-1px);
        }

        .trakt-share-btn.primary {
            background: rgba(239, 68, 68, 0.16);
            border-color: rgba(239, 68, 68, 0.35);
            color: #fecaca;
        }

        .gemini-share-btn.primary {
            background: rgba(129, 140, 248, 0.16);
            border-color: rgba(129, 140, 248, 0.38);
            color: #c7d2fe;
        }

        .trakt-share-btn:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            transform: none !important;
        }

        .gemini-recommendation-box {
            display: none;
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 310px;
            margin: 14px auto 0;
            padding: 14px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.045);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-muted);
            text-align: left;
            font-size: 0.78rem;
            line-height: 1.45;
        }

        .gemini-recommendation-box.active {
            display: block;
        }

        .gemini-recommendation-box strong {
            color: var(--text-main);
        }

        .gemini-recommendation-title {
            display: block;
            color: var(--accent);
            font-size: 0.70rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.9px;
            margin-bottom: 10px;
        }

        .gemini-recommendation-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .gemini-recommendation-item {
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }

        .gemini-recommendation-item:first-child {
            padding-top: 0;
            border-top: none;
        }

        @media (max-width: 899px) {

            .trakt-card::after,
            .letterboxd-card::after {
                content: 'Toque para abrir o card ←';
                opacity: 0.9;
                right: 18px;
                bottom: 12px;
            }

            .trakt-card,
            .letterboxd-card {
                padding-bottom: 36px;
            }

            .trakt-modal-container {
                max-width: 380px;
            }

            .trakt-share-card {
                min-height: 560px;
                padding: 20px;
            }

            .trakt-share-poster {
                width: 150px;
                height: 225px;
            }
        }

        /* FOTO E LINKS */
        .photo-card {
            padding: 0;
            min-height: 200px;
            border-radius: 24px;
            position: relative;
        }

        .photo-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .photo-card:hover img {
            transform: scale(1.08);
        }

        .links-card h2,
        .projects-card h2,
        .contact-card h2 {
            font-family: 'Fira Code', monospace;
            font-size: 0.70rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            margin-bottom: 16px;
            font-weight: 600;
        }

        .links-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .link-item {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            padding: 12px 16px;
            border-radius: 14px;
            color: var(--text-main);
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 500;
            font-size: 0.9rem;
            transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .link-item>div {
            display: flex;
            align-items: center;
            min-width: 0;
        }

        .link-item:hover {
            background-color: rgba(255, 255, 255, 0.08);
            border-color: var(--accent);
            transform: translateX(4px);
            box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2);
            color: var(--accent);
        }

        .link-item .external-icon {
            width: 0.7rem;
            height: 0.7rem;
        }

        .link-item:hover .external-icon {
            transform: translate(2px, -2px);
            color: var(--accent);
        }

        /* BOTAO CONTATO */
        .contact-card {
            justify-content: center;
        }

        .contact-btn {
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
            border: 1px solid var(--card-border);
            padding: 12px;
            border-radius: 12px;
            text-align: center;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.85rem;
            transition: all 0.2s;
            display: inline-block;
            width: 100%;
        }

        .contact-btn:hover {
            background-color: var(--text-main);
            color: var(--bg-color);
            transform: scale(0.98);
        }

        #wyd-cat {
            display: none;
            position: fixed;
            width: 180px;
            border-radius: 16px;
            z-index: 999999;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
            pointer-events: none;
        }



        /* Ajuste fino apenas para o navegador interno do Instagram.
           Mantém layout e pop-ups iguais; só reduz instabilidade de blur/opacity no WebView. */
        html.instagram-webview .trakt-modal-overlay,
        html.instagram-webview .tech-modal-overlay {
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            background: rgba(0, 0, 0, 0.84);
            transition: opacity 0.22s ease, visibility 0.22s ease;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            will-change: opacity;
        }

        html.instagram-webview .trakt-modal-container,
        html.instagram-webview .tech-modal-container {
            transform: translateY(14px) scale(0.99) translateZ(0);
            -webkit-transform: translateY(14px) scale(0.99) translateZ(0);
            transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            will-change: transform;
        }

        html.instagram-webview .trakt-modal-overlay.active .trakt-modal-container,
        html.instagram-webview .tech-modal-overlay.active .tech-modal-container {
            transform: translateY(0) scale(1) translateZ(0);
            -webkit-transform: translateY(0) scale(1) translateZ(0);
        }



        /* Ajuste Letterboxd: título separado da avaliação, estrelas verdes abaixo */
        .lb-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            overflow: hidden;
            flex: 1;
            min-width: 0;
        }

        .lb-info .lb-title {
            flex: initial;
            width: 100%;
        }

        .lb-rating,
        #lb-modal-rating {
            display: block;
            color: #00e054 !important;
            letter-spacing: 1px;
            line-height: 1;
        }

        .lb-rating {
            font-size: 0.78rem;
            min-height: 0.9rem;
        }

        #lb-modal-rating {
            font-size: 1.08rem;
            min-height: 1.3rem;
            margin-top: -2px;
        }

        /* Animação dos 3 pontinhos carregando */
        @keyframes loading-dots {
            0% {
                content: '';
            }

            25% {
                content: '.';
            }

            50% {
                content: '..';
            }

            75% {
                content: '...';
            }

            100% {
                content: '';
            }
        }

        .loading-dots::after {
            content: '';
            display: inline-block;
            animation: loading-dots 1.5s infinite steps(1);
            width: 1em;
            /* Trava a largura para o texto não ficar "dançando" na tela */
            text-align: left;
        }

        @keyframes gemini-spin {
            from {
                transform: rotate(0deg);
            }

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

        .gemini-loader {
            width: 32px;
            height: 32px;
            border: 3px solid rgba(129, 140, 248, 0.22);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: gemini-spin 0.8s linear infinite;
            box-shadow: 0 0 18px rgba(129, 140, 248, 0.28);
            flex-shrink: 0;
        }


        /* Otimização sem alterar visual: evita renderizar modais escondidos antes da hora */
        .tech-modal-overlay:not(.active),
        .trakt-modal-overlay:not(.active) {
            content-visibility: hidden;
            contain: layout style paint;
        }

        /* Otimização de fluidez sem alterar visual */
        @media (max-width: 899px) {

            .bg-orb,
            .carousel-track,
            .waving-hand,
            .spotify-art,
            .photo-card img,
            .tech-modal-container,
            .trakt-modal-container {
                will-change: transform;
                backface-visibility: hidden;
                -webkit-backface-visibility: hidden;
            }

            .card {
                will-change: opacity, transform;
                backface-visibility: hidden;
                -webkit-backface-visibility: hidden;
            }

            .tech-modal-overlay,
            .trakt-modal-overlay {
                will-change: opacity;
            }

            .cursor-blink {
                will-change: opacity;
            }
        }

        .lb-header,
        .trakt-header,
        .trakt-share-label,
        .spotify-label-last,
        .spotify-label-now,
        .links-card h2,
        .projects-card h2,
        .contact-card h2,
        .spotify-history-label {
            font-family: 'Inter', sans-serif;
            font-weight: 700;
            font-size: 0.67rem;
            letter-spacing: 1.2px;
        }
    

        /* Otimizações de FPS no mobile: mantém o visual, mas reduz custo de GPU */
        @media (max-width: 899px) {
            .bg-orb {
                filter: blur(60px);
                opacity: 0.24;
                animation-duration: 22s;
            }

            .carousel-track {
                animation-duration: 28s;
                will-change: transform;
            }

            .card:hover,
            .tech-box:hover,
            .trakt-card:hover .trakt-poster,
            .letterboxd-card:hover .lb-poster,
            .photo-card:hover img {
                transform: none !important;
                box-shadow: none !important;
            }

            .trakt-modal-overlay,
            .tech-modal-overlay {
                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);
            }

            .card,
            .bg-orb,
            .photo-card img,
            .tech-modal-container,
            .trakt-modal-container {
                will-change: auto;
            }
        }

/* Padroniza o botão Redes sociais no mobile */
a[aria-label="Redes sociais"] > svg:first-child {
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    fill: currentColor;
}

a[aria-label="Redes sociais"] > span {
    flex: 1;
    text-align: left;
}

a[aria-label="Redes sociais"] .external-icon {
    width: 0.95rem;
    height: 0.95rem;
    min-width: 0.95rem;
    fill: currentColor;
    opacity: 0.9;
}

/* Correção final: padroniza botão Redes sociais com os outros links mobile */
a[aria-label="Redes sociais"] {
    display: grid !important;
    grid-template-columns: 1.15rem 1fr 1rem !important;
    align-items: center !important;
    column-gap: 0.75rem !important;
}

a[aria-label="Redes sociais"] > svg:first-child {
    width: 1.15rem !important;
    height: 1.15rem !important;
    min-width: 1.15rem !important;
    fill: currentColor !important;
    justify-self: center !important;
}

a[aria-label="Redes sociais"] > span {
    justify-self: start !important;
    text-align: left !important;
    margin: 0 !important;
}

a[aria-label="Redes sociais"] .external-icon {
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    fill: currentColor !important;
    justify-self: end !important;
    opacity: 1 !important;
}

/* Correção: deixa o ícone externo do botão Redes sociais no mesmo tamanho dos outros */
a[aria-label="Redes sociais"] .external-icon {
    width: 1.15rem !important;
    height: 1.15rem !important;
    min-width: 1.15rem !important;
    min-height: 1.15rem !important;
    fill: currentColor !important;
    opacity: 1 !important;
}

/* Remove Redes sociais somente no desktop */
@media (min-width: 769px) {
    a[href="redes/"],
    a[href="/redes/"],
    a[href="./redes/"] {
        display: none !important;
    }
}

/* Ícone rosa nos botões Recomendação */
#trakt-recommend-btn > .icon,
#lb-recommend-btn > .icon {
    color: #f2b3d9;
    width: 1.32em !important;
    height: 1.32em !important;
    overflow: visible;
}
/* Fim ícone rosa nos botões Recomendação */

/* Botão discreto de Story no modal Trakt */
.trakt-modal-share {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;

    width: 38px;
    height: 38px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;

    cursor: pointer;
    transition: 0.2s;
}

.trakt-modal-share:hover {
    background: rgba(255, 255, 255, 0.12);
}

.trakt-modal-share .icon {
    width: 1em !important;
    height: 1em !important;
}
/* Fim botão discreto de Story no modal Trakt */

.trakt-modal-share {
    height: 29px !important;
    top: 20px !important;
}

.trakt-modal-share .icon {
    width: 1em !important;
}
/* Fim ajuste fino botão compartilhar Trakt */

/* Correção: botão compartilhar Trakt perfeitamente circular */
.trakt-modal-share {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    aspect-ratio: 1 / 1 !important;

    padding: 0 !important;
    border-radius: 50% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.trakt-modal-share .icon {
    width: 1em !important;
    height: 1em !important;
}
/* Fim correção botão compartilhar Trakt circular */

/* Ajuste mobile X modal tecnologias */
@media (max-width: 899px) {
    #mobile-tech-modal #close-tech-modal {
        transform: translateX(8px);
    }
}
/* Fim ajuste mobile X modal tecnologias */



/* Story Login Modal */
#trakt-story-btn {
    display: none !important;
}

.supabase-story-authorized #trakt-story-btn {
    display: flex !important;
}

.story-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.story-login-overlay.active {
    display: flex;
}

.story-login-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(18, 18, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
    color: var(--text-main);
    animation: fadeInSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.story-login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.story-login-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.10);
}

.story-login-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.story-login-card h3 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin-bottom: 8px;
}

.story-login-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 22px;
}

.story-login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-login-form label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 6px;
}

.story-login-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-radius: 12px;
    padding: 12px 13px;
    font: inherit;
    outline: none;
}

.story-login-form input:focus {
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.14);
}

.story-login-message {
    min-height: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.story-login-message.error {
    color: #fca5a5;
}

.story-login-message.success {
    color: #86efac;
}

.story-login-submit {
    margin-top: 4px;
    border: 1px solid rgba(129, 140, 248, 0.45);
    background: rgba(129, 140, 248, 0.18);
    color: #c7d2fe;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.story-login-submit:hover {
    background: rgba(129, 140, 248, 0.25);
    transform: translateY(-1px);
}

.story-login-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 899px) {
    .story-login-card {
        max-width: 340px;
        padding: 26px;
    }
}
/* Fim Story Login Modal */

/* Remove botão Story Trakt da home */
#trakt-story-btn,
.supabase-story-authorized #trakt-story-btn {
    display: none !important;
}
/* Fim remove botão Story Trakt da home */
/* TYPEWRITER_FALLBACK_V1 */
#typing-text {
    min-height: 1em;
}

#typing-text.typing-active,
#typing-text.typing-done {
    visibility: visible;
}
/* FIM TYPEWRITER_FALLBACK_V1 */


/* AUTH_REDIRECT_NO_FLASH_V1 */
html.auth-redirecting body {
    opacity: 0 !important;
    pointer-events: none !important;
    background: #0f1117 !important;
}
/* FIM AUTH_REDIRECT_NO_FLASH_V1 */
/* STORY_LOGIN_SCROLL_LOCK_V1 */
html.story-login-scroll-locked,
body.story-login-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.story-login-scroll-locked {
    touch-action: none;
}

html.story-login-scroll-locked #story-login-modal,
html.story-login-scroll-locked #story-login-modal * {
    touch-action: auto;
}
/* FIM STORY_LOGIN_SCROLL_LOCK_V1 */
