.stream-market {
    padding-block: clamp(44px, 6vw, 88px);
    border-block: 1px solid #d9e4f7;
    background: #edf3fc;
}

.stream-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(24px, 5vw, 60px);
    overflow: hidden;
    border: 1px solid #284982;
    border-radius: 24px;
    background: radial-gradient(ellipse at 14% 12%, #254a94 0, transparent 59%), #0c1b41;
    box-shadow: 0 18px 38px -29px #1b3b7e;
}

.stream-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, #a3c1f44d 1px, transparent 1.25px) 0 0 / 18px 18px;
    mask-image: linear-gradient(103deg, #000, transparent 70%);
}

.stream-heading { position: relative; color: #fff; }
.stream-label {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 14px;
    color: #ffd68b;
    font-size: 13px;
    font-weight: 800;
}
.stream-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffd68b;
    box-shadow: 0 0 0 4px #ffd68b32;
    animation: stream-signal 1.25s ease-out 1;
}
@keyframes stream-signal {
    from { box-shadow: 0 0 0 0 #ffd68b95; }
    to { box-shadow: 0 0 0 4px #ffd68b32; }
}
.stream-heading h2 {
    font-size: clamp(2.1rem, 4.4vw, 4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.065em;
}
.stream-heading h2 em { display: block; color: #bad0ff; font-style: normal; }
.stream-heading > p:not(.stream-label) { margin-top: 17px; color: #d9e6ff; }
.stream-heading .stream-jump { margin-top: 16px; color: #ffda97; }
.stream-jump { display: inline-block; color: #214bb8; font-size: 14px; font-weight: 800; }
.stream-jump:hover { text-decoration: underline; text-underline-offset: 4px; }
.stream-heading .stream-jump:focus-visible { outline-color: #ffda97; }

.stream-form h3 { font-size: 23px; font-weight: 800; letter-spacing: -.045em; }
.stream-picker .numeric { padding-right: 10px; }
.stream-picker .range input { --picked: 0%; }
.stream-picker .range input.is-picked::-webkit-slider-thumb {
    background: #d58a16;
    transition: background-color .2s;
}
.stream-picker .range input.is-picked::-moz-range-thumb {
    background: #d58a16;
    transition: background-color .2s;
}
.stream-form .notice:focus-visible { outline-offset: 2px; }
#streams, #streams-board, #streams-forecast { scroll-margin-top: 22px; }
.streams-board { margin-top: clamp(24px, 4vw, 47px); }
.stream-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}
.stream-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 14px clamp(12px, 2.2vw, 24px);
    border: 1px solid #d5e0f3;
    border-radius: 12px;
    background: #f9fbff;
    color: #344b79;
    font-size: 13px;
    font-weight: 800;
}
.stream-stats strong {
    color: #173e9e;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.stream-table h3 { padding: 15px; font-size: 16px; font-weight: 800; }
.stream-table table { table-layout: fixed; }
.stream-table th:first-child { width: 46%; }
.stream-table th:nth-child(2) { width: 19%; }
.stream-chart-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    color: #4b5e82;
    font-size: 11px;
    font-weight: 800;
}
.stream-chart-labels + .bars { margin-top: 6px; }
.stream-bar { grid-template-columns: 28px minmax(0, 1fr) 28px; }
.stream-bar meter { height: 8px; }
.stream-bar meter::-webkit-meter-bar { height: 8px; }
.stream-bar meter::-webkit-meter-optimum-value { background: #325ac3; }
.stream-bar meter::-moz-meter-bar { background: #325ac3; }

@media (max-width: 800px) {
    .stream-intro { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
    .top .nav-main { white-space: normal; line-height: 1.25; }
    .stream-intro { padding: 19px 13px 13px; border-radius: 16px; }
    .stream-heading { padding-inline: 5px; }
    .stream-heading h2 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
    .stream-table td time { font-size: 11px; }
    .stream-stats > div { align-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    .stream-label span { animation: none; }
    .stream-picker .range input.is-picked::-webkit-slider-thumb { transition: none; }
    .stream-picker .range input.is-picked::-moz-range-thumb { transition: none; }
}
@media (forced-colors: active) {
    .stream-intro, .stream-stats > div { border: 1px solid CanvasText; }
    .stream-label span { background: CanvasText; }
}
