:root {
  --background-color: #1a1a22;
  --text-color: #e8e4e1;
  --accent-color: #c9c3be;
  --modal-bg: rgba(32, 32, 40, 0.9);
  --border-color: rgba(232, 228, 225, 0.2);
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Inter", sans-serif;
  --font-mono: "Roboto Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
}

/* Başlangıç Durumları */
#main-hub,
.language-switcher,
#entry-content,
.modal {
  opacity: 0;
  visibility: hidden;
}

#language-prompt .lang-prompt-button {
  opacity: 0;
  visibility: hidden;
}

/* Kalıcı Dil Seçeneği */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1005;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px;
  display: flex;
  gap: 10px;
  width: fit-content;
}
.lang-option {
  padding: 5px 10px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s;
}
.lang-option.active {
  color: var(--background-color);
}
.lang-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: 45px;
  background: var(--accent-color);
  border-radius: 15px;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Giriş Ekranı */
#entry-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#language-prompt,
#entry-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#entry-content {
  flex-direction: column;
}

.lang-prompt-button {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  transition: opacity 0.3s;
}
.lang-prompt-button:hover {
  opacity: 1;
}

.entry-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 30px;
}
#enter-button {
  font-family: var(--font-serif);
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 10px 40px;
  font-size: 1.2rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background-color 0.4s, color 0.4s;
}
#enter-button:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

/* Ana Hub */
#main-hub {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.background-art {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://pieceofmymusic.com/assets/cover-art.png");
  background-size: cover;
  background-position: center 60%;
  opacity: 0.2;
  z-index: -2;
}

.scanlines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 3px;
  z-index: -1;
  pointer-events: none;
  animation: scanline-anim 10s linear infinite;
}
@keyframes scanline-anim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100px;
  }
}

.hub-header {
  text-align: center;
}
.header-title {
  font-size: 2.5rem;
  font-family: var(--font-serif);
}
.header-artist {
  font-size: 1.5rem;
  color: var(--accent-color);
  font-family: var(--font-serif);
}

#trailer-button-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
#play-trailer-button {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 15px 30px;
  letter-spacing: 2px;
  border: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
#play-trailer-button:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.hub-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hub-button {
  font-family: var(--font-sans);
  font-weight: 300;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 12px 25px;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s;
}
.hub-button:hover {
  background-color: rgba(232, 228, 225, 0.1);
  border-color: rgba(232, 228, 225, 0.8);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1010;
}

.modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-content.video-modal {
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}
.video-modal .modal-body {
  padding: 0;
  line-height: 0;
}
.video-modal video {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: move;
}
.modal-title {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.close-button {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 25px;
  overflow-y: auto;
}

.tracklist-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.tracklist-grid span:nth-child(odd) {
  color: var(--accent-color);
  text-align: right;
}

.about-text .about-subtitle {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  margin-top: 20px;
}
.about-text .about-subtitle:first-child {
  margin-top: 0;
}
.about-text p {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
}

.credits-text {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 2;
  text-align: center;
}

@media (max-width: 768px) {
  .language-switcher {
    top: 15px;
    right: 15px;
  }
  .hub-header {
    padding-top: 0;
  }
  .header-title {
    font-size: 2rem;
  }
  #play-trailer-button {
    font-size: 1.5rem;
  }
  .hub-nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-bottom: 0;
    width: 100%;
  }
  .hub-button {
    width: 80%;
    text-align: center;
  }
  .tracklist-grid {
    grid-template-columns: auto 1fr;
  }
  .modal-body {
    padding: 20px;
  }
}