.portrait-video-wrapper {
    margin: 0 !important;
    clear: both;
    position: relative;
}

.portrait-video-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: stretch;
    width: min(94vw, 1320px);
    margin: 0 0 24px 50% !important;
    padding: clamp(18px, 2.4vw, 32px);
    color: #171412;
    background: #fffdfa;
    border: 1px solid rgba(23, 20, 18, 0.12);
    border-radius: 8px;
    transform: translateX(-50%);
}

.portrait-video-player {
    width: 100%;
    aspect-ratio: 4 / 3;
    align-self: start;
    margin: 0 !important;
    padding-top: 0;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.portrait-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.portrait-video-info {
    display: grid;
    min-width: 0;
}

.portrait-video-info__panel {
    display: none;
    gap: 14px;
    align-content: start;
    min-width: 0;
}

.portrait-video-info__panel.active {
    display: grid;
}

.portrait-video-info__heading {
    display: grid;
    gap: 4px;
}

.portrait-video-info__label {
    margin: 0;
    color: #9d1b2e;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.portrait-video-info__title {
    margin: 0;
    color: #171412;
    font-family: "Zen Antique", "Noto Sans JP", serif;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 400;
    line-height: 1.35;
}

.portrait-video-info__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
}

.portrait-video-info__item {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(23, 20, 18, 0.12);
}

.portrait-video-info__item dt {
    color: #9d1b2e;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.portrait-video-info__item dd {
    min-width: 0;
    margin: 0;
    color: #171412;
    font-size: 0.92rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.portrait-video-info__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.portrait-video-info__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #171412;
    background: transparent;
    border: 1px solid rgba(23, 20, 18, 0.22);
    border-radius: 50%;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portrait-video-info__link--primary {
    width: auto;
    min-width: 122px;
    padding: 0 16px;
    color: #fffdfa;
    background: #9d1b2e;
    border-color: #9d1b2e;
    border-radius: 4px;
    box-shadow: 0 12px 24px rgba(157, 27, 46, 0.18);
}

.portrait-video-info__link--cta {
    width: auto;
    min-width: 108px;
    padding: 0 16px;
    color: #fffdfa;
    background: #171412;
    border-color: #171412;
    border-radius: 4px;
    box-shadow: 0 12px 24px rgba(23, 20, 18, 0.16);
}

.portrait-video-info__link-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.portrait-video-info__link-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.portrait-video-info__link-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.portrait-video-info__link--primary .portrait-video-info__link-text {
    position: static;
    width: auto;
    height: auto;
    margin-left: 8px;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.portrait-video-info__link--cta .portrait-video-info__link-text {
    position: static;
    width: auto;
    height: auto;
    margin-left: 8px;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.portrait-video-info__link:hover,
.portrait-video-info__link:focus-visible {
    color: #fffdfa;
    background: #171412;
    border-color: #171412;
    transform: translateY(-1px);
}

.portrait-video-info__link--primary:hover,
.portrait-video-info__link--primary:focus-visible {
    color: #fffdfa;
    background: #171412;
    border-color: #171412;
}

.portrait-video-info__link--cta:hover,
.portrait-video-info__link--cta:focus-visible {
    color: #171412;
    background: transparent;
    border-color: rgba(23, 20, 18, 0.42);
}

.portrait-video-slider {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    width: min(94vw, 1320px);
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 50% !important;
    transform: translateX(-50%);
}

.video-selector-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0 !important;
    padding: 12px 2px 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #151515 #ededed;
}

.video-selector-buttons:focus-visible {
    outline: 2px solid #151515;
    outline-offset: 4px;
    border-radius: 8px;
}

.video-selector-buttons::-webkit-scrollbar {
    height: 8px;
}

.video-selector-buttons::-webkit-scrollbar-track {
    background: #ededed;
    border-radius: 8px;
}

.video-selector-buttons::-webkit-scrollbar-thumb {
    background: #151515;
    border-radius: 8px;
}

.video-select-btn {
    flex: 0 0 clamp(200px, 17vw, 250px);
    width: clamp(200px, 17vw, 250px);
    min-width: 0;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, 0.14);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
    color: #151515;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    overflow: hidden;
    position: relative;
    z-index: 1;
    scroll-snap-align: start;
    box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
}

.video-select-btn__media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    overflow: hidden;
}

.video-select-btn__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    color: #fffdfa;
    background: #9d1b2e;
    border: 1px solid rgba(255, 253, 248, 0.72);
    border-radius: 4px;
    font-family: "Barlow Condensed", "Noto Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(20, 20, 20, 0.22);
    pointer-events: none;
}

.video-select-btn img.video-package-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fallback-video-id {
    display: none;
    width: 100%;
    height: 100%;
    padding: 16px;
    align-content: center;
    text-align: center;
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.video-select-btn__body {
    display: grid;
    gap: 3px;
    min-height: 64px;
    padding: 10px 11px 11px;
}

.video-select-btn__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.portrait-video-slider__arrow {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(20, 20, 20, 0.16);
    border-radius: 50%;
    background: #fff;
    color: #151515;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(20, 20, 20, 0.1);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portrait-video-slider__arrow:hover,
.portrait-video-slider__arrow:focus-visible {
    background: #151515;
    color: #fff;
    transform: translateY(-1px);
}

.video-select-btn:hover {
    border-color: #151515;
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(20, 20, 20, 0.18);
    z-index: 10;
}

.video-select-btn.active {
    background: #151515;
    color: #fff;
    border-color: #151515;
    z-index: 2;
}

.video-select-btn.is-sxjy-pick {
    border-color: rgba(157, 27, 46, 0.46);
}

.video-select-btn.active:hover {
    background: #151515;
}

.error-message {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .portrait-video-feature {
        grid-template-columns: 1fr;
        width: calc(100vw - 28px);
        margin-left: 50% !important;
        padding: 18px;
    }

    .portrait-video-player {
        width: 100%;
    }

    .portrait-video-info__link {
        width: 40px;
        height: 40px;
    }

    .portrait-video-info__link--primary {
        width: auto;
        min-width: 118px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .portrait-video-info__link--cta {
        width: auto;
        min-width: 104px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .portrait-video-slider {
        grid-template-columns: 1fr;
        gap: 0;
        width: calc(100vw - 28px);
        margin-left: 50% !important;
        margin-right: 0 !important;
    }

    .video-selector-buttons {
        gap: 12px;
        padding: 12px 0 16px;
        scroll-padding-left: 0;
    }

    .video-select-btn {
        flex-basis: 58vw;
        width: 58vw;
    }

    .portrait-video-slider__arrow {
        display: none;
    }

}

@media (max-width: 480px) {
    .portrait-video-info__list {
        grid-template-columns: 1fr;
    }

    .video-select-btn {
        flex-basis: 74vw;
        width: 74vw;
    }

    .video-select-btn__badge {
        top: 7px;
        left: 7px;
        min-height: 21px;
        font-size: 0.68rem;
    }

}
