/* ====== YOUTUBE VIDEO STATISTICS — EXTRA STYLES ====== */

/* Thumbnail preview in hero area */
.stats-thumb-preview {
    width: 100%;
    max-width: 560px;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 3-column stats grid (views / likes / comments) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stats-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 10px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.stats-grid-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stats-grid-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stats-views .stats-grid-icon svg { color: #1a73e8; }
.stats-likes .stats-grid-icon svg { color: #e53935; }
.stats-comments .stats-grid-icon svg { color: #43a047; }

.stats-grid-value {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 3px;
}

.stats-grid-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Engagement ratio row */
.stats-ratio-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.stats-ratio-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
}

.stats-ratio-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.stats-ratio-value {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* Details key-value grid */
.stats-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stats-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stats-detail-row:last-child {
    border-bottom: none;
}

.stats-detail-key {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    min-width: 140px;
    flex-shrink: 0;
}

.stats-detail-val {
    font-size: 13px;
    color: #111;
    text-align: right;
    word-break: break-all;
}

.stats-detail-val a {
    color: #0000EE;
    text-decoration: none;
}

.stats-detail-val a:hover {
    text-decoration: underline;
}

/* Channel info block */
.stats-channel-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-channel-name {
    font-size: 17px;
    font-weight: 700;
    color: #000;
}

.stats-channel-meta {
    font-size: 12px;
    color: #777;
    word-break: break-all;
}

.stats-channel-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0000EE;
    text-decoration: none;
}

.stats-channel-link:hover {
    text-decoration: underline;
}

/* Tag count badge */
.stats-tag-count {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
}

/* Thumbnails grid */
.stats-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.stats-thumb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.2s;
}

.stats-thumb-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.stats-thumb-item img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
}

.stats-thumb-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.stats-thumb-link {
    font-size: 11px;
    color: #0000EE;
    text-decoration: none;
    font-weight: 500;
}

.stats-thumb-link:hover {
    text-decoration: underline;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stats-grid-item {
        padding: 12px 6px;
    }

    .stats-grid-value {
        font-size: 16px;
    }

    .stats-ratio-row {
        gap: 8px;
    }

    .stats-ratio-item {
        min-width: 90px;
        padding: 10px 6px;
    }

    .stats-detail-key {
        min-width: 110px;
    }

    .stats-thumb-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stats-thumb-preview {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-thumb-grid {
        grid-template-columns: 1fr;
    }
}
