.meme-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.select-style,
.input-style {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main, #f8fafc);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    flex: 1;
    min-width: 150px;
}

.select-style:focus,
.input-style:focus {
    border-color: var(--accent, #ffa502);
    background: rgba(255, 255, 255, 0.12);
}

.select-style option {
    background-color: #161b22;
    color: #f8fafc;
}

.meme-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted, #8b949e);
}

.subreddit-badge {
    background: rgba(255, 165, 2, 0.15);
    color: var(--accent, #ffa502);
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.subreddit-badge:hover {
    background: rgba(255, 165, 2, 0.3);
}

.meme-title {
    font-size: 1.2rem;
    margin: 5px 0;
}

.meme-img-container {
    width: 100%;
    min-height: 280px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meme-img-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent, #ffa502);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.meme-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.upvotes {
    color: var(--primary, #ff4757);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}