/* JustinKarting – automatische YouTube-Sektion */
.jk-video-featured {
    position: relative;
    display: grid;
    min-height: 430px;
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 28px;
    background: #0b1120;
    text-decoration: none;
    isolation: isolate;
}

.jk-video-featured__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.jk-video-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 9, 22, .96) 0%, rgba(5, 9, 22, .78) 38%, rgba(5, 9, 22, .20) 72%, rgba(5, 9, 22, .08) 100%),
        linear-gradient(0deg, rgba(5, 9, 22, .82), transparent 55%);
}

.jk-video-featured:hover .jk-video-featured__image {
    transform: scale(1.025);
}

.jk-video-featured__content {
    position: relative;
    z-index: 2;
    align-self: end;
    max-width: 680px;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    color: #fff;
}

.jk-video-featured__badge,
.jk-video-card__date {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #67e8f9;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.jk-video-featured__content h3 {
    margin: .7rem 0 .9rem;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.05;
}

.jk-video-featured__content p {
    margin: 0 0 1.35rem;
    color: rgba(226, 232, 240, .84);
}

.jk-video-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 1.05rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(100deg, #8b5cf6, #06b6d4);
    font-weight: 800;
}

.jk-video-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.2rem 0 1rem;
}

.jk-video-list-heading h3 {
    margin: 0;
    font-size: 1.2rem;
}

.jk-video-list-heading span {
    color: var(--text-muted, #94a3b8);
    font-size: .9rem;
}

.jk-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.jk-video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 20px;
    background: rgba(15, 23, 42, .62);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.jk-video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, .38);
    box-shadow: 0 18px 45px rgba(2, 8, 23, .18);
}

.jk-video-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b1120;
}

.jk-video-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.jk-video-card:hover .jk-video-card__media img {
    transform: scale(1.035);
}

.jk-video-card__play {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    color: #fff;
    background: rgba(2, 6, 23, .76);
    backdrop-filter: blur(8px);
}

.jk-video-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1rem 1.1rem;
}

.jk-video-card__body h4 {
    margin: .45rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
}

.jk-video-auto-note {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.2rem;
    color: var(--text-muted, #94a3b8);
    font-size: .85rem;
}

.jk-video-auto-note i {
    color: #22d3ee;
}

@media (max-width: 900px) {
    .jk-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jk-video-featured {
        min-height: 390px;
    }
}

@media (max-width: 640px) {
    .jk-video-featured {
        min-height: 440px;
    }

    .jk-video-featured::before {
        background: linear-gradient(0deg, rgba(5, 9, 22, .96) 8%, rgba(5, 9, 22, .70) 56%, rgba(5, 9, 22, .12) 100%);
    }

    .jk-video-grid {
        grid-template-columns: 1fr;
    }

    .jk-video-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
