:root{

    --bg:#0d1117;
    --panel:#161b22;
    --border:#30363d;

    --text:#e6edf3;
    --muted:#8b949e;

    --blue:#58a6ff;
    --green:#3fb950;
    --red:#f85149;

    --radius:18px;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    padding-top:110px;

}

.navbar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    display:flex;

    justify-content:center;

    padding:14px 20px;

    background:rgba(22,27,34,.92);

    border-bottom:1px solid var(--border);

    backdrop-filter:blur(14px);

    -webkit-backdrop-filter:blur(14px);

}

.nav-links{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:14px;

    flex-wrap:wrap;

}

.nav-links a{

    display:flex;

    align-items:center;

    gap:8px;

    padding:10px 16px;

    color:var(--text);

    font-weight:600;

    text-decoration:none;

    background:#21262d;

    border:1px solid var(--border);

    border-radius:12px;

    transition:.2s;

}

.nav-links a:hover,
.nav-links a:focus-visible{

    background:#30363d;

    transform:translateY(-2px);

}

.container{

    max-width:1400px;

    margin:auto;

    padding:30px;

}

h1{

    text-align:center;

    font-size:44px;

    margin-bottom:8px;

}

.subtitle{

    text-align:center;

    color:var(--muted);

    margin-bottom:35px;

}

.hero{

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:24px;

    padding:35px;

    margin-bottom:30px;

}

.hero-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.river-name{

    font-size:34px;

    font-weight:700;

}

.station-name{

    color:var(--muted);

    margin-top:6px;

}

.status{

    display:flex;

    align-items:center;

    gap:10px;

}

.dot{

    width:12px;

    height:12px;

    border-radius:50%;

}

.online{

    background:#3fb950;

}

.offline{

    background:#f85149;

}

.hero-level{

    text-align:center;

    margin:40px 0;

}

#level{

    font-size:92px;

    font-weight:700;

    color:var(--blue);

    line-height:1;

}

.unit{

    font-size:38px;

    color:var(--muted);

    margin-left:12px;

    vertical-align:20px;

}

.trend-row{

    text-align:center;

    font-size:28px;

    margin-bottom:35px;

}

.hero-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.hero-grid div{

    text-align:center;

}

.hero-grid small{

    color:var(--muted);

    display:block;

    margin-bottom:10px;

}

.hero-grid strong{

    font-size:34px;

    color:var(--blue);

}

.footer{

    margin-top:35px;

    border-top:1px solid var(--border);

    padding-top:20px;

    display:flex;

    justify-content:space-between;

    color:var(--muted);

}

.periods{

    display:flex;

    justify-content:center;

    gap:10px;

    margin-bottom:25px;

    flex-wrap:wrap;

}

.periods button{

    background:var(--panel);

    color:white;

    border:1px solid var(--border);

    border-radius:10px;

    padding:10px 18px;

    cursor:pointer;

    transition:.2s;

}

.periods button:hover{

    border-color:var(--blue);

}

.periods button.active{

    background:var(--blue);

}

.chart-card{

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:22px;

    padding:25px;

    margin-bottom:25px;

    height:560px;

}

#chart{

    width:100%!important;

    height:100%!important;

}

.summary{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:20px;

}

.summary div{

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:18px;

    padding:22px;

    text-align:center;

}

.summary span{

    color:var(--muted);

    display:block;

    margin-bottom:10px;

}

.summary strong{

    color:var(--blue);

    font-size:34px;

}

@media(max-width:900px){

.hero-grid{

    grid-template-columns:repeat(2,1fr);

}

.summary{

    grid-template-columns:repeat(2,1fr);

}

.hero-header{

    flex-direction:column;

    gap:20px;

}

#level{

    font-size:64px;

}

.chart-card{

    height:380px;

}

}
