:root { color-scheme: light dark; }

body {
    font-family: system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: light-dark(#000, #fff);
    background: light-dark(#fff, #000);
    padding: 16px;
}

.container { max-width: 576px; margin: 0 auto; }
.container > * + * { margin-top: 16px; }

.logo {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}
.logo:hover { color: #3b82f6; }

.tagline { font-size: 12px; font-weight: 700; color: #64748b; }

.form-row { display: flex; gap: 8px; }
@media (max-width: 400px) { .form-row { flex-direction: column; } }

input, button {
    font: inherit;
    padding: 4px 8px;
    border: 1px solid light-dark(#94a3b8, #475569);
    border-radius: 4px;
    background: light-dark(#f8fafc, #0f172a);
    color: inherit;
}
input { flex: 1; }
input:focus { outline: none; border-color: #3b82f6; }
button { cursor: pointer; }
button:hover { border-color: #3b82f6; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.htmx-indicator { display: none; }
.htmx-request .btn-text { display: none; }
.htmx-request .htmx-indicator { display: inline; }

a { color: #3b82f6; }
a:hover { color: #60a5fa; }

.meta { font-size: 12px; font-weight: 700; color: #64748b; }
.meta a { color: inherit; }
.meta a:hover { color: #3b82f6; }

hr { border: none; border-top: 1px solid light-dark(#e2e8f0, #1e293b); }

.podcast-list { display: flex; flex-direction: column; gap: 8px; }
.podcast-item {
    padding: 12px;
    border: 1px solid light-dark(#e2e8f0, #1e293b);
    border-radius: 4px;
    background: light-dark(#f8fafc, #0f172a);
}
.podcast-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.podcast-title { font-weight: 600; }
.podcast-actions { display: flex; gap: 4px; }
.podcast-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-delete {
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.4;
    background: transparent;
    border: 1px solid light-dark(#e2e8f0, #1e293b);
    color: #64748b;
}
.btn-delete:hover { border-color: #ef4444; color: #ef4444; }

.btn-copy {
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.4;
    background: transparent;
    border: 1px solid light-dark(#e2e8f0, #1e293b);
    color: #64748b;
}
.btn-copy:hover { border-color: #3b82f6; color: #3b82f6; }

.status {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-uploaded { background: #d1fae5; color: #065f46; }
.status-failed { background: #fee2e2; color: #991b1b; }

.error {
    padding: 8px 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    font-size: 13px;
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: #64748b;
    border: 1px dashed light-dark(#e2e8f0, #1e293b);
    border-radius: 4px;
}
