.youtube-top5-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.youtube-top5-container h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.youtube-top5-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.youtube-top5-form input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.youtube-top5-form input[type="text"]:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.youtube-top5-form select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.youtube-top5-form select:focus {
    outline: none;
    border-color: #ff0000;
}

.youtube-top5-form button {
    padding: 12px 20px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.youtube-top5-form button:hover {
    background-color: #cc0000;
}

.youtube-top5-form button:active {
    transform: translateY(1px);
}

#youtube-top5-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

#youtube-top5-loading p {
    margin: 0;
    font-size: 16px;
}

.youtube-top5-error {
    background-color: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #c33;
    margin: 10px 0;
}

.youtube-top5-no-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

.youtube-top5-videos h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.youtube-top5-video {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youtube-top5-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-rank {
    font-size: 24px;
    font-weight: bold;
    color: #ff0000;
    min-width: 40px;
    text-align: center;
}

.video-thumbnail {
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

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

.video-info {
    flex: 1;
    min-width: 0;
}

.video-info h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.video-info h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.view-count {
    font-weight: 600;
    color: #ff0000;
}

.published-date {
    color: #888;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .youtube-top5-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .youtube-top5-form input[type="text"] {
        min-width: auto;
    }
    
    .youtube-top5-video {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .video-rank {
        order: -1;
        font-size: 20px;
    }
    
    .video-thumbnail img {
        width: 100%;
        max-width: 200px;
        height: auto;
    }
    
    .video-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .youtube-top5-container {
        margin: 10px;
    }
    
    .youtube-top5-form input[type="text"],
    .youtube-top5-form select,
    .youtube-top5-form button {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .youtube-top5-video {
        padding: 12px;
    }
    
    .video-info h5 {
        font-size: 14px;
    }
    
    .video-stats {
        font-size: 12px;
        gap: 10px;
    }
} 