:root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --accent: #ff5555;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.meme-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.meme-card:hover {
    transform: translateY(-5px);
}

.meme-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent);
    transition: transform 0.3s ease;
}

.meme-card .meme-info {
    padding: 15px;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin: 40px 0;
    text-shadow: 0 0 10px var(--accent);
}

.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.video-container:hover .play-overlay {
    background: rgba(255, 85, 85, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.audio-container:hover {
    background: #444 !important;
}

.audio-container:hover .audio-icon {
    transform: scale(1.1);
}

.audio-icon {
    transition: transform 0.3s ease;
}

.play-overlay {
    transition: all 0.3s ease;
}

/* NSFW Styles */
.nsfw-card {
    position: relative;
    border: 2px solid #ff4444;
}

.nsfw-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.nsfw-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.nsff-label {
    font-size: 24px;
    font-weight: bold;
    color: #ff4444;
    margin-bottom: 10px;
}

.show-nsfw-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.show-nsfw-btn:hover {
    background: #ff6666;
}

/* Upload System */
.upload-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #333;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 1002;
}

.upload-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

.upload-form {
    display: none;
    margin-top: 10px;
}

.upload-form input, .upload-form textarea {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    background: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 3px;
}

.title-upload {
    font-family: inherit;
    font-size: 0.6em;
    margin-left: 10px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--accent);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* Verification Dialog */
.verification-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-content {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}

.dialog-buttons {
    margin-top: 20px;
}

.confirm-btn, .cancel-btn {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.confirm-btn {
    background: #ff4444;
    color: white;
}

.cancel-btn {
    background: #666;
    color: white;
}

/* Minigame */
.minigame-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.game-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.generator-grid {
    display: grid;
    grid-template-columns: repeat(30, 15px);
    gap: 1px;
    margin: 20px 0;
    justify-content: center;
}

.grid-cell {
    width: 15px;
    height: 15px;
    background: #333;
    border: 1px solid #444;
    cursor: pointer;
}

.grid-cell.corrupted {
    background: #ff4444;
}

.grid-cell:hover {
    background: #555;
}

/* Report Button */
.meme-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.report-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.report-btn:hover {
    background: #ff6666;
}

.community-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border: 1px solid var(--accent);
    color: var(--text);
    font-size: 12px;
    border-radius: 4px;
    opacity: 0.85;
}