/* פונטים מתארחים מקומית — אותם קבצים כמו TASK_BELZ, בלי CDN חיצוני. */
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/heebo-hebrew.de80852899c5.woff2") format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/heebo-latin.480b1d24f2aa.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/rubik-hebrew.3ecd4ac186ab.woff2") format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/rubik-latin.b65daadded74.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 1rem;
    padding-bottom: 2rem;
    background: #0f1115;
    color: #f2f3f5;
    font-family: 'Rubik', system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh;
}

h1 {
    font-family: 'Heebo', system-ui, sans-serif;
    font-size: 1.25rem;
    text-align: center;
    margin: 0 0 1rem;
}

.source-controls,
.recording-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

button,
.btn {
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid #3a3f4b;
    background: #1c2029;
    color: #f2f3f5;
    cursor: pointer;
    touch-action: manipulation;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background: #262b36;
}

button.primary {
    background: #2f6fed;
    border-color: #2f6fed;
}

button.danger {
    background: #b0362a;
    border-color: #b0362a;
}

.preview-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto 1rem;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.placeholder-text {
    position: absolute;
    color: #8b93a3;
    font-size: 0.95rem;
    text-align: center;
    padding: 0 1rem;
    pointer-events: none;
}

.filter-list {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 96px;
    justify-content: center;
}

.filter-btn.active {
    background: #2f6fed;
    border-color: #2f6fed;
}

.status {
    max-width: 640px;
    margin: 0 auto 1rem;
    text-align: center;
    min-height: 1.4em;
    font-size: 0.9rem;
    color: #8b93a3;
}

.status.error {
    color: #ff7a68;
}

#download-link {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

#download-link[hidden] {
    display: none;
}

@media (max-width: 480px) {
    button,
    .btn {
        flex: 1 1 40%;
    }
}
