@font-face {
    font-family: 'NotoSymbols2';
    src: url('data:font/woff2;base64,d09GMgABAAAAAAH0AAwAAAAABEwAAAGmAAIAxQAAAAAAAAAAAAAAAAAAAAAAAAAAGyAcIAZgADwKREsBNgIkAwwLCAAEIAWDLgcgG3oDIB4Hzpk9qIsi5PUTZG4RfK199puZ3X8YRhIWSKcigRzqSNKxWB7YR7K828ttiJX4IWGV68Q16swwLY2mtMXFZ7kDjeSYEo6StkCPqK3gwTJOa82DFnhbW6QtvVXz4KUWCue+J9BhlDFi05ZdhxQKNA3QUi95TdxVka6nYwI704vijDY2CFJnlUpVUirAuKsAW/fu3RrrJj7ZMrvnOmV2uiIQkIblFxgnISFjkCwwSDENtSKkJWwawO8dX3c6YZiosUIn+gIKIKRcyv7W+bNVZ+kKe02e3D2l/e6Du0/v3r8LBJLXP+ZXg3DfVf/b4vwT3v9adwN+PPn29NJ7om7KbNQSCP7nWgsaVM/3XOArcjoG57EW5tt+CeTy0jsQ2Go5IRalHWcEJcIkZ5D0cQ3ZFj+KRT6iMiI6zqjNi0k2Wqw+O0szTmCBeeZbapytFgttJIHtZlxpnPVGI3Bg0B4+Lh2k3U0SSnssTgtwEDU7ivJnwixGh1ZmtcuI2rXmmGeehVbaCkF63SqjYRVmI/5paZx1B9LuYC1m4Ji0B/gYdc1jCwAAAAA=') format('woff2');
    unicode-range: U+25B6, U+23F8;
}

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

body {
    font-family: courier-new, courier, monospace;
    font-size: 15px;
    background: #000;
    color: #0f0;
    padding: 24px 16px;
    min-height: 100vh;
}

.page { max-width: 482px; }

.page-header {
    margin-bottom: 22px;
    user-select: none;
}

pre.ascii-header {
    line-height: 1.15;
    margin-bottom: 22px;
    user-select: none;
}

a { color: #0f0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- interactive elements --- */

.btn {
    font-family: 'NotoSymbols2', courier-new, courier, monospace;
    font-size: inherit;
    color: #0f0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn::before { content: '[ '; }
.btn::after { content: ' ]'; }

.btn:hover::before, .btn:active::before { content: '[['; }
.btn:hover::after, .btn:active::after { content: ']]'; }

.btn:hover { text-decoration: none; }

.back-btn { display: block; margin-bottom: 16px; }

#playBtn { font-size: 12px; }
#playBtn::before, #playBtn::after { font-size: 15px; }

/* --- layout --- */

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.controls { margin-bottom: 4px; }

.row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.row-label { min-width: 9ch; }

.status-line { margin: 14px 0; }

@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1s steps(2) infinite; }

.box { margin-bottom: 16px; }

.box::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 8px;
}

/* --- forms --- */

input[type="file"] { display: none; }

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 80px;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 1px;
    background: linear-gradient(to right, transparent 10px, #0f0 10px, #0f0 calc(100% - 10px), transparent calc(100% - 10px));
    border: none;
    border-radius: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 12px;
    background: linear-gradient(to right,
        transparent calc(50% - 1.5px),
        #0f0 calc(50% - 1.5px),
        #0f0 calc(50% + 1.5px),
        transparent calc(50% + 1.5px));
    border: none;
    border-radius: 0;
    margin-top: -5.5px;
}

input[type="range"]::-moz-range-track {
    height: 1px;
    background: linear-gradient(to right, transparent 10px, #0f0 10px, #0f0 calc(100% - 10px), transparent calc(100% - 10px));
    border: none;
    border-radius: 0;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 12px;
    background: linear-gradient(to right,
        transparent calc(50% - 1.5px),
        #0f0 calc(50% - 1.5px),
        #0f0 calc(50% + 1.5px),
        transparent calc(50% + 1.5px));
    border: none;
    border-radius: 0;
}

#scaleRange { flex: 1; }
#scaleLabel { min-width: 3ch; }

.file-row-end {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 0 auto;
}

#fileName {
    flex: 1;
    min-width: 110px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* --- audio player --- */

.audio-box { display: none; }
audio { display: none; }

.player {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.seek-bar { flex: 1; min-width: 80px; }
.time-display { white-space: nowrap; }

/* --- sstv canvas --- */

figure.canvas-box {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.canvas-wrapper {
    position: relative;
    display: inline-block;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

canvas {
    display: block;
    image-rendering: pixelated;
    box-sizing: content-box;
    border: 1px solid #0f0;
}

#scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    pointer-events: none;
    display: none;
    background: rgba(0, 255, 0, 0.85);
    box-shadow: 0 0 10px 2px rgba(0, 255, 0, 0.45);
}

figcaption { margin-top: 7px; }

/* --- yasc --- */

.yasc-coord-line {
    padding-left: 4ch;
    margin-bottom: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.yasc-val-row {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.yasc-val-label { min-width: 10ch; }

@media (max-width: 600px) {
    body { padding: 16px 10px; }
    .row-label { min-width: 0; }
    input[type="range"] { min-width: 0; }
    .seek-bar { width: 100%; min-width: 0; }
}
