/* 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: #fff;
    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: white; border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #fee2e2; margin-top: -50px; position: relative; z-index: 5; }

.yt-input-group {
    display: flex;
    gap: 12px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: 0.3s;
}
.yt-input-group:focus-within { border-color: var(--yt-primary); background: #fff; }

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

/* Results */
#resultsSection { display: none; margin-top: 50px; animation: slideUp 0.5s ease; }
@keyframes slideUp { 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: #fff; border-radius: 20px; border: 1px solid #e2e8f0; 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: #1e293b; font-size: 0.95rem; }
.thumb-size { color: #64748b; font-size: 0.85rem; font-weight: 600; }

.dl-btn {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
}
.dl-btn:hover { background: var(--yt-primary); color: #fff; border-color: var(--yt-primary); }
