body{
  margin:0;
  color:#eaeaea;
  font-family:Segoe UI, Arial, sans-serif;

  background:
    linear-gradient(rgba(14,14,17,0.93), rgba(14,14,17,0.93)),
    url("bg2.jpg") center/cover no-repeat fixed;

  background-color:#0e0e11;
}


/* Header */
.header{
  text-align:center;
  padding:20px 0;
}

.header img{
  max-height:120px;
  width:auto;
}

/* Online counter */
.onlineBox{
  text-align:center;
  margin-top:5px;
  color:white;
  font-weight:600;
}

/* Layout (chat + main) */
.top-section{
  display:flex;
  gap:20px;
  padding:20px;
  justify-content:center;
  align-items:flex-start;
  max-width:1200px;
  margin:0 auto;
}

/* Chat */
.chatbox{
  width:280px;
  background:#15151b;
  border-radius:10px;
  padding:12px;
  border:1px solid #7b2cff;
  flex-shrink:0; /* sprječava smanjivanje */
}

#messages{
  height:340px;
  overflow:auto;
  background:#0b0b10;
  border-radius:8px;
  padding:10px;
  margin-bottom:10px;
  font-size:14px;
}

/* Inputs */
input{
  width:100%;
  box-sizing:border-box;   /* 🔥 KLJUČNO */
  margin-bottom:6px;
  padding:6px;
  border-radius:6px;
  border:1px solid #333;
  background:#0b0b10;
  color:white;
}

button{
  width:100%;
  box-sizing:border-box;   /* 🔥 */
  padding:6px;
  border:none;
  border-radius:6px;
  background:linear-gradient(90deg,#7b2cff,#ff2d55);
  color:white;
  font-weight:600;
  cursor:pointer;
}

button:hover{
  opacity:0.9;
}

/* Main stream */
.main-stream{
  flex:1;
  max-width:900px;
  min-width:0; /* Safari fix */
}

.video-wrapper{
  position:relative;
  width:100%;
  padding-top:56.25%;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #ff2d55;
  box-shadow:0 0 20px rgba(255,45,85,0.3);
}

.video-wrapper iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}

/* Other streams */
.grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
  padding:20px;
  max-width:1200px;
  margin:0 auto;
}

.streamItem{
  position:relative;
  cursor:pointer;
  transition:0.2s;
}

.streamItem:hover{
  transform:scale(1.03);
}

.streamItem iframe{
  width:100%;
  aspect-ratio:16/9;
  border-radius:8px;
  border:1px solid #7b2cff;
  pointer-events:none;
}

.clickLayer{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:5;
}

/* ===== RESPONSIVE ===== */

@media (max-width:1200px){
  .grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:900px){

  /* zadrži desktop raspored */
  .top-section{
    flex-direction:row;
  }

  /* malo manji logo */
  .header img{
    max-height:100px;
  }

  /* uži chat */
  .chatbox{
    width:180px;
  }

  /* manji chat prozor */
  #messages{
    height:200px;
  }

  /* 3 streama u redu */
  .grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:500px){

  /* i na baš malim ekranima 2 po redu ako zatreba */
  .grid{
    grid-template-columns:repeat(2,1fr);
  }

}
@media (max-width:900px){

  /* Layout ide vertikalno */
  .top-section{
    flex-direction:column;
    align-items:stretch;
  }

  /* MAIN ide prvi */
  .main-stream{
    order:1;
    width:100%;
    max-width:100%;
  }

  .video-wrapper{
    width:100%;
  }

  /* CHAT ide na dno */
  .chatbox{
    order:3;
    width:100%;
    margin-top:20px;
  }

  /* GRID ostaje između */
  .grid{
    grid-template-columns:repeat(3,1fr);
  }

  /* Manji chat prozor */
  #messages{
    height:180px;
  }

}
@media (max-width:900px){

  .page-wrapper{
    display:flex;
    flex-direction:column;
  }

  .top-section{
    display:contents;
  }

  .main-stream{
    order:1;
    width:100%;
    max-width:100%;
  }

  .grid{
    order:2;
    grid-template-columns:repeat(3,1fr);
  }

  .chatbox{
    order:3;
    width:100%;
    margin-top:20px;
  }

  #messages{
    height:180px;
  }
}
@media (max-width:900px){

  /* malo prostora sa strane */
  .page-wrapper{
    padding:0 12px;
  }

  /* main stream */
  .video-wrapper{
    border-radius:12px;
  }

  /* chat */
  .chatbox{
    border-radius:12px;
    
  }

}
@media (max-width:900px){

  .page-wrapper{
    padding:0 8px;
  }

  .main-stream{
    width:100%;
    max-width:100%;
  }

  /* GRID */
  .grid{
    grid-template-columns:repeat(3,1fr);
  }

  /* 👇 CHAT UŽI */
  .chatbox{
    width:90%;
    max-width:500px;
    margin:20px auto 0 auto;  /* centrira */
  }

  #messages{
    height:180px;
  }

}
@media (max-width:900px){

  .chatbox input{
    padding:8px 5px;
    font-size:12px;
    margin-bottom:3px;
  }

  .chatbox button{
    padding:8px 5px;
    font-size:12px;
  }

}

/* ========================= */
/* MODERN SCROLLBAR (CHAT) */
/* ========================= */

#messages::-webkit-scrollbar{
  width:8px;
}

#messages::-webkit-scrollbar-track{
  background:#0b0b10;
  border-radius:10px;
}

#messages::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#7b2cff,#ff2d55);
  border-radius:10px;
}

#messages::-webkit-scrollbar-thumb:hover{
  opacity:0.8;
}
.dragging {
  opacity: 0.5;
}
.section-divider {
  display:flex;
  align-items:center;
  text-align:center;
  margin:40px auto 20px auto;
  max-width:1200px;
  color:white;
  font-weight:600;
  letter-spacing:2px;
}

.section-divider::before,
.section-divider::after {
  content:"";
  flex:1;
  height:1px;
  background:white;
  opacity:0.3;
}

.section-divider span {
  padding:0 15px;
  font-size:14px;
}
.welcome-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.welcome-box{
  background:#111;
  padding:30px;
  max-width:500px;
  width:90%;
  border-radius:12px;
  border:1px solid #7b2cff;
  text-align:center;
  color:white;
}

.welcome-box h2{
  margin-bottom:15px;
}

.welcome-box button{
  margin-top:15px;
  padding:8px 20px;
  border:none;
  border-radius:6px;
  background:linear-gradient(90deg,#7b2cff,#ff2d55);
  color:white;
  cursor:pointer;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:25px 30px;   /* bilo 15px */
  position:relative;
  min-height:120px;    /* 👈 ovo je ključno */
}

/* Centar ostaje absolute */
.header-center{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
}

.header-center img{
  max-height:120px;   /* malo veći */
  width:auto;
}
/* ONLINE PILL */
.online-pill{
  display:flex;
  align-items:center;
  gap:6px;
  background:#15151b;
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  border:1px solid #7b2cff;
}

.online-pill .dot{
  width:8px;
  height:8px;
  background:#00ff6a;
  border-radius:50%;
  box-shadow:0 0 6px #00ff6a;
}

.online-pill .label{
  opacity:0.6;
  font-size:12px;
}

/* INFO ICON */
.info-icon{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid #7b2cff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:14px;
}

.info-icon:hover{
  background:#7b2cff;
}

.header-right{
  display:flex;
  align-items:center;
  gap:12px;
}

@media (max-width:900px){
  .section-divider{
    display:none;
  }
}
@media(max-width:900px){

  .header{
    padding:10px 15px;
  }

  .header-center img{
    max-height:70px;
  }

  .online-pill{
    padding:4px 8px;
    font-size:11px;
  }

}
/* FOOTER */

.site-footer{
  margin-top:60px;
  padding:30px 20px;
  background:#0a0a0f;
  border-top:1px solid #1f1f2a;
  font-size:13px;
  color:#aaa;
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:30px;
}

.footer-inner p{
  margin:0;
  line-height:1.6;
}

.footer-disclaimer{
  opacity:0.7;
}

.footer-contact{
  margin-top:8px;
  font-size:16px;
  opacity:0.8;
}

/* MOBILE */
@media(max-width:900px){
  .footer-inner{
    flex-direction:column;
    text-align:center;
  }
}
.seo-text{
  max-width:1000px;
  margin:40px auto;
  padding:0 20px;
  color:#aaa;
  font-size:14px;
  line-height:1.6;
}
@media(max-width:900px){

  .seo-text{
    max-width:100%;
    margin:30px auto;
    padding:0 16px;
    font-size:13px;
    line-height:1.7;
    text-align:center;
  }

  .seo-text h2{
    font-size:18px;
    margin-bottom:12px;
  }

}

/* LEGAL PAGES */

.legal-container{
  max-width:900px;
  margin:60px auto;
  padding:0 20px;
  color:#ddd;
  line-height:1.8;
}

.legal-container h1{
  margin-bottom:25px;
  font-size:28px;
  color:#fff;
}

.legal-container h2{
  margin-top:30px;
  margin-bottom:10px;
  font-size:18px;
  color:#7b2cff;
}

.legal-container p{
  font-size:14px;
  margin-bottom:15px;
}

@media(max-width:900px){

  .legal-container{
    margin:40px auto;
    padding:0 16px;
  }

  .legal-container h1{
    font-size:22px;
  }

  .legal-container h2{
    font-size:16px;
  }

  .legal-container p{
    font-size:13px;
  }

}
.back-home{
  margin:50px auto 0 auto;
  text-align:center;
}

.back-home a{
  display:inline-block;
  padding:10px 18px;
  border-radius:8px;
  background:linear-gradient(90deg,#7b2cff,#ff2d55);
  color:white;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:0.2s ease;
}

.back-home a:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 15px rgba(123,44,255,0.4);
}
@media(max-width:900px){
  .back-home{
    text-align:center;
  }
}
.footer-links{
  margin-top:12px;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.footer-links a{
  padding:6px 14px;
  border-radius:20px;
  font-size:12px;
  text-decoration:none;
  color:#ccc;
  border:1px solid rgba(123,44,255,0.4);
  background:rgba(123,44,255,0.05);
  transition:all 0.2s ease;
}

.footer-links a:hover{
  color:#fff;
  border-color:#7b2cff;
  background:linear-gradient(90deg,#7b2cff,#ff2d55);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(123,44,255,0.4);
}
@media(max-width:900px){
  .footer-links a{
    font-size:11px;
    padding:5px 12px;
  }
}
.redbull-btn{
  padding:6px 14px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  color:white;
  background:linear-gradient(90deg,#ff2d55,#7b2cff);
  transition:all 0.25s ease;
  white-space:nowrap;
}

.redbull-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 15px rgba(255,45,85,0.4);
  
  animation: redbullPulse 2.5s infinite;
}

@keyframes redbullPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,45,85,0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255,45,85,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,45,85,0);
  }
}

@media(max-width:900px){

  /* Sakrij tekst */
  .redbull-btn{
    font-size:0;
    padding:6px 8px;
  }

  /* Prikaži samo limenku */
  .rb-btn-icon{
    height:18px;
    margin:0;
  }

}
.top-donators-bar{
  max-width:1200px;
  margin:15px auto;
  text-align:center;
  font-size:13px;
  line-height:1.6;
  color:#ccc;
}

.donator-item{
  white-space:nowrap;
}

.sep{
  margin:0 12px;
  opacity:0.4;
}

.rb-mini{
  width:16px;
  vertical-align:middle;
  margin:0 4px;
  filter:drop-shadow(0 0 4px rgba(255,45,85,0.6));
}
@media(max-width:900px){
  .top-donators-bar{
    overflow-x:auto;
    white-space:nowrap;
  }
}
.donator-item:first-child{
  color:#ffd700;
}
@media(max-width:900px){

  .top-donators-bar{
    order:2;
  }

  .main-stream{
    order:1;
  }

}
@media(max-width:900px){

  .sent-text,
  .rb-text{
    display:none;
  }

  .rb-mini{
    width:14px;
  }

  .top-donators-bar{
    font-size:12px;
    overflow-x:auto;
    white-space:nowrap;
  }
  
  .error-404{
  height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.error-404 h1{
  font-size:80px;
  margin:10px 0;
}

.error-icon{
  height:60px;
  margin-bottom:15px;
}

.back-home{
  margin-top:20px;
  padding:8px 20px;
  border-radius:20px;
  border:1px solid #7b2cff;
  color:#7b2cff;
  text-decoration:none;
  transition:0.2s ease;
}

.back-home:hover{
  background:#7b2cff;
  color:white;
}

}
.top-donators-bar .donator-item:not(:last-child)::after{
  content:" • ";
  margin:0 10px;
  opacity:0.4;
}
.rb-btn-icon{
  height:18px;   /* kontrola veličine */
  width:auto;
  margin-right:8px;
  vertical-align:middle;
}

.donators-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.donators-box{
  background:#111118;
  padding:30px;
  border-radius:15px;
  width:90%;
  max-width:500px;
  border:1px solid #7b2cff;
  text-align:center;
}

.donators-box h2{
  margin-bottom:20px;
}

.donators-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:20px;
}

.donators-table th,
.donators-table td{
  padding:8px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.rb-table{
  width:16px;
  vertical-align:middle;
  margin-left:4px;
}

.modal-buttons{
  display:flex;
  justify-content:center;
  gap:15px;
}

.donate-modal{
  padding:8px 18px;
  border-radius:20px;
  background:linear-gradient(90deg,#ff2d55,#7b2cff);
  color:white;
  text-decoration:none;
}

.close-modal{
  padding:8px 18px;
  border-radius:20px;
  background:transparent;
  border:1px solid #7b2cff;
  color:#7b2cff;
  cursor:pointer;
}

/*button more */


.more-donators{
  display:inline-block;
  margin-left:auto;
  
}
.rb-title-icon{
  height:22px;
  margin-right:8px;
  vertical-align:middle;
  filter:drop-shadow(0 0 6px rgba(255,45,85,0.6));
}
@media(max-width:900px){
  .rb-title-icon{
    height:18px;
  }
}



@media(max-width:900px){

  .top-donators-bar{
    width:100%;
    max-width:100%;
    display:flex;
    align-items:center;
    gap:12px;

    white-space:nowrap;      /* ostaje u jednoj liniji */
    overflow-x:auto;         /* SAMO bar scrolla */
    overflow-y:hidden;

    padding:0 10px;
    box-sizing:border-box;

    scrollbar-width:none;    /* sakrij scrollbar Firefox */
  }

  .top-donators-bar::-webkit-scrollbar{
    display:none;            /* sakrij scrollbar Chrome */
  }

  .more-donators{
    margin-left:0;
    flex-shrink:0;
  }

  .donator-item{
    flex-shrink:0;           /* da se ne sabijaju */
  }

}

.rb-modal-icon{
  height:18px;
  width:auto;
  margin-right:6px;
  vertical-align:middle;
}
@media(max-width:900px){
  .rb-modal-icon{
    height:16px;
  }
}
.admin-msg{
  color:#d4af37;   /* malo suptilnija zlatna */
  font-weight:600;
}

/* MOBILE */
@media(max-width:900px){
  .admin-msg{
    color:#d4af37;
    font-weight:600;
  }
}
@media(max-width:900px){
.mobile-unmute-tip{
  font-size:12px;
  opacity:0.8;
  margin-top:5px;
}
}

/* DOMAIN ANNOUNCEMENT */

.domain-announcement{
  max-width:1200px;
  margin:20px auto 10px auto;
  padding:12px 18px;
  border-radius:12px;
  background:linear-gradient(90deg,#7b2cff,#ff2d55);
  font-size:14px;
  text-align:center;
  font-weight:500;
  box-shadow:0 4px 20px rgba(123,44,255,0.3);
  animation:fadeIn 0.6s ease;
}

.domain-announcement strong{
  font-weight:700;
}

/* fade animacija */
@keyframes fadeIn{
  from{opacity:0; transform:translateY(-8px);}
  to{opacity:1; transform:translateY(0);}
}
@media(max-width:900px){

  .domain-announcement{
    font-size:12px;
    padding:10px 14px;
    margin:15px 12px;
    border-radius:10px;
  }

}