.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 20px;
    background: var(--text-primary);
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 모바일에서 가로 영상은 화면 끝까지 채움 (부모 padding 무시) */
@media (max-width: 768px) {
    .video-container:not(.is-shorts) {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
    }
}

.youtube-view-head {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.youtube-view-head h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.youtube-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-tertiary);
}

.youtube-meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
    text-decoration: none;
}

.channel-badge:hover {
    color: var(--text-primary);
}

.channel-badge i, .channel-badge svg.lucide {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.youtube-meta-right {
    display: flex;
    gap: 15px;
}

.view-content {
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.video-container.is-shorts {
    padding-bottom: 177.77%;
    height: 0;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

@supports (aspect-ratio: 9/16) {
    .video-container.is-shorts {
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 9 / 16;
    }
}

.video-container.is-shorts iframe {
    position: relative;
}

#yt_player_container {
    margin-top: 0;
}

.yt-lite-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.yt-lite-play-btn {
    width: 68px;
    height: 48px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 12%;
    position: relative;
    transition: background-color 0.2s;
    box-shadow: 0 0 20px var(--shadow-color);
}

.yt-lite-wrapper:hover .yt-lite-play-btn {
    background-color: #f00;
}

.yt-lite-play-btn::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #fff;
    border-left-color: var(--bg-content, #fff);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
}

.rb-youtube-resume-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 4;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(21, 21, 21, 0.86);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.rb-youtube-resume-badge:hover {
    background: rgba(21, 21, 21, 0.96);
}

body.is-dj-active #bo_v_con {
    display: none !important;
}

.shorts-nav-wrap {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.shorts-nav-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.shorts-nav-title svg {
    color: #ff0000;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.shorts-nav-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.shorts-nav-container::-webkit-scrollbar {
    height: 4px;
}

.shorts-nav-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.shorts-nav-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.shorts-nav-item {
    width: 120px;
    flex-shrink: 0;
    cursor: pointer;
}

.shorts-nav-thumb {
    position: relative;
    padding-top: 177.77%;
    background: var(--text-primary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.shorts-nav-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.shorts-nav-item:hover .shorts-nav-thumb img {
    opacity: 1;
}

.shorts-nav-subject {
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-secondary);
    text-overflow: ellipsis;
}
