:root {
    --red: #e71d23;
    --dark-red: #c60c30;
    --blue: #2a75bb;
    --yellow: #ffcb05;
    --dark-yellow: #c7a008;
    --black: #3c3c3c;
    --white: #f8f8f8;
    --screen-color: #9bbc0f; /* Color más auténtico de Game Boy */
    --screen-border: #4d4d4d;
    --light-shadow: rgba(255, 255, 255, 0.3);
    --dark-shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    background-color: #f5f5f5;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    z-index: -10;
  }
   
  .pokeball {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 50%, #ff0000 50%, #ff0000 100%);
    border: 3px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0.5;
    z-index: -5;
  }
  
  .pokeball:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
    z-index: 1;
    transform: translateY(-50%);
  }
  
  .pokeball:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
    border: 3px solid #333;
    z-index: 2;
    transform: translate(-50%, -50%);
  }
  
  .pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -8;
  }
  
  .pokeball-large {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 0, 0, 0.05) 50%, rgba(255, 0, 0, 0.05) 100%);
    border: 5px solid rgba(51, 51, 51, 0.05);
    z-index: -9;
    animation: rotate 30s linear infinite;
  }
  
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/JFvl5DF.png');
    background-size: 200px;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

.pokemon-stats-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.pokemon-stats-list li {
    margin-bottom: 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-name {
    display: inline-block;
    width: 100px;
    text-transform: capitalize;
    color: var(--dark-red);
    font-size: 0.7rem;
    position: relative;
    z-index: 1;
}

.stat-value {
    display: inline-block;
    width: 35px;
    text-align: right;
    margin-right: 10px;
    font-weight: bold;
    color: var(--black);
    text-shadow: 1px 1px 0 var(--light-shadow);
}

.stat-bar-container {
    display: inline-block;
    width: 150px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--screen-border);
}

.stat-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    border-radius: 4px;
    position: relative;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
                            rgba(255,255,255,0.2) 0%, 
                            rgba(255,255,255,0) 100%);
}

.pokedex-container {
    width: 100%;
    max-width: 500px;
    transform: scale(0.3);
    transform-origin: center top; 
    background: linear-gradient(145deg, var(--red) 0%, var(--dark-red) 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 15px 12px rgba(0, 0, 0, 0.22),
        inset 0 -5px 15px var(--dark-red),
        inset 0 5px 15px var(--light-shadow);
    overflow: hidden;
    border: 10px solid var(--black);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: pokedexAppear 0.8s ease-out forwards;
}

@keyframes pokedexAppear {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.pokedex-header {
    background: linear-gradient(to bottom, var(--dark-red) 0%, #a00820 100%);
    padding: 18px;
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--black);
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5);
}

.pokedex-header h1 {
    color: var(--yellow);
    text-shadow: 
        3px 3px 0 var(--black),
        -1px -1px 0 var(--light-shadow);
    font-size: 2rem;
    letter-spacing: 3px;
    transform: perspective(500px) rotateX(5deg);
    transition: transform 0.3s;
}

.pokedex-header h1:hover {
    transform: perspective(500px) rotateX(0deg) scale(1.03);
}

.lights {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.light {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid var(--black);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s;
}

.light::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    top: 4px;
    left: 6px;
    transform: rotate(45deg);
}

.light.red {
    background: radial-gradient(circle at 30% 30%, #ff8a8a, #ff5a5a 40%, #ff0000 70%);
    animation: blinkLight 3s infinite alternate;
}

.light.yellow {
    background: radial-gradient(circle at 30% 30%, #ffff8a, #ffff5a 40%, #ffff00 70%);
    animation: blinkLight 4s 0.5s infinite alternate;
}

.light.green {
    background: radial-gradient(circle at 30% 30%, #8aff8a, #5aff5a 40%, #00ff00 70%);
    animation: blinkLight 2.5s 1s infinite alternate;
}

@keyframes blinkLight {
    0%, 5% { opacity: 1; }
    6%, 10% { opacity: 0.7; }
    11%, 100% { opacity: 1; }
}

.pokedex-body {
    padding: 25px;
    background: linear-gradient(to bottom, var(--red) 0%, var(--dark-red) 100%);
}

.screen-container {
    background-color: var(--black);
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 6px solid var(--screen-border);
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.7),
        0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.screen-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 15%;
    right: 15%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.screen {
    background-color: var(--screen-color);
    border-radius: 8px;
    padding: 18px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.3),
        inset 0 0 5px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--screen-border);
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        );
    background-size: 100% 4px;
}

.screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.welcome-message {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInMessage 0.5s ease-out forwards;
}

@keyframes fadeInMessage {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.welcome-message img {
    width: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
    animation: bounce 2s infinite alternate;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-message p {
    font-size: 0.75rem;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--black);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.search-form {
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    gap: 12px;
}

input {
    flex: 1;
    padding: 15px;
    border: 4px solid var(--black);
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    outline: none;
    background-color: var(--white);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 
        0 0 0 2px rgba(42, 117, 187, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-button {
    background: linear-gradient(to bottom, var(--yellow) 0%, var(--dark-yellow) 100%);
    color: var(--black);
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    cursor: pointer;
    border: 4px solid var(--black);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 0 var(--dark-yellow), 0 5px 10px rgba(0, 0, 0, 0.2);
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.search-button:hover {
    background-color: var(--dark-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 0 var(--dark-yellow), 0 8px 15px rgba(0, 0, 0, 0.3);
}

.search-button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--dark-yellow), 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pokedex-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.control-button {
    flex: 1;
    padding: 12px;
    background: linear-gradient(to bottom, var(--blue) 0%, #1a5da3 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    border: 4px solid var(--black);
    transition: all 0.3s;
    box-shadow: 0 5px 0 #1a5da3, 0 5px 10px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.control-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.control-button:hover {
    background-color: #1a5da3;
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #1a5da3, 0 8px 15px rgba(0, 0, 0, 0.3);
}

.control-button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #1a5da3, 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pokedex-footer {
    background: linear-gradient(to bottom, #2d2d2d 0%, var(--black) 100%);
    padding: 15px;
    text-align: center;
    border-top: 3px solid #2a2a2a;
}

.footer-details {
    color: var(--white);
    font-size: 0.6rem;
    line-height: 1.8;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.footer-details a {
    color: var(--yellow);
    text-decoration: none;
    position: relative;
    padding: 0 2px;
    transition: all 0.3s;
}

.footer-details a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--yellow);
    transition: width 0.3s;
}

.footer-details a:hover {
    color: var(--white);
}

.footer-details a:hover::after {
    width: 100%;
}

/* Estilos para los resultados del Pokémon */
.pokemon-display {
    text-align: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--black);
    position: relative;
    overflow: hidden;
}

.pokemon-display::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, 
        var(--red), 
        var(--blue) 33%, 
        var(--yellow) 66%, 
        var(--red) 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.pokemon-display h2 {
    color: var(--black);
    margin: 15px 0 8px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.pokemon-display h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--red));
    margin: 8px auto 0;
    border-radius: 4px;
}

.pokemon-display img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 15px auto;
    image-rendering: pixelated;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(240,240,240,0.5) 100%);
    border-radius: 50%;
    padding: 20px;
    border: 5px solid var(--black);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 0 0 10px rgba(255, 255, 255, 0.2),
        inset 0 0 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s;
}

.pokemon-display img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 0 15px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.pokemon-display p {
    font-size: 0.8rem;
    margin: 12px 0;
    padding: 10px 15px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.7));
    border-radius: 8px;
    border-left: 5px solid var(--blue);
    text-align: left;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.pokemon-display p:hover {
    transform: translateX(5px);
    border-left-width: 8px;
}

.pokemon-display p strong {
    color: var(--dark-red);
    letter-spacing: 1px;
}

.pokemon-display .types {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.type-badge {
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--black);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    transform-origin: center;
}

.type-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.pokemon-id {
    color: var(--blue);
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.1);
    padding: 3px 10px;
    border-radius: 15px;
    margin-left: 8px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.error-message {
    color: var(--dark-red);
    font-size: 0.9rem;
    text-align: center;
    padding: 15px;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message img {
    width: 100px;
    margin: 15px 0;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

/* Controles de música */
.music-controls {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    padding: 8px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.music-controls:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-3px);
}

#music-toggle {
    background: linear-gradient(to bottom, var(--yellow) 0%, var(--dark-yellow) 100%);
    border: 3px solid var(--black);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1),
        inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

#music-toggle:hover {
    background-color: var(--dark-yellow);
    transform: scale(1.1) rotate(15deg);
}

#music-toggle:active {
    transform: scale(0.95);
}

#music-toggle.muted {
    opacity: 0.7;
    background: #cccccc;
}

#volume-control {
    width: 120px;
    height: 8px;
    accent-color: var(--yellow);
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.3s;
}

#volume-control:hover {
    opacity: 1;
    transform: scaleY(1.5);
}

.voice-controls {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
}

#toggle-voice {
    background: linear-gradient(to bottom, var(--yellow) 0%, var(--dark-yellow) 100%);
    border: 3px solid var(--black);
    border-radius: 25px;
    padding: 10px 18px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        0 5px 0 var(--dark-yellow),
        0 5px 10px rgba(0, 0, 0, 0.2);
}

#toggle-voice:hover {
    background-color: var(--dark-yellow);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 0 var(--dark-yellow),
        0 8px 15px rgba(0, 0, 0, 0.3);
}

#toggle-voice:active {
    transform: translateY(3px);
    box-shadow: 
        0 2px 0 var(--dark-yellow),
        0 2px 5px rgba(0, 0, 0, 0.2);
}

#toggle-voice.off {
    opacity: 0.7;
    text-decoration: line-through;
    background: #cccccc;
    color: #666666;
}

.pokemon-stats {
    background: linear-gradient(to bottom, rgba(240, 240, 240, 0.9), rgba(225, 225, 225, 0.7));
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    border: 3px dashed rgba(0, 0, 0, 0.1);
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.05),
        0 5px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: statsAppear 0.8s ease-out forwards;
}

@keyframes statsAppear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.pokemon-stats::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--red);
    border-radius: 3px;
}

/* Animación de carga */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.loading p {
    font-size: 0.8rem;
    color: var(--black);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.loading img {
    width: 80px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
    animation: rotateLoading 3s linear infinite;
}

@keyframes rotateLoading {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Estilos responsivos mejorados */
@media (max-width: 480px) {
    .pokedex-container {
        border-width: 8px;
    }
    
    .pokedex-header h1 {
        font-size: 1.5rem;
    }
    
    .light {
        width: 20px;
        height: 20px;
    }
    
    .screen {
        min-height: 250px;
        padding: 15px;
    }
    
    .pokemon-display img {
        width: 150px;
        height: 150px;
    }
    
    .pokemon-display h2 {
        font-size: 1.2rem;
    }
    
    .pokemon-display p {
        font-size: 0.7rem;
        max-width: 95%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .search-button {
        height: 50px;
    }
}
@media (max-width: 480px) {
    .pokemon-display img {
        width: 140px;
        height: 140px;
    }
    
    .pokemon-display h2 {
        font-size: 1.2rem;
    }
    
    .pokemon-display p {
        font-size: 0.7rem;
        max-width: 90%;
    }
}

/* Asegurar que no se vea en móviles muy pequeños */
@media (max-width: 400px) {
    .music-controls {
        bottom: 10px;
        right: 10px;
    }
    
    #volume-control {
        width: 80px;
    }
}

/* Animaciones */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: blink 1.5s infinite;
}