html {
    background-color: #ffffff;
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: auto;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    min-height: 900px;
    line-height: 20px;
    vertical-align: baseline;
}
h2 {
    color: #444;
    font-size: 20px;
    z-index: 5;
    position: relative;
    text-align: left;
}
h3 {
    width: 100%;
    color: #444;
    font-size: 16px;
    z-index: 5;
    position: relative;
    text-align: left;
    margin: 0 0 10px 0;
}
a {
    color: #444;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    -webkit-transition: 0.15s color ease;
    -moz-transition: 0.15s color ease;
    -ms-transition: 0.15s color ease;
    -o-transition: 0.15s color ease;
    transition: 0.15s color ease;
    z-index: 5;
    position: relative;
}
a:hover {
    opacity: 0.7;
}
p {
    color: #444;
    font-size: 14px;
    line-height: 140%;
    text-align: justify;
    z-index: 5;
    margin: 0 0 10px 0;
}
button {
    border: 2px solid #444;
    background: transparent;
    color: #444;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    padding: 5px 10px;
    -webkit-transition: 0.15s background ease;
    -moz-transition: 0.15s background ease;
    transition: 0.15s background ease;
}
button:hover:not(:disabled) {
    background: #444;
    color: #fff;
}
button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
input[type=text] {
    border: 2px solid #444;
    background: transparent;
    color: #444;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    height: 15px;
    padding: 8px 10px;
    box-sizing: content-box;
    text-align: left;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

#warper {
    width: 100%;
    height: 100%;
    margin-top: 40px;
}
#content {
    position: relative;
    width: 80%;
    margin: 0 auto;
    vertical-align: baseline;
    z-index: 0;
}
.left {
    float: left;
    width: 75%;
    margin-bottom: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}
.right {
    float: right;
    width: 25%;
    margin-bottom: 30px;
}

/* ── Recorder box ── */
#recorder-box {
    margin-top: 35px;
    border: 5px dashed #444;
    text-align: center;
    padding: 12px;
    box-sizing: border-box;
    color: #444;
    width: 10vw;
    height: 9.3vw;
    float: right;
}
#rec-label {
    font-size: 1.5vw;
    font-weight: 900;
    color: #444;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
#rec-label.recording {
    color: #cc0000;
    animation: blink 1s step-start infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
#waveform {
    width: 100%;
    height: 3vw;
    min-height: 45px;
    display: block;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin: 8px 0;
}
#rec-controls {
    display: flex;
    gap: 1px;
    justify-content: center;
    margin: -2px 0 8px 0;
}
#rec-controls button {
    flex: 1;
    font-size: 0.8vw;
    padding: 4px 6px;
}
#preview-wrap {
    display: none;
    margin-top: 8px;
}
#preview-wrap audio {
    width: 100%;
    margin-bottom: 6px;
}
#btn-send {
    width: 100%;
    font-size: 0.85vw;
    padding: 6px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

/* ── Player box (play page) ── */
#player-box {
    width: 100%;
    border: 2px dashed #444;
    text-align: center;
    padding: 16px 12px;
    box-sizing: border-box;
}
#play-label {
    font-size: 1.1vw;
    font-weight: 900;
    color: #444;
    letter-spacing: 0.06em;
    line-height: 1.3;
    margin-bottom: 14px;
}
#btn-play {
    font-size: 1.4vw;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 8px 12px;
    width: 100%;
}
#btn-play.destroyed {
    border-color: #cc0000;
    color: #cc0000;
    cursor: not-allowed;
    opacity: 1;
}

/* ── Result / link box ── */
#warper2 {
    background-color: #FAFAFA;
    width: 100%;
    min-height: 80px;
    border: 2px solid #444;
    color: #444;
    clear: both;
    box-sizing: border-box;
}
#result-inner {
    padding: 12px 16px;
    display: none;
}
#result-inner p {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 13px;
}
#link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
#share-link {
    flex: 1;
}
#result-note {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    font-weight: normal;
    text-align: left;
}

/* ── Destroyed state ── */
#destroyed-block {
    display: none;
    margin-top: 12px;
}
#destroyed-block h2 {
    color: #cc0000;
    font-size: 18px;
    margin-bottom: 6px;
}

/* ── Empty warper2 placeholder ── */
#warper2-empty {
    padding: 20px 16px;
    color: #bbb;
    font-size: 12px;
    font-style: italic;
}

/* ── Footer ── */
#footer {
    clear: both;
    margin-top: 20px;
    width: 100%;
    opacity: 0.4;
    text-align: justify;
}
#footer p {
    font-size: 11px;
    color: #444;
}

/* ── Upload progress ── */
#upload-status {
    font-size: 0.8vw;
    color: #444;
    margin-top: 6px;
    font-weight: 700;
}

/* ── Error banner ── */
#error-banner {
    display: none;
    color: #cc0000;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

/* ── Full-width states (missing/invalid link) ── */
.full-msg {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    box-sizing: border-box;
}
.full-msg h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
}
.full-msg p {
    text-align: center;
}
