/*** PLAYER AND HISTORY REFINEMENTS ***/
.vxcr-player-controller {
    --vxcr-player-accent: var(--vxcr-color-accent);
    color: var(--vxcr-player-accent);
}

.vxcr-player__button,
.vxcr-player__track-button {
    color: var(--vxcr-player-accent);
}

.vxcr-player__icon.dashicons,
.vxcr-player__track-icon.dashicons,
.vxcr-player__lock.dashicons {
    width: 1em;
    height: 1em;
    font-size: 1.15rem;
    line-height: 1;
}

.vxcr-player__slider {
    height: 1.25rem;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: var(--vxcr-player-accent);
    accent-color: var(--vxcr-player-accent);
}

.vxcr-player__slider::-webkit-slider-runnable-track {
    height: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(to right, var(--vxcr-player-accent) 0 var(--vxcr-progress), var(--vxcr-color-progress-soft) var(--vxcr-progress) 100%);
}

.vxcr-player__slider::-webkit-slider-thumb {
    width: 1rem;
    height: 1rem;
    margin-top: -0.325rem;
    border: 2px solid var(--vxcr-color-surface);
    border-radius: 999px;
    background: var(--vxcr-player-accent);
    box-shadow: 0 2px 8px var(--vxcr-color-shadow);
    -webkit-appearance: none;
    appearance: none;
}

.vxcr-player__slider::-moz-range-track {
    height: 0.35rem;
    border-radius: 999px;
    background: var(--vxcr-color-progress-soft);
}

.vxcr-player__slider::-moz-range-progress {
    height: 0.35rem;
    border-radius: 999px;
    background: var(--vxcr-player-accent);
}

.vxcr-player__slider::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--vxcr-color-surface);
    border-radius: 999px;
    background: var(--vxcr-player-accent);
    box-shadow: 0 2px 8px var(--vxcr-color-shadow);
}

.vxcr-player__timeline-item {
    align-items: start;
}

.vxcr-player__timeline-marker {
    margin-top: 0.55rem;
}

.vxcr-hero-favorite {
    display: inline-flex;
    width: auto;
    margin: 0 0 0 0.75rem;
    vertical-align: middle;
}

.vxcr-favorite-toggle {
    width: 2.6rem;
    height: 2.6rem;
    max-width: 2.6rem;
    min-width: 2.6rem;
    padding: 0;
    margin: 0;
}

.vxcr-favorite-toggle__icon {
    font-size: 1.35rem;
}

.vxcr-account-fields {
    margin: 0 0 1.25rem;
}

.vxcr-history__select-label {
    display: inline-grid;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.vxcr-history__select {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--vxcr-color-border);
    border-radius: 999px;
    background: var(--vxcr-color-surface);
}

.vxcr-history__filter--submit {
    align-self: end;
    min-height: 40px;
    background: transparent;
    cursor: pointer;
}

.vxcr-history-item__content h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.vxcr-history-item__track {
    display: inline-flex;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--vxcr-color-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .vxcr-player-controller {
        grid-template-columns: 2.75rem minmax(0, 1fr);
    }

    .vxcr-player__button {
        width: 2.75rem;
        height: 2.75rem;
        flex-basis: 2.75rem;
    }

    .vxcr-player__progress {
        min-width: 0;
    }
}

/*** FAVORITES AND HISTORY FILTERS ***/
.vxcr-title-with-favorite {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vxcr-title-with-favorite .vxcr-hero-favorite,
h1 .vxcr-hero-favorite {
    display: inline-flex;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
}

.vxcr-history__filters {
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.vxcr-history__shortcuts,
.vxcr-history__date-range,
.vxcr-history-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vxcr-history__range-label {
    font-weight: 700;
}

.vxcr-history__select {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--vxcr-color-border);
    border-radius: 999px;
    background: var(--vxcr-color-surface);
}

.vxcr-history__filter,
.vxcr-history__filter--submit {
    min-height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
}

.vxcr-history-pagination {
    justify-content: center;
    margin-top: 1rem;
}

.vxcr-history-pagination__status {
    font-weight: 600;
    opacity: 0.72;
}

/*** HISTORY ITEMS AND STATUS BADGES ***/
.vxcr-title-with-favorite {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vxcr-title-with-favorite > h1 {
    margin-bottom: 0;
}

.vxcr-title-with-favorite .vxcr-hero-favorite {
    display: inline-flex;
    margin: 0;
    line-height: 1;
}

.vxcr-history__filters {
    display: grid;
    gap: 0.75rem;
    align-items: stretch;
    margin: 1.25rem 0;
}

.vxcr-history__shortcuts,
.vxcr-history__date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vxcr-history__shortcuts {
    flex-wrap: wrap;
}

.vxcr-history__date-range {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.vxcr-history__select {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
}

.vxcr-history__select[name$="_year"] {
    min-width: 5.5rem;
}

.vxcr-history__select[name$="_month"] {
    min-width: 7.5rem;
}

.vxcr-history__select[name$="_day"] {
    min-width: 4.5rem;
}

.vxcr-history__filter,
.vxcr-history__filter--submit {
    display: inline-flex;
    line-height: 1;
    white-space: nowrap;
}

.vxcr-history-item__content h3 {
    align-items: center;
}

.vxcr-history-item__status {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    vertical-align: middle;
}

.vxcr-history-item__status.is-completed {
    color: var(--vxcr-color-success);
    background: var(--vxcr-color-success-soft);
}

.vxcr-history-item__status.is-stopped {
    color: var(--vxcr-color-danger);
    background: var(--vxcr-color-danger-soft);
}

@media (max-width: 640px) {
    .vxcr-title-with-favorite {
        gap: 0.55rem;
    }

    .vxcr-history__date-range {
        scrollbar-width: thin;
    }
}


/*** FAVORITE TITLE ALIGNMENT ***/
.vxcr-title-with-favorite {
    align-items: center;
}

.vxcr-title-with-favorite > :is(h1, h2, h3, h4, h5, h6, .page-title, .entry-title) {
    margin-bottom: 0;
}

.vxcr-title-with-favorite .vxcr-hero-favorite {
    align-items: center;
    display: inline-flex;
    line-height: 1;
}

.vxcr-title-with-favorite .vxcr-favorite-toggle {
    width: clamp(2.25rem, calc(var(--vxcr-title-font-size, 2.5rem) * 0.72), 3.25rem);
    height: clamp(2.25rem, calc(var(--vxcr-title-font-size, 2.5rem) * 0.72), 3.25rem);
    max-width: none;
    min-width: 0;
}

.vxcr-title-with-favorite .vxcr-favorite-toggle__icon {
    font-size: clamp(1.25rem, calc(var(--vxcr-title-font-size, 2.5rem) * 0.38), 1.9rem);
}

.vxcr-player__timeline-item {
    align-items: center;
}

.vxcr-player__timeline-marker {
    margin-top: 0;
}

