.wk-ytm-wrap {
    --wk-ytm-speed: 36s;
    --wk-ytm-gap: 22px;
    margin: 18px 0;
    padding: 12px 0 26px;
    overflow: hidden;
}

.wk-ytm-wrap,
.wk-ytm-wrap * {
    box-sizing: border-box;
}

.wk-ytm-row {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: none;
    mask-image: none;
}

.wk-ytm-track {
    display: flex;
    align-items: stretch;
    gap: var(--wk-ytm-gap);
    will-change: transform;
    animation: wk-ytm-left var(--wk-ytm-speed) linear infinite;
}

.wk-ytm-wrap:hover .wk-ytm-track {
    animation-play-state: paused;
}

.wk-ytm-item {
    --wk-ytm-cover-h: 180px;
    --wk-ytm-logo-size: 128px;
    --wk-ytm-content-top: 126px;
    min-width: 300px;
    max-width: 360px;
    min-height: 320px;
    flex: 0 0 auto;
    border: 1px solid rgba(210, 218, 232, 0.9);
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f6f8ff 100%);
    padding: var(--wk-ytm-content-top) 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
    box-shadow: 0 22px 38px rgba(17, 24, 39, 0.12);
}

.wk-ytm-item:focus,
.wk-ytm-item:hover {
    outline: none;
    border-color: rgba(183, 195, 216, 0.95);
    box-shadow: 0 26px 44px rgba(17, 24, 39, 0.16);
    transform: translateY(-2px);
    filter: brightness(1.01);
}

.wk-ytm-item:focus-visible {
    outline: 3px solid rgba(46, 116, 255, 0.35);
    outline-offset: 3px;
}

.wk-ytm-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--wk-ytm-cover-h);
    background: linear-gradient(90deg, #f7d97f 0%, #d3a028 100%);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    overflow: hidden;
}

.wk-ytm-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 56%);
}

.wk-ytm-cover::after {
    content: "";
    position: absolute;
    left: -32%;
    right: -32%;
    bottom: -72px;
    height: 1px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    box-shadow: 0 -12px 28px rgba(17, 24, 39, 0.08);
}

.wk-ytm-logo {
    position: relative;
    z-index: 1;
    width: var(--wk-ytm-logo-size);
    height: var(--wk-ytm-logo-size);
    border-radius: 999px;
    background: #ffffff;
    padding: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 26px 40px rgba(17, 24, 39, 0.18);
    margin-top: calc(var(--wk-ytm-logo-size) * -0.5);
    margin-bottom: 14px;
}

.wk-ytm-logo img,
.wk-ytm-logo .wk-ytm-icon-svg,
.wk-ytm-logo .wk-ytm-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wk-ytm-logo img {
    border-radius: 999px;
    object-fit: cover;
}

.wk-ytm-name {
    color: #1a2340;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wk-ytm-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    border-radius: 18px;
    background: linear-gradient(90deg, #ff4a86 0%, #ff0033 100%);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    padding: 9px 16px;
    white-space: nowrap;
    box-shadow: 0 16px 22px rgba(255, 0, 51, 0.22);
}

.wk-ytm-subscribe-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.wk-ytm-subscribe-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

@keyframes wk-ytm-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .wk-ytm-item {
        --wk-ytm-cover-h: 156px;
        --wk-ytm-logo-size: 108px;
        --wk-ytm-content-top: 110px;
        min-width: 250px;
        max-width: 300px;
        min-height: 290px;
        padding: var(--wk-ytm-content-top) 14px 16px;
        border-radius: 28px;
    }

    .wk-ytm-logo {
        padding: 5px;
        border-width: 7px;
        margin-bottom: 12px;
    }

    .wk-ytm-name {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .wk-ytm-subscribe {
        font-size: 13px;
        padding: 8px 14px;
    }

    .wk-ytm-subscribe-icon {
        width: 26px;
        height: 26px;
        border-radius: 999px;
    }

    .wk-ytm-subscribe-icon svg {
        width: 18px;
        height: 18px;
    }
}
