:root {
  --red: #ff0015;
}

/* -----------------------------
  GENEL AYARLAR
----------------------------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
  background: #121212;
  overflow-x: hidden;  /* Yatay taşmayı önler */
  scroll-behavior: smooth;
  visibility: visible;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Görsellerin taşmasını önle */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------
  NAVBAR
----------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 20px;
  background-color: transparent;
  backdrop-filter: none;
  transition: top 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
  z-index: 1000;
  gap: 10px;
  box-sizing: border-box;
}

nav.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

nav.hide {
  top: -100px;
}

/* -----------------------------
  LOGO - Sol
----------------------------- */
#center-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: var(--red);
  letter-spacing: 2px;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
  white-space: nowrap;
  user-select: none;
}

/* -----------------------------
  ORTA MENÜ
----------------------------- */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 200;
  text-transform: uppercase;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch; /* iOS kaydırma iyileştirme */
}

.main-nav a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--red);
}

/* -----------------------------
  SAĞ MENÜ
----------------------------- */
.right-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  white-space: nowrap;
  min-width: 100px;
  margin-right: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

/* -----------------------------
  USER BUTTON
----------------------------- */
#userBtn {
  visibility: hidden;
  width: 24px;
  height: 24px;
  display: inline-block;
}

/* -----------------------------
  KONUM BUTONU
----------------------------- */
.location-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 16px;
  font-weight: 500;
  padding: 0;
  outline: none;
}

/* -----------------------------
  KONUM LİSTESİ
----------------------------- */
.location-list {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #222;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  z-index: 1000;
}

.location-list a {
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
}

.location-list a:hover {
  text-decoration: underline;
}

.location-list.show,
.location-list:not(.hidden) {
  display: flex;
}

.hidden {
  display: none !important;
}

/* -----------------------------
  DİL SEÇİCİ
----------------------------- */
#language-switcher {
  display: flex;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--red);
  user-select: none;
  margin-right: -40px; /* sağa yasla */
  padding-right: 0 !important;
  box-sizing: border-box;
}

.lang-btn {
  cursor: pointer;
  padding: 0 5px;
  color: #eee;
  background: none;
  border: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: #ffffff;
}

.lang-separator {
  color: #eee;
  padding: 0 4px;
}

/* -----------------------------
  Video detaylar için özel stiller
----------------------------- */
.details-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 30px;
  width: 100%;
  box-sizing: border-box;
  color: white;
  font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
  background: rgba(0, 0, 0, 0.6);
  min-height: 150px;
  flex-wrap: wrap; /* önemli: küçük ekranlarda sar */
  gap: 15px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Soldaki 3 satırlık metin */
.details-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  flex-basis: 30%;
  font-weight: 700;
  font-size: 22px; /* Daha büyük yazı */
  text-transform: uppercase;
  line-height: 1.3;
  min-width: 280px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Ortadaki kırmızı büyük başlık */
.details-center {
  flex-basis: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.film-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--red); /* Kırmızı */
  margin: 0;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  user-select: none;
}

/* Sağdaki garanti metni */
.details-right {
  flex-basis: 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 20px; /* Daha büyük */
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  padding-left: 15px;
  min-width: 280px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Sağ alt köşedeki "Click for More" */
.details-bottom {
  position: absolute;
  bottom: 15px;
  right: 20px;
}

.click-more {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  color: #fff;
  background: rgba(230, 0, 0, 0.85);
  padding: 6px 14px;
  border-radius: 5px;
  user-select: none;
  transition: background-color 0.3s ease;
}

.click-more:hover {
  background: var(--red);
}

/* -----------------------------
  Responsive iyileştirme
----------------------------- */

@media (max-width: 1024px) {
  nav {
    height: 64px;
    padding: 0 14px;
  }

  #center-logo {
    font-size: 22px;
  }

  .main-nav {
    gap: 10px;
    font-size: 13px;
  }

  .right-menu {
    gap: 12px;
    min-width: 110px;
  }

  #language-switcher {
    font-size: 13px;
  }

  .lang-btn {
    font-size: 13px;
    padding: 3px 8px;
  }

  .location-icon {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  nav {
    height: 60px;
    padding: 0 10px;
  }

  #center-logo {
    font-size: 20px;
  }

  .main-nav {
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .main-nav a {
    white-space: normal;
  }

  .right-menu {
    gap: 10px;
    min-width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #language-switcher {
    font-size: 12px;
    gap: 6px;
  }

  .lang-btn {
    font-size: 12px;
    padding: 3px 6px;
  }

  .location-icon {
    font-size: 15px;
  }

  /* Mobil/tabletde konum listesini ekran genişliğine göre yap */
  .location-list {
    position: fixed;
    top: 60px; /* navbar altı */
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    z-index: 1200;
  }
}

@media (max-width: 480px) {
  nav {
    height: 56px;
    padding: 0 8px;
  }

  .main-nav {
    gap: 6px;
    font-size: 11px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .main-nav a {
    white-space: normal;
  }

  #center-logo {
    font-size: 18px;
  }

  .right-menu {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: auto;
  }

  #language-switcher {
    font-size: 11px;
    gap: 5px;
  }

  .lang-btn {
    font-size: 11px;
    padding: 2px 5px;
  }

  .location-icon {
    font-size: 14px;
  }

  .location-list {
    top: 55px;
    left: 5px;
    right: 5px;
    padding: 10px 14px;
    border-radius: 8px;
  }
}