:root {
    --heading-font: 'Montserrat', 'Noto Sans JP', sans-serif;
    --body-font: 'Poppins', 'Noto Sans JP', sans-serif;
    --accent-color: #df0139;
    --primary-color: #1e1e27;
    --secondary-color: #28242a;
    --background-color: #e2e2e2;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #e2e2e2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.player {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    height: 400px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.player__meta {
    box-sizing: border-box;
    padding: 50px 20px;
    position: absolute;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    top: 0;
    width: 100%;
    z-index: 2;
}

.player__title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.player__artist {
    font-family: var(--body-font);
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 8px;
}

.player__bg {
    position: relative;
    height: 200px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.player__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.player__bg:hover .player__cover {
    transform: scale(1.1);
}

.player__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.2) 100%);
}

.player__controls {
    position: relative;
    background: var(--background-color);
    border-top: none;
    padding: 20px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.player__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.player__play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.player__play:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.player__prev,
.player__next {
    font-size: 1.2rem;
}

.player__repeat,
.player__shuffle {
    font-size: 1rem;
}

.player__prev {
    right: 120px;
}

.player__next {
    left: 120px;
}

.player__play:hover,
.player__prev:hover,
.player__next:hover,
.player__repeat:hover,
.player__shuffle:hover {
    color: var(--accent-color);
}

.player__repeat,
.player__shuffle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.player__repeat:hover,
.player__shuffle:hover {
    color: #fff;
}

.player__repeat {
    left: 20px;
}

.player__shuffle {
    right: 20px;
}

.player__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
}

.progress-bar__current {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-color);
    transition: width 0.1s linear;
}

.progress-bar__current::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    transform: translateY(-4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar:hover .progress-bar__current::after {
    opacity: 1;
}

.player__volume {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 3;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.player__volume:hover {
    color: #fff;
}

.volume-slider {
    position: absolute;
    top: 0;
    right: 30px;
    width: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.player__volume:hover .volume-slider {
    width: 120px;
    opacity: 1;
}

.volume-slider__input {
    width: 100%;
    margin: 0;
    background: transparent;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"]::-ms-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.player__list {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 3;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.player__list:hover {
    color: #fff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .player {
        height: 350px;
    }
    
    .player__prev {
        right: 100px;
    }
    
    .player__next {
        left: 100px;
    }
}

@media (max-width: 576px) {
    .player {
        height: 300px;
    }
    
    .player__prev {
        right: 80px;
    }
    
    .player__next {
        left: 80px;
    }
    
    .player__meta {
        padding: 30px 20px;
    }
    
    .player__title {
        font-size: 1.2rem;
    }
}