/**
 * Top5Ebikes YouTube Hero — Figma node 5638:15429
 * Breakpoints: Mobile ≤639px, Tablet 640–1023px, Laptop 1024–1279px, Desktop ≥1280px
 */

.te5-yt-hero {
    --te5-yt-black: #000000;
    --te5-yt-white: #ffffff;
    --te5-yt-border: #e4e4e7;
    --te5-yt-backdrop: rgba(0, 0, 0, 0.5);
    --te5-yt-focus: #3b82f6;
    --te5-yt-card-width: 291px;
    --te5-yt-gap: 12px;
    --te5-yt-max-width: 1280px;

    background-color: var(--te5-yt-black);
    color: var(--te5-yt-white);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    box-sizing: border-box;
}

.te5-yt-hero *,
.te5-yt-hero *::before,
.te5-yt-hero *::after {
    box-sizing: border-box;
}

.te5-yt-hero__inner {
    max-width: var(--te5-yt-max-width);
    margin: 0 auto;
}

/* Intro — Mobile */
.te5-yt-hero__intro {
    display: flex;
    flex-direction: column;
    gap: var(--te5-yt-gap);
    padding: 24px 16px 16px;
    color: var(--te5-yt-white);
}

.te5-yt-hero__heading {
    margin: 0;
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    letter-spacing: -0.72px;
    /* !important needed: theme rules like ".fbox h2" (article h2 { color: #000 })
       have higher selector specificity than this single class and otherwise win. */
    color: var(--te5-yt-white) !important;
}

.te5-yt-hero__subheading {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: var(--te5-yt-white);
}

/* Video cards row */
.te5-yt-hero__cards-section {
    max-width: var(--te5-yt-max-width);
}

.te5-yt-hero__cards {
    display: flex;
    gap: var(--te5-yt-gap);
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.te5-yt-hero__cards::-webkit-scrollbar {
    display: none;
}

.te5-yt-hero__card {
    flex: 0 0 var(--te5-yt-card-width);
    width: var(--te5-yt-card-width);
    min-width: var(--te5-yt-card-width);
}

.te5-yt-hero__card-link {
    display: flex;
    flex-direction: column;
    gap: var(--te5-yt-gap);
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.te5-yt-hero__card-link:hover,
.te5-yt-hero__card-link:focus {
    text-decoration: none;
    color: inherit;
}

.te5-yt-hero__media {
    position: relative;
    width: 100%;
    aspect-ratio: 291 / 164;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.te5-yt-hero__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.te5-yt-hero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 1000px;
    background: var(--te5-yt-backdrop);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    line-height: 0;
    pointer-events: none;
}

.te5-yt-hero__play svg {
    display: block;
    width: 32px;
    height: 32px;
}

.te5-yt-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    width: 100%;
}

.te5-yt-hero__title {
    margin: 0;
    width: 100%;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--te5-yt-white);
    word-break: break-word;
}

.te5-yt-hero__duration-row {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    width: 100%;
}

.te5-yt-hero__duration {
    display: flex;
    align-items: center;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--te5-yt-white);
    opacity: 0.7;
}

.te5-yt-hero__watch-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--te5-yt-white);
    opacity: 0.7;
    white-space: nowrap;
}

/* Footer CTA */
.te5-yt-hero__footer {
    max-width: var(--te5-yt-max-width);
    padding: 16px 16px 24px;
}

.te5-yt-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 328px;
    max-width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--te5-yt-border);
    background: transparent;
    color: var(--te5-yt-white);
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    white-space: nowrap;
}

.te5-yt-hero__cta:hover,
.te5-yt-hero__cta:focus {
    color: var(--te5-yt-white);
    text-decoration: none;
    border-color: var(--te5-yt-white);
}

.te5-yt-hero__cta:focus-visible {
    outline: 2px solid var(--te5-yt-focus);
    outline-offset: 4px;
}

.te5-yt-hero__cta-brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.te5-yt-hero__cta-icon {
    display: flex;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 0;
}

.te5-yt-hero__cta-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.te5-yt-hero__admin-notice {
    padding: 12px 16px;
    border: 1px solid #d63638;
    background: #fcf0f1;
    color: #1d2327;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Tablet: 640px – 1023px */
@media (min-width: 640px) {
    .te5-yt-hero__intro {
        padding: 24px 24px 16px;
    }

    .te5-yt-hero__cards {
        padding: 16px 24px;
    }

    .te5-yt-hero__footer {
        padding: 16px 24px 24px;
    }

    .te5-yt-hero__cta {
        width: 592px;
    }
}

/* Laptop: 1024px – 1279px */
@media (min-width: 1024px) {
    .te5-yt-hero__intro {
        padding: 40px 24px 16px;
    }

    .te5-yt-hero__heading {
        font-size: 44px;
        line-height: 52px;
        letter-spacing: -0.88px;
    }

    .te5-yt-hero__cards {
        padding: 16px 24px;
    }

    .te5-yt-hero__footer {
        padding: 16px 24px 40px;
    }

    .te5-yt-hero__cta {
        width: auto;
        min-width: 240px;
    }
}

/* Desktop: ≥1280px — all four cards visible, equal width */
@media (min-width: 1280px) {
    .te5-yt-hero__intro {
        padding: 40px 40px 16px;
    }

    .te5-yt-hero__cards {
        justify-content: center;
        padding: 24px 40px;
        overflow-x: visible;
    }

    .te5-yt-hero__card {
        flex: 1 0 0;
        width: auto;
        min-width: 0;
    }

    .te5-yt-hero__footer {
        padding: 16px 40px 40px;
    }
}
