.cyt-playlist-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Page Header */
.cyt-page-header {
    margin-bottom: 20px;
    padding: 0 20px;
}

.cyt-page-header h1 {
    font-size: 2em;
    margin: 0;
    color: #4a5568;
    font-weight: 600;
}

/* Video Player */
.cyt-video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    margin-bottom: 0;
    overflow: hidden;
}

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

/* Video Details */
.cyt-video-details {
    margin-bottom: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 8px;
}

.cyt-video-title {
    font-size: 1.5em;
    font-weight: 600;
    color: rgb(51, 51, 51);
    margin-bottom: 15px;
    line-height: 1.3;
}

.cyt-video-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.cyt-video-description.cyt-description-collapsed {
    max-height: 60px;
    overflow: hidden;
    position: relative;
}

.cyt-show-more-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 0;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

.cyt-show-more-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Back to Playlists Button */
.cyt-back-button {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-right: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #2d3748;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    font-weight: 500;
    margin: 0;
}

.cyt-back-button:hover {
    background: #edf2f7;
}

/* Playlist Items Container */
.cyt-playlist-items {
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.cyt-playlist-item {
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
}

.cyt-playlist-item:last-child {
    border-bottom: none;
}

.cyt-playlist-item:hover {
    background-color: #f7fafc;
}

.cyt-playlist-item.cyt-active {
    background-color: #ebf8ff;
}

.cyt-item-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cyt-item-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.cyt-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cyt-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.cyt-playlist-item:hover .cyt-play-overlay {
    opacity: 1;
}

.cyt-item-details {
    flex: 1;
    min-width: 0;
}

.cyt-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cyt-item-description {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Load More Button */
.cyt-load-more-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #4a5568;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
}

.cyt-load-more-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Footer */
.cyt-footer {
    text-align: right;
    padding: 20px;
    background: #f7fafc;
}

.cyt-footer a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #4a5568;
    font-size: 13px;
    transition: color 0.2s;
}

.cyt-footer a:hover {
    color: #2d3748;
}

.cyt-footer img {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cyt-page-header h1 {
        font-size: 1.5em;
    }
    
    .cyt-item-thumbnail {
        width: 100px;
        height: 75px;
    }
    
    .cyt-item-title {
        font-size: 13px;
    }
    
    .cyt-item-description {
        font-size: 12px;
    }
    
    .cyt-playlist-item {
        padding: 10px 15px;
    }
    
    .cyt-video-details {
        padding: 15px;
    }
    
    .cyt-page-header {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .cyt-item-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .cyt-item-row {
        gap: 10px;
    }
    
    .cyt-item-title {
        -webkit-line-clamp: 2;
    }
    
    .cyt-item-description {
        display: none;
    }
}

/* Loading State */
.cyt-loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.cyt-loading::after {
    content: '...';
    animation: cyt-dots 1.5s infinite;
}

@keyframes cyt-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}