.watch-layout-custom {
    align-items: start;
}

.watch-main,
.watch-side {
    min-width: 0;
}

.watch-player-shell {
    min-width: 0;
}

.watch-player-box {
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.watch-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.watch-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-poster-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: #111;
}

.watch-poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.28);
    transition: background .2s ease;
}

.watch-poster:hover .watch-poster-overlay {
    background: rgba(0,0,0,0.42);
}

.watch-play-btn {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.watch-poster:hover .watch-play-btn {
    transform: scale(1.05);
    background: rgba(255,0,51,0.9);
    border-color: var(--red);
}

/* 여기 중요: 추가 상단 여백 제거 */
.watch-info-block {
    padding-top: 0;
}

.watch-meta-custom {
    gap: 14px;
}

.yt-watch-meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.watch-actions-custom {
    justify-content: flex-end;
}

.watch-action-btn {
    border: none;
    cursor: pointer;
    color: var(--text);
    background: #262626;
    transition: background .15s ease, color .15s ease;
}

.watch-action-btn:hover {
    background: #323232;
}

.watch-action-btn.is-active {
    background: #fff;
    color: #111;
}

/* app.css의 .yt-info-card margin-top 사용 */
.watch-description-card,
.watch-comment-card {
    margin-top: 18px;
}

.watch-notice-box {
    margin-top: 16px;
    border-radius: 14px;
    background: rgba(255, 153, 0, 0.12);
    border: 1px solid rgba(255, 153, 0, 0.22);
    color: #ffd089;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    line-height: 1.6;
}

.watch-player-status {
    margin-top: 14px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 배너 공간도 카드처럼 동일 간격 */
.watch-banner-slot {
    min-height: 110px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 18px;
}

.watch-side .watch-banner-slot:first-child {
    margin-top: 0;
}

.watch-banner-slot-side {
    min-height: 180px;
}

.watch-comment-write {
    margin-top: 0;
}

.watch-comment-gate {
    border-radius: 14px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.watch-comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.watch-comment-textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border-radius: 14px;
    background: #121212;
    border: 1px solid #303030;
    color: var(--text);
    padding: 14px 16px;
    font-size: 14px;
    outline: none;
}

.watch-comment-textarea:focus {
    border-color: #555;
}

.watch-comment-textarea::placeholder {
    color: #777;
}

.watch-comment-actions {
    display: flex;
    justify-content: flex-end;
}

.watch-comment-list {
    margin-top: 16px;
}

.watch-related-item {
    border-radius: 12px;
    padding: 6px;
    transition: background .15s ease;
}

.watch-related-item:hover {
    background: rgba(255,255,255,0.04);
}

.watch-related-thumb {
    background: #1b1b1b;
}

.watch-rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
}

.watch-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.watch-modal-backdrop.show {
    display: flex;
}

.watch-login-modal,
.watch-nickname-modal {
    width: 100%;
    max-width: 460px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    position: relative;
}

.watch-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.watch-login-title,
.watch-nickname-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.watch-login-desc,
.watch-nickname-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.watch-login-widget {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-login-help {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.watch-nickname-input {
    width: 100%;
    height: 48px;
    border: 1px solid #303030;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    background: #121212;
    color: var(--text);
}

.watch-nickname-input:focus {
    border-color: #555;
}

.watch-nickname-input::placeholder {
    color: #777;
}

.watch-nickname-help {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.watch-nickname-error {
    margin-top: 12px;
    font-size: 14px;
    color: #ff6b6b;
    display: none;
}

.watch-nickname-error.show {
    display: block;
}

.watch-nickname-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.watch-nickname-btn {
    flex: 1;
    height: 46px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.watch-nickname-btn-primary {
    background: #fff;
    color: #111;
}

.watch-nickname-btn-primary:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.watch-nickname-btn-sub {
    background: #272727;
    color: var(--text);
}

@media (max-width: 900px) {
    .watch-actions-custom {
        justify-content: flex-start;
    }

    .watch-banner-slot-side {
        min-height: 120px;
    }
}

@media (max-width: 640px) {
    .watch-play-btn {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .watch-comment-gate {
        align-items: flex-start;
    }

    .watch-nickname-actions {
        flex-direction: column;
    }
}
/* ===== 비디오 그리드 (모바일 2열) ===== */
.yt-video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 16px;
    margin-top: 24px;
}

@media (max-width: 1200px) {
    .yt-video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .yt-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .yt-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }
}

/* 비디오 카드 스타일 */
.yt-video-card {
    display: flex;
    flex-direction: column;
}

.yt-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    display: block;
}

.yt-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yt-video-thumb:hover img {
    transform: scale(1.05);
}

.yt-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.yt-video-body {
    padding: 0 4px;
}

.yt-video-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-video-title a {
    color: #ffffff;
    text-decoration: none;
}

.yt-video-title a:hover {
    color: #cccccc;
}

.yt-video-sub,
.yt-video-meta {
    font-size: 14px;
    color: #aaaaaa;
    line-height: 1.4;
}

.yt-video-sub {
    margin-bottom: 4px;
}

.yt-video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* ===== 페이지네이션 (유튜브 스타일) ===== */
.yt-pagination-wrap {
    margin-top: 48px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.yt-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    padding: 4px;
}

.yt-pagination-prev,
.yt-pagination-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    color: #aaaaaa;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.yt-pagination-prev:hover,
.yt-pagination-next:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.yt-pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 400;
    color: #aaaaaa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.yt-pagination-num:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.yt-pagination-num.active {
    background: #ffffff;
    color: #030303;
    font-weight: 500;
}

.yt-pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #666666;
    font-size: 16px;
    letter-spacing: 2px;
}

.yt-pagination-info {
    font-size: 14px;
    color: #aaaaaa;
}

.yt-pagination-info-current {
    font-weight: 500;
    color: #ffffff;
}

.yt-pagination-info-total {
    color: #666666;
}

/* ===== 모바일 최적화 ===== */
@media (max-width: 480px) {
    .yt-video-title {
        font-size: 14px;
    }
    
    .yt-video-sub,
    .yt-video-meta {
        font-size: 12px;
    }
    
    .yt-pagination-prev,
    .yt-pagination-next,
    .yt-pagination-num {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .yt-pagination-dots {
        min-width: 36px;
        height: 36px;
    }
}

/* 카테고리 바 스타일 */
.yt-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding: 0 16px;
}

.yt-pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.yt-pill:hover {
    background: rgba(255, 255, 255, 0.2);
}

.yt-pill.active {
    background: #ffffff;
    color: #030303;
}

.yt-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 16px;
    padding: 0 16px;
}

.yt-section-title-row h2 {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.yt-title-badge {
    font-size: 14px;
    color: #aaaaaa;
    margin-left: 8px;
}

.yt-empty-box {
    text-align: center;
    padding: 60px 20px;
    color: #aaaaaa;
    font-size: 16px;
}

@media (max-width: 640px) {
    .yt-category-bar {
        padding: 0 12px;
        gap: 6px;
    }
    
    .yt-pill {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .yt-section-title-row {
        padding: 0 12px;
    }
    
    .yt-section-title-row h2 {
        font-size: 18px;
    }
}