/*
  Homepage lead-story player
  This component intentionally occupies only the former Owl rotator footprint.
  It does not alter the homepage's surrounding columns, ads, or widgets.
*/
.rb-story-player {
    box-sizing: border-box;
    border-radius: 8px;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    background: #171717;
    color: #ffffff;
    font-family: 'Open Sans', Arial, sans-serif;
    position: relative;
}

.rb-story-player *,
.rb-story-player *:before,
.rb-story-player *:after {
    box-sizing: border-box;
}

.rb-story-player__viewport {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.rb-story-player__slide {
    display: none;
    height: 100%;
    inset: 0;
    position: absolute;
}

.rb-story-player__slide.is-active {
    display: block;
}

.rb-story-player__story-link,
.rb-story-player__image {
    display: block;
    height: 100%;
    width: 100%;
}

.rb-story-player__image {
    object-fit: cover;
}

.rb-story-player__caption {
    background: rgba(0, 0, 0, 0.78);
    bottom: 0;
    left: 0;
    padding: 14px 68px 16px 18px;
    position: absolute;
    width: 100%;
}

.rb-story-player__source {
    color: #d7d7d7;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.rb-story-player__headline {
    color: #ffffff !important;
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.17;
    margin: 0;
    max-width: calc(100% - 48px);
    text-decoration: none;
    text-shadow: none !important;
    width: 500px;
}

.rb-story-player__story-link:focus,
.rb-story-player__headline:focus,
.rb-story-player__control:focus {
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

.rb-story-player__controls {
    align-items: center;
    display: flex;
    gap: 7px;
    position: absolute;
    right: 12px;
    top: 12px;
}

.rb-story-player__counter,
.rb-story-player__control {
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    min-height: 30px;
    padding: 8px 9px;
}

.rb-story-player__control {
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
}

.rb-story-player__control:hover,
.rb-story-player__control:focus {
    background: #c61920;
}

.rb-story-player__direction-controls {
    bottom: 12px;
    display: flex;
    gap: 7px;
    position: absolute;
    right: 12px;
}

.rb-story-player__direction-controls .rb-story-player__control {
    min-width: 34px;
}

@media (max-width: 680px) {
    .rb-story-player__viewport {
        height: min(62vw, 400px);
        min-height: 275px;
    }

    .rb-story-player__caption {
        padding: 12px 15px 14px;
    }

    .rb-story-player__headline {
        font-size: 19px;
        line-height: 1.22;
        max-width: 100%;
        width: 100%;
    }

    .rb-story-player__direction-controls {
        display: none;
    }
}

/*
  Compact homepage players
  These are used only by the Events and Shop Local AJAX fragments. They use
  the same image-led, overlay-caption approach as the main story player while
  remaining sized for the existing 300px homepage widgets.
*/
.rb-mini-player {
    background: #171717;
    border-radius: 7px;
    color: #ffffff;
    font-family: 'Open Sans', Arial, sans-serif;
    height: 220px;
    overflow: hidden;
    position: relative;
    margin: 5px auto;
    max-width: 300px;
    width: calc(100% - 10px);
}

.rb-mini-player *,
.rb-mini-player *:before,
.rb-mini-player *:after {
    box-sizing: border-box;
}

.rb-mini-player__slide {
    display: none;
    height: 100%;
    inset: 0;
    position: absolute;
}

.rb-mini-player__slide.is-active {
    display: block;
}

.rb-mini-player__story-link,
.rb-mini-player__image {
    display: block;
    height: 100%;
    width: 100%;
}

.rb-mini-player__image {
    object-fit: cover;
}

.rb-mini-player__caption {
    background: rgba(0, 0, 0, 0.78);
    bottom: 0;
    left: 0;
    padding: 10px 12px;
    position: absolute;
    width: 100%;
}

.rb-mini-player__headline,
.rb-mini-player__detail {
    display: block;
}

.rb-mini-player__headline {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.rb-mini-player__detail {
    color: #e8e8e8;
    font-size: 11px;
    line-height: 1.25;
    margin-top: 4px;
}

.rb-mini-player__date {
    background: #f9aa00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    left: 8px;
    padding: 5px 7px;
    position: absolute;
    text-transform: uppercase;
    top: 8px;
}

.rb-mini-player__controls {
    display: flex;
    gap: 5px;
    position: absolute;
    right: 8px;
    top: 8px;
}

.rb-mini-player__control {
    align-items: center;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    justify-content: center;
    min-height: 28px;
    padding: 6px 7px;
}

.rb-mini-player__control:hover,
.rb-mini-player__control:focus {
    background: #c61920;
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}
