/* Schumann page — extends ../css/style.css */

.schumann-hero {
    text-align: center;
    margin-bottom: 8px;
}

.schumann-hero .hz-display {
    font-size: 3.2em;
    font-weight: 700;
    color: #4a90e2;
    line-height: 1.1;
    margin: 0;
}

.schumann-hero .hz-unit {
    font-size: 0.45em;
    font-weight: 600;
    color: #2c6fad;
}

.schumann-hero .hz-subtitle {
    margin: 8px 0 0;
    font-size: 1.05em;
    color: #555;
}

.info-block {
    font-size: 1.05em;
    line-height: 1.85;
    color: #444;
}

.info-block p {
    margin: 0 0 1em;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block ul {
    margin: 0.5em 0 1em;
    padding-left: 1.4em;
}

.info-block li {
    margin-bottom: 0.45em;
}

.info-block a {
    color: #4a90e2;
}

.info-block a:hover {
    text-decoration: underline;
}

main h3 {
    font-size: 1.25em;
    color: #4a90e2;
    margin: 1.8em 0 0.8em;
    padding-bottom: 6px;
    border-bottom: 1px solid #dde3ea;
}

.brainwave-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 0.95em;
}

.brainwave-table th,
.brainwave-table td {
    border: 1px solid #dde3ea;
    padding: 10px 14px;
    text-align: left;
}

.brainwave-table th {
    background-color: #f0f6fc;
    color: #2c6fad;
    font-weight: 600;
}

.brainwave-table tr:nth-child(even) td {
    background-color: #fafbfc;
}

.brainwave-table .highlight-row td {
    background-color: #e8f2fb;
    font-weight: 600;
    color: #2c6fad;
}

.mechanism-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin: 1.5em 0;
}

.mechanism-card {
    flex: 1 1 140px;
    max-width: 200px;
    background: #f9f9f9;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 18px 14px;
    text-align: center;
}

.mechanism-card .ear-label {
    font-size: 0.75em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.mechanism-card .freq {
    font-size: 1.35em;
    font-weight: 700;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.mechanism-card.brain {
    background: #e8f2fb;
    border-color: #4a90e2;
}

.mechanism-card.brain .ear-label {
    color: #4a90e2;
}

.mechanism-card.brain .freq {
    color: #4a90e2;
    font-size: 1.6em;
}

.mechanism-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.4em;
    flex: 0 0 auto;
    padding: 0 2px;
}

.mechanism-caption {
    font-size: 0.92em;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
}

/* Player panel */
#player {
    margin-bottom: 40px;
}

.player-panel {
    background: #f9f9f9;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 24px 22px;
}

.wave-frame {
    position: relative;
    height: 100px;
    margin-bottom: 22px;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.wave-frame canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-label {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 0.7em;
    letter-spacing: 0.06em;
    color: #999;
    text-transform: uppercase;
    z-index: 1;
}

.freq-table {
    margin-bottom: 22px;
}

.freq-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8ecf0;
}

.freq-row:last-child {
    border-bottom: none;
}

.freq-name {
    font-size: 0.82em;
    letter-spacing: 0.04em;
    color: #888;
    width: 72px;
    flex-shrink: 0;
}

.freq-value {
    font-size: 1.15em;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.freq-value .diff {
    color: #e67e22;
    font-weight: 600;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-row label {
    font-size: 0.82em;
    color: #666;
    width: 76px;
    flex-shrink: 0;
}

.control-row input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 28px;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.control-row input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #b8c5d4;
    border-radius: 3px;
}

.control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: #4a90e2;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(74, 144, 226, 0.45);
}

.control-row input[type="range"]::-moz-range-track {
    height: 6px;
    background: #b8c5d4;
    border-radius: 3px;
    border: none;
}

.control-row input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(74, 144, 226, 0.45);
}

.control-row input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.35);
}

.control-row input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.35);
}

.control-row input[type="number"] {
    width: 72px;
    flex-shrink: 0;
    padding: 6px 8px;
    border: 1px solid #ccd5df;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: inherit;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #333;
    background: #fff;
}

.control-row input[type="number"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.control-row .unit {
    font-size: 0.82em;
    color: #888;
    width: 24px;
    flex-shrink: 0;
}

.play-btn {
    width: 100%;
    padding: 14px;
    background: #4a90e2;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.play-btn:hover {
    background: #3a7bc8;
}

.play-btn.playing {
    background: #e74c3c;
}

.play-btn.playing:hover {
    background: #c0392b;
}

.play-btn:focus-visible {
    outline: 2px solid #2c6fad;
    outline-offset: 2px;
}

.headphone-warn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 6px;
    font-size: 0.9em;
    color: #8a6d1a;
    line-height: 1.5;
}

.headphone-warn::before {
    content: '⚠';
    font-size: 1.1em;
    flex-shrink: 0;
}

.render-status {
    margin-top: 12px;
    font-size: 0.85em;
    color: #4a90e2;
    text-align: center;
}

.render-status::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    vertical-align: -1px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: schumann-spin 0.7s linear infinite;
}

@keyframes schumann-spin {
    to { transform: rotate(360deg); }
}

.bg-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: #eef4fb;
    border: 1px solid #cfe0f2;
    border-radius: 6px;
    font-size: 0.85em;
    color: #3a6592;
    line-height: 1.6;
}

.disclaimer {
    margin-top: 14px;
    font-size: 0.85em;
    color: #999;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

@media (max-width: 520px) {
    .schumann-hero .hz-display {
        font-size: 2.4em;
    }

    .mechanism-diagram {
        flex-direction: column;
        align-items: center;
    }

    .mechanism-arrow {
        transform: rotate(90deg);
    }

    .mechanism-card {
        max-width: 100%;
        width: 100%;
    }

    .control-row label {
        width: 64px;
        font-size: 0.78em;
    }

    .control-row input[type="number"] {
        width: 64px;
    }

    .player-panel {
        padding: 18px 14px;
    }
}
