* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 16px;
}

.container {
    width: min(100%, 1400px);
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 22px;
}

h1 {
    color: #333;
    margin-bottom: 14px;
    text-align: center;
}

h2 {
    color: #334155;
    font-size: 1rem;
    margin: 0;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.clip-item {
    border: 1px solid #dbe3ff;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px;
}

.clip-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.copy-btn {
    border: 1px solid #94a3b8;
    background: #f8fafc;
    color: #1e293b;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn:hover {
    background: #e2e8f0;
}

.clip-art {
    background: #ffffff;
    border: 1px solid #d7e4ff;
    border-radius: 8px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
    line-height: 1.06;
    font-size: 0.9rem;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Segoe UI', sans-serif;
    user-select: text;
    max-height: 320px;
}

#art-bear {
    line-height: 1.28;
    font-size: 1.03rem;
    letter-spacing: 0.01em;
}

#art-masked-warrior {
    line-height: 1.2;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .container {
        padding: 14px;
    }

    .clips-grid {
        grid-template-columns: 1fr;
    }

    .clip-art {
        font-size: 0.78rem;
        line-height: 1.02;
        max-height: 280px;
    }

    #art-bear {
        line-height: 1.2;
        font-size: 0.92rem;
    }

    #art-masked-warrior {
        line-height: 1.12;
        font-size: 0.84rem;
    }

}
