.thra-player {
    --thra-bg: #fff;
    --thra-text: #111827;
    --thra-muted: #667085;
    --thra-border: #e4e7ec;
    --thra-track: #eaecf0;
    --thra-accent: #111827;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px;
    padding: 14px 16px 12px;
    border: 1px solid var(--thra-border);
    border-radius: 12px;
    background: var(--thra-bg);
    color: var(--thra-text);
    box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
    font-family: inherit;
}

.thra-player [data-thra-text] { display: none !important; }

.thra-player__main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.thra-player__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.thra-player__button:hover { transform: translateY(-1px); }
.thra-player__button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.thra-player__button--primary {
    color: #fff;
    background: var(--thra-accent);
    white-space: nowrap;
}

.thra-player__button--stop {
    width: 38px;
    padding: 0;
    color: var(--thra-text);
    background: var(--thra-track);
}

.thra-player__icon { display: inline-block; font-size: 12px; line-height: 1; }

.thra-player__progress-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 70px;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--thra-track);
}

.thra-player__progress {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--thra-accent);
    transition: width .2s ease;
}

.thra-player__percent {
    flex: 0 0 auto;
    width: 38px;
    text-align: right;
    color: var(--thra-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.thra-player__rate {
    min-width: 68px;
    height: 36px;
    border: 1px solid var(--thra-border);
    border-radius: 8px;
    padding: 0 8px;
    background: var(--thra-bg);
    color: var(--thra-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.thra-player__status {
    margin-top: 8px;
    color: var(--thra-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* Editorial */
.thra-player--editorial {
    --thra-bg: #f8fafc;
    --thra-border: #d0d5dd;
    --thra-accent: #202939;
    position: relative;
    border-radius: 8px;
    border-left: 5px solid var(--thra-accent);
    box-shadow: none;
    padding-left: 18px;
}

.thra-player--editorial .thra-player__button--primary { border-radius: 7px; }
.thra-player--editorial .thra-player__rate { border-radius: 6px; }

/* Compact */
.thra-player--compacto {
    padding: 9px 10px;
    margin-bottom: 18px;
    border-radius: 999px;
    box-shadow: none;
}

.thra-player--compacto .thra-player__button { min-height: 34px; padding: 0 12px; font-size: 13px; }
.thra-player--compacto .thra-player__button--stop { width: 34px; padding: 0; }
.thra-player--compacto .thra-player__rate { height: 32px; min-width: 62px; border-radius: 999px; }
.thra-player--compacto .thra-player__status { display: none; }

/* Minimal */
.thra-player--minimalista {
    padding: 10px 0 12px;
    border: 0;
    border-top: 1px solid var(--thra-border);
    border-bottom: 1px solid var(--thra-border);
    border-radius: 0;
    box-shadow: none;
}

.thra-player--minimalista .thra-player__button--primary {
    min-height: 34px;
    padding: 0;
    color: var(--thra-accent);
    background: transparent;
}

.thra-player--minimalista .thra-player__button--stop { min-height: 32px; width: 32px; }
.thra-player--minimalista .thra-player__rate { height: 32px; }
.thra-player--minimalista .thra-player__status { margin-top: 5px; }

.thra-player .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 640px) {
    .thra-player {
        padding: 12px;
        border-radius: 10px;
    }

    .thra-player__main {
        flex-wrap: wrap;
        gap: 8px;
    }

    .thra-player__button--primary { flex: 1 1 auto; }
    .thra-player__progress-wrap { order: 4; flex-basis: calc(100% - 46px); }
    .thra-player__percent { order: 5; }
    .thra-player__rate-label { margin-left: auto; }

    .thra-player--compacto {
        border-radius: 12px;
        padding: 9px;
    }

    .thra-player--compacto .thra-player__progress-wrap {
        order: 4;
        flex-basis: calc(100% - 46px);
    }

    .thra-player--minimalista {
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
    }
}
