/* --- 1MZ Admin - Frontend Styles (frontend.css) --- */
/* Os design tokens (:root --imz-*) vivem em design-tokens.css,
   carregado como dependência deste ficheiro. */

/* Utilitário: grupo de formulário centrado (migrado de estilos inline) */
.imz-form-group-center {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* --- Estilos para o Bloco do Botão de Impulsionar --- */
.imz-botao-container {
    text-align: center;
    margin: 40px auto;
    padding: var(--imz-spacing-lg);
    background: var(--imz-color-background);
    border-radius: var(--imz-border-radius);
    border: 1px solid var(--imz-border-color);
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    box-sizing: border-box;
}

.imz-botao-ajuda {
    color: var(--imz-color-text-light);
    font-size: var(--imz-font-size-base);
    margin-bottom: var(--imz-spacing-md);
    font-weight: 500;
}

.imz-botao-principal {
    display: inline-block;
    padding: 15px 30px;
    background: #ffffff;
    color: #000000;
    border-radius: 6px;
    font-weight: 700;
    font-size: var(--imz-font-size-lg);
    border: none;
    box-shadow: none;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none !important;
    border-bottom: none !important;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.imz-botao-principal:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.imz-botao-principal:active {
    transform: scale(0.98);
    opacity: 0.85;
}

.imz-botao-principal:disabled {
    background: var(--imz-border-color);
    color: #555555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes pulso-glow {
    0% { box-shadow: none; }
    100% { box-shadow: none; }
}

/* --- Estilos para os Selos --- */
.imz-badges-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--imz-spacing-lg);
    justify-content: space-between;
}

@media screen and (max-width: 600px) {
    .imz-badges-container {
        justify-content: center;
        gap: 8px;
    }
    
    .imz-selo-impulsionado {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .imz-selo-youtube {
        padding: 6px 10px;
        font-size: 11px;
        gap: 6px;
    }
    
    .imz-selo-youtube .play-icon {
        width: 14px;
        height: 14px;
    }
}

.imz-selo-impulsionado {
    color: var(--imz-color-text-inverted);
    padding: var(--imz-spacing-sm) 14px;
    display: inline-block;
    font-size: var(--imz-font-size-sm);
    font-weight: bold;
    border-radius: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: default;
    transition: all 0.2s ease-out;
}

.imz-selo-impulsionado:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.imz-selo-youtube {
    color: #ffffff;
    background-color: #FF0000;
    padding: var(--imz-spacing-sm) var(--imz-spacing-md);
    display: inline-flex;
    align-items: center;
    gap: var(--imz-spacing-sm);
    font-size: var(--imz-font-size-sm);
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Selo de plays do player (contagem própria do site) */
.imz-selo-plays {
    color: var(--imz-color-text);
    background-color: var(--imz-color-background-soft);
    padding: var(--imz-spacing-sm) var(--imz-spacing-md);
    display: inline-flex;
    align-items: center;
    gap: var(--imz-spacing-sm);
    font-size: var(--imz-font-size-sm);
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--imz-border-color);
    cursor: default;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.imz-selo-plays .play-icon {
    width: 16px;
    height: 16px;
    color: #e8361a;
}

/* Top Músicas (shortcode [imz_top_musicas]) — reutiliza o estilo do leaderboard */
.imz-top-musicas .imz-leaderboard-name a {
    color: inherit;
    text-decoration: none;
}

.imz-top-musicas .imz-leaderboard-name a:hover {
    text-decoration: underline;
}

/* =============================================================================
   TOASTS — feedback flutuante (imzToast / imzAdsToast)
   Partilhado entre o painel do artista e o painel de anúncios.
   ============================================================================= */

#imz-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 48px));
}

.imz-toast {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.imz-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.imz-toast-success {
    background: #065f46;
    border-color: #10b981;
}

.imz-toast-error {
    background: #7f1d1d;
    border-color: #ef4444;
}

.imz-toast-warning {
    background: #78350f;
    border-color: #f59e0b;
}

@media (max-width: 600px) {
    #imz-toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* =============================================================================
   PAINEL DO ANUNCIANTE — [imz_meus_anuncios]
   ============================================================================= */

.imz-my-ads {
    max-width: 760px;
    margin: 0 auto;
}

.imz-my-ads-heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.imz-my-ads-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--imz-color-background-soft);
    border: 1px solid var(--imz-border-color);
    border-radius: var(--imz-border-radius);
}

.imz-my-ads-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.imz-my-ads-kpi {
    background: var(--imz-color-background-soft);
    border: 1px solid var(--imz-border-color);
    border-radius: var(--imz-border-radius);
    padding: 16px 10px;
    text-align: center;
}

.imz-my-ads-kpi .val {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--imz-color-text);
}

.imz-my-ads-kpi .lbl {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--imz-color-text-light);
    margin-top: 4px;
}

.imz-my-ad-card {
    background: var(--imz-color-background-soft);
    border: 1px solid var(--imz-border-color);
    border-radius: var(--imz-border-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.imz-my-ad-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.imz-my-ad-title {
    font-size: 17px;
    color: var(--imz-color-text);
}

.imz-ad-status-badge {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.imz-ad-status-ativo    { background: #d1fae5; color: #065f46; }
.imz-ad-status-pendente { background: #fef3c7; color: #92400e; }
.imz-ad-status-pausado  { background: #e0e7ff; color: #3730a3; }
.imz-ad-status-rejeitado { background: #fee2e2; color: #991b1b; }
.imz-ad-status-expirado { background: #f3f4f6; color: #6b7280; }
.imz-ad-status-aguardando_pagamento { background: #fce7f3; color: #9d174d; }

.imz-my-ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    color: var(--imz-color-text-light);
    margin-bottom: 14px;
}

.imz-my-ad-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.imz-my-ad-stat {
    background: var(--imz-color-background);
    border: 1px solid var(--imz-border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.imz-my-ad-stat .val {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--imz-color-text);
}

.imz-my-ad-stat .lbl {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--imz-color-text-light);
    margin-top: 2px;
}

.imz-my-ad-actions {
    display: flex;
    gap: 10px;
}

/* Passo de pagamento M-Pesa de anúncios */
.imz-ad-payment-step {
    max-width: 480px;
    margin: 0 auto;
    background: var(--imz-color-background-soft);
    border: 1px solid var(--imz-border-color);
    border-radius: var(--imz-border-radius);
    padding: 24px;
}

.imz-ad-payment-summary {
    background: var(--imz-color-background);
    border: 1px solid var(--imz-border-color);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
}

.imz-ad-payment-summary p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--imz-color-text-light);
}

.imz-ad-payment-total span {
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
}

.imz-ad-payment-step input[type="tel"],
.imz-my-ad-pay input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--imz-border-color);
    background: var(--imz-color-background);
    color: var(--imz-color-text);
    font-size: 15px;
    box-sizing: border-box;
}

.imz-my-ad-pay {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.imz-my-ad-pay input[type="tel"] {
    flex: 1;
    min-width: 180px;
    width: auto;
}

@media (max-width: 600px) {
    .imz-my-ads-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

.imz-selo-youtube:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

.imz-selo-youtube .play-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- Estilos para o Anti-Spam --- */
.imz-honeypot-field {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* --- Estilos para o Quadro de Líderes (Leaderboard) --- */
.imz-leaderboard-container {
    margin: 40px auto;
    padding: var(--imz-spacing-lg);
    background-color: var(--imz-color-background-soft);
    border: 1px solid var(--imz-border-color);
    border-radius: var(--imz-border-radius);
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

.imz-leaderboard-container h3 {
    text-align: center;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--imz-color-text);
}

.imz-leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.imz-leaderboard-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: var(--imz-font-size-base);
    border-bottom: 1px solid var(--imz-border-color);
}

.imz-leaderboard-list li:last-child {
    border-bottom: none;
}

.imz-leaderboard-medal {
    font-size: 22px;
    margin-right: 15px;
    width: 30px;
    flex-shrink: 0;
    text-align: center;
}

.imz-leaderboard-name {
    font-weight: 600;
    color: var(--imz-color-text);
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imz-leaderboard-amount {
    margin-left: auto;
    font-weight: 500;
    color: var(--imz-color-text-light);
    background-color: var(--imz-color-background-soft);
    border: 1px solid var(--imz-border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: var(--imz-font-size-sm);
    flex-shrink: 0;
}

/* --- Estilos para Formulários Gerais do Plugin --- */
.imz-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: var(--imz-spacing-xl);
    background: var(--imz-color-background);
    border: 1px solid var(--imz-border-color);
    border-radius: var(--imz-border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

.imz-form-container h2 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
    color: #ffffff;
}

.imz-form-container .imz-form-description {
    text-align: center;
    color: var(--imz-color-text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

.imz-form-group {
    margin-bottom: 22px;
}

.imz-form-group label {
    display: block;
    margin-bottom: var(--imz-spacing-sm);
    font-weight: 500;
    color: var(--imz-color-text);
    font-size: var(--imz-font-size-sm);
}

.imz-form-group input[type="text"],
.imz-form-group input[type="tel"],
.imz-form-group input[type="number"],
.imz-form-group input[type="url"],
.imz-form-group input[type="email"],
.imz-form-group select,
.imz-form-group textarea,
#imz-report-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--imz-border-color);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-color: var(--imz-color-background-soft);
    color: var(--imz-color-text);
}

.imz-form-group input[type="text"]:focus,
.imz-form-group input[type="tel"]:focus,
.imz-form-group input[type="number"]:focus,
.imz-form-group input[type="url"]:focus,
.imz-form-group input[type="email"]:focus,
.imz-form-group select:focus,
.imz-form-group textarea:focus,
#imz-report-form textarea:focus {
    border-color: var(--imz-color-accent);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
    outline: none;
    background-color: var(--imz-color-background);
}

.imz-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

#instrucoes {
    font-size: 13px;
    color: var(--imz-color-text-light);
    margin-top: 10px;
    padding: 12px;
    background-color: var(--imz-color-background-soft);
    border-radius: 6px;
    border-left: 3px solid #444444;
}

.imz-boost-form .imz-botao-principal {
    width: 100%;
    margin-top: 10px;
}

/* --- Radio Buttons com Imagem --- */
.imz-image-radio-group {
    justify-content: center;
}

.imz-image-radio-label {
    display: inline-block;
    cursor: pointer;
}

.imz-image-radio-label img {
    display: block;
    width: 140px;
    height: auto;
    border: 3px solid var(--imz-border-color);
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    opacity: 0.7;
}

.imz-image-radio-label:hover img {
    opacity: 1;
    border-color: #9ca3af;
}

.imz-hidden-radio {
    display: none;
}

.imz-hidden-radio:checked + img {
    border-color: #ffffff;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

/* --- Uploader Moderno e Barra de Progresso --- */
.imz-file-uploader {
    border: 2px dashed var(--imz-border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    background-color: var(--imz-color-background);
    margin: 15px 0;
    cursor: pointer;
    transition: border-color 0.2s;
}

.imz-file-uploader:hover {
    border-color: var(--imz-color-accent);
}

.imz-file-uploader-label {
    font-weight: 500;
    color: var(--imz-color-text);
    pointer-events: none;
}

.imz-file-uploader-label span {
    display: block;
    font-size: var(--imz-font-size-sm);
    color: var(--imz-color-text-light);
    margin-top: 5px;
}

#comprovativo_upload, #claim_document_upload {
    display: none;
}

.imz-progress-container {
    width: 100%;
    background-color: var(--imz-border-color);
    border-radius: 6px;
    overflow: hidden;
    height: 6px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imz-progress-bar {
    width: 0%;
    height: 100%;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.imz-progress-text {
    position: absolute;
    color: var(--imz-color-text-light);
    font-weight: 600;
    font-size: 12px;
}

.imz-file-notice {
    font-size: var(--imz-font-size-sm);
    margin-top: 5px;
    min-height: 1em;
}

/* --- DESIGN: Player de Áudio V2 — Inspirado na imagem de referência --- */

/* Contentor principal: pílula horizontal com fundo escuro */
.imz-player-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background-color: var(--imz-color-background-soft);
    border-radius: 60px;
    max-width: 680px;
    margin: 0 auto 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    position: relative;
    border: 1px solid var(--imz-border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.imz-player-v2 *, .imz-player-v2 *::before, .imz-player-v2 *::after {
    box-sizing: inherit;
}

/* --- Botão Play/Pause: círculo vermelho --- */
.imz-player-v2 .imz-player-play-pause-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e8361a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    padding: 0;
    color: #fff;
}

.imz-player-v2 .imz-player-play-pause-btn:hover {
    background-color: #ff4422;
    transform: scale(1.06);
}

.imz-player-v2 .imz-player-play-pause-btn svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

/* --- Meta: Título + Artista --- */
.imz-player-v2 .imz-player-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    min-width: 80px;
    max-width: 130px;
}

.imz-player-v2 .imz-player-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.imz-player-v2 .imz-player-artist {
    font-size: 12px;
    color: var(--imz-color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* --- Tempo --- */
.imz-player-v2 .imz-player-time-current,
.imz-player-v2 .imz-player-time-duration {
    font-size: 13px;
    font-weight: 600;
    color: var(--imz-color-text-light);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    min-width: 34px;
}

/* --- Barra de progresso vermelha com waveform --- */
.imz-player-v2 .imz-player-progress {
    flex: 1;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 30px;
    overflow: hidden;
}

/* Track de fundo — cinza escuro */
.imz-player-v2 .imz-player-track {
    position: absolute;
    inset: 0;
    background-color: #333333;
    border-radius: 30px;
}

/* Fill vermelho — cresce com o progresso */
.imz-player-v2 .imz-player-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #e8361a;
    border-radius: 30px;
    transition: width 0.15s linear;
    z-index: 1;
}

/* Waveform branca sobreposta ao fill vermelho */
.imz-player-v2 .imz-player-waveform-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='16' width='3' height='8' rx='1.5' fill='rgba(255,255,255,0.35)'/%3E%3Crect x='7' y='12' width='3' height='16' rx='1.5' fill='rgba(255,255,255,0.35)'/%3E%3Crect x='13' y='8' width='3' height='24' rx='1.5' fill='rgba(255,255,255,0.35)'/%3E%3Crect x='19' y='14' width='3' height='12' rx='1.5' fill='rgba(255,255,255,0.35)'/%3E%3Crect x='25' y='18' width='3' height='4' rx='1.5' fill='rgba(255,255,255,0.35)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    z-index: 2;
    pointer-events: none;
    border-radius: 30px;
}

/* Slider invisível por cima para seek */
.imz-player-v2 .imz-player-seek-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* --- Controlos extras: volume + repeat --- */
.imz-player-v2 .imz-player-controls-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.imz-player-v2 .imz-player-options-btn {
    width: 20px;
    height: 20px;
    fill: #555555;
    cursor: pointer;
    transition: fill 0.15s;
}

.imz-player-v2 .imz-player-options-btn:hover { fill: var(--imz-color-text-light); }

.imz-player-v2 .imz-player-volume-control {
    position: relative;
}

.imz-player-v2 .imz-player-popup-options {
    position: absolute;
    bottom: 40px;
    right: 0;
    background-color: var(--imz-color-background-soft);
    border: 1px solid #333333;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, bottom 0.2s;
    z-index: 10;
    white-space: nowrap;
}

.imz-player-v2 .imz-player-popup-options.visible {
    opacity: 1;
    visibility: visible;
    bottom: 52px;
}

.imz-player-v2 .imz-player-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 4px;
    background: #333333;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.imz-player-v2 .imz-player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #e8361a;
    border-radius: 50%;
    cursor: pointer;
}

.imz-player-v2 .imz-player-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #e8361a;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.imz-player-v2 .imz-player-repeat-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #444444;
    transition: color 0.2s;
    display: flex;
}

.imz-player-v2 .imz-player-repeat-btn.active { color: #e8361a; }

.imz-player-v2 .imz-player-repeat-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Spinner de carregamento */
.imz-player-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.08);
    border-left-color: #e8361a;
    border-radius: 50%;
    animation: imz-spin 1s linear infinite;
    z-index: 20;
    display: none;
    pointer-events: none;
}

.imz-player-v2.buffering .imz-player-spinner { display: block; }

.imz-player-v2.buffering .imz-player-play-pause-btn { opacity: 0.5; }

@keyframes imz-spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Responsividade --- */

/* Tablets (768px e menores) */
@media screen and (max-width: 768px) {
    .imz-botao-container {
        max-width: 90%;
        margin: 30px auto;
        padding: var(--imz-spacing-md);
    }
    
    .imz-leaderboard-container {
        max-width: 90%;
        margin: 30px auto;
        padding: var(--imz-spacing-md);
    }
    
    .imz-form-container {
        max-width: 90%;
        margin: 30px auto;
        padding: var(--imz-spacing-lg);
    }
    
    .imz-player-v2 {
        padding: 16px 20px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .imz-player-v2 .imz-player-volume-slider {
        width: 70px;
    }
}

/* Smartphones (600px e menores) */
@media screen and (max-width: 600px) {
    .imz-player-v2 {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 14px 16px;
        gap: 10px;
    }

    .imz-player-v2 .imz-player-meta {
        flex: 1;
        max-width: none;
    }

    .imz-player-v2 .imz-player-progress {
        order: 3;
        width: 100%;
        flex: none;
    }

    .imz-player-v2 .imz-player-time-current,
    .imz-player-v2 .imz-player-time-duration {
        order: 3;
    }
    
    .imz-player-v2 .imz-player-play-pause-btn {
        width: 44px;
        height: 44px;
    }

    .imz-player-v2 .imz-player-play-pause-btn svg {
        width: 20px;
        height: 20px;
    }

    .imz-player-v2 .imz-player-meta {
        flex: 1;
        max-width: none;
        min-width: 0;
    }

    .imz-player-v2 .imz-player-progress {
        order: 3;
        width: 100%;
        flex: none;
        height: 35px;
    }

    .imz-player-v2 .imz-player-time-current,
    .imz-player-v2 .imz-player-time-duration {
        order: 3;
        font-size: 11px;
    }
    
    .imz-player-v2 .imz-player-volume-slider {
        width: 60px;
    }
    
    .imz-player-v2 .imz-player-options {
        gap: 8px;
    }
}

/* Smartphones pequenos (480px e menores) */
@media screen and (max-width: 480px) {
    .imz-botao-container {
        margin: 20px auto;
        padding: var(--imz-spacing-md);
    }
    
    .imz-botao-principal {
        padding: 12px 24px;
        font-size: var(--imz-font-size-base);
        width: 100%;
        max-width: none;
    }
    
    .imz-leaderboard-container {
        margin: 20px auto;
        padding: var(--imz-spacing-md);
    }
    
    .imz-form-container {
        margin: 20px auto;
        padding: var(--imz-spacing-md);
    }
    
    .imz-player-v2 {
        padding: 12px 14px;
        gap: 8px;
    }
    
    .imz-player-v2 .imz-player-play-pause-btn {
        width: 40px;
        height: 40px;
    }
    
    .imz-player-v2 .imz-player-play-pause-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .imz-player-v2 .imz-player-title {
        font-size: 14px;
    }
    
    .imz-player-v2 .imz-player-artist {
        font-size: 12px;
    }
    
    .imz-player-v2 .imz-player-volume-slider {
        width: 50px;
    }
    
    .imz-player-v2 .imz-player-time-current,
    .imz-player-v2 .imz-player-time-duration {
        font-size: 10px;
        min-width: 30px;
    }
}

/* --- Modal de Reportar Problema --- */
.imz-report-button-container { text-align: center; margin: 32px auto 0; border-top: 1px solid var(--imz-border-color); padding-top: 20px; }
.imz-report-button { display: inline-block; padding: 9px 18px; background-color: transparent; color: #555555; border: 1px solid #333333; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none !important; transition: all 0.2s ease; cursor: pointer; text-transform: uppercase; letter-spacing: 0.4px; }
.imz-report-button:hover { background-color: var(--imz-color-background-soft); color: var(--imz-color-text-light); border-color: #444444; }
#imz-report-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 1; transition: opacity 0.3s ease; padding: 12px; box-sizing: border-box; overflow: hidden; }
#imz-report-modal-overlay.imz-modal-hidden { opacity: 0; pointer-events: none; }
#imz-report-modal-content { background: var(--imz-color-background); border: 1px solid var(--imz-border-color); padding: 22px; border-radius: var(--imz-border-radius); max-width: 480px; width: 100%; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; box-sizing: border-box; -webkit-overflow-scrolling: touch; margin: 0 auto; }
.imz-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid #333333;
    border-radius: 50%;
    cursor: pointer;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, color 0.2s, transform 0.25s ease, border-color 0.2s;
    flex-shrink: 0;
}
.imz-modal-close-btn svg {
    width: 12px;
    height: 12px;
    display: block;
    stroke: currentColor;
    transition: stroke 0.2s;
}
.imz-modal-close-btn:hover {
    background: var(--imz-color-background-soft);
    border-color: #555555;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}
#imz-report-modal-content h3 { margin-top: 0; margin-bottom: 10px; text-align: left; font-size: 20px; color: #ffffff; }
#imz-report-modal-content p { text-align: left; color: var(--imz-color-text-light); margin-bottom: 25px; font-size: 15px; }
#imz-report-messages p, #imz-purchase-messages p { padding: 15px; border-radius: 6px; font-weight: 500; border: 1px solid transparent; text-align: center; margin: 0; }
.imz-message-success { color: #cccccc; background-color: var(--imz-color-background-soft); border-color: #444444; }
.imz-message-warning { color: var(--imz-color-text-light); background-color: var(--imz-color-background-soft); border-color: #333333; }
.imz-message-error   { color: #777777; background-color: var(--imz-color-background-soft); border-color: #333333; }
.imz-captcha-group { display: flex; align-items: center; gap: 15px; margin-top: 20px; background-color: var(--imz-color-background-soft); padding: 15px; border-radius: 6px; border: 1px solid var(--imz-border-color); }
.imz-captcha-group label { margin-bottom: 0; font-weight: bold; color: var(--imz-color-text-light); }
.imz-captcha-group input { width: 80px; padding: 10px !important; }
.imz-report-choice{display:flex;flex-direction:column;gap:10px;margin-top:4px}.imz-report-choice-btn{display:flex;align-items:center;gap:12px;padding:14px;background:var(--imz-color-background-soft);border:1px solid var(--imz-border-color);border-radius:10px;cursor:pointer;transition:all .2s;text-align:left;color:#fff;width:100%;box-sizing:border-box;overflow:hidden}.imz-report-choice-btn:hover{background:#222;border-color:#444}.imz-report-choice-btn .imz-choice-icon{font-size:20px;flex-shrink:0;width:38px;height:38px;min-width:38px;display:flex;align-items:center;justify-content:center;background:#222;border-radius:10px}.imz-report-choice-btn .imz-choice-text{min-width:0;flex:1;overflow:hidden}.imz-report-choice-btn .imz-choice-text strong{display:block;font-size:14px;font-weight:700;color:#fff;margin-bottom:2px}.imz-report-choice-btn .imz-choice-text span{font-size:12px;color:#888;line-height:1.4;display:block}.imz-report-panel{display:none}.imz-report-panel.active{display:block}.imz-back-btn{display:inline-flex;align-items:center;gap:5px;background:none;border:none;color:#888;font-size:13px;cursor:pointer;padding:0;margin-bottom:12px;transition:color .2s}.imz-back-btn:hover{color:#fff}.imz-copyright-tabs{display:flex;gap:0;margin-bottom:16px;border:1px solid var(--imz-border-color);border-radius:8px;overflow:hidden}.imz-copyright-tab{flex:1;padding:10px 6px;text-align:center;font-size:11px;font-weight:600;color:#666;background:var(--imz-color-background-soft);border:none;cursor:pointer;transition:all .2s;text-transform:uppercase;letter-spacing:.2px;line-height:1.3}.imz-copyright-tab:not(:last-child){border-right:1px solid var(--imz-border-color)}.imz-copyright-tab:hover{background:#222;color:#999}.imz-copyright-tab.active{background:#fff;color:#000}.imz-copyright-tab .imz-tab-ico{display:block;font-size:15px;margin-bottom:2px}.imz-copyright-lvl{display:none}.imz-copyright-lvl.active{display:block}.imz-info-box{background:var(--imz-color-background-soft);border:1px solid var(--imz-border-color);border-radius:8px;padding:12px 14px;margin-bottom:14px;font-size:13px;color:#999;line-height:1.5}.imz-info-box strong{color:#ccc}.imz-warn-box{background:#1c1207;border:1px solid #3d2a0a;border-radius:8px;padding:12px 14px;margin-bottom:14px;font-size:13px;color:#c9a347;line-height:1.5}.imz-warn-box strong{color:#e8c55a}.imz-copyright-form .imz-form-group{margin-bottom:12px}.imz-copyright-form .imz-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.imz-copyright-form .imz-form-group label{display:block;margin-bottom:4px;color:#ccc;font-size:13px;font-weight:600}.imz-copyright-form .imz-form-group label .imz-req{color:#b91c1c}.imz-copyright-form input[type="text"],.imz-copyright-form input[type="email"],.imz-copyright-form input[type="url"],.imz-copyright-form textarea,.imz-copyright-form select{width:100%;padding:10px 12px;border:1px solid var(--imz-border-color);border-radius:8px;box-sizing:border-box;background-color:var(--imz-color-background-soft);color:#fff;font-size:14px;transition:border-color .2s}.imz-copyright-form input:focus,.imz-copyright-form textarea:focus,.imz-copyright-form select:focus{border-color:#fff;outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.06);background-color:var(--imz-color-background)}.imz-copyright-form textarea{resize:vertical}.imz-file-drop{border:2px dashed #333;border-radius:8px;padding:16px 10px;text-align:center;cursor:pointer;transition:all .2s;background:var(--imz-color-background-soft)}.imz-file-drop:hover{border-color:#555;background:#1f1f1f}.imz-file-drop.has-file{border-color:#10b981;border-style:solid}.imz-file-drop-ico{font-size:22px;margin-bottom:3px}.imz-file-drop-txt{font-size:12px;color:#888}.imz-file-drop-txt strong{color:#ccc}.imz-file-drop-name{font-size:12px;color:#10b981;margin-top:4px;font-weight:600;word-break:break-all}.imz-chk-label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:12px;color:#999;line-height:1.5}.imz-chk-label input[type="checkbox"]{width:16px;height:16px;accent-color:#fff;flex-shrink:0;margin-top:2px}#imz-report-modal-content .g-recaptcha{transform-origin:center}.imz-copyright-blocked{background:var(--imz-color-background);border:1px solid var(--imz-border-color);border-radius:12px;padding:40px 24px;text-align:center;margin:20px 0}.imz-copyright-blocked-icon{font-size:48px;margin-bottom:16px;opacity:.6}.imz-copyright-blocked h2{color:#fff;font-size:20px;font-weight:700;margin:0 0 10px}.imz-copyright-blocked p{color:#888;font-size:14px;line-height:1.6;margin:0 0 6px;max-width:400px;margin-left:auto;margin-right:auto}.imz-copyright-blocked .imz-blocked-claimant{color:#ccc;font-weight:600}.imz-copyright-blocked .imz-blocked-info{font-size:12px;color:#555;margin-top:16px}
.imz-presave-box{background:var(--imz-color-background);border:1px solid var(--imz-border-color);border-radius:12px;padding:28px 24px;text-align:center;margin:20px 0}.imz-presave-box h2{color:#fff;font-size:20px;font-weight:700;margin:0 0 6px}.imz-presave-box .imz-presave-subtitle{color:#888;font-size:14px;margin:0 0 20px}.imz-presave-countdown{display:flex;justify-content:center;gap:12px;margin-bottom:24px;flex-wrap:wrap}.imz-presave-countdown .imz-cd-unit{background:var(--imz-color-background-soft);border:1px solid var(--imz-border-color);border-radius:10px;padding:14px 16px;min-width:64px;text-align:center}.imz-presave-countdown .imz-cd-num{display:block;font-size:28px;font-weight:800;color:#fff;line-height:1}.imz-presave-countdown .imz-cd-label{display:block;font-size:10px;color:#666;text-transform:uppercase;letter-spacing:.5px;margin-top:4px}.imz-presave-form{max-width:360px;margin:0 auto}.imz-presave-form .imz-presave-method{display:flex;gap:8px;margin-bottom:14px;justify-content:center}.imz-presave-form .imz-presave-method-btn{flex:1;padding:10px 12px;background:var(--imz-color-background-soft);border:1px solid var(--imz-border-color);border-radius:8px;cursor:pointer;text-align:center;font-size:13px;font-weight:600;color:#888;transition:all .2s}.imz-presave-form .imz-presave-method-btn:hover{background:#222;border-color:#444;color:#ccc}.imz-presave-form .imz-presave-method-btn.active{background:#fff;color:#000;border-color:#fff}.imz-presave-form .imz-presave-method-btn .imz-method-ico{display:block;font-size:18px;margin-bottom:2px}.imz-presave-form input[type="email"],.imz-presave-form input[type="tel"]{width:100%;padding:12px;border:1px solid var(--imz-border-color);border-radius:8px;background:var(--imz-color-background-soft);color:#fff;font-size:14px;box-sizing:border-box;transition:border-color .2s}.imz-presave-form input:focus{border-color:#fff;outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.06);background:var(--imz-color-background)}.imz-presave-success{color:#10b981;font-size:14px;font-weight:600;padding:16px;background:#0d2d1f;border:1px solid #1a4a30;border-radius:8px;margin-top:12px}
@media(max-width:600px){#imz-report-modal-overlay{padding:0;align-items:flex-end}#imz-report-modal-content{padding:20px 16px;border-radius:14px 14px 0 0;max-height:92vh;max-height:92dvh;width:100%;max-width:100%;border-bottom:none}#imz-report-modal-content h3{font-size:17px;padding-right:40px}#imz-report-modal-content p{font-size:13px;margin-bottom:14px}.imz-report-choice-btn{padding:12px;gap:10px}.imz-report-choice-btn .imz-choice-icon{width:34px;height:34px;min-width:34px;font-size:17px;border-radius:8px}.imz-report-choice-btn .imz-choice-text strong{font-size:13px}.imz-report-choice-btn .imz-choice-text span{font-size:11px}.imz-copyright-form .imz-form-row{grid-template-columns:1fr;gap:0}.imz-copyright-tab{font-size:10px;padding:8px 3px}.imz-copyright-tab .imz-tab-ico{font-size:13px}#imz-report-modal-content .g-recaptcha{transform:scale(.82);transform-origin:center;margin:0 auto}.imz-copyright-blocked{padding:30px 16px}.imz-copyright-blocked h2{font-size:17px}.imz-presave-countdown .imz-cd-unit{min-width:54px;padding:10px 12px}.imz-presave-countdown .imz-cd-num{font-size:22px}.imz-presave-box{padding:22px 16px}}

/* --- Caixa de Download (Gratuito ou Pago) --- */
.imz-download-box {
    background-color: var(--imz-color-background);
    border: 1px solid var(--imz-border-color);
    border-radius: var(--imz-border-radius);
    padding: 32px 28px;
    margin: 40px auto;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .imz-download-box {
        max-width: 90%;
        padding: 28px 24px;
    }
}

.imz-download-box .imz-download-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.imz-download-box .imz-download-details {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    color: var(--imz-color-text-light);
    font-size: 14px;
}

.imz-download-box .imz-download-details li { margin-bottom: 4px; }

.imz-download-box .imz-download-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #555555;
    font-size: 13px;
    margin-bottom: 24px;
}

.imz-download-box .imz-download-count svg { width: 16px; height: 16px; fill: currentColor; }

/* --- Botão de Download --- */
.imz-download-box .imz-download-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    max-width: 260px;
    padding: 14px 36px;
    background-color: #ffffff;
    color: #000000 !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border: none;
    box-shadow: none;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.imz-download-box .imz-download-button:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.1);
}

.imz-download-box .imz-download-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.imz-download-box .imz-download-notice { font-size: 13px; padding: 12px 16px; margin-top: 22px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; line-height: 1.5; }
.imz-download-box .imz-download-notice.exclusive { background-color: var(--imz-color-background-soft); color: #777777; border: 1px solid #333333; }
.imz-download-box .imz-download-notice.ads { background-color: transparent; color: #444444; margin-top: 12px; padding: 0; font-size: 12px; }
.imz-download-box .imz-download-notice svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

@media screen and (max-width: 480px) {
    .imz-download-box {
        padding: 24px 20px;
        margin: 24px auto;
        border-radius: 14px;
    }
    .imz-download-box .imz-download-title { font-size: 19px; }
    .imz-download-box .imz-download-button {
        max-width: 100%;
        width: 100% !important;
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* =============================================================================
   NOVO CARD DE DOWNLOAD GRATUITO (v9.0)
   ============================================================================= */

.imz-dl-card {
    margin: 40px auto;
    background: var(--imz-color-background-soft, #1a1a1a);
    border: 1px solid var(--imz-border-color, #2a2a2a);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    position: relative;
}

/* --- Barra de status no topo --- */
.imz-dl-status-bar {
    height: 3px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.imz-dl-status-glow {
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    filter: blur(2px);
    opacity: 0.7;
    animation: imzStatusGlow 2.5s ease-in-out infinite;
}

@keyframes imzStatusGlow {
    0% { left: -30%; opacity: 0.4; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0.4; }
}

/* --- Header (título + status) --- */
.imz-dl-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 24px 18px;
    text-align: center;
}

.imz-dl-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--imz-color-text, #fff);
    margin: 0;
    line-height: 1.3;
}

/* --- Status indicator (dot + text) --- */
.imz-dl-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.imz-dl-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: imzDotPulse 2s ease-in-out infinite;
}

@keyframes imzDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.imz-dl-status-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Metadados (chips) --- */
.imz-dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px 18px;
    justify-content: center;
}

.imz-dl-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--imz-color-background, #141414);
    border: 1px solid var(--imz-border-color, #2a2a2a);
    font-size: 11px;
    font-weight: 500;
    color: var(--imz-color-text-light, #888);
    white-space: nowrap;
}

.imz-dl-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

/* --- Stats --- */
.imz-dl-stats {
    display: flex;
    justify-content: center;
    padding: 0 24px 20px;
}

.imz-dl-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--imz-color-background, #141414);
    border: 1px solid var(--imz-border-color, #2a2a2a);
    border-radius: 12px;
}

.imz-dl-stat-item svg {
    width: 18px;
    height: 18px;
    color: var(--imz-color-text-light, #888);
    flex-shrink: 0;
}

.imz-dl-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--imz-color-text, #fff);
}

.imz-dl-stat-label {
    font-size: 12px;
    color: var(--imz-color-text-light, #888);
}

/* --- Botão de Download --- */
.imz-dl-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 24px 20px;
    padding: 15px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    color: #000 !important;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.imz-dl-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.imz-dl-button:hover::before {
    transform: translateX(100%);
}

.imz-dl-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.imz-dl-button:active {
    transform: translateY(0);
}

.imz-dl-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.08);
    border-radius: 8px;
}

.imz-dl-button-icon svg {
    width: 16px;
    height: 16px;
}

/* --- Estado indisponível --- */
.imz-dl-unavailable .imz-dl-status-dot {
    animation: none;
    opacity: 1;
}

.imz-dl-unavailable-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 24px 20px;
    padding: 14px 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #f87171;
    text-align: center;
}

.imz-dl-unavailable-msg svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Footer / Copyright --- */
.imz-dl-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px 18px;
    border-top: 1px solid var(--imz-border-color, #2a2a2a);
    font-size: 11px;
    line-height: 1.5;
    color: var(--imz-color-text-light, #555);
    text-align: center;
}

.imz-dl-footer svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.5;
}

/* --- Responsivo --- */
@media screen and (max-width: 480px) {
    .imz-dl-card {
        margin: 24px auto;
        border-radius: 16px;
    }
    .imz-dl-header { padding: 18px 20px 14px; }
    .imz-dl-title { font-size: 17px; }
    .imz-dl-meta { padding: 0 20px 14px; gap: 6px; }
    .imz-dl-chip {
        padding: 4px 6px;
        font-size: 11px; /* Ligeiramente maior para compensar a falta do quadrado */
        font-weight: 600; /* Letra mais forte para o brilho ficar bonito */
        background: transparent; /* Remove o fundo do quadrado */
        border: none; /* Remove a linha da borda */
        color: #ffffff; /* Letra branca para destacar */
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 255, 255, 0.3); /* Efeito de brilho nas letras */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .imz-dl-chip svg { 
        display: none !important; /* Mantém os ícones escondidos */
    }
    .imz-dl-stats { padding: 0 20px 16px; }
    .imz-dl-stat-item { padding: 8px 16px; }
    .imz-dl-stat-value { font-size: 16px; }
    .imz-dl-stat-label { font-size: 11px; }
    .imz-dl-button { margin: 0 20px 16px; padding: 13px 20px; font-size: 14px; border-radius: 12px; }
    .imz-dl-footer { padding: 12px 20px 16px; }
    .imz-dl-unavailable-msg { margin: 0 20px 16px; }
}

/* --- Caixa de Lojas Digitais --- */
.imz-stores-container { background-color: var(--imz-color-background); border: 1px solid var(--imz-border-color); border-radius: var(--imz-border-radius); margin: 40px auto; font-family: var(--imz-font-family); box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; }
.imz-stores-header { padding: 22px 24px; border-bottom: 1px solid var(--imz-border-color); }
.imz-stores-header h4 { margin: 0 0 6px 0; font-size: 20px; font-weight: 700; color: #ffffff; }
.imz-stores-header p { margin: 0; font-size: 14px; color: var(--imz-color-text-light); line-height: 1.5; }
.imz-stores-price-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px; border-bottom: 1px solid var(--imz-border-color); }
.imz-stores-price-header span { font-size: 13px; font-weight: 600; color: var(--imz-color-text-light); text-transform: uppercase; letter-spacing: 0.4px; }
.imz-stores-price-header strong { font-size: 13px; font-weight: 700; color: var(--imz-color-text-light); text-transform: uppercase; letter-spacing: 0.4px; }
.imz-stores-list { list-style: none; padding: 0; margin: 0; }
.imz-stores-list li { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--imz-border-color); min-width: 0; }
.imz-stores-list li:first-child { border-top: none; }
.store-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; overflow: hidden; }
.store-name { font-weight: 600; color: #ffffff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.store-price { font-weight: 500; color: var(--imz-color-text-light); font-size: 14px; flex-shrink: 0; white-space: nowrap; }
.store-button { flex-shrink: 0; display: inline-block; background-color: #ffffff; color: #000000 !important; padding: 9px 20px; border-radius: 6px; text-decoration: none !important; font-weight: 700; font-size: 13px; transition: opacity 0.2s; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; line-height: 1; }
.store-button:hover { opacity: 0.88; text-decoration: none !important; }

/* --- Estilos para a Página de Processamento de Download --- */
/* Tema: Dark Premium — 1MZ For Artists */
.imz-processing-container {
    background-color: var(--imz-color-background);
    border: 1px solid var(--imz-border-color);
    border-radius: 10px;
    padding: 40px 45px;
    max-width: 680px;
    margin: 50px auto;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.imz-step {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(10px);
}
.imz-step.active {
    opacity: 1;
    transform: translateY(0);
}

.imz-step-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.imz-step-description {
    color: var(--imz-color-text-light);
    font-size: 15px;
    margin-bottom: 32px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Barra de progresso — dark */
.imz-progress-container-outer {
    height: 6px;
    border-radius: 3px;
    background-color: var(--imz-border-color);
    margin: 0 auto;
    overflow: hidden;
}

.imz-progress-bar-inner {
    width: 0%;
    height: 100%;
    border-radius: 3px;
    background: #ffffff;
    transition: width 0.25s linear;
    position: relative;
}

/* Efeito de brilho a deslizar na barra */
.imz-progress-bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: imz-shimmer 1.5s infinite;
}

@keyframes imz-shimmer {
    0%   { left: -60%; }
    100% { left: 110%; }
}

#imz-progress-text {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Caixa de Termos */
.imz-terms-box {
    background-color: var(--imz-color-dark);
    border: 1px solid var(--imz-border-color);
    border-radius: 6px;
    padding: 18px 20px;
    height: 150px;
    overflow-y: auto;
    text-align: left;
    color: var(--imz-color-text-light);
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.imz-terms-box::-webkit-scrollbar { width: 4px; }
.imz-terms-box::-webkit-scrollbar-track { background: var(--imz-color-background-soft); }
.imz-terms-box::-webkit-scrollbar-thumb { background: #444444; border-radius: 2px; }

.imz-terms-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.imz-terms-label input[type="checkbox"] {
    accent-color: #ffffff;
    width: 16px;
    height: 16px;
}

/* Botão final de download */
.imz-download-button.final {
    display: inline-block;
    padding: 16px 40px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.2s;
}

.imz-download-button.final:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.imz-download-button:disabled {
    background: var(--imz-border-color);
    color: #555555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Ícone de sucesso */
.imz-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--imz-color-background-soft);
    border: 1px solid #444444;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.imz-success-icon svg {
    width: 28px;
    height: 28px;
}

/* Mensagens de estado (erro, aviso, sucesso) */
.imz-processing-message {
    padding: 20px 25px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 680px;
    margin: 50px auto;
    border: 1px solid var(--imz-border-color);
    border-left-width: 3px;
    border-left-style: solid;
    background-color: var(--imz-color-background);
    color: var(--imz-color-text-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.imz-processing-message.success { border-left-color: #555555; color: #cccccc; }
.imz-processing-message.warning { border-left-color: #444444; color: var(--imz-color-text-light); }
.imz-processing-message.error   { border-left-color: #333333; color: #777777; }

/* --- Leaderboard Global --- */
.imz-global-leaderboard {
    max-width: 800px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    padding: 30px 40px;
}

.imz-global-leaderboard h3 {
    font-size: 28px;
}

.imz-global-leaderboard .imz-leaderboard-list li {
    padding: 15px 10px;
    transition: background-color 0.2s ease-out;
}

.imz-global-leaderboard .imz-leaderboard-list li:hover {
    background-color: var(--imz-color-background-soft);
    border-radius: 6px;
}

.imz-leaderboard-rank {
    font-weight: 700;
    color: #555555;
    font-size: 16px;
    width: 28px;
    text-align: center;
    line-height: 1.5;
}

.imz-leaderboard-container ol.imz-leaderboard-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.imz-payment-instructions {
    background-color: var(--imz-color-background-soft);
    border: 1px solid var(--imz-border-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: var(--imz-border-radius);
}
.imz-payment-instructions h4 {
    margin-top: 0;
}
.imz-payment-instructions ul {
    list-style: none;
    padding-left: 0;
}
.imz-payment-instructions li {
    font-size: 16px;
    margin-bottom: 8px;
}

/* --- Página Upgrade PRO --- */
.imz-pro-upgrade-page .imz-botao-principal {
    width: 100%;
    box-sizing: border-box;
}

.imz-upgrade-step {
    display: flex;
    gap: 20px;
    background-color: var(--imz-color-background);
    border: 1px solid var(--imz-border-color);
    padding: 25px;
    border-radius: var(--imz-border-radius);
    margin-bottom: 25px;
}

.imz-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--imz-color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.imz-step-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.imz-step-content p {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--imz-color-text-light);
}

.imz-payment-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.imz-payment-details span {
    font-size: 16px;
}

/* --- Login Prompt --- */
.imz-login-prompt-container {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
}

.imz-login-prompt-container h2 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 10px;
}

.imz-login-prompt-container .imz-form-description {
    color: #4b5563;
    margin-bottom: 30px;
}

.imz-login-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.imz-login-prompt-buttons .imz-botao-principal {
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

.imz-login-prompt-buttons .imz-register-link {
    color: var(--imz-color-text-light);
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
}

.imz-login-prompt-buttons .imz-register-link:hover {
    color: var(--imz-color-accent);
    text-decoration: underline;
}

.imz-botao-principal {
    text-align: center;
}

/* --- Documento de Titularidade --- */
.imz-document-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

.imz-document-header {
    text-align: center;
    border-bottom: 2px solid #10b981;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.imz-document-header .imz-logo-container img {
    max-height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.imz-document-header h1 {
    font-size: 24px;
    color: #111827;
    margin: 0;
}

.imz-document-section {
    margin-bottom: 40px;
}

.imz-document-section h2 {
    font-size: 18px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.imz-details-table {
    width: 100%;
    border-collapse: collapse;
}

.imz-details-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.imz-details-table td:first-child {
    font-weight: 600;
    width: 35%;
}

.imz-document-section p {
    line-height: 1.7;
    font-size: 16px;
}

.imz-document-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
}

.imz-signature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imz-signature-image {
    max-height: 80px;
    width: auto;
    margin-bottom: -15px;
    position: relative;
    z-index: 1;
}

.imz-signature-line {
    border-top: 1px solid #333;
    padding-top: 8px;
    width: 280px;
    text-align: center;
}

.imz-document-footer {
    align-items: flex-end;
}

.imz-print-button {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 40px auto 0;
    padding: 15px;
    background-color: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.imz-document-error {
    text-align: center;
    padding: 40px;
}

@media print {
    body {
        background-color: #fff;
        font-size: 12pt;
    }
    .imz-document-container {
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    .imz-print-button, .site-header, .site-footer, #wpadminbar {
        display: none !important;
    }
    .imz-document-footer {
        page-break-before: always;
        padding-top: 50px;
    }
}

body.imz-document-page {
    background-color: #f1f5f9;
}

body.imz-document-page #wpadminbar {
    display: none !important;
}

.imz-document-page .imz-document-container {
    margin-top: 50px;
    margin-bottom: 50px;
}

@media print {
    body.imz-document-page {
        background-color: #fff;
    }

    .imz-document-page .imz-document-container {
        margin: 0;
        box-shadow: none;
        border: none;
    }
}

/* --- Fluxo de Compra --- */
.imz-purchase-flow-container .imz-purchase-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.imz-botao-secundario {
    display: inline-block;
    padding: 15px 30px;
    background: var(--imz-color-background-soft);
    color: var(--imz-color-text);
    border-radius: 8px;
    font-weight: bold;
    font-size: var(--imz-font-size-lg);
    border: 1px solid var(--imz-border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
}

.imz-botao-secundario:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.imz-purchase-form {
    border-top: 1px solid var(--imz-border-color);
    padding-top: 25px;
}

.imz-music-item-settings .imz-botao-secundario {
    padding: 10px 20px;
    font-size: 14px;
}

.wp-editor-wrap {
    border: 1px solid var(--imz-border-color);
    border-radius: 8px;
    overflow: hidden;
}
.wp-editor-tools {
    background: var(--imz-color-background-soft);
}

/* --- Selo 1MZ For Artists --- */
.imz-protection-container {
    width: 100%;
    text-align: center; /* Garante que fica no centro */
    margin-bottom: 15px; /* Espaço abaixo antes dos outros selos/player */
    margin-top: 10px;
}

.imz-badge-protected {
    background-color: #000000; /* Fundo Preto */
    color: #ffffff; /* Letra Branca */
    padding: 8px 20px;
    border-radius: 50px; /* Borda redonda (formato de pílula) */
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: help; /* Muda o cursor para indicar que tem informação */
    border: 2px solid #333; /* Opcional: borda subtil */
    transition: transform 0.2s ease;
}

.imz-badge-protected:hover {
    transform: scale(1.05); /* Efeito ligeiro ao passar o rato */
    background-color: var(--imz-color-background-soft);
}
/* =============================================================================
   SISTEMA DE ANÚNCIOS (frontend)
   ============================================================================= */

.imz-ads-container {
    margin: 24px 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.imz-ads-layout-horizontal {
    flex-direction: row;
}

.imz-ads-layout-vertical {
    flex-direction: column;
}

.imz-ads-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.imz-ad-item {
    position: relative;
    background: linear-gradient(135deg, var(--imz-color-background-soft, #1a1a1a), var(--m3-accent-soft, transparent));
    border: 1px solid var(--m3-accent-border, var(--imz-border-color, #2a2a2a));
    border-radius: var(--imz-border-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.4s ease, background 0.4s ease;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

.imz-ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Badge "Anúncio" — chip Material 3 sobre o criativo (scrim escuro legível
   em qualquer imagem, texto na cor de destaque dinâmica) */
.imz-ad-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    color: var(--m3-accent, #d1a954);
    border: 1px solid var(--m3-accent-border, rgba(255, 255, 255, 0.18));
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.imz-ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.imz-ad-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 300px;
}

.imz-ad-type-banner .imz-ad-image {
    max-height: 120px;
}

.imz-ad-type-sidebar .imz-ad-image {
    max-height: 250px;
}

.imz-ad-text-content {
    padding: 14px 16px;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.imz-ad-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--imz-color-text);
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.imz-ad-description {
    margin: 0;
    font-size: 13px;
    color: var(--imz-color-text-light);
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Página de Submissão de Anúncio --- */

.imz-ad-submission-page .imz-ad-pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.imz-ad-pricing-card {
    background: var(--imz-color-background-soft);
    border: 2px solid var(--imz-border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.imz-ad-pricing-card:hover,
.imz-ad-pricing-card.active {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981;
}

.imz-ad-pricing-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.imz-ad-pricing-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--imz-color-text);
}

.imz-ad-pricing-price {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 8px 0;
}

.imz-ad-pricing-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--imz-color-text-light);
}

.imz-ad-pricing-desc {
    font-size: 12px;
    color: var(--imz-color-text-light);
    margin: 0;
    line-height: 1.4;
}

.imz-ad-price-preview {
    background: var(--imz-color-background);
    border: 1px solid var(--imz-border-color);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    text-align: center;
}

.imz-ad-price-preview p {
    margin: 0;
    font-size: 15px;
    color: var(--imz-color-text-light);
}

.imz-ad-price-preview strong {
    color: #10b981;
    font-size: 20px;
}

/* Destaque ad type — prominent */
.imz-ad-type-destaque {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, var(--imz-color-background-soft), rgba(16, 185, 129, 0.05));
}

.imz-ad-type-destaque .imz-ad-badge {
    background: rgba(16, 185, 129, 0.8);
    color: #ffffff;
}

@media (max-width: 600px) {
    .imz-ads-container {
        flex-direction: column;
    }
    .imz-ad-submission-page .imz-ad-pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   MÚSICA DESTACADA (nos anúncios)
   ============================================================================= */

/* Música Destacada — estilo Material 3 com cor dinâmica extraída da capa.
   As variáveis --m3-* têm o âmbar como valor por defeito e são substituídas
   por JS (imz_ads_tracking_script) com a cor dominante da capa da música. */
.imz-ad-type-musica {
    --m3-accent: #f59e0b;
    --m3-accent-soft: rgba(245, 158, 11, 0.14);
    --m3-accent-border: rgba(245, 158, 11, 0.30);
    border-color: var(--m3-accent-border);
    background: linear-gradient(135deg, var(--imz-color-background-soft, #1a1a1a), var(--m3-accent-soft));
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.2s ease;
}

.imz-ad-type-musica:hover {
    box-shadow: 0 6px 24px var(--m3-accent-soft);
}

/* Badge em fluxo (dentro da área de informação) — chip tonal M3, nunca tapa o título */
.imz-ad-type-musica .imz-ad-badge-musica {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 6px;
    background: var(--m3-accent-soft);
    color: var(--m3-accent);
    border: 1px solid var(--m3-accent-border);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.imz-ad-music-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card de música — SEMPRE vertical (capa em cima, info em baixo) */
.imz-ad-music-card {
    display: flex;
    flex-direction: column !important;
    padding: 0;
}

.imz-ad-music-cover {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: none;
    display: block;
}

.imz-ad-music-cover-placeholder {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    background: linear-gradient(135deg, #374151, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.imz-ad-music-info {
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}

.imz-ad-music-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--imz-color-text, #fff);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.imz-ad-music-artist {
    margin: 0 0 2px;
    font-size: 12px;
    color: var(--imz-color-text-light, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botão play centrado na capa */
.imz-ad-music-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s ease;
    opacity: 0;
}

.imz-ad-type-musica:hover .imz-ad-music-play {
    opacity: 1;
    background: var(--m3-accent, rgba(245, 158, 11, 0.85));
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Garantir que ambos os tipos têm tamanhos consistentes */
.imz-ads-layout-horizontal .imz-ad-item {
    flex: 1 1 0;
    min-width: 200px;
    max-width: 50%;
}

@media (max-width: 600px) {
    .imz-ads-layout-horizontal .imz-ad-item {
        max-width: 100%;
        flex: 1 1 100%;
    }

    /* MOBILE: Todos os cards de música são verticais */
    .imz-ad-type-musica .imz-ad-music-card,
    .imz-ad-type-musica[data-format="leaderboard"] .imz-ad-music-card,
    .imz-ad-type-musica[data-format="mobile_banner"] .imz-ad-music-card {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .imz-ad-type-musica .imz-ad-music-cover,
    .imz-ad-type-musica[data-format="leaderboard"] .imz-ad-music-cover,
    .imz-ad-type-musica[data-format="mobile_banner"] .imz-ad-music-cover {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
        border-radius: 0 !important;
    }

    .imz-ad-type-musica .imz-ad-music-cover-placeholder {
        width: 100% !important;
        aspect-ratio: 16/9 !important;
    }

    /* Badge: chip em fluxo, compacto em mobile */
    .imz-ad-type-musica .imz-ad-badge-musica {
        font-size: 9px;
        padding: 2px 8px;
    }

    .imz-ad-type-musica .imz-ad-music-info {
        padding: 12px 14px !important;
    }

    .imz-ad-type-musica .imz-ad-music-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .imz-ad-type-musica .imz-ad-music-artist {
        font-size: 12px;
    }

    .imz-ad-type-musica .imz-ad-music-play {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .imz-ad-music-info { padding: 10px 12px !important; }
    .imz-ad-music-title { font-size: 13px !important; }
    .imz-ad-music-artist { font-size: 11px !important; }

    .imz-ad-type-musica .imz-ad-badge-musica {
        font-size: 8px;
        padding: 2px 6px;
    }
}

/* =============================================================================
   SISTEMA DE RECOMENDAÇÕES (Like / Dislike)
   ============================================================================= */

.imz-rec-container {
    text-align: center;
    padding: 20px 0 10px;
    margin: 20px auto;
}

.imz-rec-label {
    font-size: 14px;
    color: var(--imz-color-text-light, #888);
    margin: 0 0 12px;
}

.imz-rec-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.imz-rec-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid var(--imz-border-color, #2a2a2a);
    background: var(--imz-color-background-soft, #1a1a1a);
    color: var(--imz-color-text-light, #888);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.imz-rec-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.25s ease;
}

.imz-rec-btn:hover {
    border-color: var(--imz-color-text-light, #555);
    color: var(--imz-color-text, #fff);
}

/* Like active */
.imz-rec-like.active {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.1);
    color: #10b981;
}
.imz-rec-like.active svg {
    fill: #10b981;
    stroke: #10b981;
}
.imz-rec-like:hover {
    border-color: #059669;
}

/* Dislike active */
.imz-rec-dislike.active {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
}
.imz-rec-dislike.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}
.imz-rec-dislike:hover {
    border-color: #dc2626;
}

.imz-rec-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.imz-rec-count {
    font-weight: 700;
    font-size: 15px;
}

/* --- Widget de Músicas Recomendadas --- */

.imz-rec-widget {
    background: var(--imz-color-background-soft, #1a1a1a);
    border: 1px solid var(--imz-border-color, #2a2a2a);
    border-radius: 14px;
    overflow: hidden;
    margin: 20px 0;
}

.imz-rec-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--imz-color-text, #fff);
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--imz-border-color, #2a2a2a);
}

.imz-rec-widget-list {
    padding: 0;
    margin: 0;
}

.imz-rec-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid var(--imz-border-color, #2a2a2a);
    transition: background 0.2s;
}

.imz-rec-widget-item:last-child {
    border-bottom: none;
}

.imz-rec-widget-item:hover {
    background: var(--imz-color-background, #141414);
}

.imz-rec-widget-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.imz-rec-widget-cover-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #374151, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.imz-rec-widget-info {
    flex: 1;
    min-width: 0;
}

.imz-rec-widget-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--imz-color-text, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imz-rec-widget-artist {
    display: block;
    font-size: 11px;
    color: var(--imz-color-text-light, #888);
}

.imz-rec-widget-stats {
    flex-shrink: 0;
}

.imz-rec-widget-likes {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

@media (max-width: 480px) {
    .imz-rec-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .imz-rec-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* =============================================================================
   MÚSICA DESTACADA — Meta info (artista, género, downloads)
   ============================================================================= */

.imz-ad-music-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--imz-color-text-light, #666);
}

.imz-ad-music-genre {
    background: var(--m3-accent-soft, rgba(255,255,255,0.06));
    color: var(--m3-accent, var(--imz-color-text-light, #888));
    border: 1px solid var(--m3-accent-border, transparent);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.imz-ad-music-downloads {
    font-size: 10px;
    opacity: 0.7;
}

/* =============================================================================
   FORMATOS DE MÚSICA — adaptação inteligente para capas 1:1
   As capas das músicas vêm quadradas; cortá-las para caber em banners
   horizontais destruía a imagem. Solução: nos formatos horizontais a capa
   fica quadrada à esquerda (inteira, sem corte) com a informação ao lado.
   ============================================================================= */

@media (min-width: 601px) {
    .imz-ad-type-musica[data-format="leaderboard"] .imz-ad-music-card,
    .imz-ad-type-musica[data-format="mobile_banner"] .imz-ad-music-card {
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Dimensões fixadas em todos os eixos (min/max) para a capa nunca
       esticar nem encolher, independentemente do flex do contentor */
    .imz-ad-type-musica[data-format="leaderboard"] .imz-ad-music-cover,
    .imz-ad-type-musica[data-format="leaderboard"] .imz-ad-music-cover-placeholder {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 100px !important;
        align-self: center !important;
        object-fit: cover;
    }

    .imz-ad-type-musica[data-format="mobile_banner"] .imz-ad-music-cover,
    .imz-ad-type-musica[data-format="mobile_banner"] .imz-ad-music-cover-placeholder {
        width: 84px !important;
        height: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
        min-height: 84px !important;
        max-height: 84px !important;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 84px !important;
        align-self: center !important;
        object-fit: cover;
    }

    .imz-ad-type-musica[data-format="leaderboard"] .imz-ad-music-info,
    .imz-ad-type-musica[data-format="mobile_banner"] .imz-ad-music-info {
        align-self: center;
        padding: 10px 16px;
    }
}

/* Stories: capa quadrada completa (sem cortar para 9:16) + informação por baixo */
.imz-ad-type-musica[data-format="stories"] .imz-ad-music-cover,
.imz-ad-type-musica[data-format="stories"] .imz-ad-music-cover-placeholder {
    aspect-ratio: 1 / 1;
}

.imz-ad-type-musica[data-format="stories"] {
    max-width: 360px;
}

/* =============================================================================
   FIX: Remover sublinhado vermelho dos links de anúncios
   ============================================================================= */

.imz-ad-item a,
.imz-ad-item a:link,
.imz-ad-item a:visited,
.imz-ad-item a:hover,
.imz-ad-item a:active,
.imz-ad-item a:focus,
.imz-ad-link,
.imz-ad-link:link,
.imz-ad-link:visited,
.imz-ad-link:hover,
.imz-ad-link:active,
.imz-ad-link:focus,
.imz-ad-music-link,
.imz-ad-music-link:link,
.imz-ad-music-link:visited,
.imz-ad-music-link:hover,
.imz-ad-music-link:active,
.imz-ad-music-link:focus {
    text-decoration: none;
    outline: none;
    border-bottom: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    color: inherit;
}

.imz-ad-text-content a,
.imz-ad-text-content a:link,
.imz-ad-text-content a:visited {
    text-decoration: none;
    color: inherit;
    border-bottom: none;
    box-shadow: none;
}

.imz-ad-title,
.imz-ad-music-title {
    text-decoration: none;
    border-bottom: none;
}
