.jpro-yc-module,
.jpro-yc-module * {
    box-sizing: border-box;
}

.jpro-yc-module {
    --jpro-yc-red: #e30613;
    --jpro-yc-black: #080808;
    --jpro-yc-bg: #ffffff;
    --jpro-yc-card: #ffffff;
    --jpro-yc-muted: #686868;
    --jpro-yc-radius: 14px;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(18px, 2.4vw, 38px) 0;
    background: var(--jpro-yc-bg);
    color: var(--jpro-yc-black);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

.jpro-yc-module [hidden] {
    display: none !important;
}

.jpro-yc-header {
    margin: 0 0 clamp(22px, 3vw, 40px);
}

.jpro-yc-heading-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jpro-yc-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    color: #fff;
    background: var(--jpro-yc-red);
    box-shadow: 0 9px 22px rgba(227, 6, 19, .2);
}

.jpro-yc-heading-icon svg,
.jpro-yc-playlist-icon svg,
.jpro-yc-youtube-button svg,
.jpro-yc-view-all svg,
.jpro-yc-item-action svg,
.jpro-yc-thumb-play svg,
.jpro-yc-item-copy small svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.jpro-yc-heading-icon svg {
    width: 28px;
    height: 28px;
}

.jpro-yc-heading-row h2 {
    margin: 0;
    color: var(--jpro-yc-black);
    font-size: clamp(27px, 3.1vw, 48px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.06;
}

.jpro-yc-heading-row h2 span {
    font-weight: 800;
}

.jpro-yc-heading-row h2 strong {
    color: var(--jpro-yc-red);
    font-weight: 800;
}

.jpro-yc-subtitle {
    margin: 12px 0 0;
    color: var(--jpro-yc-muted);
    font-size: clamp(12px, 1.15vw, 16px);
    font-weight: 500;
    letter-spacing: .04em;
}

.jpro-yc-accent-line {
    display: block;
    width: 46px;
    height: 5px;
    margin-top: 15px;
    border-radius: 999px;
    background: var(--jpro-yc-red);
}

.jpro-yc-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(330px, .85fr);
    gap: clamp(20px, 2.2vw, 34px);
    align-items: start;
}

.jpro-yc-featured-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--jpro-yc-radius);
    background: var(--jpro-yc-card);
    box-shadow: 0 12px 36px rgba(10, 10, 10, .1);
}

.jpro-yc-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.jpro-yc-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.jpro-yc-badge,
.jpro-yc-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--jpro-yc-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 8px 22px rgba(227, 6, 19, .24);
}

.jpro-yc-featured-badge {
    position: absolute;
    z-index: 3;
    top: 20px;
    left: 18px;
    min-height: 43px;
    padding: 10px 30px 10px 18px;
    border-radius: 6px 2px 2px 6px;
    font-size: 14px;
    pointer-events: none;
}

.jpro-yc-featured-badge::after {
    content: "";
    position: absolute;
    right: -17px;
    top: 0;
    border-top: 21.5px solid transparent;
    border-bottom: 21.5px solid transparent;
    border-right: 0;
    border-left: 17px solid var(--jpro-yc-red);
}

.jpro-yc-featured-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(22px, 2.7vw, 38px);
}

.jpro-yc-featured-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.jpro-yc-info-label {
    display: block;
    margin: 0 0 8px;
    color: var(--jpro-yc-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.jpro-yc-main-title {
    margin: 0;
    color: var(--jpro-yc-black);
    font-size: clamp(20px, 1.85vw, 29px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.22;
}

.jpro-yc-channel {
    margin: 8px 0 0;
    color: var(--jpro-yc-red);
    font-size: 13px;
    font-weight: 700;
}

.jpro-yc-description {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--jpro-yc-muted);
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.65;
}

.jpro-yc-youtube-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 11px;
    min-height: 52px;
    padding: 13px 25px;
    border: 2px solid var(--jpro-yc-red);
    border-radius: 8px;
    color: #fff !important;
    background: var(--jpro-yc-red);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    letter-spacing: .025em;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.jpro-yc-youtube-button:hover,
.jpro-yc-youtube-button:focus-visible {
    color: #fff !important;
    background: var(--jpro-yc-black);
    border-color: var(--jpro-yc-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.jpro-yc-youtube-button svg {
    width: 20px;
    height: 20px;
}

.jpro-yc-playlist-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.jpro-yc-playlist-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
    margin: 0 0 18px;
    padding: 0 8px;
}

.jpro-yc-playlist-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    color: var(--jpro-yc-red);
}

.jpro-yc-playlist-icon svg {
    width: 31px;
    height: 31px;
}

.jpro-yc-playlist-header h3 {
    margin: 0;
    color: var(--jpro-yc-black);
    font-size: clamp(20px, 1.7vw, 27px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.jpro-yc-playlist-heading-copy {
    min-width: 0;
}

.jpro-yc-playlist-header p {
    margin: 5px 0 0;
    color: var(--jpro-yc-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
}

.jpro-yc-playlist {
    display: grid;
    align-content: start;
    flex: 1 1 auto;
    min-height: 0;
    gap: 12px;
    padding: 3px 9px 8px 3px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--jpro-yc-red) #ececec;
}

.jpro-yc-playlist::-webkit-scrollbar {
    width: 8px;
}

.jpro-yc-playlist::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #ececec;
}

.jpro-yc-playlist::-webkit-scrollbar-thumb {
    border: 2px solid #ececec;
    border-radius: 999px;
    background: var(--jpro-yc-red);
}

.jpro-yc-playlist-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(116px, 38%) minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-height: 112px;
    margin: 0;
    padding: 10px 14px 10px 10px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--jpro-yc-radius);
    color: var(--jpro-yc-black);
    background: var(--jpro-yc-card);
    box-shadow: 0 7px 22px rgba(10, 10, 10, .085);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.jpro-yc-playlist-item:hover,
.jpro-yc-playlist-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 27px rgba(10, 10, 10, .12);
    outline: 0;
}

.jpro-yc-playlist-item.is-active {
    border-color: var(--jpro-yc-red);
    box-shadow: 0 10px 26px rgba(227, 6, 19, .12);
}

.jpro-yc-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: calc(var(--jpro-yc-radius) - 4px);
    background: #111;
}

.jpro-yc-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.jpro-yc-playlist-item:hover .jpro-yc-thumb img {
    transform: scale(1.035);
}

.jpro-yc-thumb-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    transform: translate(-50%, -50%);
}

.jpro-yc-thumb-play svg {
    width: 22px;
    height: 22px;
}

.jpro-yc-mini-badge {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 8px;
    line-height: 1;
}

.jpro-yc-item-copy {
    display: block;
    min-width: 0;
}

.jpro-yc-item-copy strong {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--jpro-yc-black);
    font-size: clamp(13px, 1.05vw, 16px);
    font-weight: 750;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jpro-yc-playlist-item.is-active .jpro-yc-item-copy strong {
    color: var(--jpro-yc-red);
}

.jpro-yc-item-copy small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    color: var(--jpro-yc-muted);
    font-size: 12px;
}

.jpro-yc-item-copy small svg {
    width: 15px;
    height: 15px;
}

.jpro-yc-item-number {
    align-self: center;
    color: var(--jpro-yc-muted);
    font-size: 17px;
    font-weight: 500;
}

.jpro-yc-item-action {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: var(--jpro-yc-red);
}

.jpro-yc-item-action svg {
    width: 22px;
    height: 22px;
}

.jpro-yc-playlist-item.is-active .jpro-yc-item-action {
    display: grid;
}

.jpro-yc-playlist-item.is-active .jpro-yc-item-number {
    display: none;
}

.jpro-yc-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    flex: 0 0 auto;
    min-height: 52px;
    margin: 14px 0 0;
    padding: 12px 20px;
    border: 1px solid #ededed;
    border-radius: calc(var(--jpro-yc-radius) - 2px);
    color: var(--jpro-yc-red);
    background: var(--jpro-yc-card);
    box-shadow: 0 7px 20px rgba(10, 10, 10, .07);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.jpro-yc-view-all:hover,
.jpro-yc-view-all:focus-visible {
    color: #fff;
    background: var(--jpro-yc-red);
    transform: translateY(-2px);
    outline: 0;
}

.jpro-yc-view-all svg {
    width: 20px;
    height: 20px;
}

.jpro-yc-empty {
    padding: 24px;
    border: 1px solid #ececec;
    border-radius: 12px;
    color: #666;
    background: #fff;
    text-align: center;
}

@media (max-width: 1100px) {
    .jpro-yc-layout {
        grid-template-columns: minmax(0, 1.8fr) minmax(310px, .78fr);
        gap: 22px;
    }

    .jpro-yc-playlist-item {
        grid-template-columns: 116px minmax(0, 1fr) auto;
        min-height: 96px;
    }
}

@media (max-width: 860px) {
    .jpro-yc-layout {
        grid-template-columns: 1fr;
    }

    .jpro-yc-playlist-panel {
        height: auto !important;
        margin-top: 10px;
        overflow: visible;
    }

    .jpro-yc-playlist {
        max-height: 520px;
    }

    .jpro-yc-playlist-item {
        grid-template-columns: minmax(130px, 31%) minmax(0, 1fr) auto;
    }
}

@media (max-width: 640px) {
    .jpro-yc-module {
        padding: 16px 0;
    }

    .jpro-yc-heading-row {
        gap: 11px;
    }

    .jpro-yc-heading-icon {
        width: 43px;
        height: 43px;
        border-radius: 8px;
    }

    .jpro-yc-heading-icon svg {
        width: 23px;
        height: 23px;
    }

    .jpro-yc-featured-info {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .jpro-yc-youtube-button {
        width: 100%;
    }

    .jpro-yc-featured-badge {
        top: 12px;
        left: 12px;
        min-height: 34px;
        padding: 8px 20px 8px 12px;
        font-size: 10px;
    }

    .jpro-yc-featured-badge::after {
        right: -13px;
        border-top-width: 17px;
        border-bottom-width: 17px;
        border-left-width: 13px;
    }

    .jpro-yc-playlist-item {
        grid-template-columns: 112px minmax(0, 1fr) auto;
        min-height: 88px;
        gap: 10px;
        padding: 8px 10px 8px 8px;
    }

    .jpro-yc-item-action {
        width: 34px;
        height: 34px;
    }

    .jpro-yc-item-number {
        font-size: 14px;
    }

    .jpro-yc-playlist-header {
        padding: 0;
    }
}

@media (max-width: 430px) {
    .jpro-yc-heading-row h2 {
        font-size: 25px;
    }

    .jpro-yc-playlist-item {
        grid-template-columns: 100px minmax(0, 1fr) auto;
    }

    .jpro-yc-item-copy small {
        margin-top: 7px;
    }
}
