/* =========================================================
   1) RESETARE GLOBALĂ
   ========================================================= */

/* Resetare de bază */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

/* =========================================================
   2) NAVBAR + MENIU + DROPDOWN + SEARCH
   ========================================================= */

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0074e4;
  color: white;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 50px;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger div {
  width: 26px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  overflow: visible;
}

/* Link-urile din meniu */
.nav-links {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  overflow: visible;
}

.nav-bar {
  overflow: visible;
}

.nav-links li a {
  padding: 10px 14px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* ---------- Navbar mobile ---------- */
@media (max-width: 768px) {
  .navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem;
  }

  .burger {
    display: flex !important;
  }

  .menu-container {
    width: 100%;
    order: 3;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    align-items: center;
    background-color: #0074e4;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    position: relative;
  }

  .nav-links li a {
    width: 100%;
    display: block;
    padding: 12px;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
  }

  .nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* ---------- Dropdown desktop ---------- */
@media (min-width: 769px) {
  .nav-links > .dd {
    position: relative;
  }

  .dd-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 3000;
  }

  .dd:hover .dd-menu,
  .dd:focus-within .dd-menu {
    opacity: 0;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ---------- Dropdown general ---------- */
.dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 12rem;
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  border-radius: 0.9rem;
  background: #0b66d6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s ease;
  z-index: 2000;
}

.dd:hover .dd-menu,
.dd:focus-within .dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dd-menu li a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  white-space: nowrap;
}

.dd-menu li a:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Dropdown mobile ---------- */
@media (max-width: 768px) {
  .dd-menu {
    position: static;
    width: 100%;
    min-width: auto;
    margin: 0;
    padding: 0.4rem 0 0.8rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: none;
  }

  .dd.open .dd-menu {
    display: block;
  }

  .dd-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }
}

/* ---------- Search în navbar ---------- */
.nav-search {
  position: relative;
  width: 240px;
}

.nav-search input {
  width: 100%;
  padding: 8px 14px;
  border-radius: 20px;
  border: 2px solid #ffdd57;
  outline: none;
  font-weight: 600px;
  background: white;
  color: #1b263b;
  transition: all 0.3s ease;
}

.nav-search input:focus {
  border-color: #1e90ff;
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.4);
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  display: none;
  max-height: 300px;
  overflow: auto;
  z-index: 5000;
  border-radius: 2px solid #1e90ff;
}

.search-results.show {
  display: block;
}

.search-item {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  color: #1b263b;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid #eee;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #1e90ff;
  color: white;
}

/* ---------- Navbar + search pe mobil ---------- */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-search {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }
}

/* =========================================================
   3) SECTIUNEA HOME
   ========================================================= */

/*Sectiunea home*/
#home {
  position: relative;
  width: 100%;
  height: 80vh;
  background-image: url("Bernabeu.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: white;
  justify-content: center;
}

.home-overlay {
  position: relative;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.home-overlay h1 {
  font-size: 4rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 2px 4px rgba(0, 0, 0, 0.8);
  animation: bounceTitle 2s infinite ease-in-out;
  display: inline-block;
}

@keyframes bounceTitle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

#home .home-overlay h1 {
  animation: bounceTitle 2.5s infinite ease-in-out;
}

/* =========================================================
   4) SECTIUNEA DESPRE
   ========================================================= */

/* Sectiunea despre */
#despre {
  background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.despre-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  max-width: 950px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease-in-out;
}

.despre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.despre-card h2 {
  text-align: center;
  color: #0052cc;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  border-bottom: 2px solid #cce5ff;
  padding-bottom: 10px;
  letter-spacing: 1px;
}

.despre-card p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #333;
}

.despre-card b {
  font-weight: bold;
  color: #1e90ff;
}

.despre-card i {
  color: #555;
}

.despre-card u {
  color: #0d47a1;
  text-decoration: underline;
}

.despre-card mark {
  background-color: #dff6ff;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.despre-card a {
  color: #0077cc;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.despre-card a:hover {
  color: #003366;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .despre-card {
    padding: 25px 20px;
  }

  .despre-card h2 {
    font-size: 1.8rem;
  }

  .despre-card p {
    font-size: 1.05rem;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/*Sfarsit sectiune despre*/

/* =========================================================
   5) GALERIE + MODAL IMAGINI
   ========================================================= */

/*Galerie*/
#galerie {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f8ff, #fff);
  text-align: center;
}

#galerie h2 {
  font-size: 2.8rem;
  color: #1e90ff;
  margin-bottom: 50px;
  animation: fadeInDown 0.8s ease-in-out;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in-out;
}

.gallery-item {
  perspective: 1000px;
  cursor: pointer;
}

.gallery-inner {
  position: relative;
  width: 100%;
  padding-top: 140%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.gallery-item:hover .gallery-inner {
  transform: rotateY(180deg);
}

.gallery-front,
.gallery-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.gallery-front {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.gallery-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-back {
  background: #1e90ff;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.gallery-back h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.gallery-back p {
  font-size: 1rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #galerie h2 {
    font-size: 2rem;
  }

  .gallery-back h3 {
    font-size: 1.2rem;
  }

  .gallery-back p {
    font-size: 0.9rem;
  }
}

.logo {
  max-height: 60px;
}

/*Modal pentru imagini*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ffdd57;
}

/* =========================================================
   6) CALENDAR ANTRENAMENTE
   ========================================================= */

#calendar {
  max-width: 500px;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #e0f7fa);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .day-name,
  .day {
    font-size: 0.7rem;
    padding: 6px 0;
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #1e90ff;
  color: white;
  border-radius: 10px 10px 0 0;
}

@media (max-width: 480px) {
  .calendar-days {
    font-size: 0.8rem;
  }

  .calendar-header h3 {
    font-size: 1rem;
  }

  .day {
    height: 40px;
    font-size: 0.9rem;
  }
}

.calendar-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.calendar-header button {
  background: #ffffff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.calendar-header button:hover {
  background: #ffdd57;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  color: #555;
}

.day-name {
  padding: 10px 10px;
  background: #f0f0f0;
}

#antrenamente h2 {
  text-align: center;
  margin-top: 20px;
  color: #1e90ff;
}

#calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.day {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.day:hover {
  background: #ffdd57;
  color: white;
  cursor: pointer;
}

.training-day {
  background: #87cefa;
  font-weight: bold;
  border: 2px solid #1e90ff;
}

.training-day:hover {
  background: #1e90ff;
  color: white;
}

.empty {
  background: transparent;
  border: none;
}

/* =========================================================
   7) ECHIPA
   ========================================================= */

#echipa {
  padding: 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#echipa h2 {
  font-size: 2rem;
  color: #1e90ff;
  margin-bottom: 20px;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.team-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background-color: #f0f8ff;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(30, 144, 255, 0.1);
  transform: skewX(-30deg);
  transition: left 0.5s ease;
}

.team-card:hover::before {
  left: 100%;
}

.team-photo {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}

.team-card h3 {
  font-size: 1.5rem;
  color: #1e90ff;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 1rem;
  color: #333;
  margin: 5px 0;
}

/* =========================================================
   8) MECIURI (TABEL)
   ========================================================= */

#meciuri {
  padding: 20px;
  background: #fff;
  text-align: center;
}

#meciuri h2 {
  font-size: 2rem;
  color: #1e90ff;
  margin-bottom: 20px;
}

.meciuri-container {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: #f9f9f9;
  padding: 15px;
}

#meciuri-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

#meciuri-table th,
#meciuri-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

#meciuri-table th {
  background: #1e90ff;
  color: white;
  text-transform: uppercase;
}

#meciuri-table tbody tr:nth-child(even) {
  background: #f2f2f2;
}

#meciuri-table tbody tr:hover {
  background: #ffdd57;
  color: white;
  transition: 0.3s ease;
}

.detalii-btn {
  padding: 6px 12px;
  background: #1e90ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.detalii-btn:hover {
  background: #124169;
}

@media (max-width: 768px) {
  .meciuri-container {
    overflow-x: auto;
  }

  #meciuri-table th,
  #meciuri-table td {
    padding: 8px;
    font-size: 0.9rem;
  }

  .detalii-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
  }
}

/* =========================================================
   9) TROFEE (SLIDER)
   ========================================================= */

#trofee {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1e90ff, #124169);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 30px auto;
}

#trofee h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.slider-container {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;   
  justify-content: center;
  gap: 14px;
  padding: 20px 70px;    
  text-align: center;
}

.slide img {
  width: 100%;
  max-width: 380px;      
  height: 220px;
  object-fit: contain;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin: 0 auto;        
  display: block;
}

.slide p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* Săgeți */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 26px;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 2;
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

.prev:hover,
.next:hover {
  background: rgba(255, 255, 255, 0.85);
  color: black;
}

/* Mobile */
@media (max-width: 768px) {
  #trofee {
    padding: 20px 12px;
  }

  .slide {
    padding: 14px 50px;
    gap: 10px;
  }

  .slide img {
    max-width: 260px;
    height: 170px;
  }

  .slide p {
    font-size: 0.95rem;
  }

  .prev,
  .next {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .prev {
    left: 8px;
  }

  .next {
    right: 8px;
  }
}

/* =========================================================
   10) TIERLIST + POPUP
   ========================================================= */

/*TierList*/
#tierlist {
  padding: 20px;
  text-align: center;
}

.tier-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tier {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 280px;
}

.tier h3 {
  background: #1e90ff;
  color: white;
  padding: 10px;
  border-radius: 10px 10px 0 0;
}

.tier-list {
  min-height: 100px;
  padding: 10px;
  border: 2px dashed #1e90ff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player{
  display: flex;
  align-items: center;
  gap: 12px;
  background: #87cefa;
  color: white;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.player img{
  width: 70px;         
  height: 70px;         
  border-radius: 50%;     
  object-fit: contain;  
  background: transparent;
  border: 2px solid white;
  flex-shrink: 0;
  display: block;
}

.tierlist-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.tierlist-popup-overlay.active {
  display: flex;
}

.tierlist-popup-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.tierlist-popup-box h4 {
  margin-top: 0;
}

.tierlist-popup-box button {
  margin: 5px 5px 0 0;
  padding: 10px 15px;
  background: #1e90ff;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.tierlist-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

@media (max-width: 600px) {
  .tier {
    width: 90%;
  }
}

/* =========================================================
   11) QUIZ
   ========================================================= */

/*quiz*/
#quiz {
  padding: 30px;
  background: linear-gradient(135deg, #1e90ff, #0f3a72);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin: 20px auto;
  max-width: 600px;
}

.quiz-title {
  color: white;
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.quiz-description {
  color: #b0c4de;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.quiz-question {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.answers-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.quiz-answer {
  display: block;
  padding: 15px;
  width: 100%;
  max-width: 350px;
  background: #1e90ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.quiz-answer:hover {
  background: #0f3a72;
  transform: scale(1.05);
}

.correct-answer {
  background: #28a745 !important;
  animation: correctAnimation 0.5s ease-in-out;
}

.wrong-answer {
  background: #dc3545 !important;
  animation: wrongAnimation 0.5s ease-in-out;
}

@keyframes correctAnimation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes wrongAnimation {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.quiz-complete {
  font-size: 1.5rem;
  color: white;
  margin-top: 20px;
}

.quiz-timer {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff3333, #ff6666);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  animation: pulse 0.6s infinite alternate ease-in-out;
  z-index: 10;
}

@media (max-width: 480px) {
  .quiz-timer {
    top: -20px;
    right: 20px;
    transform: none;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
    box-shadow: 0 6px 12px rgba(255, 51, 51, 0.5);
  }

  to {
    transform: scale(1.3);
    box-shadow: 0 12px 18px rgba(255, 51, 51, 0.7);
  }
}

.quiz-container h3 {
  color: white;
  text-transform: uppercase;
}

#quiz-container p {
  color: white;
  font-weight: bold;
}

#quiz-container b {
  color: #1e90ff !important;
  font-weight: bold;
}

/* =========================================================
   12) BLOG
   ========================================================= */

/*Blog*/
#blog {
  padding: 50px;
  background: linear-gradient(135deg, #1e90ff, #0f3a72);
  text-align: center;
  color: white;
  animation: fadeIn 1s ease-in-out;
}

#blog h2 {
  margin-bottom: 40px;
  font-size: 2.5rem;
  text-transform: uppercase;
  animation: slideInDown 1s ease-in-out;
}

.blog-text {
  color: black;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-in-out;
}

.blog-card:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 20px rgba(0, 0, 0 0.4);
}

.blog-img {
  width: 100%;
  height: 230px;
  object-fit: contain;
}

.blog-content {
  padding: 20px;
  text-align: left;
}

.blog-content h3 {
  font-size: 1.6rem;
  color: #1e90ff;
}

.blog-date {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

.blog-btn {
  display: inline-block;
  margin-bottom: 15px;
  padding: 10px 18px;
  background: #1e90ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.blog-btn:hover {
  background: #0f3a72;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   13) CONTACT + FOOTER
   ========================================================= */

/*Contact*/
#contact {
  padding: 50px;
  background: linear-gradient(135deg, #1e90ff, #0f3a72);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 40px auto;
  max-width: 900px;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.contact-info,
.contact-details {
  flex: 1;
}

.contact-title {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-description {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
}

.contact-btn {
  background: #ffdd57;
  color: black;
  padding: 12px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}

.contact-btn:hover {
  background: #ffc107;
  transform: scale(1.05);
}

.contact-details h3 {
  margin-top: 20px;
  font-size: 1.5rem;
  color: #ffdd57;
}

.contact-details ul {
  list-style: none;
  padding: 0;
}

.contact-details ul li {
  margin: 5px 0;
}

.contact-details a {
  color: #ffdd57;
  text-decoration: none;
  transition: color 0.3 ease;
}

.contact-details a:hover {
  color: #fff;
}

/* ---------- Footer ---------- */
footer {
  background: #1e90ff;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffdd57;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  font-size: 1.5rem;
  color: white;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
  color: #ffdd57;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================================
   14) STADION + FORMULAR BILETE
   ========================================================= */

#stadion {
  padding: 40px 20px;
  background: linear-gradient(135deg, #fdfdfd, #dff0ff);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  text-align: center;
}

.stadion-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
}

.stadion-img {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.bilet-form {
  max-width: 500px;
  width: 100%;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.bilet-form .form-group {
  margin-bottom: 15px;
}

.bilet-form label {
  display: block;
  font-weight: bold;
  color: #1e90ff;
  margin-bottom: 6px;
}

.bilet-form input,
.bilet-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

#pret {
  font-size: 1.2rem;
  color: #28a745;
}

.bilet-confirmare {
  margin-top: 25px;
  /*Adauga un spatiu exterior pentru top( in partea de sus) de 25px*/
  padding: 18px;
  /*Adauga un spatiu interior pentru fiecare latura(top, right, bottom si left) de 18px*/
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  font-weight: bold;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .stadion-container {
    flex-direction: column;
    align-items: center;
  }

  .stadion-img,
  .bilet-form {
    width: 100%;
  }
}

/* =========================================================
   15) SECTIUNEA PARALLAX (SPONSORI)
   ========================================================= */

/*Sectiunea Parallax*/
.parallax-section {
  background-image: url("Sponsori.png");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.parallax-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.parallax-subtitle {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
    background-size: contain;
    height: auto;
    padding: 60px 20px;
  }

  .parallax-title {
    font-size: 1.8rem;
  }

  .parallax-subtitle {
    font-size: 1rem;
  }
}

/* =========================================================
   16) EVOLUTIA SIGLEI
   ========================================================= */

/*Siglaa*/
.sigla-section {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #fff, #e8f0fc);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.sigla-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.title-sigla {
  font-size: 2rem;
  color: #4b1c2d;
  margin-bottom: 20px;
  /*Adauga un spatiu exterior pentru top( in partea de sus) de 25px*/
  text-align: center;
  margin-top: 30px;
}

.description-sigla {
  font-size: 1rem;
  color: #222;
  margin-bottom: 30px;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  font-weight: bold;
}

.image-sigla {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

.image-sigla-container {
  max-width: 1000px;
  margin: auto;
}

.image-sigla:hover {
  transform: scale(1.03);
}

/* =========================================================
   17) YOUTUBE
   ========================================================= */

/*Sectiune youtube*/
.youtube-row {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.youtube-row h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.youtube-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.youtube-video {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 300px;
}

.youtube-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   18) TIMELINE / ISTORIE
   ========================================================= */

/*Sectiunea timeline*/
.history-section {
  padding: 50px 20px;
  background: linear-gradient(to bottom, #e8efff, #fff);
}

.history-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #0a1d62;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: linear-gradient(to bottom, #0052d4, #4364f7, #6fb1fc);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse 2s infinite alternate;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item .content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  border-left: 5px solid #6fb1fc;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item.left .content {
  transform: translateX(-30px);
  text-align: center;
}

.timeline-item.right .content {
  transform: translateX(30px);
  text-align: center;
}

.timeline-item .year {
  font-size: 24px;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  color: #0052d4;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #0052d4, #6fb1fc);
  border: 4px solid white;
  box-shadow: 0 0 15px rgba(0, 82, 212, 0.6);
  border-radius: 50%;
  z-index: 10;
  animation: pulse 2s infinite alternate;
}

.timeline-item.left::before {
  right: -22px;
}

.timeline-item.right::before {
  left: -22px;
}

.timeline-item .content:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0% {
    background-position: 0% 50%;
    opacity: 0.8;
  }

  100% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .timeline::after {
    display: none;
  }

  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding: 10px 20px !important;
  }

  .timeline-item.left .content,
  .timeline-item.right .content {
    transform: none !important;
    text-align: left !important;
  }

  .timeline-item::before {
    display: none;
  }
}

/* =========================================================
   19) COMPARARE JUCĂTORI
   ========================================================= */

/*Sectiunea de comparare*/
.compare-section {
  padding: 50px 20px;
  background: #f4f8ff;
  text-align: center;
}

.compare-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: column;
}

.compare-selects {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}

.compare-selects select {
  min-width: 140px;
}

.compare-form select {
  min-width: 140px;
}

.compare-form select,
.compare-form button {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.compare-form button {
  background: #002366;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.compare-form button:hover {
  background: #001a4d;
}

#compare-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  gap: 20px;
}

.compare-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 280px;
  text-align: left;
  transition: transfrom 0.3s ease;
}

.compare-card:hover {
  transform: scale(1.05);
}

.compare-card h3 {
  margin-bottom: 10px;
}

.compare-card p {
  margin: 5px 0;
}

@media (max-width: 600px) {
  .compare-card {
    width: 100%;
  }
}

/* =========================================================
   20) FEEDBACK
   ========================================================= */

/*Feedback*/
#feedback {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #0a0a0a, #1c1c1c);
  color: #fff;
  text-align: center;
}

#feedback .container {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideUp 0.8s ease-in-out;
}

.start-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 10px;
}

.start-rating input {
  display: none;
}

.start-rating label {
  font-size: 48px;
  color: #444;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.start-rating label:hover,
.start-rating label:hover ~ label {
  color: gold;
  transform: scale(1.2);
}

.start-rating input:checked ~ label {
  color: #555;
}

.start-rating input:checked + label,
.start-rating input:checked + label ~ label {
  color: gold;
}

.feedback-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  background: #222;
  color: #fff;
  border: 1px solid #333;
  resize: vertical;
  outline: none;
  transition: background 0.3s;
}

.feedback-form textarea:focus {
  background: #333;
}

.feedback-form button {
  background: #ffd700;
  color: #111;
  padding: 12px 28px;
  border: none;
  border-radius: 40px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #ffd70088;
}

.feedback-form button:hover {
  background: #ffbf00;
  transform: scale(1.05);
}

.thanks-message {
  display: none;
  margin-top: 20px;
  font-size: 18px;
  color: #77dd77;
  animation: popIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .start-rating label {
    font-size: 36px;
  }

  .feedback-form textarea {
    font-size: 14px;
    padding: 10px;
  }

  .feedback-form button {
    font-size: 16px;
    padding: 10px 20px;
  }
}

/* =========================================================
   21) TESTIMONIALE
   ========================================================= */

.testimonials {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f0f2f5, #fff);
  text-align: center;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.testimonial {
  background: #fff;
  border-radius: 24px;
  padding: 40px 25px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial:hover {
  transform: translateY(-12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 20px;
  border: 4px solid #004aad;
  display: block;
  background-color: white;
  aspect-ratio: 1 / 1;
}

.testimonial p {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.5;
  min-height: 70px;
}

.testimonial span {
  display: block;
  font-weight: bold;
  color: #0073ff;
  font-size: 1rem;
  margin-top: 10px;
}

.testimonial:hover .testimonial-avatar {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .testimonial-avatar {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .testimonial-avatar {
    width: 90px;
    height: 90px;
  }

  .testimonial {
    padding: 30px 20px;
  }

  .testimonial p {
    font-size: 1rem;
  }
}

/* =========================================================
   22) SHOP + COȘ
   ========================================================= */

/*Shop*/
#shop {
  padding: 40px 20px;
  background: fixed #eaf2ff;
  border-radius: 20px;
  margin: 30px auto;
  max-width: 1100px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  color: #fff;
}

.shop-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  color: blue;
}

.shop-description {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #0000fe;
}

.shop-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.product-card {
  background: #1e8ffe;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
}

.product-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  margin-bottom: 10px;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.product-desc {
  font-size: 0.9rem;
  color: rgb(221, 221, 221);
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffdd57;
}

.shop-btn {
  background: #ffdd57;
  color: black;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-btn:hover {
  background: #b0870c;
  transform: scale(1.05);
}

.shop-cart {
  background: #1e90ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #230cdd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.cart-item button {
  margin-left: 8px;
  font-size: 0.8rem;
  padding: 4px 6px;
}

.cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  max-height: 260px;
  overflow-y: auto;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 10px;
  padding: top 8px;
  border-top: 1px solid #444;
}

.clear-cart-btn {
  background: #f31a05;
  color: #fff;
  margin-top: 10px;
}

.clear-cart-btn:hover {
  background: #b60f00;
}

.checkout-btn {
  background: #28a745;
  color: #fff;
  margin-top: 5px;
}

.checkout-btn:hover {
  background: #1c7c33;
}

.cart-message {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ffdd57;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   23) WIDGET MUZICĂ
   ========================================================= */

/*Muzica*/
.music-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
}

.music-fab {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  background: #ffdd57;
  color: #000;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  will-change: transform;
  animation: musicFloat 2.8s ease-in-out infinite;
}

@keyframes musicFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.music-fab:hover {
  background: #ffc107;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 0 10px rgba(255, 221, 87, 0.25));
}

.music-fab:active {
  animation: none;
  transform: translateY(-2px) scale(0.98);
}

.music-panel {
  width: min(320px, calc(100vw - 36px));
  margin-top: 10px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.music-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.music-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-status {
  font-size: 12px;
  opacity: 0.85;
}

.music-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}

.music-close:hover {
  background: rgba(255, 255, 255, 0.8);
}

.music-controls {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.music-btn {
  flex: 1;
  background: #f31a05;
  color: #fff;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.music-btn:hover {
  transform: scale(1.02);
  background: #b60f00;
}

.music-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.music-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.music-track-title {
  font-weight: 700;
  font-size: 14px;
  color: #1e90ff;
  white-space: nowrap;
}

/* =========================================================
   24) BACK TO TOP BUTTON
   ========================================================= */

/*Back to top button*/
#backToTop {
  position: fixed;
  bottom: 200px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #ffdd57;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: #ffc107;
  transform: scale(1.08);
}

#backToTop:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 80px;
  }
}

/* =========================================================
   25) FIXURI GLOBALE LAYOUT / OVERFLOW
   ========================================================= */

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  max-width: none !important;
}

.container,
.wrapper,
main {
  width: 100% !important;
  max-width: 100% !important;
}

img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}