:root {
    --primary-orange: #ff6b00;
    --secondary-orange: #ff8533;
    --primary-purple: #4a148c; /* Color del logo */
    --secondary-purple: #7b1fa2;
    --dark-orange: #e65100;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f0f0f;
    overflow: hidden;
    position: relative;
}

/* Fondos Líquidos */
.liquid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #1a1a1a, #0a0a0a);
}

.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-purple);
    top: -150px;
    left: -150px;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-orange);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.sphere-3 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary-purple);
    top: 50%;
    left: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: move 25s infinite alternate;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* iPhone Frame Styles */
.iphone-wrapper {
    position: relative;
    width: 360px;
    height: 740px;
    background: #000;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 
        0 0 0 4px #2c2c2c, 
        0 0 0 6px #1a1a1a,
        0 30px 60px rgba(0,0,0,0.8);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    max-width: 95vw;
}

@media (max-height: 760px) {
    .iphone-wrapper {
        transform: scale(0.9);
    }
}

@media (max-width: 580px) {
    body {
        padding: 0;
    }

    .iphone-wrapper {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        border-radius: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .iphone-wrapper::after,
    .dynamic-island,
    .side-button {
        display: none !important;
    }
    
    .player-container {
        border-radius: 0;
        padding: 2.5rem 1.2rem;
        height: 100vh;
    }
}

.iphone-wrapper:hover {
    transform: scale(1.02);
}

/* Screen reflection effect */
.iphone-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(125deg, rgba(255,255,255,0.05) 0%, transparent 40%, rgba(255,255,255,0.02) 60%, transparent 100%);
    pointer-events: none;
    z-index: 21;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 25;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
}

.dynamic-island::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #080808;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.2);
}

/* Side Buttons */
.side-button {
    position: absolute;
    background: #222;
    border-radius: 2px;
}

.power-btn {
    right: -11px;
    top: 160px;
    width: 4px;
    height: 60px;
}

.vol-up {
    left: -11px;
    top: 140px;
    width: 4px;
    height: 40px;
}

.vol-down {
    left: -11px;
    top: 190px;
    width: 4px;
    height: 40px;
}

/* Glassmorphism Container (Screen) */
.player-container {
    width: 100%;
    height: 100%;
    padding: 2.5rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: none;
    border-radius: 40px;
    text-align: center;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.player-container::-webkit-scrollbar {
    display: none;
}

.logo-area {
    margin-bottom: 2rem;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 15s0px;
}

.logo-img {
    max-width: 220px;
    height: auto;
    border-radius: 20px; /* Bordes redondeados añadidos */
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-placeholder {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-orange));
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(74, 20, 140, 0.4);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

.info-area h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.info-area p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Controls and Interactive Area */
.interactive-area {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
}

.play-btn {
    width: 100px;
    height: 100px;
    background: var(--primary-orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    z-index: 100;
}

.play-btn.is-playing {
    position: absolute;
    top: -10px;
    left: 0;
    width: 45px; /* Más pequeño */
    height: 45px;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.play-btn:hover {
    transform: scale(1.05);
    background: var(--secondary-orange);
}

.play-btn.is-playing:hover {
    transform: scale(1.1);
}

.play-btn svg {
    width: 40px;
    height: 40px;
    fill: #fff;
    transition: all 0.3s ease;
}

.play-btn.is-playing svg {
    width: 20px;
    height: 20px;
}

/* iPhone Buttons and Screens handled above */

/* Visualizer */
.visualizer-wrapper {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visualizer {
    height: 50px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    justify-content: center;
}

.bar {
    width: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
    height: 5px;
    transition: height 0.2s ease;
}

.status-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
}

.listeners-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
}

.now-playing {
    margin-top: 1rem;
    min-height: 60px;
}

#songTitle {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#songArtist {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    display: block;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Compartir */
.share-area {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.share-area p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-item {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.share-item svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.share-item:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.1);
}

.share-item.watsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.share-item.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-item.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #cc2366;
}
