/**
 * YouTube Thumbnail Tool Styling
 */
:root {
    --yt-primary: #ff0000;
    --yt-bg: linear-gradient(135deg, #cc0000 0%, #ff0000 100%);
}

.yt-wrap {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.08);
    background: var(--panel-bg);
    overflow: hidden;
}

.yt-hero {
    padding: 60px 20px;
    background: var(--yt-bg);
    color: white;
    text-align: center;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.yt-hero h1 {
    font-weight: 900;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.yt-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
}

.tool-body {
    padding: 40px;
}

.yt-search-card {
    background: var(--panel-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.yt-input-group {
    display: flex;
    gap: 12px;
    background: var(--bg-light);
    padding: 8px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: 0.3s;
}

.yt-input-group:focus-within {
    border-color: var(--yt-primary);
    background: var(--panel-bg);
}

.yt-url-input {
    border: none;
    background: transparent;
    flex-grow: 1;
    padding: 10px 15px;
    outline: none;
    font-size: 1.1rem;
    width: 100%;
    color: var(--text-main);
}

/* Results */
#resultsSection {
    display: none;
    margin-top: 50px;
    animation: slideUp-kf 0.5s ease;
}

@keyframes slideUp-kf {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.thumb-card {
    background: var(--panel-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
}

.thumb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.thumb-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #000;
}

.thumb-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thumb-label {
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.95rem;
}

.thumb-size {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.dl-btn {
    background: var(--bg-light);
    color: var(--text-main);
    text-decoration: none !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.2s;
    border: 1px solid var(--border-color);
}

.dl-btn:hover {
    background: var(--yt-primary);
    color: #fff;
    border-color: var(--yt-primary);
}

[data-theme="dark"] .yt-search-card {
    border-color: #30363d;
}

[data-theme="dark"] .yt-input-group {
    background: #161b22;
}