* {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            min-height: 100%;
            background: #07090d;
            color: #f7f7f8;
            font-family: "Instrument Sans", system-ui, sans-serif;
        }

        body {
            overflow-x: hidden;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        button {
            font: inherit;
        }

        .app-shell {
            min-height: 100vh;
        }

        /* =========================
           SIDEBAR ESCRITORIO
        ========================== */

        .sidebar {
            position: fixed;
            inset: 0 auto 0 0;
            z-index: 40;
            width: 260px;
            display: flex;
            flex-direction: column;
            border-right: 1px solid rgba(255,255,255,.08);
            background: rgba(7,9,13,.96);
            backdrop-filter: blur(18px);
        }

        .brand {
            padding: 24px 22px 18px;
        }

        .brand-kicker {
            color: var(--atq-gold,#F6B91A);
            font-size: .7rem;
            font-weight: 900;
            letter-spacing: .18em;
            text-transform: uppercase;
        }

        .brand-title {
            margin-top: 4px;
            font-size: 1.45rem;
            font-weight: 950;
            letter-spacing: -.04em;
        }

        .brand-title span {
            color: var(--atq-gold,#F6B91A);
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 10px 12px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 14px;
            width: 100%;
            min-height: 50px;
            padding: 0 14px;
            border: 0;
            border-radius: 13px;
            background: transparent;
            color: #d8d8db;
            cursor: pointer;
            font-weight: 750;
            text-align: left;
            transition: background .16s ease, color .16s ease;
        }

        .nav-item:hover,
        .nav-item.active {
            color: white;
            background: rgba(255,255,255,.08);
        }

        .nav-item.active {
            color: var(--atq-gold,#F6B91A);
        }

        .nav-icon {
            width: 28px;
            text-align: center;
            font-size: 1.3rem;
        }

        .publish-nav {
            margin: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            min-height: 48px;
            border-radius: 14px;
            background: var(--atq-gold,#F6B91A);
            color: #141414;
            font-weight: 950;
            transition: transform .16s ease, background .16s ease;
        }

        .publish-nav:hover {
            transform: translateY(-1px);
            background: var(--atq-gold-light,#ffc931);
        }

        .sidebar-section {
            padding: 15px 20px 0;
        }

        .sidebar-label {
            margin-bottom: 10px;
            color: #76767c;
            font-size: .68rem;
            font-weight: 900;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .explore-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .explore-button {
            border: 1px solid rgba(255,255,255,.1);
            border-radius: 999px;
            padding: 8px 11px;
            background: #101318;
            color: #c6c6ca;
            font-size: .78rem;
            font-weight: 750;
            cursor: pointer;
        }

        .explore-button:hover {
            border-color: rgba(var(--atq-gold-rgb,246,185,26),.55);
            color: var(--atq-gold,#F6B91A);
        }

        .sidebar-bottom {
            margin-top: auto;
            padding: 16px 12px 22px;
        }

        /* =========================
           FEED
        ========================== */

        .feed-page {
            margin-left: 260px;
            min-height: 100vh;
        }

        .feed-topbar {
            position: fixed;
            top: 0;
            left: 260px;
            right: 0;
            z-index: 30;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 58px;
            border-bottom: 1px solid rgba(255,255,255,.06);
            background: rgba(7,9,13,.84);
            backdrop-filter: blur(16px);
        }

        .feed-tabs {
            display: flex;
            align-items: center;
            gap: 28px;
            height: 100%;
        }

        .feed-tab {
            position: relative;
            display: flex;
            align-items: center;
            height: 100%;
            border: 0;
            background: transparent;
            color: #88888e;
            cursor: pointer;
            font-weight: 800;
        }

        .feed-tab.active {
            color: white;
        }

        .feed-tab.active::after {
            content: "";
            position: absolute;
            left: 15%;
            right: 15%;
            bottom: 0;
            height: 3px;
            border-radius: 999px;
            background: var(--atq-gold,#F6B91A);
        }

        .feed-stream {
            height: 100vh;
            overflow-y: auto;
            scroll-snap-type: y mandatory;
            scrollbar-width: none;
            padding-top: 58px;
        }

        .feed-stream::-webkit-scrollbar {
            display: none;
        }

        .post-slide {
            min-height: calc(100vh - 58px);
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            padding: 22px 24px 30px;
        }

        .post-layout {
            display: grid;
            grid-template-columns: minmax(300px, 510px) 78px;
            align-items: end;
            gap: 18px;
            width: min(620px, 100%);
        }

        .post-card {
            position: relative;
            overflow: hidden;
            width: 100%;
            height: min(78vh, 790px);
            min-height: 590px;
            border: 1px solid rgba(255,255,255,.11);
            border-radius: 20px;
            background: #111319;
            box-shadow: 0 24px 80px rgba(0,0,0,.34);
        }

        .media-carousel {
            width: 100%;
            height: 100%;
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
        }

        .media-carousel::-webkit-scrollbar {
            display: none;
        }

        .media-frame {
            position: relative;
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            scroll-snap-align: start;
            background: #111319;
        }

        .media-frame img,
        .media-frame video {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
            background: #0c0e12;
        }

        .video-feedback {
            position: absolute;
            left: 50%;
            top: 50%;
            z-index: 18;
            width: 74px;
            height: 74px;
            display: grid;
            place-items: center;
            border-radius: 999px;
            background: rgba(0,0,0,.42);
            color: #fff;
            font-size: 30px;
            line-height: 1;
            pointer-events: none;
            opacity: 0;
            transform: translate(-50%, -50%) scale(.88);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: opacity .18s ease, transform .18s ease;
        }

        .video-feedback.is-visible {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        .video-volume-control {
            position: absolute;
            top: 44px;
            right: 18px;
            z-index: 12;
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            gap: 10px;
        }

        .video-sound-toggle {
            flex: 0 0 42px;
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(255,255,255,.18);
            border-radius: 999px;
            background: rgba(0,0,0,.52);
            color: #fff;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: background .18s ease, transform .18s ease, border-color .18s ease;
        }

        .video-sound-toggle:hover {
            background: rgba(0,0,0,.72);
            border-color: rgba(255,255,255,.30);
        }

        .video-sound-toggle:active {
            transform: scale(.94);
        }

        .video-volume-slider {
            width: 125px;
            height: 4px;
            margin: 0;
            accent-color: #ffffff;
            cursor: pointer;
            opacity: 0;
            transform: translateX(8px);
            pointer-events: none;
            transition: opacity .18s ease, transform .18s ease;
        }

        .video-volume-control.is-open .video-volume-slider {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }
        @media (hover: hover) and (pointer: fine) {
            .video-volume-control.is-open .video-volume-slider {
                opacity: 0;
                transform: translateX(8px);
                pointer-events: none;
            }

            .video-volume-control:hover .video-volume-slider,
            .video-volume-control:focus-within .video-volume-slider {
                opacity: 1;
                transform: translateX(0);
                pointer-events: auto;
            }
        }
        .video-progress-control {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 20;
            height: 14px;
            display: flex;
            align-items: flex-end;
        }

        .video-progress-slider {
            width: 100%;
            height: 3px;
            margin: 0;
            padding: 0;
            border: 0;
            border-radius: 0;
            accent-color: #ffffff;
            cursor: pointer;
            opacity: .72;
            transition: height .15s ease, opacity .15s ease;
        }

        @media (hover: hover) and (pointer: fine) {
            .video-progress-control:hover .video-progress-slider,
            .video-progress-control:focus-within .video-progress-slider {
                height: 5px;
                opacity: 1;
            }
        }
        .post-shade {
            position: absolute;
            inset: auto 0 0;
            z-index: 4;
            height: 44%;
            pointer-events: none;
            background: linear-gradient(
                to top,
                rgba(0,0,0,.94),
                rgba(0,0,0,.56) 48%,
                transparent
            );
        }

        .post-copy {
            position: absolute;
            z-index: 6;
            left: 20px;
            right: 20px;
            bottom: 20px;
        }

        .post-author {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 1.05rem;
            font-weight: 950;
        }

        .verified-dot {
            width: 17px;
            height: 17px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--atq-gold,#F6B91A);
            color: #111;
            font-size: .65rem;
            font-weight: 950;
        }

        .post-meta {
            margin-top: 5px;
            color: rgba(255,255,255,.72);
            font-size: .83rem;
            font-weight: 650;
        }

        .post-caption {
            max-width: 430px;
            margin-top: 10px;
            color: white;
            font-size: .92rem;
            line-height: 1.45;
        }

        .post-dots {
            position: absolute;
            top: 14px;
            left: 50%;
            z-index: 7;
            display: flex;
            gap: 5px;
            transform: translateX(-50%);
        }

        .post-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: rgba(255,255,255,.5);
        }

        /* =========================
           ACCIONES DERECHA
        ========================== */

        .post-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            padding-bottom: 12px;
        }

        .profile-action {
            position: relative;
            width: 52px;
            height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 2px solid white;
            border-radius: 50%;
            background:
                linear-gradient(135deg, var(--atq-gold,#F6B91A), #23cad1);
            color: #101010;
            font-weight: 950;
        }

        .profile-action img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-plus {
            position: absolute;
            left: 50%;
            bottom: -8px;
            width: 21px;
            height: 21px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #07090d;
            border-radius: 50%;
            background: var(--atq-gold,#F6B91A);
            color: #111;
            font-size: 1rem;
            font-weight: 950;
            transform: translateX(-50%);
        }

        .action {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            border: 0;
            background: transparent;
            color: white;
            cursor: pointer;
        }

        .action-icon {
            width: 49px;
            height: 49px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #191c22;
            font-size: 1.42rem;
            transition: transform .15s ease, background .15s ease;
        }

        .action:hover .action-icon {
            transform: scale(1.06);
            background: #242830;
        }

        .action.liked .action-icon {
            color: #ff425f;
        }

        .action.saved .action-icon {
            color: var(--atq-gold,#F6B91A);
        }

        .action-label {
            color: #aaaab0;
            font-size: .68rem;
            font-weight: 800;
        }

        .action[disabled] {
            opacity: .45;
            cursor: default;
        }

        /* =========================
           ESTADO VACÍO
        ========================== */

        .preview-card {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background:
                radial-gradient(circle at 70% 20%, rgba(35,202,209,.28), transparent 30%),
                radial-gradient(circle at 25% 60%, rgba(var(--atq-gold-rgb,246,185,26),.24), transparent 32%),
                linear-gradient(150deg, #111722, #080a0e 62%);
        }

        .preview-ball {
            position: absolute;
            top: 23%;
            left: 50%;
            display: flex;
            width: 130px;
            height: 130px;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255,255,255,.14);
            border-radius: 50%;
            background: rgba(255,255,255,.06);
            font-size: 4rem;
            transform: translateX(-50%);
            box-shadow: 0 20px 70px rgba(0,0,0,.3);
        }

        .preview-copy {
            position: relative;
            z-index: 3;
            padding: 26px 22px;
        }

        .preview-label {
            color: var(--atq-gold,#F6B91A);
            font-size: .72rem;
            font-weight: 950;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .preview-title {
            margin-top: 7px;
            font-size: 1.7rem;
            font-weight: 950;
        }

        .preview-text {
            margin-top: 8px;
            max-width: 370px;
            color: #b7b7bc;
            line-height: 1.5;
        }

        /* =========================
           BOTTOM NAV MÓVIL
        ========================== */

        .mobile-nav {
            display: none;
        }

        @media (max-width: 900px) {
            .sidebar {
                display: none;
            }

            .feed-page {
                margin-left: 0;
            }

            .feed-topbar {
                left: 0;
            }

            .feed-stream {
                padding-bottom: 66px;
            }

            .post-slide {
                padding: 10px 8px 16px;
            }

            .post-layout {
                grid-template-columns: minmax(0, 1fr) 64px;
                gap: 8px;
                width: min(570px, 100%);
            }

            .post-card {
                height: calc(100vh - 150px);
                min-height: 530px;
                border-radius: 16px;
            }

            .action-icon {
                width: 45px;
                height: 45px;
            }

            .profile-action {
                width: 47px;
                height: 47px;
            }

            .mobile-nav {
                position: fixed;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 50;
                height: 64px;
                display: grid;
                grid-template-columns: repeat(5, 1fr);
                border-top: 1px solid rgba(255,255,255,.08);
                background: rgba(7,9,13,.97);
                backdrop-filter: blur(18px);
            }

            .mobile-nav a,
            .mobile-nav button {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 3px;
                border: 0;
                background: transparent;
                color: #aaaab0;
                font-size: .66rem;
                font-weight: 800;
            }

            .mobile-nav .mobile-publish {
                color: var(--atq-gold,#F6B91A);
            }

            .mobile-icon {
                font-size: 1.25rem;
            }
        }

        @media (max-width: 540px) {
            .feed-tabs {
                gap: 22px;
            }

            .post-slide {
                align-items: flex-start;
            }

            .post-layout {
                grid-template-columns: minmax(0, 1fr) 56px;
            }

            .post-card {
                height: calc(100vh - 138px);
                min-height: 510px;
            }

            .post-copy {
                left: 15px;
                right: 15px;
                bottom: 16px;
            }

            .post-actions {
                gap: 13px;
            }

            .action-icon {
                width: 42px;
                height: 42px;
                font-size: 1.25rem;
            }

            .action-label {
                font-size: .61rem;
            }
        }

/* Ajuste visual del feed principal */

        .post-layout {
            grid-template-columns: minmax(360px, 560px) 66px;
            gap: 10px;
            width: min(650px, 100%);
        }

        .post-card {
            height: min(84vh, 860px);
            min-height: 650px;
        }

        .post-actions {
            gap: 13px;
            padding-bottom: 8px;
        }

        .post-copy {
            left: 22px;
            right: 22px;
            bottom: 22px;
        }

        .post-author {
            color: #ffffff;
            font-size: 1.08rem;
        }

        .post-meta {
            color: rgba(255,255,255,.82);
        }

        .post-caption {
            color: #ffffff;
        }

        .preview-title {
            color: #ffffff;
        }

        .preview-text {
            color: #d0d0d5;
        }

        .preview-label {
            color: var(--atq-gold,#F6B91A);
        }

        .action-label {
            color: #d0d0d4;
        }

        @media (max-width: 900px) {
            .post-layout {
                grid-template-columns: minmax(0, 1fr) 58px;
                width: min(610px, 100%);
                gap: 6px;
            }

            .post-card {
                height: calc(100vh - 138px);
                min-height: 560px;
            }
        }

        @media (max-width: 540px) {
            .post-card {
                min-height: 520px;
            }

            .post-copy {
                left: 16px;
                right: 16px;
                bottom: 18px;
            }
        }

/* TikTok sizing v1 */

        /* ===== ESCRITORIO ===== */

        .post-slide {
            min-height: calc(100dvh - 58px);
            padding: 16px 24px;
        }

        .post-layout {
            display: flex;
            grid-template-columns: none;
            align-items: flex-end;
            justify-content: center;
            gap: 12px;
            width: 100%;
            max-width: 720px;
        }

        .post-card {
            flex: 0 0 auto;
            width: auto;
            height: calc(100dvh - 90px);
            max-height: 900px;
            min-height: 0;
            aspect-ratio: 9 / 16;
            border-radius: 16px;
        }

        .post-actions {
            flex: 0 0 62px;
            width: 62px;
            padding-bottom: 12px;
        }

        .media-frame img,
        .media-frame video {
            object-fit: cover;
        }

        /* ===== CELULAR: PANTALLA COMPLETA ===== */

        @media (max-width: 900px) {
            html,
            body {
                width: 100%;
                height: 100%;
                overflow: hidden;
            }

            .feed-page {
                width: 100%;
                height: 100dvh;
            }

            .feed-topbar {
                top: 0;
                left: 0;
                right: 0;
                height: 54px;
                z-index: 30;
                border-bottom: 0;
                background:
                    linear-gradient(
                        to bottom,
                        rgba(0,0,0,.56),
                        rgba(0,0,0,.18),
                        transparent
                    );
                backdrop-filter: none;
            }

            .feed-tab {
                color: rgba(255,255,255,.72);
                text-shadow: 0 1px 5px rgba(0,0,0,.6);
            }

            .feed-tab.active {
                color: #fff;
            }

            .feed-stream {
                width: 100%;
                height: 100dvh;
                padding: 0;
                overflow-y: auto;
                scroll-snap-type: y mandatory;
            }

            .post-slide {
                position: relative;
                width: 100%;
                height: 100dvh;
                min-height: 100dvh;
                padding: 0;
                display: block;
                scroll-snap-align: start;
            }

            .post-layout {
                position: relative;
                display: block;
                width: 100%;
                max-width: none;
                height: 100%;
            }

            .post-card {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                max-height: none;
                min-height: 0;
                aspect-ratio: auto;
                border: 0;
                border-radius: 0;
                box-shadow: none;
            }

            .media-carousel,
            .media-frame {
                width: 100%;
                height: 100%;
            }

            .media-frame img,
            .media-frame video {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .post-actions {
                position: absolute;
                right: 10px;
                bottom: 84px;
                z-index: 15;
                width: 54px;
                padding: 0;
                gap: 14px;
            }

            .profile-action {
                width: 48px;
                height: 48px;
                box-shadow: 0 2px 10px rgba(0,0,0,.45);
            }

            .action-icon {
                width: 46px;
                height: 46px;
                background: rgba(20,20,24,.64);
                box-shadow: 0 2px 10px rgba(0,0,0,.28);
                backdrop-filter: blur(7px);
            }

            .action-label {
                color: #fff;
                text-shadow: 0 1px 5px rgba(0,0,0,.8);
            }

            .post-copy {
                left: 14px;
                right: 78px;
                bottom: 82px;
                z-index: 12;
            }

            .post-shade {
                z-index: 8;
                height: 48%;
                background:
                    linear-gradient(
                        to top,
                        rgba(0,0,0,.86),
                        rgba(0,0,0,.38) 48%,
                        transparent
                    );
            }

            .post-author,
            .post-meta,
            .post-caption {
                text-shadow: 0 1px 5px rgba(0,0,0,.78);
            }

            .post-dots {
                top: 63px;
            }

            .preview-card {
                height: 100%;
                border-radius: 0;
            }

            .preview-copy {
                padding: 0;
            }

            .mobile-nav {
                height: 64px;
                border-top: 0;
                background:
                    linear-gradient(
                        to top,
                        rgba(0,0,0,.94),
                        rgba(0,0,0,.68),
                        transparent
                    );
                backdrop-filter: none;
            }

            .mobile-nav a,
            .mobile-nav button {
                color: #fff;
                text-shadow: 0 1px 4px rgba(0,0,0,.75);
            }
        }

        @media (max-width: 540px) {
            .feed-tabs {
                gap: 28px;
            }

            .post-card {
                height: 100%;
                min-height: 0;
            }

            .post-actions {
                right: 8px;
                bottom: 78px;
                gap: 12px;
            }

            .post-copy {
                left: 13px;
                right: 72px;
                bottom: 78px;
            }

            .action-icon {
                width: 44px;
                height: 44px;
            }

            .profile-action {
                width: 46px;
                height: 46px;
            }
        }

/* Mobile feed polish v1 */

        @media (max-width: 900px) {
            .post-actions {
                right: 9px;
                bottom: calc(100px + env(safe-area-inset-bottom));
            }

            .post-copy {
                left: 14px;
                right: 76px;
                bottom: calc(92px + env(safe-area-inset-bottom));
                max-width: calc(100% - 92px);
            }

            .post-author {
                font-size: .98rem;
                line-height: 1.15;
            }

            .post-meta {
                margin-top: 4px;
                font-size: .76rem;
                line-height: 1.25;
            }

            .post-caption {
                margin-top: 7px;
                font-size: .86rem;
                line-height: 1.32;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3;
                overflow: hidden;
            }

            .preview-title {
                margin-top: 5px;
                font-size: 1.28rem;
                line-height: 1.08;
            }

            .preview-text {
                margin-top: 7px;
                font-size: .82rem;
                line-height: 1.35;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3;
                overflow: hidden;
            }

            .preview-label {
                font-size: .62rem;
            }

            .mobile-nav {
                padding-bottom: env(safe-area-inset-bottom);
            }
        }

        @media (max-width: 360px) {
            .feed-tabs {
                gap: 24px;
            }

            .feed-tab {
                font-size: .82rem;
            }

            .post-actions {
                right: 6px;
                bottom: calc(102px + env(safe-area-inset-bottom));
                gap: 10px;
            }

            .post-copy {
                left: 10px;
                right: 68px;
                bottom: calc(94px + env(safe-area-inset-bottom));
                max-width: calc(100% - 78px);
            }

            .action-icon {
                width: 40px;
                height: 40px;
                font-size: 1.12rem;
            }

            .profile-action {
                width: 42px;
                height: 42px;
            }

            .action-label {
                font-size: .56rem;
            }

            .preview-title {
                font-size: 1.18rem;
            }

            .preview-text {
                font-size: .78rem;
            }
        }

/* Mobile preview positioning fix */

        @media (max-width: 900px) {
            .preview-copy {
                position: absolute;
                left: 14px;
                right: 76px;
                bottom: calc(94px + env(safe-area-inset-bottom));
                z-index: 12;
                padding: 0;
                max-width: calc(100% - 92px);
            }

            .post-actions {
                bottom: calc(110px + env(safe-area-inset-bottom));
            }
        }

        @media (max-width: 360px) {
            .preview-copy {
                left: 10px;
                right: 68px;
                bottom: calc(96px + env(safe-area-inset-bottom));
                max-width: calc(100% - 78px);
            }

            .post-actions {
                bottom: calc(112px + env(safe-area-inset-bottom));
            }
        }

/* Feed snap polish v1 */

        .feed-stream {
            scroll-snap-type: y mandatory;
            overscroll-behavior-y: contain;
        }

        .post-slide {
            scroll-snap-align: start;
            scroll-snap-stop: always;
        }

        @media (max-width: 900px) {
            .feed-stream {
                scroll-snap-type: y mandatory;
                overscroll-behavior-y: none;
            }

            .post-slide {
                height: 100dvh;
                min-height: 100dvh;
                scroll-snap-align: start;
                scroll-snap-stop: always;
            }
        }

/* ==========================================================
   ATIQOR ADAPTIVE MEDIA V1
   El feed respeta el formato real del contenido.
   ========================================================== */

@media (min-width: 901px) {
    .post-layout {
        width: fit-content;
        max-width: 100%;
        gap: 12px;
    }

    .post-card {
        flex: 0 0 auto;
        width: clamp(
            300px,
            var(--adaptive-media-width, 445px),
            min(980px, calc(100vw - 300px))
        );
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: var(--media-ratio, 9 / 16);
        transition:
            width .22s ease,
            aspect-ratio .22s ease;
    }

    .media-carousel,
    .media-frame {
        width: 100%;
        height: 100%;
    }

    .media-frame img,
    .media-frame video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #050609;
    }

    .post-actions {
        flex: 0 0 50px;
        width: 50px;
        gap: 10px;
        padding-bottom: 8px;
    }

    .profile-action {
        width: 44px;
        height: 44px;
    }

    .action {
        gap: 3px;
    }

    .action-icon {
        width: 42px;
        height: 42px;
        font-size: 1.16rem;
    }

    .action-label {
        max-width: 54px;
        font-size: .62rem;
        line-height: 1.05;
        text-align: center;
    }
}

/* En celular mantenemos el feed a pantalla completa.
   Vertical llena; horizontal y cuadrado se muestran completos. */
@media (max-width: 900px) {
    .post-card {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .post-card.is-media-portrait .media-frame img,
    .post-card.is-media-portrait .media-frame video {
        object-fit: cover;
    }

    .post-card.is-media-square .media-frame img,
    .post-card.is-media-square .media-frame video,
    .post-card.is-media-landscape .media-frame img,
    .post-card.is-media-landscape .media-frame video {
        object-fit: contain;
        background: #050609;
    }

    .post-actions {
        width: 48px;
        gap: 10px;
        right: 8px;
    }

    .profile-action {
        width: 44px;
        height: 44px;
    }

    .action-icon {
        width: 42px;
        height: 42px;
        font-size: 1.14rem;
    }

    .action-label {
        max-width: 50px;
        font-size: .57rem;
        line-height: 1.05;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .post-actions {
        width: 44px;
        gap: 9px;
        right: 6px;
    }

    .profile-action {
        width: 40px;
        height: 40px;
    }

    .action-icon {
        width: 39px;
        height: 39px;
        font-size: 1.08rem;
    }

    .action-label {
        max-width: 46px;
        font-size: .54rem;
    }
}

/* ==========================================================
   ATIQOR COMPACT SIDEBAR V1
   Primera reducción del lateral + branding compacto
   ========================================================== */

@media (min-width: 901px) {
    .sidebar {
        width: 210px;
    }

    .feed-page {
        margin-left: 210px;
    }

    .feed-topbar {
        left: 210px;
        position: fixed;
    }

    .brand.brand-mark {
        height: 82px;
        padding: 16px 18px 12px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .brand-mark-image {
        display: block;
        width: 52px;
        height: 52px;
        object-fit: contain;
    }

    .feed-brand-kicker {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        max-width: 155px;
        color: var(--atq-gold,#F6B91A);
        font-size: .60rem;
        line-height: 1.15;
        font-weight: 900;
        letter-spacing: .14em;
        text-transform: uppercase;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .feed-brand-kicker {
        display: none;
    }
}

/* ==========================================================
   ATIQOR ICON SIDEBAR V1
   Barra lateral compacta estilo aplicación social
   ========================================================== */

@media (min-width: 901px) {

    .sidebar {
        width: 76px;
        overflow: visible;
        align-items: center;
    }

    .feed-page {
        margin-left: 76px;
    }

    .feed-topbar {
        left: 76px;
    }

    .brand.brand-mark {
        width: 76px;
        height: 78px;
        padding: 13px 0 8px;
        justify-content: center;
    }

    .brand-mark-image {
        width: 48px;
        height: 48px;
    }

    .sidebar-icon-nav {
        width: 100%;
        gap: 7px;
        padding: 8px 9px;
    }

    .nav-icon-only {
        position: relative;
        width: 58px;
        min-height: 54px;
        padding: 0;
        justify-content: center;
        border-radius: 15px;
        overflow: visible;
    }

    .nav-symbol {
        width: 25px;
        height: 25px;
        display: grid;
        place-items: center;
    }

    .nav-symbol svg {
        width: 23px;
        height: 23px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .nav-live-symbol svg {
        stroke-width: 1.4;
    }

    .nav-item.panel-open {
        color: var(--atq-gold,#F6B91A);
        background: rgba(var(--atq-gold-rgb,246,185,26),.10);
    }

    .nav-hover-label {
        position: absolute;
        left: calc(100% + 11px);
        top: 50%;
        z-index: 100;
        transform: translate(7px, -50%);
        padding: 8px 11px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 9px;
        background: rgba(20,22,27,.98);
        box-shadow: 0 10px 32px rgba(0,0,0,.34);
        color: #f7f7f8;
        font-size: .80rem;
        font-weight: 750;
        line-height: 1;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity .14s ease,
            transform .14s ease,
            visibility .14s ease;
    }

    .nav-icon-only:hover .nav-hover-label,
    .nav-icon-only:focus-visible .nav-hover-label,
    .publish-icon-only:hover .nav-hover-label,
    .publish-icon-only:focus-visible .nav-hover-label {
        opacity: 1;
        visibility: visible;
        transform: translate(0, -50%);
    }

    .publish-icon-only {
        position: relative;
        width: 52px;
        height: 52px;
        min-height: 52px;
        margin: 12px auto 0;
        padding: 0;
        border-radius: 16px;
        gap: 0;
        overflow: visible;
    }

    .publish-letter {
        display: grid;
        place-items: center;
        width: 100%;
        height: 100%;
        font-size: 1.02rem;
        font-weight: 950;
    }

    .sidebar-section,
    .sidebar-bottom {
        display: none !important;
    }

    .sidebar-flyout {
        position: absolute;
        left: 86px;
        z-index: 90;
        width: 210px;
        padding: 10px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 14px;
        background: rgba(14,16,21,.98);
        box-shadow: 0 18px 55px rgba(0,0,0,.42);
        backdrop-filter: blur(18px);
    }

    .sidebar-flyout[hidden] {
        display: none;
    }

    .sidebar-flyout-title {
        padding: 7px 9px 10px;
        color: var(--atq-gold,#F6B91A);
        font-size: .69rem;
        font-weight: 900;
        letter-spacing: .11em;
        text-transform: uppercase;
    }

    .sidebar-flyout-item {
        width: 100%;
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 0 11px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: #e1e1e4;
        font: inherit;
        font-size: .84rem;
        font-weight: 720;
        text-align: left;
        cursor: pointer;
    }

    .sidebar-flyout-item:hover,
    .sidebar-flyout-item:focus-visible {
        background: rgba(255,255,255,.075);
        color: #fff;
    }

    .feed-brand-kicker {
        left: 18px;
    }
}

@media (max-width: 900px) {
    .sidebar-flyout {
        display: none !important;
    }
}

/* ==========================================================
   ATIQOR LARGE ADAPTIVE MEDIA V2
   Contenido más grande aprovechando sidebar de 76px
   ========================================================== */

@media (min-width: 901px) {

    .post-slide {
        padding-left: 18px;
        padding-right: 18px;
    }

    .post-layout {
        width: fit-content;
        max-width: calc(100vw - 115px);
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
    }

    /* Fallback mientras se detectan dimensiones */
    .post-card {
        width: min(
            600px,
            calc(100vw - 160px)
        );
        max-width: none;
    }

    /* VIDEO / FOTO HORIZONTAL */
    .post-card.is-media-landscape {
        width: min(
            980px,
            calc(100vw - 165px)
        ) !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 105px) !important;

        aspect-ratio: var(--media-ratio, 16 / 9) !important;
    }

    /* VIDEO / FOTO CUADRADO */
    .post-card.is-media-square {
        width: min(
            720px,
            calc(100vw - 165px)
        ) !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 105px) !important;

        aspect-ratio: 1 / 1 !important;
    }

    /* VIDEO / FOTO VERTICAL */
    .post-card.is-media-portrait {
        width: min(
            560px,
            calc(100vw - 165px)
        ) !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 80px) !important;

        aspect-ratio: var(--media-ratio, 9 / 16) !important;
    }

    .post-card.is-media-landscape .media-carousel,
    .post-card.is-media-landscape .media-frame,
    .post-card.is-media-square .media-carousel,
    .post-card.is-media-square .media-frame,
    .post-card.is-media-portrait .media-carousel,
    .post-card.is-media-portrait .media-frame {
        width: 100%;
        height: 100%;
    }

    .post-card.is-media-landscape .media-frame img,
    .post-card.is-media-landscape .media-frame video,
    .post-card.is-media-square .media-frame img,
    .post-card.is-media-square .media-frame video,
    .post-card.is-media-portrait .media-frame img,
    .post-card.is-media-portrait .media-frame video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain !important;
        background: #000;
    }

    /* Botones derechos más pegados al contenido */
    .post-actions {
        flex: 0 0 48px;
        width: 48px;
        gap: 9px;
    }
}

/* ==========================================================
   ATIQOR DEVICE RESPONSIVE V6
   En PC el feed sigue siendo escritorio aunque la ventana
   sea angosta. El móvil real conserva el diseño táctil.
   ========================================================== */

@media (max-width: 900px) {

    html.atiqor-desktop-device {
        --atiqor-narrow-sidebar: clamp(50px, 7vw, 58px);
        --atiqor-narrow-actions: clamp(36px, 5vw, 42px);
    }

    html.atiqor-desktop-device,
    html.atiqor-desktop-device body {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .atiqor-desktop-device .sidebar {
        display: flex !important;
        width: var(--atiqor-narrow-sidebar) !important;
        overflow: visible !important;
        align-items: center !important;
    }

    .atiqor-desktop-device .brand.brand-mark {
        width: var(--atiqor-narrow-sidebar) !important;
        height: 66px !important;
        padding: 9px 0 6px !important;
        justify-content: center !important;
    }

    .atiqor-desktop-device .brand-mark-image {
        width: 39px !important;
        height: 39px !important;
    }

    .atiqor-desktop-device .sidebar-icon-nav {
        width: 100% !important;
        padding: 5px 4px !important;
        gap: 4px !important;
    }

    .atiqor-desktop-device .nav-icon-only {
        width: calc(var(--atiqor-narrow-sidebar) - 8px) !important;
        min-height: 44px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    .atiqor-desktop-device .nav-symbol {
        width: 21px !important;
        height: 21px !important;
    }

    .atiqor-desktop-device .mobile-nav {
        display: none !important;
    }

    .atiqor-desktop-device .sidebar-flyout:not([hidden]) {
        display: block !important;
    }

    .atiqor-desktop-device .feed-page {
        width: auto !important;
        height: 100vh !important;
        margin-left: var(--atiqor-narrow-sidebar) !important;
    }

    .atiqor-desktop-device .feed-topbar {
        top: 0 !important;
        left: var(--atiqor-narrow-sidebar) !important;
        right: 0 !important;
        height: 58px !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
        background: rgba(7,9,13,.94) !important;
        backdrop-filter: blur(16px) !important;
    }

    .atiqor-desktop-device .feed-brand-kicker {
        display: none !important;
    }

    .atiqor-desktop-device .feed-stream {
        width: 100% !important;
        height: 100vh !important;
        padding-top: 58px !important;
        padding-bottom: 0 !important;
        overflow-y: auto !important;
    }

    .atiqor-desktop-device .post-slide {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: calc(100vh - 58px) !important;

        padding: 8px !important;

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

    .atiqor-desktop-device .post-layout {
        position: static !important;

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

        width: fit-content !important;

        max-width: calc(
            100vw - var(--atiqor-narrow-sidebar) - 8px
        ) !important;

        height: auto !important;

        gap: 5px !important;
    }

    .atiqor-desktop-device .post-card {
        position: relative !important;
        inset: auto !important;

        flex: 0 0 auto !important;

        width: min(
            var(--adaptive-media-width, 445px),
            calc(
                100vw
                - var(--atiqor-narrow-sidebar)
                - var(--atiqor-narrow-actions)
                - 18px
            )
        ) !important;

        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 88px) !important;

        aspect-ratio: var(--media-ratio, 9 / 16) !important;

        border: 1px solid rgba(255,255,255,.11) !important;
        border-radius: 14px !important;

        background: #050609 !important;

        box-shadow: 0 18px 55px rgba(0,0,0,.32) !important;
    }

    .atiqor-desktop-device .media-carousel,
    .atiqor-desktop-device .media-frame {
        width: 100% !important;
        height: 100% !important;
    }

    .atiqor-desktop-device .media-frame img,
    .atiqor-desktop-device .media-frame video {
        width: 100% !important;
        height: 100% !important;
        background: #050609 !important;
    }

    .atiqor-desktop-device
    .post-card.is-media-portrait
    .media-frame img,

    .atiqor-desktop-device
    .post-card.is-media-portrait
    .media-frame video {
        object-fit: cover !important;
    }

    .atiqor-desktop-device
    .post-card.is-media-square
    .media-frame img,

    .atiqor-desktop-device
    .post-card.is-media-square
    .media-frame video,

    .atiqor-desktop-device
    .post-card.is-media-landscape
    .media-frame img,

    .atiqor-desktop-device
    .post-card.is-media-landscape
    .media-frame video {
        object-fit: contain !important;
    }

    .atiqor-desktop-device .post-actions {
        position: static !important;
        right: auto !important;
        bottom: auto !important;

        flex: 0 0 var(--atiqor-narrow-actions) !important;
        width: var(--atiqor-narrow-actions) !important;

        gap: 6px !important;
        padding: 0 0 6px !important;
    }

    .atiqor-desktop-device .profile-action {
        width: var(--atiqor-narrow-actions) !important;
        height: var(--atiqor-narrow-actions) !important;
    }

    .atiqor-desktop-device .action-icon {
        width: calc(var(--atiqor-narrow-actions) - 2px) !important;
        height: calc(var(--atiqor-narrow-actions) - 2px) !important;

        font-size: 1rem !important;
    }

    .atiqor-desktop-device .action-label {
        max-width: var(--atiqor-narrow-actions) !important;
        font-size: .51rem !important;
        line-height: 1.05 !important;
    }

    .atiqor-desktop-device .post-copy {
        left: 14px !important;
        right: 14px !important;
        bottom: 14px !important;
        max-width: none !important;
    }

    .atiqor-desktop-device .post-dots {
        top: 12px !important;
    }
}


/* ==========================================================
   ATIQOR RESPONSIVE STRUCTURE V8
   En escritorio angosto:
   - sidebar izquierda siempre funcional
   - acciones derecha siempre reservadas
   - el contenido multimedia es quien reduce su tamaño
   ========================================================== */

@media (max-width: 900px) {

    html.atiqor-desktop-device {
        --atiqor-sidebar-narrow: 58px;
        --atiqor-actions-narrow: 44px;
        --atiqor-layout-gap: 6px;
    }

    /* ======================================================
       BARRA IZQUIERDA
       ====================================================== */

    .atiqor-desktop-device .sidebar {
        display: flex !important;
        width: var(--atiqor-sidebar-narrow) !important;

        z-index: 80 !important;

        align-items: center !important;

        overflow: visible !important;

        background: #07090d !important;
    }

    .atiqor-desktop-device .brand.brand-mark {
        width: var(--atiqor-sidebar-narrow) !important;
        height: 66px !important;

        padding: 9px 0 6px !important;

        justify-content: center !important;
    }

    .atiqor-desktop-device .brand-mark-image {
        width: 39px !important;
        height: 39px !important;

        display: block !important;
        object-fit: contain !important;
    }

    .atiqor-desktop-device .sidebar-icon-nav {
        width: 100% !important;

        padding: 5px !important;
        gap: 5px !important;

        align-items: center !important;
    }

    .atiqor-desktop-device .nav-icon-only {
        position: relative !important;

        display: flex !important;

        width: 48px !important;
        min-width: 48px !important;
        min-height: 46px !important;

        padding: 0 !important;
        gap: 0 !important;

        align-items: center !important;
        justify-content: center !important;

        border-radius: 13px !important;

        color: #aaaab0 !important;
        background: transparent !important;

        overflow: visible !important;

        font-size: 0 !important;
    }

    .atiqor-desktop-device .nav-icon-only:hover {
        color: #ffffff !important;
        background: rgba(255,255,255,.07) !important;
    }

    .atiqor-desktop-device .nav-icon-only.active,
    .atiqor-desktop-device .nav-item.panel-open {
        color: var(--atq-gold,#F6B91A) !important;
        background: rgba(var(--atq-gold-rgb,246,185,26),.10) !important;
    }

    /* Restauramos los SVG que desaparecían debajo de 900px */
    .atiqor-desktop-device .nav-symbol {
        width: 22px !important;
        height: 22px !important;

        display: grid !important;
        place-items: center !important;

        flex: 0 0 22px !important;

        color: currentColor !important;
    }

    .atiqor-desktop-device .nav-symbol svg {
        display: block !important;

        width: 21px !important;
        height: 21px !important;

        fill: none !important;
        stroke: currentColor !important;

        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    /* Nombre al pasar el mouse: Inicio, Explorar, etc. */
    .atiqor-desktop-device .nav-hover-label {
        display: block !important;

        position: absolute !important;

        left: calc(100% + 9px) !important;
        top: 50% !important;

        z-index: 120 !important;

        transform: translate(6px, -50%) !important;

        padding: 7px 10px !important;

        border: 1px solid rgba(255,255,255,.10) !important;
        border-radius: 8px !important;

        background: rgba(20,22,27,.98) !important;

        box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;

        color: #f7f7f8 !important;

        font-size: .75rem !important;
        font-weight: 750 !important;
        line-height: 1 !important;

        white-space: nowrap !important;

        pointer-events: none !important;

        opacity: 0 !important;
        visibility: hidden !important;

        transition:
            opacity .14s ease,
            transform .14s ease,
            visibility .14s ease !important;
    }

    .atiqor-desktop-device
    .nav-icon-only:hover
    .nav-hover-label,

    .atiqor-desktop-device
    .nav-icon-only:focus-visible
    .nav-hover-label,

    .atiqor-desktop-device
    .publish-icon-only:hover
    .nav-hover-label,

    .atiqor-desktop-device
    .publish-icon-only:focus-visible
    .nav-hover-label {

        opacity: 1 !important;
        visibility: visible !important;

        transform: translate(0, -50%) !important;
    }

    /* Botón Publicar */
    .atiqor-desktop-device .publish-icon-only {
        position: relative !important;

        width: 48px !important;
        height: 48px !important;

        min-width: 48px !important;
        min-height: 48px !important;

        margin: 9px auto 0 !important;

        padding: 0 !important;
        gap: 0 !important;

        border-radius: 14px !important;

        overflow: visible !important;
    }

    .atiqor-desktop-device .publish-letter {
        display: grid !important;
        place-items: center !important;

        width: 100% !important;
        height: 100% !important;

        font-size: .95rem !important;
        font-weight: 950 !important;
    }

    .atiqor-desktop-device .sidebar-section,
    .atiqor-desktop-device .sidebar-bottom {
        display: none !important;
    }

    /* Menús desplegables: Perfiles / Disciplinas */
    .atiqor-desktop-device .sidebar-flyout {
        position: absolute !important;

        left: 64px !important;

        z-index: 110 !important;

        width: 190px !important;

        padding: 10px !important;

        border: 1px solid rgba(255,255,255,.10) !important;
        border-radius: 14px !important;

        background: rgba(14,16,21,.98) !important;

        box-shadow: 0 18px 55px rgba(0,0,0,.42) !important;

        backdrop-filter: blur(18px) !important;
    }

    .atiqor-desktop-device .sidebar-flyout[hidden] {
        display: none !important;
    }

    .atiqor-desktop-device .sidebar-flyout:not([hidden]) {
        display: block !important;
    }

    .atiqor-desktop-device .sidebar-flyout-title {
        padding: 7px 9px 10px !important;

        color: var(--atq-gold,#F6B91A) !important;

        font-size: .69rem !important;
        font-weight: 900 !important;

        letter-spacing: .11em !important;
        text-transform: uppercase !important;
    }

    .atiqor-desktop-device .sidebar-flyout-item {
        display: flex !important;

        width: 100% !important;

        padding: 9px !important;

        border: 0 !important;
        border-radius: 9px !important;

        color: #f2f2f4 !important;
        background: transparent !important;

        text-align: left !important;

        font-size: .78rem !important;
        font-weight: 700 !important;
    }

    .atiqor-desktop-device .sidebar-flyout-item:hover {
        background: rgba(255,255,255,.07) !important;
    }

    /* En PC nunca usamos navegación inferior */
    .atiqor-desktop-device .mobile-nav {
        display: none !important;
    }

    /* ======================================================
       CONTENEDOR PRINCIPAL
       ====================================================== */

    .atiqor-desktop-device .feed-page {
        width: auto !important;
        height: 100vh !important;

        margin-left: var(--atiqor-sidebar-narrow) !important;
    }

    .atiqor-desktop-device .feed-topbar {
        left: var(--atiqor-sidebar-narrow) !important;
        right: 0 !important;
    }

    .atiqor-desktop-device .feed-stream {
        width: 100% !important;
    }

    .atiqor-desktop-device .post-slide {
        position: relative !important;

        width: 100% !important;

        padding-left: 8px !important;
        padding-right: 8px !important;

        display: flex !important;

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

    /* ======================================================
       AQUÍ ESTÁ LA CORRECCIÓN IMPORTANTE

       El layout reserva DOS columnas:
       1) foto/video
       2) botones derechos

       Los botones YA NO pueden salirse de la pantalla.
       ====================================================== */

    .atiqor-desktop-device .post-layout {
        position: relative !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            var(--atiqor-actions-narrow) !important;

        column-gap: var(--atiqor-layout-gap) !important;

        width: min(
            720px,
            86%
        ) !important;

        max-width: calc(
            100vw
            - var(--atiqor-sidebar-narrow)
            - 12px
        ) !important;

        height: auto !important;

        margin-left: auto !important;
        margin-right: auto !important;

        align-items: end !important;
    }

    /* ======================================================
       FOTO / VIDEO

       Ya NO usa casi todo el viewport.
       Se limita a su propia columna.
       ====================================================== */

    .atiqor-desktop-device .post-card,
    .atiqor-desktop-device .post-card.is-media-portrait,
    .atiqor-desktop-device .post-card.is-media-square,
    .atiqor-desktop-device .post-card.is-media-landscape {

        position: relative !important;
        inset: auto !important;

        grid-column: 1 !important;

        justify-self: end !important;

        flex: none !important;

        width: min(
            var(--adaptive-media-width, 445px),
            100%
        ) !important;

        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        aspect-ratio:
            var(--media-ratio, 9 / 16) !important;

        border-radius: 14px !important;

        overflow: hidden !important;

        background: #050609 !important;

        transition:
            width .12s ease,
            aspect-ratio .12s ease !important;
    }

    .atiqor-desktop-device
    .post-card.is-media-landscape {

        aspect-ratio:
            var(--media-ratio, 16 / 9) !important;
    }

    .atiqor-desktop-device
    .post-card.is-media-square {

        aspect-ratio:
            var(--media-ratio, 1 / 1) !important;
    }

    .atiqor-desktop-device .media-carousel,
    .atiqor-desktop-device .media-frame {

        width: 100% !important;
        height: 100% !important;

        max-width: 100% !important;
    }

    .atiqor-desktop-device
    .media-frame img,

    .atiqor-desktop-device
    .media-frame video {

        display: block !important;

        width: 100% !important;
        height: 100% !important;

        max-width: 100% !important;

        background: #050609 !important;
    }

    .atiqor-desktop-device
    .post-card.is-media-landscape
    .media-frame img,

    .atiqor-desktop-device
    .post-card.is-media-landscape
    .media-frame video,

    .atiqor-desktop-device
    .post-card.is-media-square
    .media-frame img,

    .atiqor-desktop-device
    .post-card.is-media-square
    .media-frame video {

        object-fit: contain !important;
    }

    .atiqor-desktop-device
    .post-card.is-media-portrait
    .media-frame img,

    .atiqor-desktop-device
    .post-card.is-media-portrait
    .media-frame video {

        object-fit: cover !important;
    }

    /* ======================================================
       COLUMNA DERECHA

       Tiene espacio propio y nunca desaparece.
       ====================================================== */

    .atiqor-desktop-device .post-actions {
        position: static !important;

        grid-column: 2 !important;

        align-self: end !important;
        justify-self: center !important;

        right: auto !important;
        bottom: auto !important;

        flex: none !important;

        width: var(--atiqor-actions-narrow) !important;
        min-width: var(--atiqor-actions-narrow) !important;

        padding: 0 0 6px !important;

        gap: 6px !important;

        overflow: visible !important;
    }

    .atiqor-desktop-device .profile-action {
        width: 40px !important;
        height: 40px !important;
    }

    .atiqor-desktop-device .action-icon {
        width: 38px !important;
        height: 38px !important;

        font-size: 1rem !important;
    }

    .atiqor-desktop-device .action-label {
        display: block !important;

        width: 44px !important;
        max-width: 44px !important;

        font-size: .50rem !important;
        line-height: 1.05 !important;

        text-align: center !important;
    }

    /* Texto dentro del contenido */
    .atiqor-desktop-device .post-copy {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
    }
}

/* En ventanas MUY angostas reducimos aún más,
   pero jamás eliminamos la columna derecha. */

@media (max-width: 560px) {

    html.atiqor-desktop-device {
        --atiqor-sidebar-narrow: 54px;
        --atiqor-actions-narrow: 40px;
        --atiqor-layout-gap: 4px;
    }

    .atiqor-desktop-device .sidebar {
        width: 54px !important;
    }

    .atiqor-desktop-device .brand.brand-mark {
        width: 54px !important;
    }

    .atiqor-desktop-device .nav-icon-only {
        width: 44px !important;
        min-width: 44px !important;
        min-height: 43px !important;
    }

    .atiqor-desktop-device .post-layout {
        width: 82% !important;

        max-width: calc(
            100vw
            - var(--atiqor-sidebar-narrow)
            - 8px
        ) !important;
    }

    .atiqor-desktop-device .profile-action {
        width: 37px !important;
        height: 37px !important;
    }

    .atiqor-desktop-device .action-icon {
        width: 35px !important;
        height: 35px !important;

        font-size: .94rem !important;
    }

    .atiqor-desktop-device .action-label {
        width: 40px !important;
        max-width: 40px !important;

        font-size: .47rem !important;
    }
}


/* ATIQOR_DESKTOP_FEED_TOP11_V5 */
@media (min-width: 980px) {

    .atiqor-desktop-device .post-layout {
        width: min(820px, calc(100vw - 100px)) !important;
        max-width: calc(100vw - 100px) !important;
        --adaptive-media-width: 560px;
    }

    .atiqor-desktop-device .post-card,
    .atiqor-desktop-device .post-card.is-media-portrait,
    .atiqor-desktop-device .post-card.is-media-square,
    .atiqor-desktop-device .post-card.is-media-landscape {
        width: min(560px, 100%) !important;
        max-width: 100% !important;
    }

    .atiqor-desktop-device .feed-topbar .atiqor-home-top11-v3 {
        right: max(16px, calc((100% - 820px) / 2)) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}