/* Google Fonts importálása a szebb betűtípusért */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* CSS Változók a könnyű színezésért */
:root {
  --primary-color: #ffcc00; /* Sárga */
  --dark-bg-overlay: rgba(18, 18, 18, 0.85); /* Sötét háttér átmenettel */
  --card-bg: rgba(30, 30, 30, 0.9); /* Kártya háttér */
  --text-color: #e0e0e0;     /* Szöveg színe */
  --header-footer-bg: rgba(10, 10, 10, 0.8); /* Fejléc/lábléc háttér */
}

/* Alapbeállítások és animált háttér */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes backgroundZoom {
  0% { transform: scale(1.0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1.0); }
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: backgroundZoom 40s infinite ease-in-out;
}

body.bg-home::before {
  background-image: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d?q=80&w=2070&auto=format&fit=crop');
}

body.bg-musorok::before {
  background-image: url('/assets/img/musorok.jpg');
}

body.bg-rolunk::before {
  background-image: url('/assets/img/rolunk.jpg');
}

body.bg-elerhetoseg::before {
  background-image: url('/assets/img/elerhetoseg.jpg');
}


body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--dark-bg-overlay);
    z-index: -1;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer{
  position: relative;
  text-align: center;
    width: 100%;
  padding: 20px 0;
  background: #0a0a0a; /* sokkal sötétebb */
  border-top: 1px solid rgba(255, 215, 0, 0.25);
}

.footer-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* EZ a kulcs */
}

.footer-left {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}

.footer-banner {
  transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
  height: auto;
  opacity: 0.85;
}

.footer-banner:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: brightness(1.2);
}

.footer-center {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
    text-align: center;
  width: 100%;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .footer-left {
    position: static;
  }
}

/* Fejléc és Navigáció */
header {
  background-color: var(--header-footer-bg);
  padding: 15px 0;
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px); /* Üvegszerű hatás */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.logo-svg {
  width: 50px;
  height: 50px;
  margin-right: 25px;
}

nav ul { list-style: none; }
nav ul li { display: inline-block; margin-left: 25px; }
nav a { color: var(--text-color); text-decoration: none; font-size: 16px; font-weight: 700; padding-bottom: 5px; transition: color 0.3s ease, border-color 0.3s ease; }
nav a:hover { color: var(--primary-color); }
nav a.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }

/* Fő tartalom */
main {
  padding: 60px 0;
}

/* === MODERN LEJÁTSZÓ STÍLUSOK === */
.modern-player {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 40px;
    margin: 0 auto;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    width: 100%;
    max-width: 1100px;
}

.player-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.player-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.player-logo svg {
    width: 100%;
    height: 100%;
}

.player-text h2 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* ha TÚL hosszú, vége „…” */
}

.player-text p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    flex: 1 1 200px; 
    min-width: 0;    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* ha TÚL hosszú, vége „…” */
}

#visualizer {
    width: 100%;
    height: 120px;
    display: block;
    max-width: 600px; /* vagy ami szépen mutat */
    margin: 0 auto;
}

.player-controls {
    display: flex;
    justify-content: center;   /* KÖZÉPRE rendezi */
    align-items: center;
    gap: 25px;                  /* térköz a play-gomb és a stream-gombok között*/
    margin-top: 20px;
    /* Mindkét gombcsoport kis helyen marad */
}

.stream-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-pause-btn {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, background-color 0.3s;
}

.play-pause-btn:hover {
    transform: scale(1.1);
}

.play-pause-btn svg {
    width: 30px;
    height: 30px;
    fill: #121212;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
}

.buffer{
  background: rgba(255,255,255,.12);
}
.buffer__fill{
  background: rgba(255,255,255,.85);
}

/* Modern “ring” spinner – a főszínnel */
.win11-spinner{
  display: none;              /* JS kapcsolja */
  width: 22px;                /* kb. fele akkora */
  height: 22px;
  margin-left: 10px;
  border-radius: 50%;
  animation: spinner-rotate 0.9s linear infinite;

  /* a “C” alakú ív */
  background: conic-gradient(
    from 90deg,
    rgba(255,255,255,0) 0deg,
    rgba(255,255,255,0) 210deg,
    var(--primary-color) 360deg
  );

  /* lyuk a közepén -> ring */
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
}

@keyframes spinner-rotate{
  to { transform: rotate(360deg); }
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 5px;
    background: #444;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
}

#nowplaying {
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal; /* Ne egy sorba akarja kényszeríteni */
}

/* Általános kártya dizájn (a többi oldalhoz) */
.card {
  background-color: var(--card-bg);
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
h1, h2 { color: var(--primary-color); margin-bottom: 20px; font-weight: 700; }
h1 { font-size: 2.5rem; text-align: center; }
h2 { font-size: 2rem; }
p { margin-bottom: 15px; }

/* Lábléc */
footer {
  text-align: center;
  padding: 30px;
  margin-top: 40px;
  background-color: var(--header-footer-bg);
  color: #888;
  border-top: 1px solid #333;
  backdrop-filter: blur(8px);
}

.stream-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.stream-btn {
    width: 50px;
    height: 50px;
    background: #ffcc00;
    border-radius: 50%;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.stream-btn:hover {
    transform: scale(1.12);
    background: #ffd633;
}

.stream-btn.active {
    background-color: #ffaa00;
    color: #000;
    font-weight: bold;
}

.player-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* kis távolság */
    margin-top: 20px;
}

/* ===== Stream popup (kicsi, fekete, átlátszó, görgethető) ===== */
.modal-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
}

.modal{
  display:none;
  position:fixed;
  right: 24px;
  top: 110px;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  color: #fff;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modal__title{
  font-weight: 700;
  letter-spacing: .2px;
}

.modal__close{
  background: transparent;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
}
.modal__close:hover{
  background: rgba(255,255,255,.08);
}

.modal__body{
  padding: 10px 12px 12px;
}

/* max 5 elem látszódjon */
.modal__list{
  max-height: 220px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding-right: 6px;
}

.modal__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.modal__item-left{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}

.modal__item-title{
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.modal__item-sub{
  font-size: 12px;
  opacity: .75;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.modal__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: #fff;
  cursor:pointer;
  text-decoration:none;
  font-weight: 700;
  font-size: 12px;
}
.modal__btn:hover{
  background: rgba(255,255,255,.10);
}

/* ===== MOBIL FIX ===== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 1100px;
    padding: 0 16px;
  }

  /* FEJLÉC */
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: nowrap;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 18px;
    line-height: 1.2;
  }

  .logo {
    width: 72px !important;
    height: auto;
    margin-right: 12px !important;
  }

  nav {
    flex: 0 0 auto;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  nav ul li {
    display: block;
    margin-left: 0;
  }

  nav a {
    font-size: 14px;
    padding-bottom: 2px;
  }

  /* LEJÁTSZÓ */
  .modern-player {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
  }

  .player-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
  }

  .player-logo {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
  }

  .player-logo img {
    width: 76px !important;
    height: auto;
  }

  .player-text {
    min-width: 0;
    text-align: left;
  }

  .player-text h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  #nowplaying {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  #visualizer {
  width: 100% !important;
  height: 80px !important;
  min-height: 80px;
  display: block;
  opacity: 1;
  visibility: visible;
  margin: 8px 0 12px 0;
}

  .player-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  .volume-control {
    justify-content: center;
  }

  .stream-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-left: 0;
  }

  .stream-btn {
    width: 48px;
    height: 48px;
  }

  .play-pause-btn {
    width: 70px;
    height: 70px;
  }

  /* HISTORY */
  .card {
    padding: 20px 16px;
  }

  #history-container h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  .song-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
  }

  .song-item small {
    display: block;
    font-size: 12px;
  }

  /* FOOTER */
  .site-footer .container {
    position: relative;
    text-align: center;
    padding: 0 16px;
  }

  .footer-left {
    position: static;
    margin-bottom: 10px;
    justify-content: center;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-banner {
    width: 140px;
    height: auto;
  }

  .footer-center {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .modern-player {
    padding: 16px;
  }

  .player-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stream-buttons {
    width: auto;
  }
}



