.loadingbg {
    position: fixed;
    background-color: #303030;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 2;
}
.loadingicon {
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    position: absolute;
    top: 50%;
    left: 50%;
}
:root{
--bg:#090d18;
--card:#2c3e50;
--cardHover:#1b2540;
--accent:#B80071;
--text:#fff;
--muted:#98a5cc;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI,sans-serif;
}

body{
background:var(--bg);
color:#fff;
padding-bottom:160px;
font-size: 18px;
}

@font-face{ 
	font-family: 'MyWebFont';
	src: url('WebFont.eot');
	src: url('WebFont.eot?#iefix') format('embedded-opentype'),
	     url('WebFont.woff') format('woff'),
	     url('WebFont.ttf') format('truetype'),
	     url('WebFont.svg#webfont') format('svg');
}
.header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    width:100%;
    height:80px;
    background:rgba(10, 16, 30, 0.58);
backdrop-filter:blur(20px);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 20px;
    z-index:99999;
    border-bottom:1px solid rgba(255,255,255,.06);
    box-sizing:border-box;
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#fff;
}

/* Burger Button */
.menu-toggle{
    width:40px;
    height:40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    cursor:pointer;
}

.menu-toggle span{
    height:3px;
    width:28px;
    background:#fff;
    border-radius:2px;
    transition:.3s;
}

/* Slide Menu */
.side-menu{
    position:fixed;
    top:0;
    right:-300px;
    width:280px;
    height:100vh;
    background:rgba(30, 41, 59, 0.65);
    transition:.35s ease;
    z-index:1000;
    padding-top:80px;
    box-shadow:-5px 0 20px rgba(0,0,0,.4);
}

.side-menu.active{
    right:0;
}

.side-menu a{
    display:block;
    padding:15px 25px;
    color:#fff;
    text-decoration:none;
    font-size:18px;
    border-bottom:1px solid rgba(255,255,255,.08);
    transition:.3s;
}

.side-menu a:hover{
    background:#24324f;
    padding-left:35px;
}

/* Overlay */
.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:998;
}

.overlay.active{
    opacity:1;
    visibility:visible;
}




.hero {
    padding: 80px 20px;
    text-align: center;
    background:
        linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.85)),
        url("../hero-bg/hero1.webp") center center / cover no-repeat;
}


.hero h1{
font-size:42px;
margin-bottom:15px;
text-transform: uppercase;
}

.hero p{
color:#ddd;
max-width:700px;
margin:auto;
}

.search-wrap{
max-width:700px;
margin:30px auto;
position:relative;
}

.search-wrap input{
width:100%;
background:rgba(0,0,0,.6);
padding:15px 55px 15px 20px;
border-style: solid;
border-width: 2px;
border-color: #B80071;
color:#fff;
border-radius:50px;
outline:none;
font-size:16px;
}

.search-wrap i{
position:absolute;
right:20px;
top:18px;
color:#fff;
}

.filters{
display:flex;
gap:10px;
padding:20px;
overflow:auto;
}

.genre{
padding:10px 18px;
border-radius:50px;
background:#1b2340;
cursor:pointer;
white-space:nowrap;
}

.genre.active{
background:var(--accent);
color:#000;
font-weight:bold;
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
gap:20px;
padding:20px;
}

.station-card{
background:var(--card);
border-radius:18px;
overflow:hidden;
transition:.3s;
}

.station-card:hover{
transform:translateY(-5px);
background:var(--cardHover);
}

.station-card.playing{
border:2px solid var(--accent);
}

.cover{
height:auto;
width:100%;
position:relative;
}

.cover img{
width:100%;
height:100%;
object-fit:cover;
}

.live{
position:absolute;
top:10px;
left:10px;
background:red;
padding:5px 10px;
font-size:12px;
border-radius:20px;
}

.info{
padding:20px;
}

.name{
font-size:20px;
font-weight:bold;
margin-bottom:8px;
}

.meta{
color:var(--muted);
margin-bottom:15px;
}

.actions{
display:flex;
justify-content:space-between;
align-items:center;
}

.websiteBtn{
    
    color:#fff;
    text-decoration:none;
    padding:8px 12px;
    border-radius:6px;
    font-size:13px;
    font-weight:bold;
    transition:.3s;
}

.websiteBtn:hover{
    color:#B80071;
}

.playBtn{
background:var(--accent);
color:#fff;
border:none;
padding:10px 18px;
border-radius:8px;
font-weight:bold;
cursor:pointer;
}

.playBtn:hover {
  background-color: #FF00FF;
  color: white;
}

.fav{
cursor:pointer;
font-size:22px;
}

.player{
position:fixed;
left:0;
right:0;
bottom:0;
background:rgba(10, 16, 30, 0.45);
backdrop-filter:blur(20px);
border-top:1px solid rgba(255,255,255,.08);
padding:15px;
z-index:999999;
box-shadow:0 -10px 30px rgba(0,0,0,.5);
}

.player-inner{
display:flex;
align-items:center;
gap:15px;
}

.player-cover{
width:70px;
height:70px;
border-radius:7px;
object-fit:cover;
flex-shrink:0;
background:#152039;
}

.player-details{
flex:1;
min-width:0;
}

.player-details strong{
display:block;
font-size:18px;
margin-top:3px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.player-status{
font-size:12px;
margin-top:4px;
color:#fff;
font-weight:600;
}

#signalMeter{
margin-top:3px;
font-size:12px;
color:#fff;
}

.player-controls{
display:flex;
align-items:center;
gap:12px;
margin-top:15px;
flex-wrap:wrap;
}

.cp-btn{
width:48px;
height:48px;
border:none;
border-radius:50%;
cursor:pointer;
background:#B80071;
color:#fff;
font-size:16px;
font-weight:700;
transition:.3s;
}

.cp-btn:hover {
  background-color: #FF00FF;
  color: white;
transform:scale(1.08);
}



.cp-btn.secondary{
background:#1b2746;
color:white;
}

.volume-wrapper{
display:flex;
align-items:center;
gap:10px;
flex:1;
min-width:180px;
}

#volumeSlider{
width:100%;
accent-color:#B80071;
}



.visualiser{
display:flex;
align-items:flex-end;
gap:3px;
height:30px;
}

.visualiser span{
width:4px;
height:10px;
background:#B80071;
border-radius:2px;
}

.visualiser.playing span{
animation:bars .9s infinite;
}

.visualiser span:nth-child(2){
animation-delay:.1s;
}

.visualiser span:nth-child(3){
animation-delay:.2s;
}

.visualiser span:nth-child(4){
animation-delay:.3s;
}

.visualiser span:nth-child(5){
animation-delay:.4s;
}
.visualiser span:nth-child(6){
animation-delay:.2s;
}


@keyframes bars{

0%,100%{
height:8px;
}

50%{
height:30px;
}

}

.recent-list{
display:flex;
gap:8px;
overflow-x:auto;
margin-top:15px;
padding-bottom:3px;
}

.recent-station{
padding:8px 14px;
background:#18233d;
border-radius:30px;
font-size:12px;
white-space:nowrap;
cursor:pointer;
transition:.25s;
}

.recent-station:hover{
background:#00d4ff;
color:black;
}

@media(max-width:768px){

.player{
padding:12px;
}

.player-inner{
align-items:flex-start;
}

.player-cover{
width:60px;
height:60px;
}

.cp-btn{
width:44px;
height:44px;
}

.volume-wrapper{
width:100%;
}



}


audio{
width:100%;
margin-top:10px;
}

@media(max-width:768px){

.hero h1{
font-size:36px;
text-transform: uppercase;
}

body{
padding-bottom:200px;
}

}
.radio-sections{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin:20px;
}

.radio-section{
    background:#1b1b1b;
    border:1px solid #333;
    border-radius:12px;
    padding:15px;
}

.radio-section h2{
    margin:0 0 15px;
    color:#00d4ff;
    font-size:1.2rem;
font-family: "Bangers", system-ui;
    border-bottom:1px solid #333;
    padding-bottom:10px;
text-transform: uppercase;
}

@media (max-width:768px){
    .radio-section{
        padding:12px;
    }
}

/* Hide volume controls on phones and tablets */
@media (max-width: 768px) {
    .volume-control,
    .volume-container,
    #volume,
    #volumeSlider {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .fa-volume-down,
    .fa-volume-up {
        display: none !important;
    }
}
/* Mobile Only */
@media (max-width: 768px) {
    #playPauseBtn {
        position: absolute;
        top: 20px;
        right: 10px;
        margin: 0;
        z-index: 1000;
    }
}
.logo{
    font-size: 40px; /* Desktop size */
}

@media (max-width: 768px){
    .logo{
        font-size: 28px;
    }
}

@media (max-width: 480px){
    .logo{
        font-size: 18px;
    }
}


.responsive-title{
    font-size:clamp(1.5rem, 4vw, 3rem);
    text-align:center;
}


h2{
    text-align:center;
    font-size:30px;
    line-height:1.2;
    margin:40px auto;
    padding: 15px;
text-transform: uppercase;
}

section{
    min-height:80vh;
    margin:20px;
    padding:10px;
    border-radius:20px;
}

#home{
    background:#000;
}

#add-station{
    background:#2c3e50;
}

#widget{
    background:#2c3e50;
}

#your-most-played-stations{
    background:#2c3e50;
}

#privacy-polic{
    background:#2c3e50;
}

#terms-of-use{
    background:#2c3e50;
}

#about-us{
    background:#2c3e50;
}

#contact{
    background:#2c3e50;
}

#random-station-widget{
    text-align:center;
    padding:10px;
}
#randomStationBtn{
    background:#B80071;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:12px 20px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    transition:all .2s ease;
}
#randomStationBtn:hover{
    background:#FF00FF;
    transform:translateY(-2px);
}
#randomStationBtn:active{
    transform:scale(.95);
}



.radio-logo-wrap{
    text-align:center;
    padding:10px;
}

.radio-logo-pulse{
    width:min(200px,90vw);
    max-width:100%;
    height:auto;
    border-radius:7px;
    display:block;
    margin:auto;
    transform-origin:center top;
    animation:rockLogo 3s ease-in-out infinite;
}

@keyframes rockLogo{
    0%{
        transform:rotate(-8deg);
    }
    50%{
        transform:rotate(8deg);
    }
    100%{
        transform:rotate(-8deg);
    }
}
}

/* Mobile */
@media (max-width:768px){
    .radio-logo-pulse{
        width:80vw;
    }
}

/* Small Phones */
@media (max-width:480px){
    .radio-logo-pulse{
        width:90vw;
        border-radius:10px;
    }
}

.featured{
    border:2px solid #ffd700;
    box-shadow:0 0 12px rgba(255,215,0,.5);
}

.featured .live{
    background:#ffd700;
    color:#000;
    font-weight:700;
}

.top10Stations .top10Grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
    gap:20px;
    padding:20px;
}
.top10Stations .top10Card{
    background:#111;
    border-radius:12px;
    overflow:hidden;
    border:1px solid #222;
    position:relative;
}
.top10Stations .top10Rank{
    position:absolute;
    top:10px;
    left:10px;
    background:#ff0055;
    color:#fff;
    font-weight:bold;
    padding:5px 10px;
    border-radius:30px;
    z-index:10;
}
.top10Stations .playCount{
    position:absolute;
    top:10px;
    right:10px;
    background:#00c853;
    color:#fff;
    font-weight:bold;
    padding:5px 10px;
    border-radius:30px;
    z-index:10;
}
.top10Stations h2{
    color:#fff;
    text-align:center;
    margin:0 0 20px;
}
/* ==========================
   RESPONSIVE HEADINGS
   ========================== */

h1{
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.1;
    text-align: center;
    margin: 20px auto;
    padding: 10px;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

h2{
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    line-height: 1.2;
    text-align: center;
    margin: 20px auto;
    padding: 10px;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Hero Title */
.hero h1{
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    padding: 0 10px;
}

/* Radio Section Titles */
.radio-section h2{
    font-size: clamp(1.2rem, 4vw, 2rem);
    line-height: 1.2;
    margin: 0 0 15px;
text-transform: uppercase;
    padding-bottom: 10px;
    text-transform: uppercase;
}

/* Small Phones */
@media (max-width: 480px){

    h1{
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        padding: 10px 5px;
    }

    h2{
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        padding: 10px 5px;
    }

    .hero h1{
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    }

    .radio-section h2{
        font-size: 1.25rem;
    }
}

/* Prevent long words from breaking layout */
h1,
h2,
.hero h1,
.radio-section h2{
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}