.nhl-ugc-videos {
    padding: 1.5rem 0;
    background: transparent;
    position: relative;
}

.nhl-ugc-videos__header {
    margin: 0 0 0.75rem;
    padding-inline: 0;
}

.nhl-ugc-videos__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #0b2b27;
    letter-spacing: -0.01em;
}

.nhl-ugc-videos__carousel {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(14, 122, 109, 0.08), rgba(31, 41, 55, 0.02));
    border-radius: 12px;
    padding: 0.75rem 0.5rem 0.5rem;
}

.nhl-ugc-videos__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.25rem;
    scroll-behavior: smooth;
    padding-inline: 0;
}

.nhl-ugc-videos__track::-webkit-scrollbar {
    height: 0.4rem;
}

.nhl-ugc-videos__track::-webkit-scrollbar-thumb {
    background: rgb(29, 191, 115);
    border-radius: 999px;
}

.nhl-ugc-videos__track {
    scrollbar-width: thin;
    scrollbar-color: rgb(29, 191, 115) rgba(31, 41, 55, 0.08);
}

.nhl-ugc-videos__item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(14, 122, 109, 0.15);
    padding: 0;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 280px;
    flex: 0 0 210px;
    scroll-snap-align: start;
}

.nhl-ugc-videos__preview {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    height: 100%;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.nhl-ugc-videos__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
    pointer-events: none;
}

.nhl-ugc-videos__preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 122, 109, 0.25), rgba(14, 122, 109, 0.5));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nhl-ugc-videos__play {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #0e7a6d;
    display: grid;
    place-items: center;
    z-index: 1;
}

.nhl-ugc-videos__play::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid #0e7a6d;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.nhl-ugc-videos__preview--playing .nhl-ugc-videos__play {
    display: none;
}

.nhl-ugc-videos__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}
.nhl-ugc-videos__preview:hover::after,
.nhl-ugc-videos__preview:focus-visible::after {
    opacity: 1;
}

.nhl-ugc-videos__item:hover {
    transform: translateY(-4px);
}

.nhl-ugc-videos__modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.nhl-ugc-videos__modal[hidden] {
    display: none;
}

.nhl-ugc-videos__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(6px);
}

.nhl-ugc-videos__modal-dialog {
    position: relative;
    width: min(520px, calc(100vw - 2rem));
    margin: auto;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.nhl-ugc-videos__modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #0b2b27;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.nhl-ugc-videos__modal-video {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 4rem);
    display: block;
    background: #000;
}

@media (max-width: 768px) {
    .nhl-ugc-videos__track {
        padding-inline: 0;
    }

    .nhl-ugc-videos__item {
        flex: 0 0 170px;
        height: 240px;
    }

    .nhl-ugc-videos__header {
        padding-inline: 0;
    }

    .nhl-ugc-videos__carousel {
        padding: 0.75rem 0.25rem 0.5rem;
    }

    .nhl-ugc-videos__modal-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .nhl-ugc-videos__modal-video {
        height: 100vh;
        max-height: 100vh;
        object-fit: contain;
    }

    .nhl-ugc-videos__modal-close {
        top: 1rem;
        right: 1rem;
    }

}
