@font-face {
    font-family: Press-Start-P2;
    font-weight: normal;
    font-style: normal;
    src: url('../util_font/PressStart2P.ttf');
}

body {
    position: relative;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    background: linear-gradient(to right, #011005, #000000, #000000, #000000, #011005);

    font-family: Press-Start-P2;
    color: #15b31a;
    text-shadow: #184e14 3px 3px 0px;
    text-decoration: none;
}

#navigation-container {
    height: auto;
    width: auto;

    padding: 0px 0px 0px 20px;

    text-align: left;
}

.top-navigation-button {
    text-align: center;
    position: relative;

    height: 80px;

    border-style: none solid none solid;
    border-color: #112a0f;
    border-width: 5px;
    border-radius: 0px;

    margin: 15px 10px 15px 10px;
    padding: 10px 50px 10px 50px;

    display: inline-block;
    vertical-align: top;

    background: linear-gradient(to right, #08692234, #00000000, #00000000, #00000000, #08692234);

    transition: all 0.5s;
}

.top-navigation-button:hover {
    border-color: #15b31a;
}

.top-navigation-button a {
    color: #15b31a;
    text-decoration: none;
    text-shadow: 0 0 50px #15b31aaf;
    font-size: 30px;
    font-weight: bold;
    line-height: 80px;

    transition: all 0.5s;
}
.top-navigation-button a:hover {
    text-shadow: 0 0 10px;
}

.top-navigation-button p {
    position: relative;
    top: -60px;
    opacity: 0;

    transition: all 0.5s;
}
.top-navigation-button:hover p {
    opacity: 100%;
    top: -35px;
}

#radio-about-article-link-button:hover a, #radio-about-article-link-button:hover p {
    color:#ff0000;
    text-shadow: 0 0 10px #ff0000b6;
}

#radio-about-article-link-button:hover {
    border-color: #ff0000;
    background: linear-gradient(to right, #ff000034, #00000000, #00000000, #00000000, #ff000034);
}

footer {
    position: fixed;

    bottom: 0;
    width: 100%;

    margin: 25px 0px 5px 0px;

    text-align: center;
    font-style: italic;
}

#footer-border-top{
    height: 3px;

    margin-bottom: 5px;

    background-image: linear-gradient(to right, #00000000, #15b31a, #00000000);
}

.player {
    position: relative;

    width: 50%;
    height: auto;
    left: 25%;

    text-align: left;
}

.visualiser{
    position:relative;

    width: 100%;
    height: 250px;

    margin-top: 200px;

    overflow:hidden;
    box-sizing:border-box;
}
.visualiser-blur {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image: linear-gradient(to right, #000000, #00000000, #00000000, #000000);

    z-index: 2;
}
.visualiser canvas{
    position:absolute;
    inset:0;

    width: 100%;
    height: 100%;

    display:block;
}

.info-general {
    position: absolute;

    z-index: 2;

    transition: all 0.5s;
}
.legal-info {
    cursor: help;
}
.play-hint {
    position: absolute;
    
    width: 100%;

    text-align: center;

    margin-top: 50px;

    cursor: pointer;

    animation: playHintAnim 2s ease-in-out infinite;
}
@keyframes playHintAnim {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

#track-info-border-top{
    height: 3px;

    margin: 5px 0px 5px 0px;

    background-image: linear-gradient(to right, #00000000, #15b31a, #00000000);
}
.track-info {
    overflow: hidden;
}

/* Строка "обложка + текст": квадрат слева, название/автор справа */
.track-info__row {
    display: flex;
    align-items: center;
    gap: 14px;

    overflow: hidden;
}
.cover {
    flex: 0 0 auto;

    width: 4.5em;       /* = 3 строки (line-height 1.5 × 3) */
    height: 4.5em;

    object-fit: cover;

    border: 1px solid #112a0f;
    background: #00000033;
}
.track-info__text {
    flex: 1 1 auto;
    min-width: 0;       /* чтобы прокрутка длинных строк продолжала работать */

    overflow: hidden;
}

/* Строка трека/автора: "> " фиксирован слева, название занимает остаток ширины */
.track, .artist {
    display: flex;
    align-items: center;
    gap: 0.4em;

    line-height: 1.5;   /* 3 такие строки = высоте обложки (4.5em) */

    overflow: hidden;
}
.prompt {
    flex: 0 0 auto;
}

/* Окно прокрутки: обрезает текст, не влезающий в строку */
.marquee {
    flex: 1 1 auto;
    min-width: 0;       /* без этого flex-элемент не даёт тексту переполниться */
    overflow: hidden;
}
.marquee__text {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

/* Прокрутка по кругу — включается из JS только при переполнении.
   ::after дублирует текст (через data-text) с зазором, а анимация едет влево
   ровно на "текст + зазор" — поэтому стык незаметен. --marquee-shift / -time /
   -gap выставляются из JS под конкретную длину строки. */
.marquee__text.is-scrolling {
    animation: marquee-loop var(--marquee-time, 6s) linear infinite;
}
.marquee__text.is-scrolling::after {
    content: attr(data-text);
    padding-left: var(--marquee-gap, 48px);   /* зазор перед повтором */
}
@keyframes marquee-loop {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--marquee-shift, 0px)); }
}

.volume-control {
    cursor: pointer;
}

/* Циклический тумблер режима: ОБЫЧНЫЙ → ПРИЁМНИК → РАДИО */
.mode-toggle {
    margin-top: 8px;

    cursor: pointer;
    user-select: none;

    transition: color 0.3s, text-shadow 0.3s;
}
.mode-toggle.is-phone {                     /* ТЕЛЕФОН — узкий, янтарный */
    color: #ffff00;
    text-shadow: #4e4914 3px 3px 0px;
}
.mode-toggle.is-receiver {                  /* ПРИЁМНИК — полный, циан */
    color: #3fd0d0;
    text-shadow: #14494e 3px 3px 0px;
}
