.wk-ytvp {
    --wk-ytvp-border: #e5e7eb;
    --wk-ytvp-muted: #6b7280;
    --wk-ytvp-text: #111827;
    --wk-ytvp-card-bg: #ffffff;
    --wk-ytvp-soft-bg: #f8fafc;
    --wk-ytvp-accent: #1d4ed8;
    --wk-ytvp-max: 1300px;
    color: var(--wk-ytvp-text);
    width: 100%;
    max-width: var(--wk-ytvp-max);
    margin: 0 auto;
}

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

.wk-ytvp__top,
.wk-ytvp__join,
.wk-ytvp__below {
    max-width: var(--wk-ytvp-max);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1025px) {
    .wk-ytvp {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0 16px;
    }
}

.wk-ytvp__top {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.wk-ytvp__player,
.wk-ytvp__sidebar {
    border-radius: 14px;
    background: var(--wk-ytvp-card-bg);
    border: 1px solid var(--wk-ytvp-border);
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.wk-ytvp__player-media {
    position: relative;
    background: #000;
}

.wk-ytvp__poster {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    position: relative;
}

.wk-ytvp__poster-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.98;
}

.wk-ytvp__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.wk-ytvp__play svg {
    width: 86px;
    height: 86px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.wk-ytvp__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
}

.wk-ytvp.is-playing .wk-ytvp__iframe {
    display: block;
}

.wk-ytvp.is-playing .wk-ytvp__poster {
    opacity: 0;
    pointer-events: none;
}

.wk-ytvp__player-body {
    padding: 14px 16px 16px;
}

.wk-ytvp__player-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.wk-ytvp__player-meta {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--wk-ytvp-muted);
    font-weight: 500;
}

.wk-ytvp__sidebar-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--wk-ytvp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wk-ytvp__sidebar-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wk-ytvp-muted);
}

.wk-ytvp__sidebar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.12);
    color: var(--wk-ytvp-accent);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.wk-ytvp__list {
    max-height: 500px;
    overflow: auto;
    padding: 10px;
}

.wk-ytvp__item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, transform 0.18s ease;
}

.wk-ytvp__item:hover,
.wk-ytvp__item:focus-visible {
    background: rgba(29, 78, 216, 0.08);
}

.wk-ytvp__item.is-active {
    background: rgba(29, 78, 216, 0.12);
}

.wk-ytvp__item:focus-visible {
    outline: 2px solid var(--wk-ytvp-accent);
    outline-offset: 2px;
}

.wk-ytvp__item-thumb {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #111827;
}

.wk-ytvp__item-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    margin-top: 2px;
}

.wk-ytvp__join {
    margin-top: 18px;
    border-radius: 16px;
    border: 1px solid var(--wk-ytvp-border);
    background: var(--wk-ytvp-soft-bg);
    overflow: hidden;
}

.wk-ytvp__join-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px 18px;
}

.wk-ytvp__join-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.wk-ytvp__join-subtitle {
    margin: 6px 0 0;
    color: var(--wk-ytvp-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.wk-ytvp__join-form {
    margin-top: 12px;
}

.wk-ytvp__join-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wk-ytvp-border);
    background: #ffffff;
}

.wk-ytvp__join-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #111827;
    background: #f3f4f6;
    font-size: 13px;
}

.wk-ytvp__join-input {
    border: 0;
    outline: none;
    padding: 0 12px;
    height: 44px;
    font-size: 13px;
    width: 100%;
}

.wk-ytvp__join-btn {
    border: 0;
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 0 14px;
}

.wk-ytvp__join-btn:hover,
.wk-ytvp__join-btn:focus {
    background: #0b1220;
}

.wk-ytvp__join-help {
    margin: 8px 0 0;
    color: var(--wk-ytvp-muted);
    font-size: 12px;
    font-weight: 600;
}

.wk-ytvp__join-art {
    min-height: 120px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(29, 78, 216, 0.20), transparent 58%),
        radial-gradient(circle at 70% 70%, rgba(244, 114, 182, 0.25), transparent 56%),
        #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.06);
}

.wk-ytvp__below {
    margin-top: 22px;
}

.wk-ytvp__below-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
}

.wk-ytvp__below-subtitle {
    margin: 6px 0 0;
    color: var(--wk-ytvp-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.wk-ytvp__locked-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.wk-ytvp__locked-card {
    border-radius: 14px;
    border: 1px solid var(--wk-ytvp-border);
    background: var(--wk-ytvp-card-bg);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
    position: relative;
}

.wk-ytvp__locked-media {
    position: relative;
    background: #0b1220;
}

.wk-ytvp__locked-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    opacity: 0.95;
}

.wk-ytvp__lock {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    border: 1px solid rgba(17, 24, 39, 0.10);
}

.wk-ytvp__lock svg {
    width: 16px;
    height: 16px;
    color: #111827;
}

.wk-ytvp__locked-body {
    padding: 12px 12px 14px;
}

.wk-ytvp__locked-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wk-ytvp-muted);
}

.wk-ytvp__locked-title {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wk-ytvp__locked-card.is-current {
    outline: 2px solid rgba(29, 78, 216, 0.7);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .wk-ytvp {
        max-width: 100%;
        padding: 0 16px;
    }

    .wk-ytvp__top {
        grid-template-columns: 1fr;
    }

    .wk-ytvp__list {
        max-height: 300px;
    }

    .wk-ytvp__join-inner {
        grid-template-columns: 1fr;
    }

    .wk-ytvp__locked-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wk-ytvp__join-row {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .wk-ytvp__join-btn {
        grid-column: 1 / -1;
        height: 44px;
    }

    .wk-ytvp__locked-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wk-ytvp__player-title {
        font-size: 16px;
    }
}