body {
    margin: 0;
    padding: 40px;
    background: #f9f9f9;
    font-family: sans-serif;
    text-align: center;
}

.box {
    max-width: 500px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

#app,
#login,
#status { display: none; }

input,
button { width: 100%; box-sizing: border-box; }
input { margin: 10px 0; padding: 10px; }

button {
    margin-bottom: 5px;
    padding: 10px;
    color: #fff;
    background: #007bff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

button:disabled { opacity: .6; cursor: wait; }
.btn-success { background: #28a745; }
.btn-translate,
.btn-process-open { background: #6f42c1; }
.btn-process-all,
.btn-process.btn-auto-active { background: #fd7e14; }
.btn-process-all { font-weight: bold; }
.btn-process { margin-top: 8px; background: #555; }

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#status,
.notice,
.error,
.process-result { padding: 10px; border-radius: 4px; }

#status,
.process-result {
    margin-top: 20px;
    border: 1px solid #ccc;
    white-space: pre-wrap;
}

.status-info { background: #eee; }
.status-success { background: #d4edda; }
.status-error,
.error { background: #f8d7da; }

.app-icon {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 15px;
    border-radius: 20px;
}

#translationList {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: left;
}

.count,
.notice,
.error,
.v-title,
.v-desc,
.v-title-line,
.v-desc-line,
.v-lang,
.v-trans,
.v-desc-status,
.v-missing { display: block; }

.video-item {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #ccc;
    font-size: .9em;
}

.video-processing {
    margin-left: -10px;
    padding: 10px 10px 12px;
    background: #fff3cd;
    border-left: 4px solid #fd7e14;
    border-radius: 4px;
}

.v-title,
.v-title-line { margin-bottom: 4px; font-weight: bold; }
.v-desc,
.v-desc-line { margin-bottom: 4px; color: #555; font-size: .85em; }
.v-desc,
.v-desc-text { white-space: pre-wrap; }
.v-lang { margin-bottom: 4px; color: #888; font-style: italic; }
.v-inline-status,
.v-trans,
.v-desc-status { color: #007bff; font-weight: bold; }
.v-inline-status { margin-left: .35em; }
.v-desc-status { margin-top: 4px; }
.v-missing,
.v-source-missing,
.v-desc-status.v-source-missing { color: #dc3545; }
.v-missing { margin-top: 4px; font-weight: bold; }
.v-open,
.v-trans.v-open,
.v-desc-status.v-open { color: #6f42c1; }
.v-ok { color: #28a745; }
.process-result { font-size: .9em; }
.notice { background: #fff3cd; border: 1px solid #ffeeba; }
.error { border: 1px solid #f5c6cb; }