.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feed-card {
    background: var(--bs-body-bg, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--bs-border-color, #e9ecef);
    position: relative;
}

[data-bs-theme="dark"] .feed-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-border-color, #495057);
    background: var(--bs-body-bg, #212529);
}

.feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .feed-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.feed-card {
    animation: fadeInUp 0.5s ease forwards;
}

.feed-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.feed-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Card Image Compacta */
.card-image-compact {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feed-card:hover .card-image-compact img {
    transform: scale(1.05);
}

/* Badge Compacto */
.card-badge-compact {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--bs-primary);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Content Compacto */
.card-content-compact {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header-compact {
    margin-bottom: 0.75rem;
}

.card-title-compact {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-gray-900, #212529);
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-bs-theme="dark"] .card-title-compact {
    color: var(--bs-gray-100, #f8f9fa);
}

/* Creator Info Compacto */
.creator-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

[data-bs-theme="dark"] .creator-compact {
    border-bottom-color: var(--bs-border-color-translucent, rgba(255, 255, 255, 0.1));
}

.creator-avatar-compact {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--bs-primary, #0d6efd);
    padding: 1px;
}

.creator-avatar-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.creator-info-compact {
    flex: 1;
}

.creator-name-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--bs-gray-800, #343a40);
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
}

[data-bs-theme="dark"] .creator-name-compact {
    color: #e9ecef;
}

.ki-verify.fs-6,
.ki-verify.fs-7 {
    line-height: 1;
}

.post-time-compact {
    font-size: 0.75rem;
    color: var(--bs-gray-500, #adb5bd);
}

/* Stats Compactos */
.stats-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* ===============================
   ENGAGEMENT COMPACT (LIKE / PLAYS / SHARE)
   =============================== */

.engagement-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Remove fundo e sombra dos botões Bootstrap */
.engagement-compact .btn {
    background: transparent !important;
    box-shadow: none !important;
    border: none;
    padding: 4px 8px;
}

/* ===============================
   LIKE BUTTON
   =============================== */

.like-btn {
    transition: transform 0.2s ease, background-color 0.2s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.like-btn:hover {
    transform: scale(1.1);
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.like-btn.liked {
    animation: like-pop 0.3s ease;
}

.like-btn.liked:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
}

.like-btn.loading {
    cursor: wait;
    opacity: 0.7;
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ícone do coração */
.like-btn .fa-heart {
    transition: color 0.2s ease, transform 0.2s ease;
    color: #6c757d;
}

.like-btn.liked .fa-heart {
    color: #dc3545 !important;
}

/* Spinner */
.like-btn .fa-spinner {
    color: #6c757d;
    animation: fa-spin 1s infinite linear;
}

/* Contador de likes */
.like-count {
    font-size: 0.85rem;
    margin-left: 4px;
    font-weight: 500;
    min-width: 20px;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Animação de pop */
@keyframes like-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Animação heartbeat quando muitos likes */
.like-btn.liked.with-many-likes .fa-heart {
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    5%   { transform: scale(1.1); }
    10%  { transform: scale(1); }
    15%  { transform: scale(1.1); }
    20%  { transform: scale(1); }
    100% { transform: scale(1); }
}

/* ===============================
   PLAYS (NEUTRO)
   =============================== */

.stat-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #6c757d;
    min-width: 48px;
    justify-content: center;
}

.stat-compact i {
    color: #6c757d;
}

.stat-compact .stat-count {
    min-width: 20px;
    text-align: center;
    font-weight: 500;
}
/* ===============================
   SHARE BUTTON
   =============================== */

.share-btn {
    transition: transform 0.2s ease;
}

.share-btn i {
    color: #6c757d;
    transition: color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover i {
    color: #495057;
    transform: scale(1.1);
}

/* ===============================
   PARTÍCULAS (se usadas)
   =============================== */

.like-particle {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
}

/* Botões de ação */
.action-buttons-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-btn-compact i,
.ranking-btn-compact i {
    color: #ebeaea;
}
.play-btn-compact {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        #7C6CF6 0%,
        #6E43D4 55%,
        #4B7BEB 100%
    );

    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;

    flex: 1;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    box-shadow:
        0 2px 6px rgba(110, 67, 212, 0.45),
        inset 0 0 0 1px rgba(255,255,255,0.25);

    transition: all 0.3s ease;
}

/* blur roxo/azul */
.play-btn-compact::before {
    content: "";
    position: absolute;
    inset: -45%;
    z-index: 0;

    background:
        radial-gradient(60% 55% at 30% 15%, #7C6CF6 0%, transparent 65%),
        radial-gradient(55% 55% at 20% 85%, #6E43D4 0%, transparent 68%),
        radial-gradient(50% 50% at 80% 70%, #4B7BEB 0%, transparent 70%);

    filter: blur(40px);
    transform: scale(1.15);
    pointer-events: none;
}

/* conteúdo acima do blur */
.play-btn-compact > * {
    position: relative;
    z-index: 1;
}

.play-btn-compact:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 6px 16px rgba(110, 67, 212, 0.6),
        inset 0 0 0 1px rgba(255,255,255,0.35);
}

.ranking-btn-compact {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        #FFD24A 0%,
        #FFA312 65%,
        #FF7414 100%
    );

    color: #fff;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 0.85em;
    text-decoration: none;

    width: 40px;
    height: 40px;

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

    box-shadow:
        0 2px 6px rgba(255, 178, 36, 0.45),
        inset 0 0 0 1px rgba(255,255,255,0.35);

    transition: all 0.3s ease;
}

.ranking-btn-compact::before {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,0.45),
            transparent 60%
        );

    filter: blur(16px);
    pointer-events: none;
}

.ranking-btn-compact:hover {
    transform: translateY(-2px) scale(1.07);
    filter: brightness(1.08);
    box-shadow:
        0 6px 16px rgba(255, 178, 36, 0.6),
        inset 0 0 0 1px rgba(255,255,255,0.45);
}

/* Botão "Mostrar mais" */
.show-more-btn {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        160deg,
        #ec7fde 0%,
        #ffa312 55%,
        #ff7414 100%
    );

    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 500;
    color: #fff;

    box-shadow: 0 4px 10px rgba(255, 116, 20, 0.35);
    transition: all 0.3s ease;
}

/* BLUR GRADIENT (IGUAL À IMAGEM) */
.show-more-btn::before {
    content: "";
    position: absolute;
    inset: -45%;
    z-index: 0;

    background:
        radial-gradient(60% 55% at 30% 10%, #ec7fde 0%, transparent 65%),
        radial-gradient(55% 55% at 18% 88%, #ff7414 0%, transparent 68%),
        radial-gradient(50% 50% at 78% 72%, #ffa312 0%, transparent 70%);

    filter: blur(44px);
    transform: scale(1.15);
    pointer-events: none;
}

/* conteúdo acima do blur */
.show-more-btn > * {
    position: relative;
    z-index: 1;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 6px 15px rgba(255, 116, 20, 0.5);
}

/* Responsividade Melhorada */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 767px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-image-compact {
        height: 180px;
    }

    .card-content-compact {
        padding: 1rem;
    }

    .stats-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .action-buttons-compact {
        width: 100%;
        gap: 8px;
    }

    .play-btn-compact {
        flex: 1;
        padding: 8px 14px;
        font-size: 0.8em;
    }

    .ranking-btn-compact {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .engagement-compact {
        gap: 10px;
    }

    .stat-compact {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}