.pcrp-player {
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    z-index: 99999;
}

.pcrp-player * {
    box-sizing: border-box;
}

.pcrp-player-inner {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.25s ease;
}

.pcrp-logo-wrap {
    background: var(--pcrp-logo-bg);
    border-radius: var(--pcrp-logo-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcrp-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcrp-logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--pcrp-logo-bg);
}

.pcrp-content h3,
.pcrp-text-block h3 {
    margin: 0;
    color: inherit;
    font-weight: var(--pcrp-title-weight);
    line-height: 1.05;
}

.pcrp-now-playing {
    margin: 3px 0 0;
    line-height: 1.15;
    color: rgba(255,255,255,.88);
    font-weight: var(--pcrp-now-weight);
}

.pcrp-now-playing span {
    display: none;
}

.pcrp-now-playing strong {
    color: #ffffff;
    font-weight: var(--pcrp-now-weight);
}

.pcrp-status {
    display: none !important;
}

.pcrp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: var(--pcrp-badge-weight);
    letter-spacing: .01em;
    margin-bottom: 5px;
    line-height: 1;
}

.pcrp-live-dot {
    width: 8px;
    height: 8px;
    background: #ef233c;
    border-radius: 999px;
    animation: pcrpLiveBlink 1.25s infinite;
    flex-shrink: 0;
}

@keyframes pcrpLiveBlink {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 35, 60, 0.70);
    }

    60% {
        opacity: .55;
        box-shadow: 0 0 0 6px rgba(239, 35, 60, 0);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 35, 60, 0);
    }
}

.pcrp-play-button {
    width: var(--pcrp-play-size);
    height: var(--pcrp-play-size);
    min-width: var(--pcrp-play-size);
    border: none;
    background: var(--pcrp-play-bg);
    color: var(--pcrp-play-icon);
    border-radius: var(--pcrp-play-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all .22s ease;
    box-shadow: 0 12px 28px rgba(0,0,0,.26);
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

.pcrp-play-button:hover {
    background: var(--pcrp-play-bg-hover);
    color: var(--pcrp-play-icon-hover);
    transform: scale(1.06);
}

.pcrp-player.pcrp-is-playing .pcrp-play-button {
    background: var(--pcrp-play-bg-active);
    color: var(--pcrp-play-icon-active);
    animation: pcrpPlayPulse 1.7s ease-in-out infinite;
    box-shadow:
        0 0 0 0 color-mix(in srgb, var(--pcrp-play-glow) 45%, transparent),
        0 16px 36px rgba(0,0,0,.32);
}

.pcrp-player.pcrp-is-playing .pcrp-play-button:hover {
    background: var(--pcrp-play-bg-hover);
    color: var(--pcrp-play-icon-hover);
}

@keyframes pcrpPlayPulse {
    0% {
        box-shadow:
            0 0 0 0 color-mix(in srgb, var(--pcrp-play-glow) 55%, transparent),
            0 16px 36px rgba(0,0,0,.32);
    }

    70% {
        box-shadow:
            0 0 0 13px color-mix(in srgb, var(--pcrp-play-glow) 0%, transparent),
            0 16px 36px rgba(0,0,0,.32);
    }

    100% {
        box-shadow:
            0 0 0 0 color-mix(in srgb, var(--pcrp-play-glow) 0%, transparent),
            0 16px 36px rgba(0,0,0,.32);
    }
}

.pcrp-play-button svg {
    width: 58%;
    height: 58%;
    fill: currentColor;
}

.pcrp-icon-pause {
    display: none;
}

.pcrp-player.pcrp-is-playing .pcrp-icon-play {
    display: none;
}

.pcrp-player.pcrp-is-playing .pcrp-icon-pause {
    display: block;
}

.pcrp-volume-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcrp-volume-percent {
    min-width: 34px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    color: rgba(255,255,255,.7);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pcrp-volume-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .85;
    flex-shrink: 0;
}

.pcrp-volume-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    overflow: visible;
}

.pcrp-volume-speaker {
    fill: #ffffff;
}

.pcrp-volume-wave {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* THEME-PROOF VOLUME RANGE */
.pcrp-player .pcrp-player-inner input.pcrp-volume[type="range"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 3px !important;
    min-height: 3px !important;
    max-height: 3px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: linear-gradient(
        to right,
        var(--pcrp-volume-track) 0%,
        var(--pcrp-volume-track) var(--pcrp-volume-progress),
        rgba(255,255,255,.15) var(--pcrp-volume-progress),
        rgba(255,255,255,.15) 100%
    ) !important;
    accent-color: var(--pcrp-volume-dot) !important;
}

.pcrp-player .pcrp-player-inner input.pcrp-volume[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none !important;
    height: 3px !important;
    min-height: 3px !important;
    max-height: 3px !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.pcrp-player .pcrp-player-inner input.pcrp-volume[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: var(--pcrp-volume-dot) !important;
    border: 0 !important;
    margin-top: -3.5px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.3) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.pcrp-player .pcrp-player-inner input.pcrp-volume[type="range"]::-webkit-slider-thumb:hover {
    width: 12px !important;
    height: 12px !important;
    margin-top: -4.5px !important;
    box-shadow: 0 3px 8px rgba(100, 200, 255, 0.5) !important;
}

.pcrp-player .pcrp-player-inner input.pcrp-volume[type="range"]::-moz-range-track {
    height: 3px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.15) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.pcrp-player .pcrp-player-inner input.pcrp-volume[type="range"]::-moz-range-progress {
    height: 3px !important;
    border-radius: 999px !important;
    background: var(--pcrp-volume-track) !important;
    border: 0 !important;
}

.pcrp-player .pcrp-player-inner input.pcrp-volume[type="range"]::-moz-range-thumb {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: var(--pcrp-volume-dot) !important;
    border: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.3) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.pcrp-player .pcrp-player-inner input.pcrp-volume[type="range"]::-moz-range-thumb:hover {
    width: 12px !important;
    height: 12px !important;
    box-shadow: 0 3px 8px rgba(100, 200, 255, 0.5) !important;
}

.pcrp-offline-message {
    display: none;
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(239,68,68,.14);
    color: #fecaca;
    font-size: 12px;
    font-weight: 700;
}

.pcrp-player.pcrp-is-offline .pcrp-offline-message {
    display: block;
}

/* SOCIAL DRAWER */
.pcrp-social-drawer {
    position: absolute;
    top: 18px;
    right: 0;
    z-index: 20;
    width: 100%;
    height: 42px;
    pointer-events: none;
}

.pcrp-social-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 38px;
    border: 0;
    border-radius: 14px 0 0 14px;
    background: rgba(0, 120, 255, .72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,.22);
    pointer-events: auto;
    transition: all .22s ease;
}

.pcrp-social-toggle:hover {
    background: rgba(0, 140, 255, .9);
}

.pcrp-social-arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(135deg);
    transition: transform .22s ease;
}

.pcrp-social-open .pcrp-social-arrow {
    transform: rotate(-45deg);
}

.pcrp-social-panel {
    position: absolute;
    top: 0;
    right: 30px;
    width: calc(100% - 58px);
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 16px 0 0 16px;
    background: rgba(8, 12, 24, .82);
    border: 1px solid rgba(255,255,255,.14);
    border-right: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 14px 30px rgba(0,0,0,.28);
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    pointer-events: none;
    transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
}

.pcrp-social-open .pcrp-social-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.pcrp-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.pcrp-social-link {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255,255,255,.13);
    text-decoration: none !important;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}

.pcrp-social-link:hover {
    transform: translateY(-2px) scale(1.06);
    background: var(--pcrp-social-color);
    color: #ffffff;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--pcrp-social-color) 25%, transparent),
        0 8px 20px color-mix(in srgb, var(--pcrp-social-color) 40%, transparent);
    filter: saturate(1.2);
}

.pcrp-social-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.pcrp-about-player {
    margin-left: auto;
    max-width: 130px;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 700;
    color: rgba(255,255,255,.88);
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s ease, opacity .2s ease;
}

.pcrp-about-player:hover {
    color: #ffffff;
    opacity: .92;
}

.pcrp-layout-fullbar .pcrp-social-drawer {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    pointer-events: auto;
}

.pcrp-layout-fullbar .pcrp-social-toggle {
    display: none;
}

.pcrp-layout-fullbar .pcrp-social-panel {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
}

.pcrp-layout-mini-vertical .pcrp-social-drawer,
.pcrp-layout-mini-horizontal .pcrp-social-drawer {
    display: none;
}

/* CARD */
.pcrp-layout-card .pcrp-player-inner {
    width: 340px;
    min-height: 430px;
    padding: 26px 28px 30px;
    display: flex;
    flex-direction: column;
}

.pcrp-layout-card .pcrp-logo-wrap {
    width: 250px;
    height: 235px;
    margin: 0 auto 22px;
}

.pcrp-layout-card .pcrp-content {
    display: none;
}

.pcrp-layout-card .pcrp-bottom-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.pcrp-layout-card .pcrp-text-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pcrp-layout-card .pcrp-text-block h3 {
    margin-bottom: 2px;
}

.pcrp-layout-card .pcrp-volume-wrap {
    padding: 0 10px;
    margin-top: auto;
}

.pcrp-layout-card .pcrp-volume {
    width: 150px !important;
}

/* MINI VERTICAL */
.pcrp-layout-mini-vertical .pcrp-player-inner {
    width: 100px;
    height: 170px;
    padding: 10px;
}

.pcrp-layout-mini-vertical .pcrp-logo-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
}

.pcrp-layout-mini-vertical .pcrp-content,
.pcrp-layout-mini-vertical .pcrp-volume-wrap,
.pcrp-layout-mini-vertical .pcrp-text-block {
    display: none;
}

.pcrp-layout-mini-vertical .pcrp-bottom-row {
    display: block;
}

.pcrp-layout-mini-vertical .pcrp-play-button {
    margin: 0 auto;
}

/* MINI HORIZONTAL */
.pcrp-layout-mini-horizontal .pcrp-player-inner {
    width: 178px;
    height: 78px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pcrp-layout-mini-horizontal .pcrp-logo-wrap {
    width: 70px;
    height: 58px;
}

.pcrp-layout-mini-horizontal .pcrp-content,
.pcrp-layout-mini-horizontal .pcrp-volume-wrap,
.pcrp-layout-mini-horizontal .pcrp-text-block {
    display: none;
}

.pcrp-layout-mini-horizontal .pcrp-bottom-row {
    display: block;
}

/* MEDIUM */
.pcrp-layout-medium .pcrp-player-inner {
    width: 410px;
    min-height: 155px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 76px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 14px;
    align-items: center;
}

.pcrp-layout-medium .pcrp-logo-wrap {
    width: 70px;
    height: 70px;
    grid-column: 1;
    grid-row: 1;
}

.pcrp-layout-medium .pcrp-content {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.pcrp-layout-medium .pcrp-bottom-row {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcrp-layout-medium .pcrp-bottom-row .pcrp-live-badge,
.pcrp-layout-medium .pcrp-bottom-row .pcrp-text-block {
    display: none;
}

.pcrp-layout-medium .pcrp-play-button {
    flex: 0 0 auto;
}

.pcrp-layout-medium .pcrp-volume-wrap {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.pcrp-layout-medium .pcrp-volume {
    width: 100% !important;
}
/* FULL BAR */
.pcrp-layout-fullbar .pcrp-player-inner {
    width: 100%;
    min-height: 76px;
    padding: 10px 24px;

    display: grid;
    grid-template-columns: minmax(280px, 1fr) 70px minmax(260px, 340px) minmax(280px, 1fr);
    align-items: center;
    gap: 16px;
}

/* LOGO */
.pcrp-layout-fullbar .pcrp-logo-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 52px;
    height: 52px;
}

/* TEXTO */
.pcrp-layout-fullbar .pcrp-content {
    grid-column: 1;
    grid-row: 1;
    margin-left: 68px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.pcrp-layout-fullbar .pcrp-content h3 {
    font-size: 16px;
}

.pcrp-layout-fullbar .pcrp-now-playing {
    font-size: 12px;
}

.pcrp-layout-fullbar .pcrp-status {
    display: none !important;
}

/* PLAY */
.pcrp-layout-fullbar .pcrp-bottom-row {
    grid-column: 2;
    grid-row: 1;

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

.pcrp-layout-fullbar .pcrp-play-button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
}

.pcrp-layout-fullbar .pcrp-bottom-row .pcrp-live-badge,
.pcrp-layout-fullbar .pcrp-bottom-row .pcrp-text-block {
    display: none;
}

/* VOLUMEN */
.pcrp-layout-fullbar .pcrp-volume-wrap {
    grid-column: 3;
    grid-row: 1;

    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.pcrp-layout-fullbar .pcrp-volume {
    width: 100% !important;
}

/* SOCIAL */
.pcrp-layout-fullbar .pcrp-social-drawer {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    align-self: center;
}

/* POSITIONS */
.pcrp-position-static {
    position: relative;
}
.pcrp-position-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.pcrp-position-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.pcrp-position-top .pcrp-player-inner,
.pcrp-position-bottom .pcrp-player-inner {
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
}

.pcrp-position-top-left {
    position: fixed;
    top: 20px;
    left: 20px;
}

.pcrp-position-top-right {
    position: fixed;
    top: 20px;
    right: 20px;
}

.pcrp-position-bottom-left {
    position: fixed;
    bottom: 20px;
    left: 20px;
}

.pcrp-position-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.pcrp-position-left {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.pcrp-position-right {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

@media (max-width: 720px) {
    .pcrp-layout-card .pcrp-player-inner {
        width: 100%;
        max-width: 340px;
    }

    .pcrp-layout-medium .pcrp-player-inner,
    .pcrp-layout-fullbar .pcrp-player-inner {
        width: 100%;
        max-width: 100%;
    }

    .pcrp-layout-fullbar .pcrp-player-inner {
        height: auto;
        grid-template-columns: 58px 1fr;
        grid-template-rows: auto auto auto;
        gap: 14px;
    }

    .pcrp-layout-fullbar .pcrp-logo-wrap {
        width: 58px;
        height: 58px;
    }

    .pcrp-layout-fullbar .pcrp-content {
        grid-column: 2;
    }

    .pcrp-layout-fullbar .pcrp-bottom-row {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
    }

    .pcrp-layout-fullbar .pcrp-volume-wrap {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
    }

    .pcrp-layout-fullbar .pcrp-social-drawer {
        grid-column: 1 / 3;
        grid-row: 3;
        justify-self: center;
    }

    .pcrp-layout-fullbar .pcrp-volume {
        width: 100% !important;
    }

    .pcrp-social-drawer {
        top: 12px;
    }

    .pcrp-social-panel {
        max-width: 250px;
        gap: 6px;
        padding: 7px 8px;
    }

    .pcrp-about-player {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pcrp-position-top-left,
    .pcrp-position-top-right,
    .pcrp-position-bottom-left,
    .pcrp-position-bottom-right,
    .pcrp-position-left,
    .pcrp-position-right {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        transform: none;
    }
}

.pcrp-device-volume-message {
    display: none;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
}

.pcrp-volume-not-supported .pcrp-volume-percent,
.pcrp-volume-not-supported .pcrp-volume {
    display: none !important;
}

.pcrp-volume-not-supported .pcrp-device-volume-message {
    display: inline-flex;
}

.pcrp-volume-not-supported .pcrp-volume-wrap {
    gap: 7px;
}

.pcrp-volume-disabled {
    opacity: .35 !important;
    cursor: not-allowed !important;
}
/* Mini floating edge positioning */
.pcrp-layout-mini-vertical.pcrp-position-left,
.pcrp-layout-mini-horizontal.pcrp-position-left {
    left: 0 !important;
    right: auto !important;
    top: 50%;
    transform: translateY(-50%);
}

.pcrp-layout-mini-vertical.pcrp-position-right,
.pcrp-layout-mini-horizontal.pcrp-position-right {
    right: 0 !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
}

.pcrp-layout-mini-vertical .pcrp-player-inner {
    width: 100px;
    height: 150px;
    padding: 10px;
}

.pcrp-layout-mini-vertical .pcrp-logo-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
}

.pcrp-layout-mini-vertical .pcrp-play-button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
}

.pcrp-layout-mini-vertical.pcrp-position-left .pcrp-player-inner,
.pcrp-layout-mini-horizontal.pcrp-position-left .pcrp-player-inner {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.pcrp-layout-mini-vertical.pcrp-position-right .pcrp-player-inner,
.pcrp-layout-mini-horizontal.pcrp-position-right .pcrp-player-inner {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

@media (max-width: 720px) {
    .pcrp-layout-mini-vertical.pcrp-position-left,
    .pcrp-layout-mini-horizontal.pcrp-position-left {
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .pcrp-layout-mini-vertical.pcrp-position-right,
    .pcrp-layout-mini-horizontal.pcrp-position-right {
        right: 0 !important;
        left: auto !important;
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}
