/* ==========================================================
 * Sound Library Widget
 * (scoped under .sounds-block so it never leaks to other
 * audio players / buttons / classes elsewhere on the site)
 * ========================================================== */

.sounds-block {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px;
}

.sounds-block .sounds-intro {
    text-align: center;
    color: #aaa;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 40px;
}

.sounds-block .cat-label {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

.sounds-block .tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 40px;
    justify-content: center;
}

.sounds-block .tab-btn {
    background: #000;
    color: #999;
    border: none;
    padding: 12px 24px;
    font-size: 18.75px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sounds-block .tab-btn:hover {
    background: #2a2a2a;
    color: #fff;
}

.sounds-block .tab-btn.active {
    background: #0693e3;
    color: #fff;
}

.sounds-block .tab-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    opacity: 0.6;
}

.sounds-block .tab-btn.active .tab-icon,
.sounds-block .tab-btn:hover .tab-icon {
    opacity: 1;
}

.sounds-block .track-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sounds-block .track-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s;
}

.sounds-block .track-item:hover {
    background: #222;
}

.sounds-block .track-item.active {
    background: #222;
}

.sounds-block .track-item.hidden {
    display: none;
}

.sounds-block .sounds-play-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    aspect-ratio: 1 / 1;
}

.sounds-block .track-item.active .sounds-play-btn,
.sounds-block .sounds-play-btn:hover {
    background: #fff;
    color: #000;
}

.sounds-block .sounds-play-btn svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.sounds-block .track-info {
    flex: 1;
    min-width: 0;
}

.sounds-block .track-name {
    font-size: 18.75px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sounds-block .track-meta {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 2px;
}

.sounds-block .player-bar {
    background: #0d0d0d;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sounds-block .player-play {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: none;
    background: #2176d9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    aspect-ratio: 1 / 1;
}

.sounds-block .player-play:hover,
.sounds-block .player-play.playing {
    background: #0693e3;
    color: #fff;
}

.sounds-block .player-play svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sounds-block .player-info {
    flex: 1;
    min-width: 0;
}

.sounds-block .waveform {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.sounds-block .waveform-bar {
    flex: 1;
    min-width: 2px;
    max-width: 6px;
    background: #1e4a80;
    border-radius: 2px;
    transition: background 0.2s;
}

.sounds-block .waveform-bar.played {
    background: #0693e3;
}

.sounds-block audio {
    display: none;
}

@media (max-width: 640px) {
    .sounds-block {
        padding: 40px 20px;
    }

    .sounds-block .player-bar {
        padding: 16px;
        gap: 14px;
    }

    .sounds-block .tab-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sounds-block .tab-btn {
        padding: 7px 14px;
        font-size: 0.8125rem;
    }
}

.specs-block {
    max-width: 1100px;
    margin: 0 auto;
    /* padding: 64px 40px; */
    background: #000;
}
.specs-block h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}
.specs-block .specs-tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}
.specs-block .specs-tab-btn {
    background: #1a1a1a;
    color: #999;
    border: none;
    padding: 10px 22px;
    font-size: 17.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    font-family: sans-serif;
}
.specs-block .specs-tab-btn:hover {
    background: #2a2a2a;
    color: #fff;
}
.specs-block .specs-tab-btn.active {
    background: #0785D6;
    color: #fff;
}
.specs-tab-panel {
    display: none;
}
.specs-tab-panel.active {
    display: block;
}
.routing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.routing-grid .routing-card:nth-child(4) {
    grid-column: 1 / 2;
    margin-left: auto;
    width: 100%;
}
.routing-grid .routing-card:nth-child(5) {
    grid-column: 2 / 3;
    width: 100%;
}
.routing-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.routing-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 24px 24px 16px;
    background: #f5f5f5;
}
.routing-card-label {
    padding: 0 16px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    text-align: center;
    font-family: sans-serif;
}
@media (max-width: 680px) {
.routing-grid {
    grid-template-columns: repeat(2, 1fr);
}
.routing-grid .routing-card:nth-child(4), .routing-grid .routing-card:nth-child(5) {
    grid-column: auto;
    margin-left: 0;
}
}
.spec-section {
    margin-bottom: 52px;
}
.spec-section:last-child {
    margin-bottom: 0;
}
.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
}
.spec-item .spec-label {
    font-size: 17.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-family: sans-serif;
}
.spec-item .spec-value {
    font-size: 17.5px;
    color: #888;
    line-height: 1.5;
    font-family: sans-serif;
}
@media (max-width: 768px) {
    .specs-block {
        /* padding: 40px 32px; */
    }
    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .specs-block .specs-tab-btn {
        font-size: 16.25px;
        padding: 9px 16px;
    }
}
@media (max-width: 540px) {
    .specs-block {
        /* padding: 40px 10px; */
    }
    .specs-block h2 {
    	padding: 0;
    }
    .specs-block .specs-tab-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .specs-block .specs-tab-btn {
    	text-align: center;
    }
    .specs-block .specs-tab-btn {
    	text-align: center;
    }
}
@media (max-width: 480px) {
    .spec-grid {
        grid-template-columns: 1fr;
    }
}