/* UPDATE: home limpa + submenu clicável + feed autoplay */

.dropdown {
    position: relative;
    z-index: 9999;
}

.dropdown-content {
    top: 44px !important;
    right: 0;
    z-index: 10000 !important;
    pointer-events: auto;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block !important;
}

.dropdown-content:hover {
    display: block !important;
}

.home-topbar {
    z-index: 9998 !important;
}

.home-only {
    min-height: 100vh;
    overflow: hidden;
}

.home-only .feed,
.home-only .global-player,
.home-only .comments-panel {
    display: none !important;
}

.feed-page {
    background: #000;
    overflow: hidden;
}

.feed-page .welcome-screen {
    display: none !important;
}

.feed-page .feed {
    display: block;
}

.feed-card.is-visible .main-play {
    box-shadow: 0 0 0 4px rgba(255,47,195,.18), 0 20px 50px rgba(255,47,195,.35);
}

.feed-card.is-visible::after {
    content: 'TOCANDO AGORA';
    position: absolute;
    left: 18px;
    top: 136px;
    z-index: 4;
    background: #ff0033;
    color: white;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .5px;
}


/* HOME PÚBLICA - v12 */
.public-home {
    min-height: 100vh;
    background: #000;
}
.public-home::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: var(--homeHeroBg, radial-gradient(circle at 50% 18%, rgba(255,61,200,.22), transparent 32%), radial-gradient(circle at 80% 70%, rgba(123,44,255,.22), transparent 34%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.public-home::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,.44), rgba(0,0,0,.76) 58%, #000 100%);
}
.public-home .welcome-screen {
    min-height: 100vh;
    padding: 110px 18px 112px;
    display: grid;
    place-items: center;
}
.public-home .welcome-card,
.public-home .public-welcome-card {
    width: min(560px, 100%);
    display: block;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.public-home .welcome-copy,
.public-home .public-welcome-copy {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 clamp(18px, 7vw, 52px) !important;
    position: relative;
}
.public-home .welcome-copy::before,
.public-home .public-welcome-copy::before {
    content: "";
    position: absolute;
    inset: -28px 0;
    background-image: var(--homeHeroBg);
    background-size: cover;
    background-position: center;
    opacity: .38;
    z-index: -1;
    display: block;
}
.public-home:not([style*="homeHeroBg"]) .welcome-copy::before,
.public-home:not([style*="homeHeroBg"]) .public-welcome-copy::before {
    display: none;
}
.public-home .signup-panel {
    display: none !important;
}
.public-home .welcome-copy h1 {
    font-size: clamp(42px, 11vw, 78px);
    line-height: .92;
    letter-spacing: -2px;
    margin: 24px 0 18px;
    text-shadow: 0 8px 30px rgba(0,0,0,.55);
}
.public-home .welcome-copy p {
    max-width: 420px;
    color: rgba(255,255,255,.86);
    font-size: clamp(19px, 4.8vw, 28px);
    line-height: 1.45;
    text-shadow: 0 4px 18px rgba(0,0,0,.55);
}
.public-home .cta-row {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.public-home .cta-primary,
.public-home .cta-secondary {
    min-width: 230px;
    text-align: center;
    padding: 16px 24px;
}
.public-home .bottom-menu.home-bottom-menu a:last-child span {
    font-weight: 900;
}
@media (min-width: 901px) {
    .public-home .welcome-screen {
        padding-left: 120px;
    }
}
@media (max-width: 560px) {
    .public-home .welcome-screen {
        align-items: center;
    }
    .public-home .welcome-copy,
    .public-home .public-welcome-copy {
        min-height: 64vh;
    }
    .public-home .cta-primary,
    .public-home .cta-secondary {
        width: min(330px, 100%);
    }
}

/* Feed público: convite para comentar quando visitante */
.tiktok-comment-login {
    display: flex;
    gap: 10px;
    padding: 14px 0 4px;
}
.tiktok-comment-login a {
    flex: 1;
    text-align: center;
    border-radius: 999px;
    padding: 13px 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(135deg,#ff3dc8,#7b2cff);
}
.tiktok-comment-login a + a {
    background: rgba(0,0,0,.12);
    color: #111;
    border: 1px solid rgba(0,0,0,.12);
}

/* HOME PÚBLICA - v13 imagem DJ + botões centralizados */
.public-home::before {
    background-image:
        radial-gradient(circle at 50% 52%, rgba(255, 47, 195, .30) 0%, rgba(123, 44, 255, .22) 28%, rgba(0,0,0,.08) 48%, rgba(0,0,0,.72) 100%),
        var(--homeHeroBg, url('../img/home-dj-bg.jfif')) !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}
.public-home::after {
    background:
        linear-gradient(135deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.54) 28%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.78) 78%, rgba(0,0,0,.96) 100%),
        radial-gradient(circle at 100% 0%, rgba(0,0,0,.98) 0%, rgba(0,0,0,.68) 24%, rgba(0,0,0,0) 52%),
        radial-gradient(circle at 0% 100%, rgba(0,0,0,.98) 0%, rgba(0,0,0,.70) 28%, rgba(0,0,0,0) 56%),
        radial-gradient(circle at 52% 55%, rgba(255, 47, 195, .22), rgba(123, 44, 255, .16) 34%, rgba(0,0,0,.34) 68%) !important;
}
.public-home .welcome-card,
.public-home .public-welcome-card,
.public-home .welcome-copy,
.public-home .public-welcome-copy {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.public-home .welcome-copy::before,
.public-home .public-welcome-copy::before {
    display: none !important;
}
.public-home .welcome-copy .logo-placeholder,
.public-home .public-welcome-copy .logo-placeholder,
.public-home .welcome-copy > .app-logo-img,
.public-home .public-welcome-copy > .app-logo-img {
    display: none !important;
}
.public-home .welcome-copy,
.public-home .public-welcome-copy {
    align-items: center !important;
    text-align: center !important;
    min-height: calc(100vh - 220px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.public-home .welcome-copy h1 {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}
.public-home .welcome-copy p {
    margin-left: auto !important;
    margin-right: auto !important;
}
.public-home .cta-row {
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}
.public-home .cta-primary,
.public-home .cta-secondary {
    width: min(330px, 86vw) !important;
    min-width: 0 !important;
}
.public-home .signup-panel,
.public-home .home-extra,
.public-home .home-secondary,
.public-home .discover-panel {
    display: none !important;
}
@media (min-width: 901px) {
    .public-home .welcome-screen {
        padding-left: 18px !important;
    }
}
