* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: var(--bg-color);
    color: #ffffff;
    height: 100dvh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden; /* Evita el scroll en PWA para un look nativo */
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background-color: var(--bg-color);
}

/* Header & Player View */
.player-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.player-view:not(.active) {
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.header {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.app-logo {
    max-width: 80%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.app-title {
    font-size: 2rem;
    font-weight: 800;
}

.status-indicator {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator.live {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-indicator.offline {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Play Button */
.controls-wrapper {
    margin-bottom: 2rem;
}

.btn-play {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background-color: var(--btn-color);
    color: var(--bg-color);
    font-size: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play:active {
    transform: scale(0.95);
}

/* Secondary Button */
.secondary-controls {
    min-height: 40px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Views (News & Promos) */
.modal-view {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background-color: var(--bg-color);
    z-index: 20;
    transition: top 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.modal-view.open {
    top: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Bottom Nav */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 30;
    backdrop-filter: blur(10px);
}

.nav-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 33%;
    height: 100%;
    justify-content: center;
    transition: color 0.2s;
}

.nav-btn.active {
    color: var(--btn-color);
}

.nav-btn i {
    font-size: 1.5rem;
}

.nav-btn span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* News Cards */
.news-card {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
}
.news-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.news-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.news-cat {
    font-size: 0.7rem;
    color: var(--btn-color);
    text-transform: uppercase;
}
.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Promo Cards */
.promo-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.promo-img {
    width: 100%;
    height: auto;
    display: block;
}
.promo-title {
    padding: 0.8rem;
    background: rgba(0,0,0,0.5);
    font-size: 0.9rem;
    text-align: center;
}

/* Visualizer (Eq) */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 2rem;
}

.vis-bar {
    width: 6px;
    background-color: var(--btn-color);
    border-radius: 3px;
    animation: eq-bounce 1s infinite alternate ease-in-out;
}

.vis-bar:nth-child(1) { height: 30%; animation-delay: 0.1s; }
.vis-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.vis-bar:nth-child(3) { height: 60%; animation-delay: 0.0s; }
.vis-bar:nth-child(4) { height: 80%; animation-delay: 0.4s; }
.vis-bar:nth-child(5) { height: 40%; animation-delay: 0.2s; }

@keyframes eq-bounce {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

.loader {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 2rem 0;
}
