body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 14px;
    background: #f2f2f2;
    color: #111;
}
.wrap {
    max-width: 760px;
    margin: 0 auto;
}
.small-wrap {
    max-width: 420px;
}
.card {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
h1 {
    font-size: 24px;
    margin: 0 0 12px 0;
}
h2 {
    font-size: 20px;
    margin: 0 0 10px 0;
}
h3 {
    font-size: 17px;
    margin: 12px 0 8px 0;
}
label {
    display: block;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #555;
}
input, select, button {
    width: 100%;
    font-size: 17px;
    padding: 11px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: white;
}
button {
    background: #111;
    color: white;
    border: 0;
    margin-top: 8px;
}
button.secondary {
    background: #555;
}
button.light {
    background: #ddd;
    color: #111;
}
button.danger-btn {
    background: #b00020;
    color: #fff;
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
}
button.full {
    width: 100%;
}
audio {
    width: 100%;
    margin-top: 12px;
}

.big-play-btn {
    display: block;
    width: 150px;
    height: 150px;
    margin: 18px auto 12px auto;
    border-radius: 50%;
    border: 0;
    background: #111;
    color: #fff;
    font-size: 64px;
    line-height: 150px;
    text-align: center;
    padding: 0;
}
.big-play-btn.playing {
    font-size: 58px;
}
.row {
    display: flex;
    gap: 8px;
}
.row button {
    flex: 1;
}
.small {
    font-size: 13px;
    color: #666;
    word-break: break-word;
}
.status {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}
.time {
    font-size: 15px;
    margin-top: 8px;
}
.error {
    color: #b00020;
}
.ok {
    color: #0a6b20;
}
.hidden-json {
    display: none;
}
a {
    color: #333;
}
.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding: 8px 0;
    gap: 8px;
}
.file-row span {
    word-break: break-word;
}
.file-row form {
    margin: 0;
}
.book-box {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}
.speed-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.speed-row button.speed-btn {
    width: auto;
    min-width: 54px;
    padding: 11px;
    margin-top: 0;
    background: #ddd;
    color: #111;
}
.speed-row button.speed-btn.active {
    background: #111;
    color: #fff;
}
.speed-row select {
    flex: 1;
}
