.trcr-interface, .trcr-interface * { box-sizing: border-box; }
.trcr-interface {
    --trcr-pink: #ef0c61;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 160px;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid #ededed;
    border-radius: 13px;
    background: #fff;
    color: #181818;
    font-family: Arial, Helvetica, sans-serif;
    overflow-wrap: normal;
    word-break: normal;
}
.trcr-interface .trcr-heading {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    white-space: nowrap;
}
.trcr-interface .trcr-frequency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--trcr-pink);
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}
.trcr-interface .trcr-chevron {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
/* WordPress formatting can insert paragraph wrappers around shortcode markup. */
.trcr-interface > p,
.trcr-interface .trcr-controls > p { display: contents; }
.trcr-interface > br,
.trcr-interface > p > br,
.trcr-interface .trcr-controls > br,
.trcr-interface .trcr-controls > p > br { display: none; }
.trcr-interface .trcr-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    border-radius: 6px;
    background: var(--trcr-pink);
}
.trcr-interface .trcr-toggle,
.trcr-interface .trcr-volume-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 7px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    line-height: 1;
    overflow: visible;
    cursor: pointer;
}
.trcr-interface .trcr-volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    line-height: 0;
}
.trcr-interface .trcr-toggle:hover,
.trcr-interface .trcr-volume-toggle:hover { background: rgb(255 255 255 / 16%); }
.trcr-interface .trcr-toggle:focus-visible,
.trcr-interface .trcr-volume-toggle:focus-visible,
.trcr-volume-panel [data-trcr-volume]:focus-visible {
    outline: 2px solid #181818;
    outline-offset: 2px;
}
.trcr-interface .trcr-toggle svg,
.trcr-interface .trcr-volume-toggle svg { display: block; flex: none; width: 22px; height: 22px; overflow: visible; }
.trcr-interface .trcr-volume-toggle[aria-pressed="true"]::after {
    content: '';
    position: absolute;
    width: 23px;
    border-top: 2px solid #fff;
    transform: rotate(-45deg);
}
.trcr-interface .trcr-pause-icon,
.trcr-interface .trcr-toggle[aria-pressed="true"] .trcr-play-icon { display: none; }
.trcr-interface .trcr-toggle[aria-pressed="true"] .trcr-pause-icon { display: block; }
.trcr-volume-panel[hidden] { display: none; }
.trcr-volume-panel {
    --trcr-pink: #ef0c61;
    position: fixed !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1000;
    width: 44px !important;
    height: 126px !important;
    margin: 0;
    padding: 0;
    border: 1px solid #ededed;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 18px rgb(0 0 0 / 12%);
}
.trcr-volume-panel input[data-trcr-volume] {
    appearance: none !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    width: 96px !important;
    height: 20px !important;
    margin: 0;
    background: transparent;
    transform: translate(-50%, -50%) rotate(-90deg) !important;
    cursor: pointer;
}
.trcr-volume-panel [data-trcr-volume]::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--trcr-pink) var(--trcr-level, 100%), #e4e4e4 var(--trcr-level, 100%));
}
.trcr-volume-panel [data-trcr-volume]::-moz-range-track {
    height: 5px;
    border-radius: 5px;
    background: #e4e4e4;
}
.trcr-volume-panel [data-trcr-volume]::-moz-range-progress {
    height: 5px;
    border-radius: 5px;
    background: var(--trcr-pink);
}
.trcr-volume-panel [data-trcr-volume]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    margin-top: -5px;
    border: 2px solid var(--trcr-pink);
    border-radius: 50%;
    background: #fff;
}
.trcr-volume-panel [data-trcr-volume]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 2px solid var(--trcr-pink);
    border-radius: 50%;
    background: #fff;
}
.trcr-interface .trcr-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.trcr-interface[data-trcr-state="error"] .trcr-status {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    color: #a00038;
    font-size: 11px;
    white-space: normal;
}
/* Keep the temporary player visible beside the new admin-only controls. */
.wp-block-group.gray .trcr-interface {
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    padding-top: 8px;
    border: 0;
    border-top: 1px solid #ededed;
    border-radius: 0;
    background: transparent;
}
.wp-block-group.gray .trcr-heading,
.wp-block-group.gray .trcr-frequency { display: none; }
@media (min-width: 1025px) {
    .sidebar .wp-block-group.gray:has(> .trcr-interface):not(:has(.tr-temp-radio)) {
        box-sizing: border-box;
        width: clamp(min(176px, 100%), calc(100% - 32px), 264px);
        padding: 14px 16px;
    }
    .sidebar .wp-block-group.gray:has(> .trcr-interface):not(:has(.tr-temp-radio)) > .wp-block-heading {
        margin-block: 0;
    }
    .sidebar .wp-block-group.gray:has(> .trcr-interface):not(:has(.tr-temp-radio)) > .wp-block-paragraph {
        margin-block: 6px 0;
    }
    .sidebar .wp-block-group.gray:has(> .trcr-interface):not(:has(.tr-temp-radio)) > .trcr-interface {
        margin-top: 12px;
        padding: 0;
        border-top: 0;
    }
}
/* The site's .stickyfm area remains visible through 1024px. */
@media (max-width: 1024px) {
    .stickyfm .wp-block-shortcode:has(.trcr-interface) {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        margin: 0 0 0 auto;
    }
    .stickyfm .trcr-interface {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }
    .stickyfm .trcr-heading,
    .stickyfm .trcr-frequency,
    .stickyfm .trcr-volume-control { display: none; }
    .stickyfm .trcr-controls {
        flex: 0 0 32px;
        width: 32px;
        min-height: 32px;
        height: 32px;
        gap: 0;
        overflow: visible;
        border-radius: 50%;
    }
    .stickyfm .trcr-toggle { flex-basis: 32px; width: 32px; height: 32px; padding: 5px; }
    .stickyfm .trcr-toggle svg { width: 18px; height: 18px; }
    .stickyfm .trcr-interface[data-trcr-state="error"] .trcr-status {
        position: absolute;
        z-index: 20;
        top: 100%;
        right: 0;
        width: 150px;
        padding: 6px 8px;
        border: 1px solid #ededed;
        border-radius: 6px;
        background: #fff;
    }
}
.trcr-navigation-progress {
    position: fixed;
    inset-inline: 0;
    height: 3px;
    z-index: 100002;
    overflow: hidden;
    pointer-events: none;
    background: #f9d6e4;
}
.trcr-navigation-progress::before {
    content: '';
    display: block;
    width: 35%;
    height: 100%;
    background: #ef0c61;
    animation: trcr-navigation-progress 1s ease-in-out infinite;
}
@keyframes trcr-navigation-progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(286%); }
}
@media (prefers-reduced-motion: reduce) {
    .trcr-navigation-progress::before {
        width: 100%;
        animation: none;
    }
}
.trcr-navigation-notice {
    position: fixed;
    inset: auto 1rem 1rem auto;
    z-index: 100001;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: .65rem .85rem;
    color: #fff;
    background: #222;
    border-radius: .4rem;
}
