.wb-video-stage {
    --wb-video-blue: var(--wb-blue, #007694);
    --wb-video-blue-deep: var(--wb-blue-deep, #305368);
    --wb-video-ink: var(--wb-ink, #111d20);
    --wb-video-muted: var(--wb-muted, #647281);
    --wb-video-line: var(--wb-line, #dceaed);
    --wb-video-red: #d71920;
    position: relative;
    overflow: hidden;
    color: var(--wb-video-ink);
    background: #fff;
}

.wb-video-stage__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: end;
    margin-bottom: 74px;
}

.wb-video-stage__kicker {
    margin: 0 0 16px;
    color: var(--wb-video-blue);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.wb-video-stage__head h2 {
    max-width: 1050px;
    margin: 0;
    font-size: clamp(46px, 4.2vw, 76px);
    line-height: 1.14;
    letter-spacing: -.06em;
    word-break: keep-all;
}

.wb-video-stage__head p:last-child {
    max-width: 860px;
    margin: 28px 0 0;
    color: var(--wb-video-muted);
    font-size: 18px;
}

.wb-video-stage__channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 202px;
    min-height: 58px;
    padding: 0 26px;
    color: #fff;
    background: var(--wb-video-red);
    border: 2px solid var(--wb-video-red);
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
}

.wb-video-stage__channel:hover,
.wb-video-stage__channel:focus-visible {
    background: #b71318;
    border-color: #b71318;
    transform: translateY(-3px);
}

.wb-video-stage__channel:active {
    transform: translateY(1px);
}

.wb-video-stage__channel b {
    font-size: 19px;
    line-height: 1;
}

.wb-video-stage__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .9fr);
    gap: clamp(28px, 4vw, 70px);
    align-items: stretch;
}

.wb-video-stage button {
    font: inherit;
}

.wb-video-stage__poster,
.wb-video-stage__item > button {
    width: 100%;
    padding: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.wb-video-stage__poster--featured {
    display: grid;
    height: 100%;
    align-content: start;
}

.wb-video-stage__image,
.wb-video-stage__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dcebef;
}

.wb-video-stage__image {
    aspect-ratio: 16 / 9;
    border: 8px solid #ffd20a;
    border-radius: 16px;
}

.wb-video-stage__image img,
.wb-video-stage__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}

.wb-video-stage__poster:hover img,
.wb-video-stage__poster:focus-visible img,
.wb-video-stage__item > button:hover img,
.wb-video-stage__item > button:focus-visible img {
    transform: scale(1.025);
}

.wb-video-stage__poster:focus-visible,
.wb-video-stage__item > button:focus-visible,
.wb-video-stage__channel:focus-visible,
.wb-video-dialog button:focus-visible,
.wb-video-dialog a:focus-visible {
    outline: 4px solid rgba(0, 118, 148, .35);
    outline-offset: 5px;
}

.wb-video-stage__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 102px;
    min-height: 54px;
    justify-content: center;
    padding: 0 17px;
    color: #fff;
    background: rgba(16, 70, 84, .9);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    box-shadow: 0 15px 35px rgba(13, 75, 90, .24);
    transform: translate(-50%, -50%);
    transition: background-color .22s ease, transform .22s ease;
}

.wb-video-stage__poster:hover .wb-video-stage__play,
.wb-video-stage__poster:focus-visible .wb-video-stage__play,
.wb-video-stage__item > button:hover .wb-video-stage__play,
.wb-video-stage__item > button:focus-visible .wb-video-stage__play {
    background: var(--wb-video-red);
    transform: translate(-50%, -50%) scale(1.04);
}

.wb-video-stage__play i {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
}

.wb-video-stage__play b {
    font-size: 14px;
    line-height: 1;
}

.wb-video-stage__featured-copy {
    display: grid;
    gap: 12px;
    padding-top: 25px;
}

.wb-video-stage__featured-copy > strong {
    max-width: 780px;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.4;
    letter-spacing: -.035em;
}

.wb-video-stage__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--wb-video-muted);
    font-size: 13px;
}

.wb-video-stage__meta > * + * {
    padding-left: 18px;
    border-left: 1px solid #c8d8dc;
}

.wb-video-stage__latest {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.wb-video-stage__item {
    min-width: 0;
}

.wb-video-stage__item > button {
    display: grid;
    grid-template-columns: minmax(178px, .78fr) minmax(0, 1.22fr);
    gap: 24px;
    height: 100%;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--wb-video-line);
}

.wb-video-stage__item:last-child > button {
    border-bottom: 0;
}

.wb-video-stage__thumb {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
}

.wb-video-stage__thumb img {
    object-position: center;
}

.wb-video-stage__play--small {
    min-width: 46px;
    min-height: 46px;
    padding: 0;
}

.wb-video-stage__item-copy {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.wb-video-stage__item-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.5;
    letter-spacing: -.025em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.wb-video-stage__image.is-thumb-error img,
.wb-video-stage__thumb.is-thumb-error img {
    opacity: 0;
}

.wb-video-stage__image.is-thumb-error::after,
.wb-video-stage__thumb.is-thumb-error::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--wb-video-blue-deep);
    background: #e6f1f4;
    content: "영상 썸네일을 불러오지 못했습니다";
    font-size: 14px;
    font-weight: 750;
    text-align: center;
}

.wb-video-stage__empty {
    padding: clamp(42px, 6vw, 78px);
    background: #eef8fa;
    border: 1px solid var(--wb-video-line);
    border-radius: 16px;
    text-align: center;
}

.wb-video-stage__empty strong {
    display: block;
    font-size: clamp(23px, 2.5vw, 34px);
}

.wb-video-stage__empty p {
    margin: 14px 0 0;
    color: var(--wb-video-muted);
}

.wb-video-stage__empty a {
    display: inline-flex;
    margin-top: 24px;
    padding: 12px 20px;
    color: #fff;
    background: var(--wb-video-blue);
    border-radius: 999px;
    font-weight: 800;
}

.wb-video-dialog {
    width: min(1120px, calc(100% - 40px));
    max-width: none;
    padding: 0;
    color: #eaf5f8;
    background: transparent;
    border: 0;
    overflow: visible;
}

.wb-video-dialog:not([open]) {
    display: none;
}

.wb-video-dialog::backdrop {
    background: rgba(8, 35, 42, .82);
    backdrop-filter: blur(10px);
}

.wb-video-dialog[open] {
    animation: wb-video-dialog-in .25s cubic-bezier(.16, 1, .3, 1) both;
}

.wb-video-dialog__panel {
    overflow: hidden;
    background: #103e49;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    box-shadow: 0 34px 90px rgba(6, 36, 43, .36);
}

.wb-video-dialog__panel > header {
    display: flex;
    justify-content: space-between;
    gap: 26px;
    align-items: center;
    min-height: 94px;
    padding: 20px 24px 20px 30px;
}

.wb-video-dialog__panel > header p {
    margin: 0;
    color: #8fd6e8;
    font-size: 12px;
    font-weight: 800;
}

.wb-video-dialog__panel > header h3 {
    max-width: 880px;
    margin: 5px 0 0;
    overflow: hidden;
    color: #f6fbfc;
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-video-dialog__close {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    cursor: pointer;
}

.wb-video-dialog__close:hover {
    background: rgba(255, 255, 255, .19);
}

.wb-video-dialog__close:active {
    transform: translateY(1px);
}

.wb-video-dialog__close span::before,
.wb-video-dialog__close span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    content: "";
}

.wb-video-dialog__close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.wb-video-dialog__close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.wb-video-dialog__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b2b33;
}

.wb-video-dialog__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0b2b33;
    border: 0;
}

.wb-video-dialog__loading,
.wb-video-dialog__error {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 32px;
    color: #dbedf2;
    background: #0b2b33;
    text-align: center;
}

.wb-video-dialog__loading[hidden],
.wb-video-dialog__error[hidden] {
    display: none;
}

.wb-video-dialog__loading > span {
    width: min(440px, 62vw);
    height: 14px;
    overflow: hidden;
    background: #184d5a;
    border-radius: 999px;
}

.wb-video-dialog__loading > span::after {
    display: block;
    width: 45%;
    height: 100%;
    background: #55c3df;
    border-radius: inherit;
    content: "";
    animation: wb-video-loading 1.1s ease-in-out infinite alternate;
}

.wb-video-dialog__loading p,
.wb-video-dialog__error p {
    margin: 18px 0 0;
}

.wb-video-dialog__error strong {
    font-size: clamp(21px, 3vw, 30px);
}

.wb-video-dialog__error p {
    color: #a9c5cc;
}

.wb-video-dialog__error a {
    display: inline-flex;
    margin-top: 24px;
    padding: 12px 20px;
    color: #fff;
    background: var(--wb-video-red);
    border-radius: 999px;
    font-weight: 800;
}

.wb-video-dialog__privacy {
    margin: 0;
    padding: 15px 28px 18px;
    color: #9fbdc5;
    font-size: 12px;
}

.wb-video-dialog.is-fallback-open {
    position: fixed;
    z-index: 5000;
    inset: 50% auto auto 50%;
    display: block;
    transform: translate(-50%, -50%);
}

.wb-video-dialog.is-fallback-open::before {
    position: fixed;
    z-index: -1;
    inset: -100vh -100vw;
    background: rgba(8, 35, 42, .88);
    content: "";
}

@keyframes wb-video-dialog-in {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: none; }
}

@keyframes wb-video-loading {
    from { transform: translateX(-105%); }
    to { transform: translateX(225%); }
}

@media (max-width: 1180px) {
    .wb-video-stage__layout {
        grid-template-columns: 1fr;
    }

    .wb-video-stage__latest {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .wb-video-stage__item > button {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 14px;
        border-bottom: 0;
    }

    .wb-video-stage__item-copy strong {
        font-size: 17px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 760px) {
    .wb-video-stage__head {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 44px;
    }

    .wb-video-stage__head h2 {
        font-size: 39px;
    }

    .wb-video-stage__head h2 br {
        display: none;
    }

    .wb-video-stage__head p:last-child {
        margin-top: 20px;
        font-size: 16px;
    }

    .wb-video-stage__channel {
        justify-self: start;
        min-height: 52px;
    }

    .wb-video-stage__layout {
        gap: 28px;
    }

    .wb-video-stage__image {
        border-width: 5px;
        border-radius: 12px;
    }

    .wb-video-stage__featured-copy > strong {
        font-size: 21px;
    }

    .wb-video-stage__latest {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .wb-video-stage__item > button {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--wb-video-line);
    }

    .wb-video-stage__item:last-child > button {
        border-bottom: 0;
    }

    .wb-video-stage__item-copy {
        gap: 8px;
    }

    .wb-video-stage__item-copy strong {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }

    .wb-video-stage__meta {
        font-size: 11px;
    }

    .wb-video-stage__play {
        min-width: 88px;
        min-height: 48px;
    }

    .wb-video-stage__play--small {
        min-width: 38px;
        min-height: 38px;
    }

    .wb-video-stage__play--small i {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 9px;
    }

    .wb-video-dialog {
        width: calc(100% - 20px);
    }

    .wb-video-dialog__panel > header {
        min-height: 78px;
        padding: 15px 14px 15px 18px;
    }

    .wb-video-dialog__panel > header h3 {
        max-width: calc(100vw - 112px);
        font-size: 16px;
    }

    .wb-video-dialog__panel > header p {
        font-size: 10px;
    }

    .wb-video-dialog__close {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .wb-video-dialog__privacy {
        padding: 13px 16px 16px;
    }
}

@media (max-width: 420px) {
    .wb-video-stage__head h2 {
        font-size: 34px;
    }

    .wb-video-stage__item > button {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wb-video-stage *,
    .wb-video-stage *::before,
    .wb-video-stage *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
