html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  background-color: #0d0d1a;
  background-image: url('../../assets/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #eaeaea;
  font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

button,
input,
select,
textarea {
  font-family: 'Outfit', sans-serif;
}

.container {
  width: 100%;
  height: 100vh;
  max-width: 1920px;
  display: flex;
  flex-direction: column;
  padding: 10px clamp(20px, 10vw, 180px);
  box-sizing: border-box;
  position: relative;
  transition: transform 0.1s;
}

/* --- ANIMÁLT TOOLTIP ÉS SZÖVEG CSONKÍTÁS --- */
.has-tooltip {
  position: relative;
}
.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(15, 23, 42, 0.98);
  color: #4cc9f0;
  border: 1px solid rgba(197, 160, 89, 0.8);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  z-index: 10000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
  text-shadow: none;
  letter-spacing: normal;
  text-transform: none;
}
.has-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(197, 160, 89, 0.8) transparent transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  z-index: 10001;
}
.has-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}
.has-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

.tooltip-bottom::after {
  bottom: auto;
  top: 100%;
  transform: translateX(-50%) translateY(-5px);
}
.tooltip-bottom::before {
  bottom: auto;
  top: 100%;
  transform: translateX(-50%) translateY(-5px);
  border-color: transparent transparent rgba(197, 160, 89, 0.8) transparent;
}
.tooltip-bottom:hover::after {
  transform: translateX(-50%) translateY(8px);
}
.tooltip-bottom:hover::before {
  transform: translateX(-50%) translateY(2px);
}

.truncate-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  vertical-align: middle;
}

/* --- PREMIUM HANGERŐSZABÁLYZÓ DIZÁJN ÉS ANIMÁCIÓ --- */
.bottom-left-controls {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.perf-floating-btn {
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  padding: 0;
}

.perf-floating-btn:hover {
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6), 0 0 15px rgba(197, 160, 89, 0.2);
  transform: translateY(-2px);
}

.volume-control {
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 0px;
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.03);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  max-width: 44px;
  overflow: hidden;
  white-space: nowrap;
}

.volume-control:hover {
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.6),
    0 0 15px rgba(197, 160, 89, 0.2);
  transform: translateY(-2px);
  max-width: 240px;
  padding: 8px 16px;
  gap: 12px;
}

.volume-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.volume-btn:hover {
  transform: scale(1.15);
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  width: 0;
  transition:
    opacity 0.3s ease,
    width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
}

.volume-control:hover .slider-wrapper {
  opacity: 1;
  width: 150px;
  pointer-events: auto;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c5a059;
  border: 1.5px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.8);
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  background: #e94560;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.9);
}

.volume-percentage {
  font-size: 0.85rem;
  font-weight: 800;
  color: #c5a059;
  min-width: 38px;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
