:root {
    --preto: #050208;
    --preto-2: #09040f;
    --painel: #0d0715;
    --painel-2: #120a1c;
    --roxo: #9b5cff;
    --roxo-claro: #c9a4ff;
    --roxo-escuro: #5c2999;
    --branco: #f7f2ff;
    --cinza: #aaa0b8;
    --cinza-escuro: #6f6679;
    --borda: rgba(155, 92, 255, 0.17);
    --borda-forte: rgba(155, 92, 255, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--preto);
    color: var(--branco);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

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

.page-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 15% 10%, rgba(126, 62, 190, 0.14), transparent 32%),
        radial-gradient(circle at 85% 70%, rgba(95, 46, 145, 0.12), transparent 34%),
        linear-gradient(145deg, #050208 0%, #08040d 45%, #050208 100%);
}

.page-background::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.4) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,.25) 0 1px, transparent 1px);
    background-size: 160px 160px, 230px 230px;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(5, 2, 8, 0.72);
    border-bottom: 1px solid rgba(155, 92, 255, 0.1);
    backdrop-filter: blur(16px);
}

.topbar-brand {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.topbar-brand span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.topbar-brand small {
    color: var(--roxo-claro);
    font-size: 9px;
    letter-spacing: 0.3em;
}

.menu-button {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--borda);
    border-radius: 12px;
    background: rgba(18, 10, 28, 0.82);
    color: var(--branco);
    font-size: 21px;
    cursor: pointer;
    transition: .2s ease;
}

.menu-button:hover {
    border-color: var(--borda-forte);
    color: var(--roxo-claro);
    transform: translateY(-1px);
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 200;
    width: 330px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
    background:
        linear-gradient(180deg, rgba(18, 10, 28, .99), rgba(6, 3, 10, .99));
    border-left: 1px solid var(--borda);
    box-shadow: -20px 0 70px rgba(0, 0, 0, .45);
    transform: translateX(100%);
    transition: transform .3s ease;
}

.sidebar.ativo {
    transform: translateX(0);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .25s ease;
    backdrop-filter: blur(3px);
}

.menu-overlay.ativo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sidebar-header > div {
    display: flex;
    flex-direction: column;
}

.sidebar-eyebrow {
    color: var(--roxo-claro);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .22em;
}

.sidebar-header strong {
    margin-top: 4px;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 600;
}

.close-menu {
    width: 38px;
    height: 38px;
    border: 1px solid var(--borda);
    border-radius: 10px;
    background: transparent;
    color: var(--cinza);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}

.close-menu:hover {
    color: var(--branco);
    border-color: var(--borda-forte);
}

.menu-profile {
    margin-bottom: 22px;
}

.menu-profile-logged {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--borda);
    border-radius: 15px;
    background: rgba(155, 92, 255, .05);
}

.menu-profile-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--borda-forte);
    border-radius: 50%;
    background: #160c22;
    color: var(--cinza);
    font-size: 20px;
}

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

.menu-profile-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.menu-profile-info strong {
    overflow: hidden;
    color: var(--branco);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-profile-info span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--roxo-claro);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-profile-visitor {
    padding: 15px;
    border: 1px solid var(--borda);
    border-radius: 15px;
    background: rgba(155, 92, 255, .04);
}

.menu-profile-visitor > div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.visitor-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(155, 92, 255, .1);
    color: var(--roxo-claro);
}

.menu-profile-visitor strong {
    font-size: 13px;
}

.menu-profile-visitor span {
    margin-top: 4px;
    color: var(--cinza);
    font-size: 11px;
    line-height: 1.5;
}

.visitor-login {
    display: inline-flex;
    margin-top: 13px;
    padding: 8px 13px;
    border-radius: 9px;
    background: var(--roxo);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: .2s ease;
}

.visitor-login:hover {
    background: var(--roxo-claro);
    color: #170d21;
}

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

.sidebar-link {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--cinza);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.sidebar-link:hover,
.sidebar-link.ativo {
    border-color: var(--borda);
    background: rgba(155, 92, 255, .07);
    color: var(--branco);
}

.sidebar-link.ativo .sidebar-icon {
    color: var(--roxo-claro);
}

.sidebar-icon {
    width: 22px;
    color: var(--cinza-escuro);
    font-size: 17px;
    text-align: center;
}

.sidebar-divider {
    width: 100%;
    height: 1px;
    margin: auto 0 18px;
    background: var(--borda);
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 4px;
}

.sidebar-bottom span {
    color: var(--roxo-claro);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
}

.sidebar-bottom small {
    color: var(--cinza-escuro);
    font-size: 10px;
}

.main-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 74px;
}

.hero {
    position: relative;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-eyebrow {
    color: var(--roxo-claro);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .38em;
}

.hero h1 {
    margin-top: 15px;
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 7vw, 82px);
    font-weight: 600;
    line-height: .95;
    letter-spacing: -.03em;
}

.hero p {
    margin-top: 18px;
    color: var(--cinza);
    font-family: "Caveat", cursive;
    font-size: 26px;
}

.hero-line {
    width: 95px;
    height: 1px;
    margin-top: 28px;
    background: linear-gradient(90deg, transparent, var(--roxo), transparent);
}

.hero-decoration {
    position: absolute;
    color: rgba(201, 164, 255, .3);
    font-size: 23px;
}

.hero-decoration-1 {
    top: 26%;
    left: 14%;
}

.hero-decoration-2 {
    right: 16%;
    bottom: 25%;
    font-size: 17px;
}

.feed-section {
    padding: 25px 0 90px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-kicker {
    color: var(--roxo-claro);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .28em;
}

.section-heading h2 {
    margin-top: 6px;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 600;
}

.feed-counter {
    color: var(--cinza-escuro);
    font-size: 11px;
}

.feed-artistas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.artista-card {
    overflow: hidden;
    border: 1px solid var(--borda);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 10, 28, .92), rgba(8, 4, 13, .96));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    transition: border-color .25s ease, transform .25s ease;
}

.artista-card:hover {
    border-color: var(--borda-forte);
    transform: translateY(-3px);
}

.post-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 18px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.author-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    overflow: hidden;
    border: 1px solid var(--borda-forte);
    border-radius: 50%;
    background: #170b21;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    min-width: 0;
}

.author-info strong {
    display: block;
    overflow: hidden;
    color: var(--branco);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin-top: 3px;
    color: var(--cinza);
    font-size: 10px;
}

.author-meta .username {
    color: var(--roxo-claro);
}

.author-badge {
    padding: 2px 6px;
    border: 1px solid var(--borda);
    border-radius: 20px;
    background: rgba(155, 92, 255, .08);
    color: var(--roxo-claro);
}

.post-date {
    flex-shrink: 0;
    color: var(--cinza-escuro);
    font-size: 9px;
}

.post-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #07030b;
    cursor: zoom-in;
}

.post-image {
    display: block;
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    transition: transform .35s ease;
}

.post-image-wrap:hover .post-image {
    transform: scale(1.015);
}

.winner-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 7px 10px;
    border: 1px solid rgba(201, 164, 255, .4);
    border-radius: 8px;
    background: rgba(10, 5, 15, .78);
    color: var(--roxo-claro);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    backdrop-filter: blur(8px);
}

.post-content {
    padding: 16px 18px 18px;
}

.post-title {
    color: var(--branco);
    font-family: "Playfair Display", serif;
    font-size: 19px;
    font-weight: 600;
}

.post-description {
    margin-top: 6px;
    color: var(--cinza);
    font-size: 12px;
    line-height: 1.6;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--borda);
    border-radius: 9px;
    background: rgba(155, 92, 255, .04);
    color: var(--cinza);
    font-size: 11px;
    cursor: pointer;
    transition: .2s ease;
}

.like-button:hover {
    border-color: var(--borda-forte);
    color: var(--roxo-claro);
}

.like-button.curtiu {
    border-color: rgba(201, 164, 255, .45);
    background: rgba(155, 92, 255, .13);
    color: var(--roxo-claro);
}

.like-button.bloqueado {
    cursor: not-allowed;
}

.like-icon {
    font-size: 15px;
}

.login-hint {
    color: var(--cinza-escuro);
    font-size: 9px;
}

/* ================================
   POEMA
================================ */
.poema-card {
    min-width: 0;
    cursor: default;
}

.poema-card .post-content {
    padding: 16px 18px 18px;
    cursor: default;
}

.poema-text {
    height: 300px;
    overflow-y: auto;
    padding-right: 8px;
    color: var(--branco);
    font-family: "Caveat", cursive;
    font-size: 25px;
    line-height: 1.55;
    white-space: pre-line;
    cursor: text;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--roxo-escuro) transparent;
}

.poema-text::-webkit-scrollbar {
    width: 5px;
}

.poema-text::-webkit-scrollbar-track {
    background: transparent;
}

.poema-text::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--roxo-escuro);
}

.poema-signature {
    margin-top: 14px;
    color: var(--roxo-claro);
    font-family: "Caveat", cursive;
    font-size: 19px;
}

.empty-feed {
    padding: 70px 20px;
    border: 1px dashed var(--borda);
    border-radius: 18px;
    text-align: center;
}
.empty-icon {
    color: var(--roxo-claro);
    font-size: 28px;
}

.empty-feed h3 {
    margin-top: 12px;
    font-family: "Playfair Display", serif;
    font-size: 22px;
}

.empty-feed p {
    margin-top: 6px;
    color: var(--cinza);
    font-size: 12px;
}

.invite-section {
    position: relative;
    max-width: 760px;
    margin: 0 auto 100px;
    padding: 55px 35px;
    overflow: hidden;
    border: 1px solid var(--borda);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(18, 10, 28, .9), rgba(8, 4, 13, .92));
    text-align: center;
}

.invite-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(155, 92, 255, .14);
    filter: blur(60px);
}

.invite-kicker {
    position: relative;
    color: var(--roxo-claro);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .3em;
}

.invite-section h2 {
    position: relative;
    margin-top: 11px;
    font-family: "Playfair Display", serif;
    font-size: 31px;
}

.invite-section p {
    position: relative;
    max-width: 540px;
    margin: 12px auto 0;
    color: var(--cinza);
    font-size: 12px;
    line-height: 1.7;
}

.invite-button {
    position: relative;
    display: inline-flex;
    margin-top: 23px;
    padding: 10px 17px;
    border: 1px solid var(--borda-forte);
    border-radius: 9px;
    color: var(--roxo-claro);
    font-size: 11px;
    font-weight: 700;
    transition: .2s ease;
}

.invite-button:hover {
    background: rgba(155, 92, 255, .1);
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 30px 20px 45px;
    border-top: 1px solid rgba(155, 92, 255, .08);
}

.footer span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .22em;
}

.footer small {
    color: var(--cinza-escuro);
    font-size: 8px;
    letter-spacing: .18em;
}

/* ================================
   ZOOM DAS IMAGENS
================================ */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    backdrop-filter: blur(10px);
}

.image-lightbox.ativo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-lightbox img {
    display: block;
    max-width: 94vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .7);
    transform: scale(.94);
    transition: transform .3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.image-lightbox.ativo img {
    transform: scale(1);
}

.image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(10, 5, 15, .7);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.image-lightbox-close:hover {
    border-color: var(--borda-forte);
    color: var(--roxo-claro);
}

/* ================================
   TABLET
================================ */

@media (max-width: 860px) {
    .feed-artistas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .post-top {
        padding: 14px;
    }

    .post-content {
        padding: 14px;
    }

    .post-title {
        font-size: 17px;
    }
}

/* ================================
   CELULAR
================================ */

@media (max-width: 600px) {
    .topbar {
        height: 64px;
        padding: 0 17px;
    }

    .main-content {
        width: calc(100% - 18px);
        padding-top: 64px;
    }

    .sidebar {
        width: min(330px, 88vw);
    }

    .hero {
        min-height: 360px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 23px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .feed-artistas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .artista-card {
        border-radius: 13px;
    }

    .post-top {
        padding: 10px;
        gap: 7px;
    }

    .post-author {
        gap: 7px;
    }

    .author-avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .author-info strong {
        font-size: 10px;
    }

    .author-meta {
        gap: 3px 5px;
        margin-top: 2px;
        font-size: 8px;
    }

    .author-badge {
        padding: 1px 4px;
    }

    .post-date {
        display: none;
    }

    .post-image-wrap {
        border-radius: 0;
    }

    .post-image {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
    }

    .winner-badge {
        top: 7px;
        left: 7px;
        padding: 5px 6px;
        border-radius: 6px;
        font-size: 7px;
    }

    .post-content {
        padding: 10px;
    }

    .post-title {
        font-size: 14px;
    }

    .post-description {
        margin-top: 4px;
        font-size: 9px;
        line-height: 1.45;
    }

    .post-actions {
        margin-top: 9px;
        gap: 5px;
    }

    .like-button {
        gap: 4px;
        padding: 6px 7px;
        border-radius: 7px;
        font-size: 9px;
    }

    .like-icon {
        font-size: 12px;
    }

    .login-hint {
        font-size: 7px;
    }

    /* POEMA NO CELULAR */

    .poema-card {
        grid-column: span 1;
    }

    .poema-card .post-content {
        padding: 10px;
    }

    .poema-text {
        height: 220px;
        max-height: 220px;
        overflow-y: auto;
        padding-right: 6px;
        font-size: 19px;
        line-height: 1.45;
    }

    .poema-signature {
        margin-top: 10px;
        font-size: 16px;
    }

    /* LIGHTBOX NO CELULAR */

    .image-lightbox {
        padding: 10px;
    }

    .image-lightbox img {
        max-width: 96vw;
        max-height: 88vh;
        border-radius: 5px;
    }

    .image-lightbox-close {
        top: 12px;
        right: 12px;
        width: 39px;
        height: 39px;
        font-size: 22px;
    }
}

/* ================================
   TELAS MUITO PEQUENAS
================================ */

@media (max-width: 380px) {
    .feed-artistas {
        gap: 7px;
    }

    .artista-card {
        border-radius: 11px;
    }

    .post-top {
        padding: 8px;
    }

    .author-avatar {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .author-info strong {
        font-size: 9px;
    }

    .author-meta {
        font-size: 7px;
    }

    .post-content {
        padding: 8px;
    }

    .post-title {
        font-size: 12px;
    }

    .post-description {
        font-size: 8px;
    }

    .like-button {
        font-size: 8px;
        padding: 5px 6px;
    }
}