* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

[v-cloak] {
    display: none;
}


/* Header styles */

.header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header h1 i {
    color: #64b5f6;
}

.btn-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #a6d1ff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}


/* Sidebar styles */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    background: rgba(20, 30, 50, 0.95);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-header h2 {
    margin: 0;
    color: #a6d1ff;
    font-size: 1.3rem;
}

.btn-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    color: #a6d1ff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.input-search {
    width: 90%;
    margin: 15px auto;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    font-size: 0.9rem;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.input-search:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.5);
}

.input-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.station-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.station-list li {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.station-list li:hover,
.station-list li.active {
    background: rgba(58, 74, 104, 0.6);
}

.station-list li img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.station-list li div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.station-list li div h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.genre {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 5px 0;
}

.listeners {
    font-size: 0.75rem;
    color: #7eb1ff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listeners i {
    font-size: 0.9rem;
}


/* Main player styles */

.main-player {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    position: relative;
}

.welcome {
    max-width: 500px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.welcome h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 500;
}

.welcome p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.player-info {
    max-width: 600px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.station-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.station-header img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.station-header>div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.station-header h2 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.3;
    color: #fff;
}

.station-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 15px 0;
}

.detail-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.detail-badge i {
    font-size: 0.9rem;
}

.detail-badge.genre {
    background: rgba(156, 39, 176, 0.2);
    border-left: 3px solid #9c27b0;
}

.detail-badge.listeners {
    background: rgba(76, 175, 80, 0.2);
    border-left: 3px solid #4caf50;
}

.detail-badge.country {
    background: rgba(33, 150, 243, 0.2);
    border-left: 3px solid #2196f3;
}

.detail-badge.bitrate {
    background: rgba(255, 193, 7, 0.2);
    border-left: 3px solid #ffc107;
}

.station-header .description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* particles */

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-15px) scale(0.95);
        opacity: 0.6;
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(255, 79, 79, 0.7);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(255, 79, 79, 0.9);
    }
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    background-color: rgba(100, 181, 246, 0.2);
    border: none;
    color: white;
    width: 52px;
    height: 52px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover {
    background-color: rgba(100, 181, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.control-btn:hover::before {
    opacity: 1;
}

.control-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.control-btn i {
    position: relative;
    z-index: 1;
}

.volume-level {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 50px;
    text-align: center;
}

.error {
    background: rgba(255, 79, 79, 0.2);
    padding: 15px;
    border-radius: 10px;
    color: white;
    margin-top: 25px;
    display: inline-block;
    border: 1px solid rgba(255, 79, 79, 0.5);
    backdrop-filter: blur(5px);
}

.error p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.error button {
    background: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #ff4f4f;
    font-weight: 700;
    transition: all 0.3s ease;
}

.error button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.error button:active {
    transform: translateY(1px);
}


/* Featured Artists Section - Estático */

.featured-artists {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative;
}

.artist-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    user-select: auto;
    cursor: default;
}

.artist {
    flex: 0 0 auto;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.artist:hover {
    transform: translateY(-5px) scale(1.05);
}

.artist-img-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(100, 181, 246, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.artist:hover .artist-img-container {
    border-color: rgba(100, 181, 246, 0.8);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.3);
}

.artist-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artist:hover .artist-img-container img {
    transform: scale(1.1);
}

.artist p {
    margin-top: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


/* Login styles */

.login-container {
    padding: 20px 15px 15px;
    margin: 0 15px 15px;
}

.shiny-login-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 25px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #3a5169;
    background: linear-gradient(to bottom, #4a6bff, #2a5298);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shiny-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
    background: linear-gradient(to bottom, #3a5bef, #1a3c7a);
}

.shiny-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shiny-login-btn i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.shiny-login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: none;
}

.shiny-login-btn:hover::before {
    left: 100%;
    transition: all 0.6s ease;
}

.shiny-login-btn.logged-in {
    background: linear-gradient(to bottom, #38ef7d, #11998e);
    border-color: #2a7d5a;
}

.shiny-login-btn.logged-in:hover {
    background: linear-gradient(to bottom, #2ed573, #0d7a5f);
}

.login-status-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    color: #38ef7d;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #38ef7d;
}


/* Custom scrollbar */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* Responsive styles */

@media (min-width: 768px) {
    .header {
        justify-content: flex-start;
        padding: 15px 30px;
    }
    .btn-menu {
        display: none;
    }
    .sidebar {
        position: relative;
        transform: none !important;
        width: 300px;
        height: 100vh;
    }
    #app {
        display: flex;
        min-height: 100vh;
    }
    .main-player {
        flex-grow: 1;
        overflow-y: auto;
        padding: 30px;
    }
    .player-info {
        padding: 30px;
    }
    .controls {
        gap: 15px;
    }
    .control-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    .artist {
        width: calc(20% - 20px);
    }
    .artist-img-container {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .station-details {
        gap: 6px;
    }
    .detail-badge {
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .station-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .station-header img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .controls {
        gap: 8px;
    }
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    .volume-level {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    .player-info {
        padding: 20px 15px;
    }
    .station-header img {
        width: 100px;
        height: 100px;
    }
    .particle-visualizer {
        height: 80px;
    }
    .artist {
        width: 100px;
    }
    .artist-img-container {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 360px) {
    .artist {
        width: 90px;
    }
    .artist-img-container {
        width: 70px;
        height: 70px;
    }
}

body {
    -webkit-user-select: none;
    /* Para Chrome, Safari y Opera */
    -moz-user-select: none;
    /* Para Firefox */
    -ms-user-select: none;
    /* Para Internet Explorer/Edge */
    user-select: none;
    /* Estándar */
}

img {
    -webkit-user-drag: none;
    /* Evitar arrastre en Chrome/Safari */
    -khtml-user-drag: none;
    /* Evitar arrastre en Konqueror */
    -moz-user-drag: none;
    /* Evitar arrastre en Firefox */
    -o-user-drag: none;
    /* Evitar arrastre en Opera */
    user-drag: none;
    /* Estándar */
    pointer-events: none;
    /* Opcional: desactiva eventos del mouse */
}


/* Agrega esto a tu CSS */

.particle-visualizer {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 20px 0;
}

#particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#particles-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}


/* fin de particles*/

#audio-visualizer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.time-info {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 20;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.time-info span {
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-indicator {
    color: #ff4f4f;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(255, 79, 79, 0.7);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(255, 79, 79, 0.9);
    }
}

@media (max-width: 768px) {
    .detail-badge {
        /* Aumentamos el padding vertical y el tamaño de fuente */
        padding: 12px 15px !important;
        /* Más grueso (antes era 8px 12px) */
        font-size: 0.95rem !important;
        /* Texto más grande */
        min-height: 48px;
        /* Altura mínima garantizada */
        /* Añadimos sombra y efecto de elevación */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        /* Mejor contraste */
        background-color: rgba(0, 0, 0, 0.3) !important;
        border-bottom-width: 4px !important;
        /* Borde más grueso */
    }
    /* Efecto hover para móvil (feedback táctil) */
    .detail-badge:active {
        transform: scale(0.98);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    /* Iconos más grandes y alineados */
    .detail-badge i {
        font-size: 1.2rem !important;
        margin-right: 10px;
        vertical-align: middle;
    }
    /* Texto más grueso */
    .detail-badge span {
        font-weight: 600;
        display: inline-block;
        vertical-align: middle;
    }
}


/* ===== ARTISTAS DESTACADOS PARA MÓVIL ===== */

@media (max-width: 768px) {
    .featured-artists {
        margin-top: 30px;
        padding: 0 10px;
    }
    .featured-artists h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        text-align: center;
        color: #fff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    .artist-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 15px;
        padding: 10px;
    }
    .artist {
        width: 100% !important;
        margin: 0 !important;
    }
    .artist-img-container {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto;
        border: 3px solid rgba(100, 181, 246, 0.7);
        transition: all 0.3s ease;
    }
    .artist p {
        font-size: 0.95rem;
        margin-top: 12px;
        font-weight: 600;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    /* Efecto hover mejorado */
    .artist:hover .artist-img-container {
        transform: scale(1.05);
        border-color: #64b5f6;
        box-shadow: 0 8px 20px rgba(100, 181, 246, 0.4);
    }
}


/* Para pantallas muy pequeñas (ej: iPhone SE) */

@media (max-width: 375px) {
    .artist-img-container {
        width: 80px !important;
        height: 80px !important;
    }
    .artist p {
        font-size: 0.9rem;
    }
}