/* ==========================================================================
   Motomarine v3 · Video
   .cs-play round play button, .cs-video-poster 16/9 poster with the play
   button and a duration chip (opens #videoModal from modal.css via
   [data-cs-open] + [data-cs-video]), .cs-video-band full width band,
   .cs-video-card grid card, .cs-playlist player + side list
   (main.js [data-playlist]), .cs-embed 16/9 iframe wrapper.
   ========================================================================== */

/* --- Play button --- */
.cs-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.cs-play i {
    margin-left: 3px;
}
.cs-play:hover {
    background: var(--primary);
    color: var(--white);
}
.cs-play--sm {
    width: 56px;
    height: 56px;
    font-size: 24px;
}

/* --- Poster --- */
.cs-video-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    background: var(--light-bg);
}
.cs-video-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cs-video-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 43, .35);
    opacity: 0;
    transition: var(--transition);
}
.cs-video-poster:hover::after {
    opacity: 1;
}
.cs-video-poster .cs-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
}
.cs-video-poster__dur {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 0;
    background: rgba(15, 23, 43, .8);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--white);
}
.cs-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    overflow: hidden;
    background: var(--heading);
}
.cs-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Text and video --- */
.cs-video-copy .head-label {
    margin-bottom: 7px;
}
.cs-video-copy h2 {
    margin-bottom: 12px;
}
.cs-video-copy .lead {
    margin-bottom: 20px;
}
.cs-video-copy .cs-list {
    margin-bottom: 28px;
}

/* --- Full width band --- */
.cs-video-band {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}
.cs-video-band__bg {
    position: absolute;
    inset: 0;
}
.cs-video-band__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cs-video-band__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 43, .55);
}
.cs-video-band__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.cs-video-band .head-label {
    color: var(--white);
}
.cs-video-band h2 {
    margin-bottom: 16px;
    color: var(--white);
}
.cs-video-band p {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: 17px;
    color: rgba(255, 255, 255, .85);
}
.cs-video-band__label {
    display: block;
    margin-top: 16px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

/* --- Video grid card --- */
.cs-video-card__body {
    padding-top: 16px;
}
.cs-video-card__cat {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--primary-text);
}
.cs-video-card h3 {
    margin: 0;
}
.cs-video-card h3 a {
    color: var(--heading);
}
.cs-video-card h3 a:hover {
    color: var(--primary);
}
.cs-video-card--dark .cs-video-poster {
    background: rgba(255, 255, 255, .06);
}
.cs-video-card--dark h3 a {
    color: var(--white);
}
.cs-video-card--dark h3 a:hover {
    color: var(--primary);
}

/* --- Playlist: short side panel, the list scrolls after five items --- */
.cs-playlist__panel {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    overflow: hidden;
}
.cs-playlist__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}
.cs-playlist__head i {
    color: var(--primary);
}
.cs-playlist__head span {
    margin-left: auto;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}
.cs-playlist__list {
    max-height: 375px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.cs-playlist__list::-webkit-scrollbar {
    width: 6px;
}
.cs-playlist__list::-webkit-scrollbar-track {
    background: transparent;
}
.cs-playlist__list::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--border-strong);
}
.cs-playlist__list::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}
.cs-playlist--dark .cs-playlist__list {
    scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.cs-playlist--dark .cs-playlist__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
}
.cs-playlist__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    border-left: 3px solid transparent;
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.cs-playlist__item + .cs-playlist__item {
    border-top: 1px solid var(--border);
}
.cs-playlist__item:hover {
    background: var(--bg-light);
}
.cs-playlist__item.is-active {
    background: var(--bg-light);
    border-left-color: var(--primary);
}
.cs-playlist__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 96px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--light-bg);
}
.cs-playlist__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.cs-playlist__thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: var(--white);
    color: var(--primary);
    font-size: 14px;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}
.cs-playlist__item:hover .cs-playlist__thumb i,
.cs-playlist__item.is-active .cs-playlist__thumb i {
    opacity: 1;
}
.cs-playlist__info {
    min-width: 0;
}
.cs-playlist__title {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--heading);
}
.cs-playlist__dur {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
}
.cs-playlist__dur i {
    color: var(--primary);
}
.bg-lighter .cs-playlist__panel {
    border: 0;
    box-shadow: var(--shadow);
}
.cs-playlist--dark .cs-playlist__panel {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}
.cs-playlist--dark .cs-playlist__head {
    border-bottom-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: var(--white);
}
.cs-playlist--dark .cs-playlist__head span {
    color: rgba(255, 255, 255, .6);
}
.cs-playlist--dark .cs-playlist__item {
    background: transparent;
}
.cs-playlist--dark .cs-playlist__item + .cs-playlist__item {
    border-top-color: rgba(255, 255, 255, .12);
}
.cs-playlist--dark .cs-playlist__item:hover,
.cs-playlist--dark .cs-playlist__item.is-active {
    background: rgba(255, 255, 255, .06);
}
.cs-playlist--dark .cs-playlist__title {
    color: var(--white);
}
.cs-playlist--dark .cs-playlist__dur {
    color: rgba(255, 255, 255, .6);
}

/* --- Responsive --- */
/* --- Webcams: segmented tabs over a live embed with a Live badge and a location caption --- */
.cs-webcams {
    max-width: 960px;
    margin: 0 auto;
}
.cs-webcams .cs-tabs__list {
    border: 1px solid var(--border);
    background: var(--white);
}
.cs-webcams .cs-tabs__btn.is-active {
    background: var(--primary);
    color: var(--white);
    box-shadow: none;
}
.cs-tabs--dark.cs-webcams .cs-tabs__list {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .04);
}
.cs-tabs--dark.cs-webcams .cs-tabs__btn.is-active {
    background: var(--primary);
}
.cs-webcam {
    position: relative;
}
.cs-webcam__live {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    padding: 0 10px;
    border-radius: 0;
    background: var(--primary);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
}
.cs-webcam__live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    animation: cs-live 1.4s ease-in-out infinite;
}
@keyframes cs-live {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}
.cs-webcam__cap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    font-size: 14px;
    color: var(--muted);
}
.cs-webcam__cap i {
    color: var(--primary);
}
.bg-dark .cs-webcam__cap {
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 991px) {
    .cs-video-band {
        min-height: 460px;
        padding: 64px 0;
    }
}
@media (max-width: 767px) {
    .cs-video-band {
        min-height: 400px;
        padding: 56px 0;
    }
    .cs-video-band p {
        margin-bottom: 24px;
        font-size: 15px;
    }
    .cs-play {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    .cs-play--sm {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Text and video: poster a touch taller than 16/9 */
.cs-video-poster--text {
    aspect-ratio: 1.62;
}
/* --- Heading with wide video: h2 left, paragraph right, full width 16/9 poster below --- */
.cs-video-journey__head {
    margin-bottom: 36px;
}
.cs-video-journey__head h2 {
    margin: 0;
}
.cs-video-journey__lead {
    margin: 6px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}
.bg-dark .cs-video-journey__lead {
    color: rgba(255, 255, 255, .78);
}
.cs-video-journey__media .cs-video-poster {
    aspect-ratio: 16 / 8;
}
@media (max-width: 991px) {
    .cs-video-journey__head {
        margin-bottom: 24px;
    }
    .cs-video-journey__lead {
        margin-top: 0;
        font-size: 16px;
    }
    .cs-video-journey__media .cs-video-poster {
        aspect-ratio: 16 / 9;
    }
}

/* --- Webcam grid: three live feeds side by side, each with its own caption and link --- */
.cs-camcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    box-shadow: rgba(0, 0, 0, .1) 0 0 5px 0, rgba(0, 0, 0, .1) 0 0 1px 0;
}
.cs-camcard__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    padding: 24px 24px 26px;
}
.cs-camcard__body h3 {
    margin: 0 0 8px;
}
.cs-camcard__body p {
    margin: 0 0 20px;
    font-size: 15px;
}
.cs-camcard__body .cs-btn {
    margin-top: auto;
}
.cs-camcard--dark {
    background: rgba(255, 255, 255, .04);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, .12);
}
.cs-camcard--dark h3 {
    color: var(--white);
}
.cs-camcard--dark p {
    color: rgba(255, 255, 255, .7);
}

/* ==========================================================================
   v5 · Video details: play buttons are solid red with a soft ring that
   pulses, turning white on hover; the live badge is a rounded pill.
   ========================================================================== */
.cs-play {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), .25);
    animation: cs-play-ring 2.4s ease-out infinite;
}
.cs-play:hover {
    color: var(--primary);
    background: var(--white);
}
.cs-webcam__live {
    border-radius: 40px;
}
@keyframes cs-play-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .45), 0 0 0 8px rgba(var(--primary-rgb), .25);
    }
    100% {
        box-shadow: 0 0 0 18px rgba(var(--primary-rgb), 0), 0 0 0 8px rgba(var(--primary-rgb), .25);
    }
}
@media (prefers-reduced-motion: reduce) {
    .cs-play {
        animation: none;
    }
}

/* ==========================================================================
   v5 · Video playlist: light shadow panel, round play chips on the thumbs,
   tinted active row
   ========================================================================== */
.cs-playlist__panel {
    border-color: var(--border-light);
    box-shadow: rgba(15, 23, 43, .05) 0 1px 3px 0;
}
.cs-playlist__thumb {
    position: relative;
}
.cs-playlist__thumb .bi-play-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .3);
}
.cs-playlist__item.is-active {
    background: var(--primary-tint-10);
}
.bg-dark .cs-playlist__panel {
    box-shadow: none;
}
.bg-dark .cs-playlist__item.is-active {
    background: rgba(255, 255, 255, .06);
}
.bg-dark .cs-playlist__panel {
    border-color: rgba(255, 255, 255, .12);
}
