* {
  box-sizing: border-box;
}

body {
  background: #d8d8d8;
  overflow-x: hidden; /* Yatay kaydırmayı engeller */
  width: 100%; /* Genişliği tam ekran yapar */
}

.video-background {
  background: #000;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -99;
  overflow: hidden; /* Video arka planının taşmasını engeller */
}

.video-foreground,
.video-background iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: none;
}

#vidtop-content {
  top: 0;
  color: #fff;
}

.vid-info {
  position: absolute;
  top: 50vh;
  left: 11vw;
  width: 33%;
  color: #fff;
  padding: 1rem;
  font-family: RobotoCondensed Bold, Trebuchet MS, Helvetica, Arial, sans-serif;
  z-index: 9999;
}

.vid-info__name {
  font-size: 1rem;
  text-shadow: 3px 3px 5px #000;
}

.vid-info__alias {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 3px 3px 5px #000;
}

.vid-info__summary {
  text-shadow: 3px 3px 5px #000;
}

iframe .vid-info {
  top: 0 !important;
  right: 0 !important;
  margin: auto !important;
  width: 300px !important;
}

/* Video arka planı */
@media (min-aspect-ratio: 16/9) {
  .video-foreground {
    height: 300%;
    top: -100%;
  }
}

@media (max-aspect-ratio: 16/9) {
  .video-foreground {
    width: 300%;
    left: -100%;
  }
}

/* Masaüstü görünüm için sosyal menü */
/* Bu kısım, medya sorgularının dışındaki genel kuraldır ve masaüstü için geçerlidir. */
.social-menu {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.social-menu ul {
  display: flex;
  gap: 1.1rem;
  padding: 0.75rem 1.6rem;
  margin: 0;
  list-style: none;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 42px rgba(5, 7, 12, 0.45);
  backdrop-filter: blur(14px);
}

.social-menu ul li {
  list-style: none;
}

/* 600px ve altı için mobil görünüm */
@media all and (max-width: 600px) {
  .vid-info {
    width: 80%;
    left: 10%;
    top: 40vh;
    padding: 0.5rem;
  }
  
  .vid-info__alias {
    font-size: 2rem;
  }
  
  .social-menu ul {
    padding: 0.65rem 1.2rem;
    gap: 0.9rem;
  }

  .social-menu ul li {
    margin: 0;
  }
}

/* 500px ve altı için daha küçük mobil görünüm */
@media all and (max-width: 500px) {
  .vid-info {
    width: 90%;
    left: 5%;
    top: 35vh;
  }

  .vid-info__alias {
    font-size: 1.75rem;
  }

  .vid-info__name {
    font-size: 0.875rem;
  }

  .social-menu ul {
    padding: 0.55rem 1rem;
    gap: 0.75rem;
  }

  .social-menu ul li {
    margin: 0;
  }
}

.video-background:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 999;
  opacity: 0.6;
}

.social-menu ul li a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: rgba(245, 247, 251, 0.88);
  background: rgba(245, 247, 251, 0.12);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.social-menu ul li a:hover {
  transform: translateY(-4px);
  background: rgba(245, 247, 251, 0.22);
  color: #ffffff;
}

.social-menu ul li i {
  font-size: 1.15rem;
  line-height: 1;
}

.mode-switch {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.mode-switch__inner {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 10, 18, 0.58);
  box-shadow: 0 18px 42px rgba(5, 7, 12, 0.45);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.mode-switch__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 56px;
  color: rgba(245, 247, 251, 0.8);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-switch__button:last-child {
  border-right: none;
}

.mode-switch__button i {
  font-size: 1.4rem;
}

.mode-switch__button:hover {
  background: rgba(245, 247, 251, 0.15);
  color: #ffffff;
}

.mode-switch__button.is-active {
  background: rgba(245, 247, 251, 0.28);
  color: #0b0e14;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.25);
}

@media all and (max-width: 600px) {
  .mode-switch {
    bottom: 190px;
  }
}

@media all and (max-width: 500px) {
  .mode-switch__button {
    width: 56px;
    height: 48px;
  }
}
