/* YouTube Hot10 Plugin Styles */
.youtube-hot10-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.youtube-hot10-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff0000;
}

.youtube-hot10-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.youtube-hot10-refresh-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.youtube-hot10-refresh-btn:hover {
    background: #cc0000;
}

.youtube-hot10-refresh-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Grid Layout */
.youtube-hot10-videos.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* List Layout */
.youtube-hot10-videos.list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.youtube-hot10-video-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.youtube-hot10-video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.video-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-title a:hover {
    color: #ff0000;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.channel-name {
    font-weight: 500;
    color: #333;
}

.view-count, .like-count {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-hot10-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.update-info {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.youtube-hot10-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

/* List Layout Specific Styles */
.youtube-hot10-videos.list .youtube-hot10-video-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
}

.youtube-hot10-videos.list .video-thumbnail {
    flex-shrink: 0;
    width: 200px;
    margin-right: 15px;
}

.youtube-hot10-videos.list .video-thumbnail img {
    height: 120px;
}

.youtube-hot10-videos.list .video-info {
    flex: 1;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .youtube-hot10-container {
        padding: 15px;
    }
    
    .youtube-hot10-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .youtube-hot10-videos.grid {
        grid-template-columns: 1fr;
    }
    
    .youtube-hot10-videos.list .youtube-hot10-video-item {
        flex-direction: column;
    }
    
    .youtube-hot10-videos.list .video-thumbnail {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .youtube-hot10-videos.list .video-info {
        padding: 0 15px 15px 15px;
    }
}