html, body {
  height: 100%;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}

header {
  background-color: #1a1a1a;
  padding: 0.5rem 2rem;
  border-bottom: 2px solid #ff3c00;
  position: relative;
  z-index: 1;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.brand {
  margin-right: auto;
}

.logo-image {
  height: 30px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
  color: #ff3c00;
  text-shadow: 0 0 6px rgba(255, 60, 0, 0.5);
}

.user-auth {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-bar .user-auth span {
  min-width: 0px;
  width: 137px;
}

.welcome-box p {
  text-align: justify;
}

.login-btn {
  background-color: #ff3c00;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.top-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 25%;
  min-width: 280px;
}

.welcome-section,
.top-players-section,
.chat-section,
.online-section,
.broadcast-section {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 60, 0, 0.1);
}

.welcome-section {
  height: 250px;
  padding: 0.5rem;
}

.welcome-section p {
  font-family: Verdana, Geneva, sans-serif;
  line-height: 30.5px;
  letter-spacing: -0.7px;
  font-size: 20px;
  font-weight: 600;
  text-align: justify;
  width: 100%;
  margin: 0;
}

.top-players-section {
  height: 800px;
}

main .profile-section {
  transform: translateX(118px) translateY(0px);
  width: 949px;
  height: 235px;
  z-index: 66;
  left: 422px;
}

.chat-section {
  height: 450px;
  width: 50%;
  min-width: 280px;
}

.online-section {
  height: 1100px;
  width: 15%;
  min-width: 220px;
}

.broadcast-section {
  margin-top: 2rem;
  width: 80%;
  height: 500px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-header-img,
.broadcast-header-img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.broadcast-header-img {
  width: 400px;
}

.chat-box {
  background-color: #000;
  padding: 1rem;
  height: 300px;
  width: 96%;
  overflow-y: auto;
  margin-bottom: 1rem;
  border-radius: 5px;
  flex: 1;
  border: 1px solid #333;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.chat-box::-webkit-scrollbar {
  width: 0.5em;
}

.chat-box::-webkit-scrollbar-thumb {
  background-color: transparent;
}

.chat-input {
  margin-top: 10px;
  display: flex;
  gap: 0.5rem;
}

.chat-input input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
}

.chat-section .chat-input input[type="text"] {
  transform: translateY(34px);
}

.chat-section .chat-input .send-btn {
  transform: translateY(32px);
}

.send-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.send-btn .send-icon {
  height: 18px;
  width: 18px;
  filter: brightness(0) invert(1);
}

.profile-section {
  position: absolute;
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 60, 0, 0.1);
  z-index: 100;
}

.profile-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.profile-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile-info {
  text-align: center;
}

.profile-info h3 {
  margin: 0;
  color: white;
}

.profile-info p {
  margin: 5px 0;
  color: #ccc;
}

.section-subheader {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #aaa;
}

.user-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.user-list::-webkit-scrollbar {
  width: 0.5em;
}

.user-list::-webkit-scrollbar-thumb {
  background-color: transparent;
}

.user-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 0.85rem;
  border-bottom: 1px solid #222;
  white-space: nowrap;
}

.user-list li img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-list li a {
  color: #ddd;
  font-size: 0.85rem;
  text-decoration: none;
}

.user-list li a:hover {
  color: #ff3c00;
}

.broadcast-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.streams-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  flex-grow: 1;
}

.add-stream-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.add-stream-btn {
  background-color: #ff3c00;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  align-self: center;
  margin-top: 1rem;
}

.stream-tile {
  width: 150px;
  height: 204px;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  color: white;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.stream-tile:hover {
  transform: scale(1.03);
}

.stream-thumbnail {
  position: relative;
  flex-shrink: 0;
}

.stream-thumbnail img {
  width: 100%;
  display: block;
}

.platform-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 5px;
  font-size: 0.75em;
  background: transparent;
  border-radius: 3px;
  color: white;
  border: none;
  outline: none;
  box-shadow: none;
}

.stream-info {
  padding: 5px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stream-title {
  font-weight: bold;
  margin-bottom: 3px;
  color: white;
  font-size: 0.9rem;
}

.stream-meta {
  font-size: 0.75rem;
  color: gray;
  display: flex;
  align-items: center;
  gap: 5px;
}

footer {
  background-color: #000;
  color: #888;
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
  margin-top: auto;
  display: flex;
  justify-content: center;
  border-top: 1px solid #333;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-brand,
.footer-steam-group,
.footer-developer {
  flex: 1;
  text-align: center;
}

.footer-steam-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-steam-group img {
  height: 20px;
}

.footer-developer a,
.footer-steam-group a {
  color: #66b3ff;
  text-decoration: none;
}

.footer-developer a:hover,
.footer-steam-group a:hover {
  text-decoration: underline;
}

#loader-overlay {
  position: fixed;
  z-index: 9999;
  background: #1e1e1e;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

#loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner-container {
  position: relative;
  width: 160px;
  height: 160px;
}

#loader-gif {
  width: 200px;
  height: 200px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#loader-gif.loaded {
  opacity: 1;
}

.spinner-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 5px solid transparent;
  border-top: 5px solid #8B0000;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  box-sizing: border-box;
  z-index: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .brand {
    margin: 0;
  }

  .logo-image {
    height: 40px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.2rem;
    text-align: center;
  }

  nav a {
    font-size: 0.95rem;
    flex: 0 0 auto;
  }

  .user-auth {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    text-align: center;
    gap: 0.5rem;
  }

  .login-btn {
    font-size: 1rem;
    padding: 0.4rem 1.4rem;
    width: auto;
  }

  .main,
  .chat-section,
  .online-section,
  .left-column,
  .broadcast-section {
    width: 100%;
    margin-bottom: 1rem;
  }

  .section-header {
    font-size: 1.5rem;
  }

  .broadcast-header-img,
  .section-header-img {
    width: 100%;
    max-width: 300px;
  }

  .chat-input {
    flex-direction: column;
    gap: 0.5rem;
  }

  .chat-input input,
  .send-btn {
    width: 100%;
    font-size: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .top-row {
    flex-direction: column;
    align-items: center;
  }
}

.login-confirm-overlay {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.login-confirm-overlay.fade-out {
  animation: fadeOut 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.login-confirm-box {
  background: rgba(24, 24, 24, 0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 60, 0, 0.35);
  text-align: center;
  animation: slideUp 0.5s ease;
  max-width: 400px;
  width: 90%;
  color: white;
}

.login-confirm-box h2 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.login-confirm-box h3 {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.login-avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.confirm-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.confirm-checklist li {
  margin: 1rem 0;
  font-size: 1rem;
}

.confirm-checklist button {
  background-color: #ff3c00;
  border: none;
  color: white;
  font-size: 1rem;
  padding: 0.3rem 0.75rem;
  margin: 0 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-checklist button:hover {
  background-color: #ff5c26;
}

.confirm-checklist a {
  color: #66b3ff;
  text-decoration: underline;
}

.confirm-checklist a:hover {
  color: #fff;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (min-width:769px){

 .profile-section .section-header img{
  width:465px;
 }
 
}

main .chat-section {
  transform: translateX(-3px) translateY(286px);
}

@import url("//fonts.googleapis.com/css2?family=Actor:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

.profile-section .profile-box .profile-stat {
  position: absolute;
  left: -19px;
  font-size: 0.85em;
  color: #ccc;
  margin: 0;
}

.profile-section .profile-box .profile-stat:nth-of-type(2) {
  top: 210px;
}

.profile-section .profile-box .profile-stat:nth-of-type(3) {
  top: 226px;
}

.profile-section .profile-box .profile-stat:nth-of-type(4) {
  top: 242px;
}

main .top-row .profile-section .profile-box {
  width: 93% !important;
  position: relative;
  background: #1a1a1a;
  height: 180px;
  margin: 0 auto;
  transform: translateX(10px) translateY(21px);
}

.profile-box .profile-avatar img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}

.profile-box .profile-username a {
  position: absolute;
  left: calc(50% + 80px);
  top: 50%;
  transform: translateX(-130px) translateY(27px);
  font-size: 1.5em;
  color: #fff;
  text-decoration: none;
  font-family: 'Actor', sans-serif;
}

.profile-box .profile-username a:hover {
  text-decoration: underline;
}

.profile-box p{
 padding-bottom:10px;
 transform:translatex(300px) translatey(-110px);
}

.profile-box a{
 transform:translatex(13px) translatey(117px);
}

.profile-section .profile-box p {
  position: absolute;
  left:-19px;
  top: 194px;
  font-size: 0.85em;
  color: #ccc;
  margin: 0;
}

.profile-section .profile-box .profile-divider {
  position: absolute;
  left: 750px;
  top: 10px;
  height: 160px;
  width: 2px;
  background-color: #333;
}

.profile-box .profile-right h4 {
  position: absolute;
  top: -18px;
  left: 805px;
  font-size: 1em;
  color: #fff;
  margin: 0;
}

.nav-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-family: 'Actor', sans-serif;
}

.nav-menu a:hover {
  text-decoration: underline;
}

.content-section {
  margin-top: 100px;
  padding: 20px;
  color: #fff;
  font-family: 'Actor', sans-serif;
}

.profile-box.visitor .profile-avatar img {
    transform: none;
    display: block;
    margin: 0 auto;
}

.profile-box.visitor h3 {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
}

.profile-box.visitor .profile-avatar img {
    transform: none;
    display: block;
    margin: 0 auto;
}

.profile-box.visitor h3 {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
}

.profile-box.visitor .steamid {
    display: none;
}

.profile-box.visitor .login-btn {
    display: block;
    margin: 15px auto 0 auto;
    text-align: center;
}
