/* ===================================================
   FKN RADIO v1.0
   CRT HERO / LIVE INTERFACE
=================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    background:#000;
}

body{
    min-height:100vh;
    background:
        radial-gradient(circle at 50% 18%, rgba(0,255,120,.12), transparent 36%),
        radial-gradient(circle at 50% 70%, rgba(0,255,120,.06), transparent 45%),
        #000;
    color:#72ff72;
    font-family: "Courier New", monospace;
    overflow-x:hidden;
}

/* CRT scanlines */
body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:999;
    opacity:.05;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 3px,
            rgba(160,255,160,.45) 4px
        );
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:998;
    background:
        radial-gradient(circle at center, transparent 55%, rgba(0,0,0,.65) 100%);
}

.container{
    width:min(1180px, 92vw);
    min-height:100vh;
    margin:0 auto;
    padding:0 20px 34px;
    text-align:center;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}

/* LOGO */

header{
    position:relative;
}

header::after{
    content:"";
    display:none;
    width:min(760px, 88vw);
    height:70px;
    margin:-54px auto 16px;
    opacity:.34;
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(0,255,120,.18) 12%,
            rgba(0,255,120,.9) 50%,
            rgba(0,255,120,.18) 88%,
            transparent 100%
        );
    filter:blur(24px);
}

.logo{
    display:block;
    width:100%;
    max-width:1100px;
    margin:-70px auto -45px;
   filter:
    drop-shadow(0 0 2px #00ff66)
    drop-shadow(0 0 8px rgba(0,255,102,.35))
    drop-shadow(0 0 12px rgba(0,255,120,.08));
    animation:breathe 6s ease-in-out infinite;
}

/* PLAYER / HERO */

.player{
    max-width:760px;
    margin:0 auto 28px;
    transform: translateY(-70px);
}

#playButton{
        display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:min(620px, 86vw);
    min-height:76px;
    margin:0 auto 22px;
    padding:0 34px;
    background:
        linear-gradient(180deg, rgba(0,255,120,.20), rgba(0,70,25,.16));
    color:#baffba;
    border:1px solid rgba(0,255,120,.72);
    border-radius:18px;
    font-size:30px;
    font-weight:700;
    line-height:1;
    letter-spacing:8px;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:
    0 0 10px rgba(0,255,120,.22),
    0 0 26px rgba(0,255,120,.10),
    inset 0 0 10px rgba(0,255,120,.08);
    text-shadow:
        0 0 8px rgba(0,255,120,.95),
        0 0 24px rgba(0,255,120,.55);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#playButton:hover{
    transform:translateY(-3px) scale(1.018);
    border-color:#9dffb7;
    box-shadow:
        0 0 30px rgba(0,255,120,.72),
        0 0 95px rgba(0,255,120,.34),
        inset 0 0 34px rgba(0,255,120,.18);
}

.playerBar{
    width:min(700px, 84vw);
    height:5px;
    margin:0 auto 16px;
    background:rgba(20,70,20,.72);
    border-radius:999px;
    overflow:hidden;
    box-shadow:inset 0 0 12px rgba(0,0,0,.65);
}

.playerFill{
    height:100%;
    width:0%;
    background:#80ff80;
    border-radius:999px;
    box-shadow:
        0 0 12px #00ff66,
        0 0 28px #00ff66,
        0 0 46px rgba(0,255,120,.8);
    transition:width .08s linear;
}

.playerStatus{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-bottom:22px;
    color:#7cff7c;
    font-size:12px;
    letter-spacing:4px;
    opacity:.82;
}

.liveDot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#333;
    box-shadow:0 0 6px rgba(0,255,120,.45);
    animation:blink 1.5s infinite;
}

.nowPlaying{
    margin-bottom:26px;
}

.npLabel{
    margin-bottom:8px;
    font-size:11px;
    letter-spacing:6px;
    opacity:.45;
}

#trackTitle{
    min-height:24px;
    font-size:18px;
    letter-spacing:2px;
    color:#c8ffc8;
    text-shadow:0 0 8px rgba(0,255,120,.75);
}

#trackTime{
    margin-top:12px;
    font-size:10px;
    letter-spacing:3px;
    opacity:.36;
}

/* VALUES */

.values{
    width:max-content;
    max-width:100%;
    margin:0 auto 34px;
    padding:11px 20px;
    color:#98ff98;
    border-top:1px solid rgba(0,255,120,.18);
    border-bottom:1px solid rgba(0,255,120,.18);
    font-size:12px;
    letter-spacing:3px;
    opacity:.72;
}

/* MODES */

.modes{
    display:grid;
    grid-template-columns:repeat(4, minmax(180px, 1fr));
    gap:18px;
    width:100%;
    max-width:1040px;
    margin:0 auto 36px;
}

.mode-card{
    position:relative;
    min-height:190px;
   padding:10px 14px 10px;
    overflow:hidden;
    cursor:pointer;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    border:1px solid rgba(0,255,120,.24);
    border-radius:18px;
    background:
        linear-gradient(180deg, rgba(8,28,8,.92) 0%, rgba(1,8,1,.96) 100%);
    box-shadow:
        0 10px 26px rgba(0,0,0,.55),
        inset 0 0 14px rgba(0,255,120,.045);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.mode-card::before{
    content:"";
    position:absolute;
    inset:0;
    opacity:0;
    pointer-events:none;
    background:
        radial-gradient(circle at 50% 10%, rgba(0,255,120,.20), transparent 42%);
    transition:opacity .22s ease;
}

.mode-card:hover,
.mode-card.active{
    transform:translateY(-6px);
    border-color:rgba(130,255,160,.98);
    background:
        linear-gradient(180deg, rgba(15,62,18,.96) 0%, rgba(3,20,4,.98) 100%);
    box-shadow:
        0 0 24px rgba(0,255,120,.62),
        0 0 64px rgba(0,255,120,.28),
        0 12px 28px rgba(0,0,0,.62),
        inset 0 0 26px rgba(0,255,120,.13);
}

.mode-card:hover::before,
.mode-card.active::before{
    opacity:1;
}

.mode-icon{
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    max-width:200px;
    height:140px;
    margin:0 auto 10px;
    object-fit:contain;
    filter:
        drop-shadow(0 0 8px rgba(0,255,120,.58))
        drop-shadow(0 0 16px rgba(0,255,120,.18));
    transition:transform .22s ease, filter .22s ease;
}

.mode-card:hover .mode-icon,
.mode-card.active .mode-icon{
    transform:scale(1.08);
    filter:
        drop-shadow(0 0 12px rgba(0,255,120,.95))
        drop-shadow(0 0 28px rgba(0,255,120,.55));
}

.mode-card h3{
    position:relative;
    z-index:1;
    margin:0 0 6px;
    color:#c6ffc6;
    font-size:22px;
    font-weight:700;
    letter-spacing:5px;
    line-height:.95;
    text-transform:uppercase;
    text-shadow:0 0 10px rgba(0,255,120,.62);
}

.mode-card p{
    position:relative;
    z-index:1;
    margin:0px 0;
    color:#83ff9f;
    font-size:12px;
    line-height:1;
    letter-spacing:2px;
    text-transform:uppercase;
    opacity:.76;
    transition:opacity .22s ease;
}

.mode-card:hover p,
.mode-card.active p{
    opacity:1;
}

/* FOOTER */

footer{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
    flex-wrap:wrap;
    margin-top:auto;
}

footer a{
    color:#66ff66;
    text-decoration:none;
    opacity:.56;
    font-size:12px;
    letter-spacing:2px;
    transition:opacity .2s ease, text-shadow .2s ease;
}

footer a:hover{
    opacity:1;
    text-shadow:
        0 0 8px #00ff66,
        0 0 20px rgba(0,255,120,.7);
}

/* RESPONSIVE */

@media(max-width:1050px){
    .container{
        width:min(940px, 94vw);
    }

    .modes{
        grid-template-columns:repeat(3, minmax(160px, 1fr));
        max-width:720px;
    }
}

@media(max-width:720px){
    .container{
        padding:32px 16px 28px;
        justify-content:flex-start;
    }

    .logo{
        max-width:560px;
        margin-bottom:14px;
    }

    header::after{
        display:none;
    }

    #playButton{
        min-width:100%;
        min-height:68px;
        font-size:22px;
        letter-spacing:5px;
        border-radius:16px;
    }

    #trackTitle{
        font-size:15px;
    }

    .values{
        width:100%;
        font-size:10px;
        letter-spacing:2px;
        line-height:1.6;
        padding:10px 12px;
        margin-bottom:28px;
    }

    .modes{
        grid-template-columns:repeat(2, minmax(138px, 1fr));
        gap:14px;
        max-width:460px;
        margin-bottom:32px;
    }

    .mode-card{
        min-height:170px;
        padding:18px 10px 16px;
        border-radius:16px;
    }

    .mode-icon{
        max-width:112px;
        height:72px;
        margin-bottom:12px;
    }

    .mode-card h3{
        font-size:19px;
        letter-spacing:4px;
        margin-bottom:10px;
    }

    .mode-card p{
        font-size:10px;
        letter-spacing:1.7px;
    }

    footer{
        gap:16px;
    }

    footer a{
        font-size:10px;
    }
}

@media(max-width:420px){
    .container{
        width:94vw;
        padding:24px 10px 24px;
    }

    .player{
        margin-bottom:20px;
    }

    #playButton{
        min-height:62px;
        font-size:19px;
        letter-spacing:4px;
        padding:0 16px;
    }

    .playerStatus{
        font-size:10px;
        letter-spacing:3px;
    }

    .nowPlaying{
        margin-bottom:22px;
    }

    .modes{
        grid-template-columns:1fr;
        max-width:300px;
    }

    .mode-card{
        min-height:150px;
    }

    .mode-icon{
        max-width:118px;
        height:68px;
    }
}

/* ANIMATIONS */

@keyframes breathe{
    0%,100%{
        filter:
            drop-shadow(0 0 8px #00ff66)
            drop-shadow(0 0 22px #00ff66)
            drop-shadow(0 0 42px rgba(0,255,120,.35));
    }
    50%{
        filter:
            drop-shadow(0 0 12px #00ff66)
            drop-shadow(0 0 38px #00ff66)
            drop-shadow(0 0 70px rgba(0,255,120,.45));
    }
}

@keyframes blink{
    0%,100%{
        opacity:.28;
    }
    50%{
        opacity:1;
        background:#00ff66;
        box-shadow:
            0 0 10px #00ff66,
            0 0 24px rgba(0,255,120,.8);
    }
}
.music-tv-frame {
    display: none;
    position: relative;
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    margin: 26px auto 0;
    border: 2px solid rgba(0,255,120,.75);
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 0 18px rgba(0,255,120,.55),
        0 0 52px rgba(0,255,120,.24),
        inset 0 0 28px rgba(0,255,120,.12);
}

.music-tv-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.music-tv-label {
    position: absolute;
    left: 18px;
    bottom: 14px;
    padding: 6px 10px;
    color: #baffba;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(0,255,120,.45);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(0,255,120,.85);
}

.back-to-radio {

    display: none;

    position: absolute;

    left: 50%;

    bottom: 20px;

    transform: translateX(-50%);

    padding: 12px 26px;

    border: 1px solid #00ff66;

    border-radius: 999px;

    background: rgba(0,0,0,.70);

    color: #baffba;

    font-size: 13px;

    letter-spacing: 3px;

    cursor: pointer;

    transition: .25s;

    box-shadow: 0 0 16px rgba(0,255,120,.35);

}

.back-to-radio:hover{

    background:#00ff66;

    color:#000;

    box-shadow:0 0 30px #00ff66;

}

body.tv-mode header,
body.tv-mode .modes,
body.tv-mode .values,
body.tv-mode footer,
body.tv-mode #playButton,
body.tv-mode .playerBar,
body.tv-mode .playerStatus,
body.tv-mode .nowPlaying {
    display: none;
}

body.tv-mode .container {
    justify-content: center;
}

body.tv-mode .player {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

body.tv-mode .music-tv-frame {
    display: block;
    max-width: 1200px;
    margin: 40px auto;
}

body.tv-mode .back-to-radio {
    display: block;
}

.fullscreen-tv {
    position: absolute;
    right: 18px;
    top: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(0,255,120,.55);
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    color: #baffba;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 0 0 8px rgba(0,255,120,.85);
    box-shadow: 0 0 14px rgba(0,255,120,.25);
}

.fullscreen-tv:hover {
    background: #00ff66;
    color: #000;
    box-shadow: 0 0 30px #00ff66;
}

.fullscreen-tv {

    display: none;

    position: absolute;

    top: 20px;

    right: 20px;

    padding: 10px 16px;

    border: 1px solid #00ff66;

    border-radius: 999px;

    background: rgba(0,0,0,.70);

    color: #baffba;

    font-size: 11px;

    letter-spacing: 2px;

    cursor: pointer;

    z-index: 20;

    box-shadow: 0 0 16px rgba(0,255,120,.35);

}

.fullscreen-tv:hover{

    background:#00ff66;

    color:#000;

    box-shadow:0 0 30px #00ff66;

}

body.tv-mode .fullscreen-tv{

    display:block;

}

@media (max-width: 600px) {
  .modes {
    grid-template-columns: repeat(2, 1fr);
  }

  .mode-card[data-channel="video"] {
    grid-column: 1 / -1;
  }
}


/* MUSIC TV FINAL */

.music-tv-section{
    grid-column:1 / -1;
    width:100%;
    margin:14px auto 40px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.music-tv-icon-big{
    display:block;
    width:200px;
    height:140px;
    margin:0 0 10px;
    object-fit:contain;
    pointer-events:none;
    filter:
        drop-shadow(0 0 8px rgba(0,255,120,.55))
        drop-shadow(0 0 18px rgba(0,255,120,.18));
}

.music-tv-button{
    width:min(760px,86vw);
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    border:1px solid rgba(0,255,120,.72);
    border-radius:18px;
    background:
        linear-gradient(180deg, rgba(0,255,120,.20), rgba(0,70,25,.16));
    box-shadow:
        0 0 10px rgba(0,255,120,.22),
        0 0 26px rgba(0,255,120,.10),
        inset 0 0 10px rgba(0,255,120,.08);
}

.music-tv-button:hover{
    transform:translateY(-3px);
}

.music-tv-button h3{
    margin:0;
    color:#baffba;
    font-size:30px;
    font-weight:700;
    line-height:1;
    letter-spacing:8px;
    text-transform:uppercase;
}