/* ==========================================================================
   Guia Vegano — Player de áudio (100% CSS, paleta aquarela)
   Plugin de conteúdo "mywavplayer" v2
   ========================================================================== */

.gvwp {
    /* Paleta aquarelada baseada na logo do Guia Vegano */
    --gvwp-green: #7ab55c;
    --gvwp-green-deep: #4e8c3a;
    --gvwp-leaf: #b7dc9e;
    --gvwp-amber: #f4b942;
    --gvwp-peach: #f7a072;
    --gvwp-coral: #e2574c;
    --gvwp-brown: #96613a;

    --gvwp-paper: #fffdf7;
    --gvwp-paper-2: #f6f8f0;
    --gvwp-ink: #2f3b31;
    --gvwp-muted: #7b8a76;
    --gvwp-line: rgba(78, 140, 58, 0.16);
    --gvwp-rail: rgba(78, 140, 58, 0.14);

    --gvwp-shadow: 0 18px 38px -22px rgba(47, 59, 49, 0.55), 0 2px 8px rgba(47, 59, 49, 0.06);
    --gvwp-shadow-hover: 0 26px 50px -22px rgba(47, 59, 49, 0.55), 0 4px 12px rgba(47, 59, 49, 0.08);
    --gvwp-wash-op: 1;
    --gvwp-highlight: rgba(255, 255, 255, .7);
    --gvwp-radius: 24px;

    /* Grão de papel aquarela (SVG inline, sem bitmap) */
    --gvwp-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");

    /* flow-root (e não block): assim a raiz também desvia de imagens
       flutuadas, em vez de ficar por baixo delas e espremer o card. */
    display: flow-root;
    max-width: 640px;
    /* min-width/min() garantem que o player encolha também quando o template
       coloca o conteúdo do artigo dentro de um flex/grid. */
    max-width: min(640px, 100%);
    min-width: 0;
    margin: 1.6em 0;
    color: var(--gvwp-ink);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}

/* Tema escuro ---------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .gvwp[data-theme="auto"] {
        --gvwp-paper: #1e241f;
        --gvwp-paper-2: #182019;
        --gvwp-ink: #eef3ea;
        --gvwp-muted: #9db096;
        --gvwp-line: rgba(183, 220, 158, 0.18);
        --gvwp-rail: rgba(183, 220, 158, 0.16);
        --gvwp-shadow: 0 18px 38px -20px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.35);
        --gvwp-shadow-hover: 0 26px 52px -20px rgba(0, 0, 0, 0.9), 0 4px 14px rgba(0, 0, 0, 0.4);
    }
}

.gvwp[data-theme="dark"] {
    --gvwp-paper: #1e241f;
    --gvwp-paper-2: #182019;
    --gvwp-ink: #eef3ea;
    --gvwp-muted: #9db096;
    --gvwp-line: rgba(183, 220, 158, 0.18);
    --gvwp-rail: rgba(183, 220, 158, 0.16);
    --gvwp-shadow: 0 18px 38px -20px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.35);
    --gvwp-shadow-hover: 0 26px 52px -20px rgba(0, 0, 0, 0.9), 0 4px 14px rgba(0, 0, 0, 0.4);
    --gvwp-wash-op: .55;
    --gvwp-highlight: rgba(255, 255, 255, .08);
}

.gvwp *,
.gvwp *::before,
.gvwp *::after {
    box-sizing: border-box;
}

/* Fallback sem JavaScript: o <audio> nativo aparece, o card fica oculto. */
.gvwp:not(.is-ready) .gvwp-card {
    display: none;
}

.gvwp .gvwp-audio {
    display: block;
    width: 100%;
    max-width: 100%;
}

.gvwp.is-ready .gvwp-audio {
    display: none;
}

/* Card ------------------------------------------------------------------ */
.gvwp-card {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid var(--gvwp-line);
    border-radius: var(--gvwp-radius);
    background:
        linear-gradient(155deg, var(--gvwp-paper) 0%, var(--gvwp-paper-2) 100%);
    box-shadow: var(--gvwp-shadow), inset 0 1px 0 var(--gvwp-highlight);
    transition: box-shadow .45s cubic-bezier(.2, .8, .2, 1), transform .45s cubic-bezier(.2, .8, .2, 1);
}

.gvwp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gvwp-shadow-hover), inset 0 1px 0 var(--gvwp-highlight);
}

/* Manchas de aquarela ----------------------------------------------------
   IMPORTANTE (Safari/iOS): um filho com filter/transform vira camada composta
   e escapa do recorte arredondado do pai — as quinas do card ficam quadradas.
   Por isso a mancha ocupa exatamente a caixa do card, tem o próprio
   border-radius e nunca é ampliada para fora dela.
   As posições/tamanhos dos gradientes já estão convertidos para essa caixa. */
.gvwp-wash {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    opacity: var(--gvwp-wash-op, 1);
    background:
        radial-gradient(71% 88% at -18% -4%, rgba(122, 181, 92, .55), transparent 62%),
        radial-gradient(65% 82% at 101% -25%, rgba(244, 185, 66, .55), transparent 64%),
        radial-gradient(75% 92% at 128% 98%, rgba(247, 160, 114, .48), transparent 62%),
        radial-gradient(58% 75% at 23% 142%, rgba(183, 220, 158, .60), transparent 64%),
        radial-gradient(44% 54% at 70% 128%, rgba(226, 87, 76, .16), transparent 70%);
    transition: opacity .6s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
}

.gvwp-wash::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--gvwp-grain);
    background-size: 160px 160px;
    opacity: .05;
    mix-blend-mode: multiply;
}

.gvwp.is-playing .gvwp-wash {
    animation: gvwp-drift 18s ease-in-out infinite alternate;
}

/* A escala fica sempre <= 1: assim a mancha nunca ultrapassa a própria caixa
   arredondada, mesmo onde o navegador ignora o recorte do card. */
@keyframes gvwp-drift {
    0%   { transform: scale(.96); }
    50%  { transform: scale(.96) translate(1.5%, -1.2%); }
    100% { transform: scale(.96) translate(-1.5%, 1.2%); }
}

.gvwp-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Capa ------------------------------------------------------------------ */
.gvwp-art {
    position: relative;
    flex: 0 0 auto;
}

.gvwp-cover {
    position: relative;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(70% 70% at 30% 25%, rgba(255, 255, 255, .75), transparent 60%),
        linear-gradient(140deg, var(--gvwp-leaf), var(--gvwp-green) 55%, var(--gvwp-amber));
    box-shadow:
        0 10px 22px -12px rgba(78, 140, 58, .75),
        inset 0 0 0 1px rgba(255, 255, 255, .35);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}

.gvwp-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--gvwp-grain);
    background-size: 120px 120px;
    opacity: .08;
    mix-blend-mode: overlay;
}

.gvwp-card:hover .gvwp-cover {
    transform: rotate(-2deg) scale(1.03);
}

.gvwp.is-playing .gvwp-cover {
    animation: gvwp-breathe 4.5s ease-in-out infinite;
    box-shadow:
        0 14px 28px -12px rgba(78, 140, 58, .85),
        inset 0 0 0 1px rgba(255, 255, 255, .45);
}

@keyframes gvwp-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.045); }
}

.gvwp-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
}

.gvwp-cover-fallback {
    width: 42%;
    height: 42%;
    fill: none;
    stroke: rgba(255, 255, 255, .95);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 3px rgba(47, 59, 49, .25));
}

.gvwp-cover-img ~ .gvwp-cover-fallback {
    display: none;
}

/* Equalizador ----------------------------------------------------------- */
.gvwp-eq {
    position: absolute;
    right: -7px;
    top: -7px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
    padding: 5px 7px;
    border-radius: 12px;
    background: var(--gvwp-paper);
    box-shadow: 0 6px 14px -8px rgba(47, 59, 49, .7);
    opacity: 0;
    transform: translateY(-6px) scale(.85);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.gvwp.is-playing .gvwp-eq {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gvwp-eq i {
    display: block;
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--gvwp-amber), var(--gvwp-green));
}

.gvwp.is-playing .gvwp-eq i {
    animation: gvwp-bounce .9s ease-in-out infinite;
}

.gvwp-eq i:nth-child(2) { animation-delay: .18s; }
.gvwp-eq i:nth-child(3) { animation-delay: .36s; }
.gvwp-eq i:nth-child(4) { animation-delay: .54s; }

@keyframes gvwp-bounce {
    0%, 100% { height: 5px; }
    50%      { height: 15px; }
}

/* Corpo ----------------------------------------------------------------- */
.gvwp-body {
    flex: 1 1 auto;
    min-width: 0;
}

.gvwp-titles {
    min-width: 0;
}

.gvwp-track {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 20px), transparent 100%);
    margin-left: -14px;
    padding-left: 14px;
}

.gvwp-track:not(.is-scrolling) {
    -webkit-mask-image: none;
    mask-image: none;
}

.gvwp-track-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
}

.gvwp-track.is-scrolling .gvwp-track-inner {
    max-width: none;
    animation: gvwp-marquee var(--gvwp-marquee-duration, 18s) linear infinite;
}

.gvwp-card:hover .gvwp-track.is-scrolling .gvwp-track-inner {
    animation-play-state: paused;
}

@keyframes gvwp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 1.5rem)); }
}

.gvwp-track-text {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--gvwp-ink);
    overflow: hidden;
    text-overflow: ellipsis;
}

.gvwp-track:not(.is-scrolling) .gvwp-track-text {
    max-width: 100%;
}

.gvwp-subtitle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--gvwp-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gvwp-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gvwp-coral);
    box-shadow: 0 0 0 0 rgba(226, 87, 76, .55);
}

.gvwp.is-playing .gvwp-dot {
    background: var(--gvwp-green);
    animation: gvwp-ping 2s ease-out infinite;
}

@keyframes gvwp-ping {
    0%   { box-shadow: 0 0 0 0 rgba(122, 181, 92, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(122, 181, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(122, 181, 92, 0); }
}

/* Barra de progresso ----------------------------------------------------- */
.gvwp-seek-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 4px;
}

.gvwp-seek {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 0;
    cursor: pointer;
    touch-action: none;
    outline: none;
}

.gvwp-rail {
    position: relative;
    height: 7px;
    border-radius: 99px;
    background: var(--gvwp-rail);
    overflow: visible;
    transition: height .25s cubic-bezier(.2, .8, .2, 1);
}

.gvwp-seek:hover .gvwp-rail,
.gvwp-seek:focus-visible .gvwp-rail,
.gvwp-seek.is-scrubbing .gvwp-rail {
    height: 11px;
}

.gvwp-buffer {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 99px;
    background: rgba(122, 181, 92, .22);
    transition: width .4s ease;
}

.gvwp-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gvwp-green-deep), var(--gvwp-green) 45%, var(--gvwp-amber) 100%);
    box-shadow: 0 1px 6px -1px rgba(78, 140, 58, .6);
}

.gvwp:not(.is-scrubbing) .gvwp-fill {
    transition: width .12s linear;
}

.gvwp-thumb {
    position: absolute;
    top: 50%;
    right: 0;
    width: 15px;
    height: 15px;
    transform: translate(50%, -50%) scale(.001);
    border-radius: 50%;
    background: var(--gvwp-paper);
    box-shadow:
        0 0 0 3px var(--gvwp-green),
        0 4px 10px -3px rgba(47, 59, 49, .55);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.gvwp-seek:hover .gvwp-thumb,
.gvwp-seek:focus-visible .gvwp-thumb,
.gvwp-seek.is-scrubbing .gvwp-thumb,
.gvwp.is-playing .gvwp-thumb {
    transform: translate(50%, -50%) scale(1);
}

.gvwp-seek:focus-visible .gvwp-thumb {
    box-shadow:
        0 0 0 3px var(--gvwp-green),
        0 0 0 7px rgba(122, 181, 92, .28);
}

/* Tooltip do scrub */
.gvwp-tip {
    position: absolute;
    bottom: calc(100% + 2px);
    left: 0;
    transform: translate(-50%, 4px);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: var(--gvwp-green-deep);
    box-shadow: 0 6px 14px -8px rgba(47, 59, 49, .9);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity .2s ease, transform .2s ease;
}

.gvwp-seek:hover .gvwp-tip,
.gvwp-seek.is-scrubbing .gvwp-tip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gvwp-times {
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--gvwp-muted);
    white-space: nowrap;
}

.gvwp-current {
    color: var(--gvwp-ink);
}

.gvwp-sep {
    margin: 0 2px;
    opacity: .5;
}

/* Controles -------------------------------------------------------------- */
.gvwp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.gvwp-spacer {
    flex: 1 1 auto;
}

.gvwp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--gvwp-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color .25s ease, background-color .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
    -webkit-tap-highlight-color: transparent;
}

.gvwp-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gvwp-btn:hover {
    color: var(--gvwp-green-deep);
    background: rgba(122, 181, 92, .14);
}

.gvwp-btn:active {
    transform: scale(.92);
}

.gvwp-btn:focus-visible {
    outline: 2px solid var(--gvwp-green);
    outline-offset: 2px;
}

.gvwp-back svg,
.gvwp-fwd svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
    stroke: none;
}

.gvwp-fwd svg {
    transform: scaleX(-1);
}

.gvwp-skip-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-top: 3px;
    font-size: .53rem;
    font-weight: 800;
    letter-spacing: -.03em;
    pointer-events: none;
}

.gvwp-btn-pill {
    width: auto;
    min-width: 44px;
    padding: 0 10px;
    height: 30px;
    border-radius: 99px;
    font: inherit;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: var(--gvwp-green-deep);
    background: rgba(122, 181, 92, .14);
}

.gvwp-btn-pill:hover {
    background: rgba(122, 181, 92, .24);
}

/* Botão principal -------------------------------------------------------- */
.gvwp-play {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background:
        radial-gradient(80% 80% at 32% 22%, rgba(255, 255, 255, .45), transparent 60%),
        linear-gradient(145deg, var(--gvwp-green) 0%, var(--gvwp-green-deep) 100%);
    box-shadow:
        0 12px 24px -10px rgba(78, 140, 58, .9),
        inset 0 0 0 1px rgba(255, 255, 255, .28);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, background .35s ease;
    -webkit-tap-highlight-color: transparent;
}

.gvwp-play:hover {
    transform: scale(1.06);
    box-shadow:
        0 16px 30px -10px rgba(78, 140, 58, 1),
        inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.gvwp-play:active {
    transform: scale(.95);
}

.gvwp-play:focus-visible {
    outline: 3px solid rgba(122, 181, 92, .45);
    outline-offset: 3px;
}

.gvwp-play svg {
    grid-area: 1 / 1;
    width: 24px;
    height: 24px;
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.gvwp-ico-play {
    fill: currentColor;
    stroke: none;
    margin-left: 3px;
}

.gvwp-ico-pause {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.gvwp .gvwp-ico-pause {
    opacity: 0;
    transform: scale(.6) rotate(-25deg);
}

.gvwp.is-playing .gvwp-ico-play {
    opacity: 0;
    transform: scale(.6) rotate(25deg);
}

.gvwp.is-playing .gvwp-ico-pause {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Ondas do botão quando toca */
.gvwp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gvwp-green);
    opacity: 0;
    pointer-events: none;
}

.gvwp.is-playing .gvwp-pulse {
    animation: gvwp-pulse 2.6s cubic-bezier(.2, .8, .2, 1) infinite;
}

.gvwp.is-playing .gvwp-pulse-2 {
    animation-delay: 1.3s;
}

@keyframes gvwp-pulse {
    0%   { opacity: .5; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.75); }
}

/* Carregando */
.gvwp-spin {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--gvwp-amber);
    border-right-color: var(--gvwp-amber);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.gvwp.is-loading .gvwp-spin {
    opacity: 1;
    animation: gvwp-spin .9s linear infinite;
}

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

/* Volume ----------------------------------------------------------------- */
.gvwp-volume {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.gvwp-ico-mute,
.gvwp.is-muted .gvwp-ico-vol {
    display: none;
}

.gvwp.is-muted .gvwp-ico-mute {
    display: block;
}

.gvwp-vol-range {
    width: 0;
    max-width: 78px;
    height: 22px;
    margin: 0;
    padding: 0;
    opacity: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    accent-color: var(--gvwp-green);
    transition: width .35s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, margin .35s ease;
}

.gvwp-volume:hover .gvwp-vol-range,
.gvwp-volume:focus-within .gvwp-vol-range {
    width: 78px;
    margin-left: 4px;
    opacity: 1;
}

.gvwp-vol-range::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gvwp-green) var(--gvwp-vol, 100%), var(--gvwp-rail) var(--gvwp-vol, 100%));
}

.gvwp-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--gvwp-paper);
    box-shadow: 0 0 0 2.5px var(--gvwp-green), 0 2px 6px -2px rgba(47, 59, 49, .6);
    cursor: pointer;
}

.gvwp-vol-range::-moz-range-track {
    height: 5px;
    border-radius: 99px;
    background: var(--gvwp-rail);
}

.gvwp-vol-range::-moz-range-progress {
    height: 5px;
    border-radius: 99px;
    background: var(--gvwp-green);
}

.gvwp-vol-range::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: var(--gvwp-paper);
    box-shadow: 0 0 0 2.5px var(--gvwp-green), 0 2px 6px -2px rgba(47, 59, 49, .6);
    cursor: pointer;
}

.gvwp-vol-range:focus-visible {
    outline: 2px solid var(--gvwp-green);
    outline-offset: 3px;
}

/* Erro ------------------------------------------------------------------- */
.gvwp-error {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: var(--gvwp-coral);
}

.gvwp-error[hidden] {
    display: none;
}

/* ==========================================================================
   Convivência com imagens alinhadas (float)
   ==========================================================================
   O card desvia de imagens flutuadas. Quando não sobra espaço utilizável ao
   lado delas, ele precisa ir para baixo — senão o navegador o empurra para
   fora da tela. Em telas estreitas isso é sempre verdade; nas demais, o JS
   mede e aplica .is-cleared quando necessário. */

@media (max-width: 700px) {
    .gvwp {
        clear: both;
    }
}

.gvwp.is-cleared {
    clear: both;
}

/* ==========================================================================
   Responsivo por LARGURA DO CARD, não da tela.
   As classes is-sm / is-xs / is-xxs são aplicadas pelo JS medindo o próprio
   card, então o player se adapta também quando está numa coluna estreita:
   ao lado de uma imagem alinhada, dentro de um módulo, numa tabela etc.
   ========================================================================== */

/* Até 480px de card -------------------------------------------------- */
.gvwp.is-sm .gvwp-card {
    padding: 16px;
    --gvwp-radius: 20px;
}

.gvwp.is-sm .gvwp-inner {
    gap: 14px;
    align-items: flex-start;
}

.gvwp.is-sm .gvwp-cover {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.gvwp.is-sm .gvwp-eq {
    height: 22px;
    padding: 4px 6px;
}

.gvwp.is-sm .gvwp-track-text {
    font-size: .95rem;
}

.gvwp.is-sm .gvwp-play {
    width: 48px;
    height: 48px;
}

.gvwp.is-sm .gvwp-play svg {
    width: 21px;
    height: 21px;
}

.gvwp.is-sm .gvwp-volume,
.gvwp.is-sm .gvwp-download {
    display: none;
}

.gvwp.is-sm .gvwp-controls {
    gap: 4px;
}

/* Até 360px de card: tempos abaixo da barra, controles centralizados -- */
.gvwp.is-xs .gvwp-seek-row {
    display: block;
    margin: 8px 0 2px;
}

.gvwp.is-xs .gvwp-times {
    display: block;
    text-align: right;
    font-size: .72rem;
}

.gvwp.is-xs .gvwp-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.gvwp.is-xs .gvwp-spacer {
    display: none;
}

.gvwp.is-xs .gvwp-btn-pill {
    min-width: 38px;
    height: 28px;
    padding: 0 8px;
    font-size: .7rem;
}

/* Até 280px de card: capa acima, tudo empilhado ------------------------ */
.gvwp.is-xxs .gvwp-card {
    padding: 14px;
}

.gvwp.is-xxs .gvwp-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gvwp.is-xxs .gvwp-cover {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.gvwp.is-xxs .gvwp-body {
    width: 100%;
}

.gvwp.is-xxs .gvwp-titles {
    text-align: center;
}

.gvwp.is-xxs .gvwp-track-text {
    font-size: .88rem;
}

.gvwp.is-xxs .gvwp-track-inner {
    justify-content: center;
}

.gvwp.is-xxs .gvwp-subtitle {
    justify-content: center;
    font-size: .68rem;
}

.gvwp.is-xxs .gvwp-times {
    text-align: center;
}

.gvwp.is-xxs .gvwp-play {
    width: 44px;
    height: 44px;
}

.gvwp.is-xxs .gvwp-btn {
    width: 32px;
    height: 32px;
}

/* Rede de segurança: nunca deixar o conteúdo estourar o card ---------- */
.gvwp-body,
.gvwp-titles,
.gvwp-seek,
.gvwp-track {
    min-width: 0;
}

/* Acessibilidade: reduzir movimento -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .gvwp *,
    .gvwp *::before,
    .gvwp *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .gvwp-track.is-scrolling .gvwp-track-inner {
        animation: none;
        transform: none;
    }
}

/* Impressão -------------------------------------------------------------- */
@media print {
    .gvwp-card {
        box-shadow: none;
    }

    .gvwp-wash {
        display: none;
    }
}
