/* TikTok Style Layout - MyTube */

/* Reset e configura├º├Áes b├ísicas */
:root {
    /* Design Tokens - Layout */
    --header-px: 20px;
    --header-py: 10px;
    --header-btn-size: 40px;
    --video-inner-spacing: 15px;
    --video-inner-spacing-mobile: 12px;
    --safe-top: env(safe-area-inset-top, 0px);
    --header-total-height: calc(var(--header-btn-size) + (var(--header-py) * 2));
    
    /* Vari├íveis para c├ílculo de centraliza├º├úo do player */
    --player-max-height: 90vh;
    --player-max-height: 90dvh; /* fallback */
    --player-top-offset: calc((100vh - 90vh) / 2);
    --player-top-offset: calc((100dvh - var(--player-max-height)) / 2);
}

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

/* Prevenir overflow horizontal global */
html,
body,
#root,
#app {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

html,
body {
    height: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: #000;
    color: #fff;
    position: relative;
}

/* .boosted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #facc15;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
    backdrop-filter: blur(6px);
} */

.boosted-badge {
    font-size: 10px;
    color: #164cc0;
}


/* Esconder scrollbar mas manter funcionalidade */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Prevenir scroll horizontal em todos elementos */
body * {
    max-width: 100%;
}

/* Container principal do feed */
.tiktok-container {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Item individual do v├¡deo */
.video-item {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

/* Player de v├¡deo do feed ÔÇö imersivo full-bleed */
.video-player {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
    isolation: isolate;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    cursor: pointer;
}

/* V├¡deos horizontais (16:9 / grava├º├Áes de PC / gameplay): enquadramento total sem cortes (padr├úo TikTok) */
.video-item.video-is-horizontal .video-player video {
    object-fit: contain !important;
    background: #000;
}

/* Placeholder leve para v├¡deos fora da viewport (virtual scroll) */
.video-placeholder {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 2px;
}

/* Informa├º├Áes do v├¡deo sobrepostas na parte inferior */
.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 15px calc(15px + env(safe-area-inset-bottom, 0px)) 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    z-index: 3;
    border-radius: 0 0 20px 20px;
    pointer-events: none;
}

/* Row container para autor e bot├úo seguir */
.video-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.video-author-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    pointer-events: auto;
    cursor: pointer;
    width: fit-content;
}

.video-author-link:hover {
    opacity: 0.85;
}

.video-author-link:hover .video-author-name {
    text-decoration: underline;
}

/* Bot├úo de Seguir estilo Facebook (inline) */
.follow-btn-inline {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    white-space: nowrap;
}

.follow-btn-inline:hover {
    background: rgba(255, 255, 255, 0.25);
}

.follow-btn-inline:active {
    transform: scale(0.96);
}

.follow-btn-inline.following {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.follow-btn-inline.following:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.follow-btn-inline.loading {
    opacity: 0.6;
    pointer-events: none;
}

.video-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.video-author-name {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-author-name .verified-icon {
    color: #20d5ec;
    font-size: 14px;
}

.video-caption-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    pointer-events: auto;
}

.video-caption {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.video-caption .description-link {
    color: #93c5fd;
    text-decoration: underline;
    cursor: pointer;
    pointer-events: auto;
}

.video-caption .description-link:hover {
    color: #bfdbfe;
}

.caption-toggle-btn {
    align-self: flex-start;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
    /*     text-decoration: underline;
 */
    cursor: pointer;
    pointer-events: auto;
}

.caption-toggle-btn:hover {
    color: #ffffff;
}

.video-hashtags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    pointer-events: auto;
}

.video-hashtag-link {
    display: inline;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

.video-hashtag-link:hover {
    color: #93c5fd;
    background: none;
    text-decoration: underline;
}

/* Controles de v├¡deo - Alinhados no topo-direito do player */
.video-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    left: auto;
    z-index: 20;
}

.audio-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.85);
}

/* No desktop: o bot├úo surge apenas quando o rato passa por cima (hover) */
.video-player:hover .audio-toggle {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.audio-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.08) !important;
}

.audio-toggle.active {
    color: #fff;
}

.audio-toggle.active:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* No mobile: Minimalismo Total (Op├º├úo 3) - Sem bot├úo flutuante, volume gerido pelos bot├Áes f├¡sicos do telem├│vel */
@media (max-width: 768px) {
    .video-controls,
    .audio-toggle {
        display: none !important;
    }
}

/* Overlay para prompt de ├íudio */
.audio-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    border-radius: 12px;
}

.audio-prompt-content {
    text-align: center;
    color: white;
    padding: 30px;
}

.audio-prompt-content i {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.audio-prompt-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.audio-prompt-content p {
    font-size: 1rem;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Overlay com informa├º├Áes do v├¡deo */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box;
}

.video-info {
    margin-bottom: 10px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.avatar-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.avatar-link:hover .author-avatar {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.username-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
    pointer-events: auto;
}

.username-link:hover {
    color: #3b82f6;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.verified-badge {
    color: #3b82f6;
    font-size: 0.8rem;
}

.video-description,
.video-caption {
    font-size: 0.875rem;
    line-height: 1.45;
    letter-spacing: -0.005em;
    opacity: 0.95;
}

/* Bot├Áes de a├º├úo estilo TikTok - lado direito */
.action-buttons {
    position: absolute;
    right: 15px;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 3;
}

.action-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none !important;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    position: relative;
    padding: 8px;
    pointer-events: auto;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    min-width: unset !important;
}

.action-btn:focus,
.action-btn:active,
.action-btn:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.action-btn:hover {
    transform: scale(1.08);
    background: transparent !important;
    box-shadow: none !important;
}

.action-btn.liked {
    color: #ff3040;
    background: transparent !important;
}

.action-btn.following {
    background: transparent !important;
    color: #fff;
}

.action-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.action-btn.loading svg {
    animation: spin 1s linear infinite;
}

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

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

/* SVG icon styles - modern line icons */
.action-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease, filter 0.2s ease;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.action-btn.liked svg.icon-heart {
    fill: #ff3040;
    stroke: #ff3040;
    filter: drop-shadow(0 0 8px rgba(255, 48, 64, 0.6)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
    animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.action-btn:hover svg {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.follow-btn svg {
    width: 28px;
    height: 28px;
}

.delete-btn svg {
    width: 22px;
    height: 22px;
}

.action-count,
.like-count {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
    padding: 1px 0;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
}

/* Bot├úo de seguir especial */
.follow-btn {
    background: transparent !important;
    border: none !important;
    pointer-events: auto;
    color: #fff;
    box-shadow: none !important;
    min-width: unset !important;
    padding: 0 !important;
}

.follow-btn.following {
    background: transparent !important;
    color: #fff !important;
}

/* Esconder texto do bot├úo seguir lateral ÔÇö s├│ ├¡cone */
.follow-btn .action-count {
    display: none;
}

/* Centralizar ├¡cone no bot├úo seguir */
.follow-btn {
    padding: 0;
    justify-content: center;
    align-items: center;
}

.follow-btn svg {
    margin: 0;
    position: static;
}

/* Header fixo superior */
.tiktok-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 10;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    pointer-events: none;
    padding: var(--header-py) var(--header-px);
    padding-top: calc(var(--header-py) + var(--safe-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.tiktok-header > * {
    pointer-events: auto;
}

/* Header modo perfil */
.profile-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    flex: 1;
    margin-left: 10px;
}

.profile-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-header-text {
    display: flex;
    flex-direction: column;
}

.profile-header-name {
    font-weight: 600;
    font-size: 14px;
}

.profile-header-name .verified-badge {
    color: #3b82f6;
    font-size: 12px;
    margin-left: 4px;
}

.profile-header-videos {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.tiktok-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #3b82f6;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-btn {
    width: var(--header-btn-size);
    height: var(--header-btn-size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Foto de perfil no header */
.header-btn.profile-btn {
    padding: 0;
    overflow: visible;
    position: relative;
}

.header-profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Bot├úo de Chat e Badge */
.chat-btn {
    position: relative;
}

.chat-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b5c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #0f172a;
    animation: pulse-badge 2s infinite;
    z-index: 100;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Ponto vermelho de notifica├º├úo */
.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff3b5c;
    border-radius: 50%;
    border: 2px solid #111;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(255, 59, 92, 0);
    }
}

/* Container da barra de progresso interativa */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transition: height 0.15s ease;
    overflow: hidden;
}

.progress-container.scrubbing .progress-track {
    height: 6px;
}

/* Indicador de progresso do v├¡deo */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    max-width: 100%;
    height: 100%;
    background: #3b82f6;
    z-index: 4;
    box-sizing: border-box;
    transition: none;
}

.progress-container:not(.scrubbing) .progress-bar {
    transition: width 0.2s linear;
}

/* Tooltip de tempo */
.progress-time {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    font-variant-numeric: tabular-nums;
}

.progress-container.scrubbing .progress-time {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {

    /* Garantir sem overflow no mobile */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
        position: relative;
    }

    .video-player {
        max-width: 100%;
    }

    .action-buttons {
        right: 10px;
        bottom: calc(120px + env(safe-area-inset-bottom, 0px));
        gap: 15px;
    }

    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .video-overlay {
        padding: 15px;
    }

    .tiktok-header {
        padding: 8px 15px;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
    }
}

@media (max-width: 480px) {
    .action-buttons {
        right: 8px;
        bottom: calc(100px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    .action-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .video-overlay {
        padding: 12px;
    }

    .video-title {
        font-size: 0.9rem;
    }

    .author-name {
        font-size: 0.8rem;
    }
}

/* Loading estado */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.1rem;
    z-index: 5;
}

/* Anima├º├Áes */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.action-btn:active {
    animation: pulse 0.2s ease;
}

/* Estados especiais: Pausado manualmente pelo utilizador (Opção B: Glifo Puro em Azul MyTube) */
.video-item.paused:not(.buffering) .video-player::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: none;
    border-radius: 0;
    z-index: 10;
    opacity: 0.95;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M8 5.14v13.72a1 1 0 0 0 1.5.86l11-6.86a1 1 0 0 0 0-1.72l-11-6.86a1 1 0 0 0-1.5.86z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 56px 56px;
    pointer-events: none;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.95)) 
            drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) 
            drop-shadow(0 0 18px rgba(59, 130, 246, 0.45));
    animation: pausePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes pausePop {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.95;
    }
}

/* Buffering durante o scroll no feed: discreto e sem bloquear a vis├úo */
.video-item.buffering video {
    filter: brightness(0.8);
}
.video-item video {
    transition: filter 0.3s ease;
}

/* Estilo para usu├írios n├úo logados */
.empty-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    height: 100dvh;
    padding: 40px;
    color: #fff;
}

.empty-feed h3 {
    margin: 20px 0 10px;
    font-size: 1.5rem;
}

.empty-feed p {
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Menu de compartilhamento agora gerido pelo Bottom Sheet Universal em bottom-nav.css */
.share-menu {
    display: none !important;
}

/* Chat Share Modal */
.chat-share-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    justify-content: center;
    align-items: flex-end;
    backdrop-filter: blur(4px);
}

.chat-share-modal {
    background: #1a1a2e;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    animation: slideUpChat 0.3s ease;
}

@keyframes slideUpChat {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.chat-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-share-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.chat-share-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.chat-share-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.chat-share-search {
    width: calc(100% - 40px);
    margin: 12px 20px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-share-search::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.chat-share-search:focus {
    border-color: #3b82f6;
}

.chat-share-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px 12px 20px;
}

.chat-share-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 12px;
}

.chat-share-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.chat-share-item:active {
    background: rgba(254, 44, 85, 0.15);
}

.chat-share-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.chat-share-info {
    flex: 1;
    min-width: 0;
}

.chat-share-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-share-username {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    margin-top: 2px;
}

.chat-share-send-icon {
    color: #fe2c55;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.chat-share-item:hover .chat-share-send-icon {
    opacity: 1;
}

.chat-share-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.chat-share-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.chat-share-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.spinner-small {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fe2c55;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Bot├úo de a├º├úo especial para seguir */
.follow-btn {
    background: linear-gradient(135deg, #ff3040, #ff6b35) !important;
}

.follow-btn.following {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Melhorias para touch devices */
@media (hover: none) and (pointer: coarse) {
    .action-btn:hover {
        transform: none;
        background: transparent !important;
    }

    .action-btn:active {
        transform: scale(0.95);
    }
}

/* Preven├º├úo de sele├º├úo de texto em elementos interativos */
.video-player,
.action-buttons,
.tiktok-header {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading spinner */
.video-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Melhorias espec├¡ficas para contadores em mobile */
@media (max-width: 768px) {

    .action-count,
    .like-count {
        font-size: 0.7rem;
        font-weight: 900;
        padding: 1px 0;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
    }

    .action-buttons {
        gap: 18px;
        bottom: 110px;
        right: 12px;
    }

    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        padding: 6px;
    }
}

/* ========== MODAL DE PESQUISA ========== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 12px;
    gap: 10px;
}

.search-input-wrapper .search-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
    padding: 10px 0;
}

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

.search-clear {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.search-cancel {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    white-space: nowrap;
}

.search-cancel:hover {
    opacity: 0.8;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.search-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.4);
    gap: 12px;
}

.search-placeholder i {
    font-size: 48px;
}

.search-placeholder p {
    font-size: 14px;
}

/* Resultados da pesquisa */
.search-section {
    margin-bottom: 24px;
}

.search-section-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-hashtag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-hashtag:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-hashtag-name {
    font-size: 14px;
    font-weight: 600;
    color: #dbeafe;
}

.search-result-hashtag-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-result-name .verified-icon {
    color: #20d5ec;
    font-size: 12px;
}

.search-result-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* Resultado de v├¡deo */
.search-result-video {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-video:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-thumbnail {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    background: #222;
}

.search-result-video-info {
    flex: 1;
    min-width: 0;
}

.search-result-video-title {
    font-weight: 600;
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-video-author {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.search-result-video-stats {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.search-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.search-no-results {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* ========== HIST├ôRICO DE PESQUISA ========== */
.search-history-container {
    animation: fadeInHistory 0.2s ease-out;
}

@keyframes fadeInHistory {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.search-history-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.search-history-clear-all {
    background: transparent;
    border: none;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
}

.search-history-clear-all:hover {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
}

.search-history-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s;
    position: relative;
    animation: slideInHistoryItem 0.18s ease-out both;
}

@keyframes slideInHistoryItem {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.search-history-item:nth-child(1) { animation-delay: 0ms; }
.search-history-item:nth-child(2) { animation-delay: 30ms; }
.search-history-item:nth-child(3) { animation-delay: 60ms; }
.search-history-item:nth-child(4) { animation-delay: 90ms; }
.search-history-item:nth-child(5) { animation-delay: 120ms; }
.search-history-item:nth-child(6) { animation-delay: 150ms; }
.search-history-item:nth-child(7) { animation-delay: 180ms; }
.search-history-item:nth-child(8) { animation-delay: 210ms; }

.search-history-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.search-history-item:active {
    background: rgba(255, 255, 255, 0.12);
}

.search-history-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: background 0.18s, color 0.18s;
}

.search-history-item:hover .search-history-icon {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.search-history-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-history-query {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-history-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.search-history-remove {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s, background 0.18s, color 0.18s;
}

.search-history-item:hover .search-history-remove {
    opacity: 1;
}

.search-history-remove:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.search-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.3);
    gap: 10px;
    text-align: center;
}

.search-history-empty i {
    font-size: 40px;
    opacity: 0.4;
}

.search-history-empty p {
    font-size: 13px;
    margin: 0;
}

/* Trending / Sugest├Áes r├ípidas */
.search-trending {
    margin-top: 8px;
}

.search-trending-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.search-trending-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 4px;
}

.search-trending-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
    user-select: none;
}

.search-trending-chip:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    transform: translateY(-1px);
}

.search-trending-chip i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.search-trending-chip:hover i {
    color: #60a5fa;
}

/* Divisor entre hist├│rico e trending */
.search-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 16px 0;
}

@media (max-width: 768px) {
    .search-modal-content {
        max-width: 100%;
    }

    .search-header {
        padding: 10px 12px;
    }

    .search-history-remove {
        opacity: 1;
    }
}

/* Desktop: header totalmente transparente + v├¡deo sem cortes */
@media (min-width: 769px) {
    .tiktok-header {
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        pointer-events: none;
    }

    .tiktok-header .tiktok-logo,
    .tiktok-header .header-actions,
    .tiktok-header .header-btn,
    .tiktok-header .profile-header-info,
    .tiktok-header a,
    .tiktok-header button {
        pointer-events: auto;
    }

    /* ===== Bot├Áes de Navega├º├úo Desktop (estilo Facebook) ===== */
    .desktop-nav-buttons {
        position: fixed;
        right: 80px;
        /* Afastado dos bot├Áes de a├º├úo */
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 50;
    }

    /* ===== Layout de Bot├Áes Estilo Facebook ===== */
    .action-buttons {
        right: auto;
        left: calc(50% + min(calc(90vh * 9 / 16 / 2), 50%) + 15px);
        bottom: 40px;
        /* Alinhado com a parte inferior */
        transform: none;
        gap: 15px;
        background: transparent;
        padding: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
    }

    .action-btn {
        width: 60px;
        height: auto;
        margin: 0;
        padding: 5px 0;
    }

    .action-btn svg {
        width: 28px;
        height: 28px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    }

    .action-count,
    .like-count {
        font-size: 0.85rem;
        margin-top: 4px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .desktop-nav-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff;
        font-size: 1.1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .desktop-nav-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .desktop-nav-btn:active {
        transform: scale(0.95);
    }

    .desktop-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        transform: none !important;
    }

    .desktop-nav-btn:disabled:hover {
        background: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    /* ===== Layout quando coment├írios est├úo abertos ===== */
    .tiktok-container {
        transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.comments-open .tiktok-container {
        margin-right: 400px;
    }

    body.comments-open .desktop-nav-buttons {
        /* C├ílculo ultra-preciso: Centro entre os bot├Áes de a├º├úo e a barra de coment├írios */
        right: calc(200px + 25% - (min(calc(90vh * 9 / 16), 100%) / 4) - 38px);
    }

    body.comments-open .tiktok-header {
        right: 400px;
    }
}

/* Esconder bot├Áes no mobile */
@media (max-width: 768px) {
    .desktop-nav-buttons {
        display: none !important;
    }
}

/* ====================================================
   RANKING BADGE ÔÇö Badge de escola e pontos no feed
   ==================================================== */

.ranking-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.35); /* --secondary-blue with opacity */
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.25s ease;
    width: fit-content;
    /* subtle blue glow */
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    margin-top: 4px;
    /* prevent layout overflow */
    max-width: calc(100% - 16px);
    overflow: hidden;
}

.ranking-badge:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.ranking-badge:active {
    transform: translateY(0);
    box-shadow: none;
}

.ranking-badge-icon {
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

.ranking-badge-text {
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa; /* --light-blue */
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Anima├º├úo de pulso quando o usu├írio acaba de curtir */
.ranking-badge.pulse-once {
    animation: rankBadgePulse 0.5s ease;
}

@keyframes rankBadgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); border-color: rgba(59, 130, 246, 0.9); }
    50%  { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); border-color: rgba(59, 130, 246, 0.35); }
}


/* ====================================================
   FLOATING SCORE ÔÇö Micro-intera├º├úo de pontos flutuantes
   ==================================================== */

.floating-score {
    position: fixed;
    /* Ser├í posicionado via JS sobre o bot├úo clicado */
    z-index: 999999;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    /* Blue gradient matching site colors */
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45), 0 1px 4px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    /* Animation */
    animation: floatScoreUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* For comment reactions ÔÇö cyan variant */
.floating-score.comment-score {
/*     background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
       box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4), 0 1px 4px rgba(0,0,0,0.3);
    */
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45), 0 1px 4px rgba(0,0,0,0.3);
}

@keyframes floatScoreUp {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.7);
    }
    15% {
        opacity: 1;
        transform: translateY(-8px) scale(1.05);
    }
    40% {
        opacity: 1;
        transform: translateY(-24px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.9);
    }
}

/* =============================================
   MENU DE 3 PONTOS (Ôï») ÔÇö MORE BUTTON
   ============================================= */

.more-btn {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1;
}

/* Wrapper para posicionamento relativo do menu */
.more-btn-wrapper {
    position: relative;
}

/* Dropdown do menu de 3 pontos */
.more-menu {
    position: absolute;
    right: calc(100% + 10px);
    bottom: 0;
    min-width: 200px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92) translateY(8px);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.more-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
    font-family: inherit;
}

.more-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.more-menu-item:active {
    background: rgba(255, 255, 255, 0.15);
}

.more-menu-item svg,
.more-menu-item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
}

.more-menu-item.danger {
    color: #ff4d4d;
}

.more-menu-item.danger:hover {
    background: rgba(255, 77, 77, 0.12);
}

.more-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* Overlay invis├¡vel para fechar o menu ao clicar fora */
.more-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    display: none;
}

.more-menu-overlay.active {
    display: block;
}

/* =============================================
   MODAL DE DEN├ÜNCIA
   ============================================= */

.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.report-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.report-modal {
    width: 100%;
    max-width: 480px;
    background: #1a1a2e;
    border-radius: 24px 24px 0 0;
    padding: 0 0 env(safe-area-inset-bottom, 20px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.report-modal-overlay.active .report-modal {
    transform: translateY(0);
}

.report-modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin: 12px auto 0;
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.report-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s;
}

.report-modal-close:hover {
    color: #fff;
}

.report-modal-subtitle {
    padding: 12px 20px 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.report-reasons {
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-reason-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.report-reason-label:hover {
    background: rgba(255, 255, 255, 0.07);
}

.report-reason-label input[type="radio"] {
    accent-color: #ff3b5c;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.report-reason-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.report-reason-text {
    flex: 1;
}

.report-submit-btn {
    margin: 4px 20px 20px;
    width: calc(100% - 40px);
    padding: 14px;
    background: linear-gradient(135deg, #ff3b5c, #c0392b);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    font-family: inherit;
}

.report-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.report-submit-btn:active {
    transform: translateY(0);
}

.report-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Toast de feedback (sucesso/erro) */
.report-toast {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    z-index: 20000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.report-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.report-toast.success {
    border-color: rgba(52, 211, 153, 0.4);
    color: #34d399;
}

.report-toast.error {
    border-color: rgba(255, 77, 77, 0.4);
    color: #ff6b6b;
}
