
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 font-family: Arial, sans-serif;
 color: #fff;
 background: none;
}


html, body {
 width: 100%;
 height: 100%; 
 margin: 0 auto;
}


body {
 display: flex;
 flex-direction: column;

 
 height: calc(var(--vh, 1vh) * 100);
}

.bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/background.webp'); /* tu imagen */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; /* mantiene proporción */
  z-index: -1; /* detrás de todo */
}


main {
 flex: 1;
 display: flex;
 flex-direction: column;
 margin: 0 auto;
 width: 100%;
 padding-top: 190px; 
}
/* =========================
 Header completo fijo NO TOCAR
========================= */
.site-header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 999;
 display: flex;
 flex-direction: column;
 color: #fff;
}


.header-content {
 display: flex;
 flex-direction: row;
 justify-content: center;
 align-items: center;
 padding: 15px 20px;
 background-color: #222;
}

.logo-title {
 display: flex;
 flex-direction: row;
 align-items: center;
 gap: 5px;
}

.logo {
 height: 55px;
 width: auto;
}

.header-content h1 {
 font-family: 'Libre Franklin', sans-serif;
 font-size: 1.7rem;
 font-weight: 700;
 color: #facc15;
 text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
 margin-top: 1px;
}

/* =========================
 Sección Buscador debajo del logo
========================= */
#search-container {
 width: 100%;
 display: flex;
 flex-direction: column;
 justify-content: center;
 padding: 0;
}

.caja-search {
 width: 100%;
 max-width: 500px;
 display: flex;
 flex-direction: column;
 margin: 0 auto;
}

#radio-search {
 width: 100%;
 padding: 12px 20px;
 border: none;
 border-radius: 5px;
 background-color: #a36b00;
 color: #ffffff;
 font-size: 16px;
 outline: none;
 transition: all 0.3s ease;
}

#radio-search::placeholder {
 color: #b3b3b3;
}

#radio-search:focus {
 background-color: #493000;
}


@media (max-width: 600px) {
 .logo {
 height: 45px;
 }

 .logo-title {
 flex-direction: column;
 align-items: end;
 gap: 0;
 }

 .header-content h1 {
 font-size: 1.2rem;
 line-height: 1px;
 margin-top: -2px;
 }

 #radio-search {
 width: 100%;
 }
}
/* ============================
 Footer Player
 ============================ */
.radio-footer {
 position: fixed;
 bottom: 0;
 right: 0;
 left: 0;
 width: 100%;
 max-width: 1200px;
 background: #000;
 border-top: 2px solid #333;
 padding: 0.8rem 1rem;
 z-index: 9999;
 margin: 0 auto;
 transform: translateY(0);
 opacity: 1;
 transition: transform 0.4s ease, opacity 0.4s ease;
}

.radio-footer.minimized {
 transform: translateY(120%);
 opacity: 0;
 pointer-events: none;
}


#close-btn {
 position: absolute;
 top: -28px;
 left: 5px;
 background: #eab308;
 border: none;
 color: #fff;
 font-size: 24px;
 cursor: pointer;
 z-index: 10000;
 padding: 0 5px;
 border-radius: 4px;
}


#maximize-btn {
 position: fixed;
 bottom: 10px;
 left: 10px;
 background: #facc15;
 border: none;
 color: #000;
 font-size: 24px;
 cursor: pointer;
 width: 40px;
 height: 40px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 z-index: 10000;
 transition: opacity 0.3s ease;
 opacity: 0;
}

/* ============================
 Layout del player
 ============================ */
.radio-player {
 display: grid;
 grid-template-columns: 1fr auto 1fr;
 align-items: center;
 gap: 1rem;
 width: 100%;
 margin: 0 auto;
}

/* ============================
 Columna izquierda (logo + metadatos)
 ============================ */
.radio-info {
 display: flex;
 align-items: center;
 gap: 0.8rem;
}

.container-logo {
 flex: none;
 display: flex;
 align-items: center;
}

.radio-logo {
 width: 50px;
 height: 50px;
 border-radius: 8px;
 object-fit: cover;
 background: #222;
}

.metadatos-contenedor {
 display: flex;
 flex-direction: column;
 justify-content: center;
 line-height: 1.2;
 overflow: hidden;
}

.radio-title {
 font-weight: bold;
 font-size: 1rem;
 color: #fff;
 line-height: 1.1;
 margin: 0;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.metadata-wrapper {
 display: flex;
 flex-direction: column;
 gap: 0.2rem;
}

.metadata-container {
 width: 100%;
 max-width: 375px;
 overflow: hidden;
 position: relative;
 white-space: nowrap;
}


#metadata {
 display: inline-block;
 font-size: 0.9rem;
 color: #aaa;
 margin: 0;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 transition: transform 0.3s ease;
}

/* ============================
 Columna central (Play/Pause)
 ============================ */
.radio-controls {
 display: flex;
 justify-content: center;
}

.control-btn {
 background: #facc15;
 border: none;
 border-radius: 50%;
 width: 50px;
 height: 50px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 1.7rem;
 cursor: pointer;
 transition: background 0.3s;
}

.control-btn:hover {
 background: #eab308;
}

.control-btn i.fas.fa-play {
 margin-left: 5px;
}

/* ============================
 Columna derecha (Volumen)
 ============================ */
.radio-volume {
 display: flex;
 align-items: center;
 justify-content: flex-end;
 gap: 0.5rem;
}

.radio-volume input {
 width: 100px;
}

/* ============================
 Responsive
 ============================ */
@media screen and (max-width: 768px) {
 .radio-player {
 display: flex;
 justify-content: space-between;
 align-items: center;
 }

 .radio-volume {
 display: none;
 }

 .radio-info {
 gap: 0.5rem;
 max-width: 250px;
 }

 .metadata-container {
 max-width: 180px;
 }
}

.radio-directory {
 position: sticky;
 flex: 1;
 flex-direction: column;
 max-width: 1200px;
 margin: 0 auto;
 width: 100%;
 padding: 0 1rem;
}

.radio-directory h2 {
 margin: 0 auto;
 color: rgb(233, 178, 0);
 text-align: center;
 font-weight: 200;
 background-color: #222;
 font-size: 1.3rem;
 padding: 5px;
 width: 300px;
 border-radius: 5px;
}

.radio-card h3 {
 font-weight: 100;
 font-size: 12px;
 margin-top: -7px;
}

@media (max-width: 600px) {
 .radio-directory {
 width: 100%;
 padding: 0 1rem;
 display: flex;
 flex-direction: column;
 
 position: sticky;
 padding-bottom: 120px;
 }

 .radio-directory h2 {
 font-size: 1rem;
 width: 250px;
 }
}


.radio-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(auto, 150px));
 gap: 1rem;
 padding: 1rem;
 justify-content: center;
 margin: 0 auto;
}


.radio-card {
 background: #1e1e1e;
 border-radius: 12px;
 text-align: center;
 padding: 0.2rem;
 transition: transform 0.2s;
 width: 100%;
}

.radio-card:hover {
 transform: scale(1.03);
}

.radio-card img {
 width: 100%;
 height: 80px;
 object-fit: cover;
 border-radius: 8px;
}

.radio-card button {
 background: #facc15;
 border: none;
 border-radius: 50px;
 cursor: pointer;
 font-weight: bold;
 font-size: 1.5rem;
 width: 40px;
 height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
 transform: translateY(-15px);
 margin: 0 auto;
}

.radio-card i.fa.fa-play {
 display: block;
 line-height: 1;
 text-align: center;
 margin-left: 3px;
}


.radio-card button:hover {
 background: #eab308;
}


@media (max-width:768px){
 .radio-grid {
 grid-template-columns: repeat(3, 1fr);
 gap: .5rem;
 padding: .2rem;
 margin-top: 5px;
 }

 .radio-card {
 padding: 0.2rem;
 }

 .radio-card h3 {
 margin-bottom: 5px;
 margin-top: -10px;
 }
}

.pagination {
 width: 100%;
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 0.5rem;
 padding: 1rem 0;
 flex-wrap: wrap;
 z-index: 10;

 margin-top: auto; 
}

.pagination button {
 background: #1e1e1e;
 color: #facc15;
 border: none;
 padding: 0.5rem 0.8rem;
 border-radius: 6px;
 cursor: pointer;
 font-size: 1rem;
 transition: background 0.2s, transform 0.2s;
}

.pagination button:hover {
 background: #eab308;
 transform: scale(1.1);
}

.pagination button:disabled {
 background: #444;
 color: #999;
 cursor: not-allowed;
}

.pagination button.active {
 font-weight: bold;
 background: #facc15;
 color: #1e1e1e;
}


@media (max-width: 480px) {
 .pagination {
 padding: 0.8rem 0;
 }

 .pagination button {
 padding: 0.4rem 0.7rem;
 font-size: 0.75rem;
 }
}

.metadata-container {
 overflow: hidden;
 white-space: nowrap;
 width: 100%;
 max-width: 375px; 
 position: relative;
}

#metadata {
 display: inline-block;
 font-size: 0.9rem;
 color: #aaa !important;
 margin: 0;
 white-space: nowrap;
 position: relative;
 top: 0;
 transition: transform 0.1s linear;
}


@media screen and (max-width: 768px) {
 .metadata-container {
 max-width: 200px; 
 }
}

.filter-buttons {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-bottom: 20px;
 margin-top: 15px;
 justify-content: center;
}


.filter-buttons button {
 background-color: #ffc107; 
 color: #000;
 border: none;
 border-radius: 5px;
 padding: 5px 8px;
 cursor: pointer;
 font-size: 0.95rem;
 font-weight: 600;
 transition: all 0.3s ease;
}


.filter-buttons button:hover {
 background-color: #ffb300;
 transform: scale(1.05);
}


.filter-buttons button.active {
 background-color: rgb(14, 14, 14);
 color: rgb(255, 255, 255);
 box-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}


@media (max-with: 480px) {
 
.filter-buttons {
 margin-top: 5px;
}
}
.pie-pagina {
 background-color: #111;
 color: #fff;
 text-align: center;
 font-family: Arial, sans-serif;
 padding: 20px 0;
 font-size: 16px;
}

.pie-pagina-contenedor {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 15px;
}


@media (max-width: 768px) {
 .pie-pagina {
 padding: 15px 0;
 font-size: 14px;
 }
}


@media (max-width: 480px) {
 .pie-pagina {
 padding: 10px 0;
 font-size: 12px;
 }
}
