/* youtube-playlist-popup/assets/style.css */

/*
 * ----------------------------------------------------
 * 목록 컨테이너
 * ----------------------------------------------------
 */
.ytpp-list-container {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee; 
    border-radius: 10px;
    overflow: hidden;
}

.ytpp-list-container.has-shadow {
    background-color: #fcfcfc;
    box-shadow: inset 0px 4px 8px -4px rgba(0, 0, 0, 0.1), 
                inset 0px -4px 8px -4px rgba(0, 0, 0, 0.1);
}

.ytpp-list-container::-webkit-scrollbar {
    display: none;
}

.ytpp-items-wrapper {
    padding: 10px 20px;
}


/*
 * ----------------------------------------------------
 * 목록 아이템 (링크)
 * ----------------------------------------------------
 */
.ytpp-list-container a.ytpp-video-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1.5;
    transition: background 0.2s ease;
    border-bottom: 1px solid #eee;
    text-align: left;
    cursor: pointer;
}

.ytpp-items-wrapper a.ytpp-video-link:last-child,
.ytpp-items-wrapper a.ytpp-video-link:last-of-type {
    border-bottom: none;
}

.ytpp-list-container a.ytpp-video-link:hover {
    background-color: #f5f5f5;
}

.ytpp-list-container a.ytpp-video-link.active {
    background-color: #f0f3f7;
    font-weight: 600;
}

.ytpp-list-container a.ytpp-video-link.active::before {
    content: "▼";
    color: #c24a4a;
}

/*
 * ----------------------------------------------------
 * 아이콘, 썸네일, 텍스트 스타일
 * ----------------------------------------------------
 */

.ytpp-list-container a.ytpp-video-link::before {
    content: "►"; 
    color: #4a80c2;
    font-size: 0.7em;
    margin-right: 1em;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ytpp-thumbnail-wrapper {
    flex-shrink: 0;
    width: 120px;
    margin-right: 1em;
}

.ytpp-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.ytpp-text-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.ytpp-video-title {
    font-weight: 500;
    font-size: 1em; 
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ytpp-meta-info {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 4px;
    color: #555;
}

.ytpp-channel-title,
.ytpp-published-date {
    color: inherit;
}

.ytpp-separator {
    margin: 0 0.5em;
    font-size: 0.9em;
}

/*
 * ----------------------------------------------------
 * 아코디언 플레이어 스타일
 * ----------------------------------------------------
 */
.ytpp-player-container {
    padding: 15px 0 10px 0;
    border-bottom: 1px solid #eee;
}

.ytpp-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

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

/*
 * ----------------------------------------------------
 * 영상 설명 스타일
 * ----------------------------------------------------
 */
.ytpp-video-description {
    margin-top: 15px;
    padding: 12px;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    border-radius: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/*
 * ----------------------------------------------------
 * ▼▼▼ 추가된 부분: 더 로드 버튼 스타일 ▼▼▼
 * ----------------------------------------------------
 */
.ytpp-load-more-button {
    display: block;
    width: 100%;
    padding: 12px 0;
    border: none;
    border-top: 1px solid #eee;
    background-color: #f7f7f7;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
}

.ytpp-load-more-button:hover {
    background-color: #e9e9e9;
}

.ytpp-load-more-button:disabled {
    cursor: not-allowed;
    background-color: #fcfcfc;
    color: #999;
}