/* UI Switcher */
.ui-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 1000;
}

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

.ui-switcher svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s;
}

.ui-switcher:hover svg {
    fill: #fff;
}

/* Fullscreen Mode */
.fullscreen-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    z-index: 100;
}

.fullscreen-bg.no-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px);
}

.fullscreen-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%);
}

body.fullscreen-mode .fullscreen-bg {
    opacity: 1;
    visibility: visible;
}

body.fullscreen-mode .player-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.fullscreen-mode {
    padding: 0;
}

/* Fullscreen Controls */
.fullscreen-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    padding-bottom: 60px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

body.fullscreen-mode .fullscreen-controls {
    opacity: 1;
    visibility: visible;
}

.fs-track-info {
    text-align: center;
    margin-bottom: 30px;
}

.fs-track-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.fs-track-artist {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.fs-progress-container {
    max-width: 600px;
    margin: 0 auto 25px;
}

.fs-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.fs-progress {
    height: 100%;
    background: #ff2d55;
    border-radius: 3px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.fs-progress::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.fs-progress-bar:hover .fs-progress::after {
    opacity: 1;
}

.fs-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.fs-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
}

.fs-control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    padding: 12px;
}

.fs-control-btn:hover {
    transform: scale(1.1);
}

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

.fs-control-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.fs-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.fs-play-btn svg {
    width: 36px;
    height: 36px;
}

.fs-secondary-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.fs-volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.fs-volume-container svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.fs-volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.fs-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.fs-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.fs-shuffle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.fs-shuffle-btn svg {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.5);
    transition: fill 0.2s;
}

.fs-shuffle-btn.active svg {
    fill: #ff2d55;
}

.fs-shuffle-btn:hover svg {
    fill: #fff;
}

.fs-shuffle-btn.active:hover svg {
    fill: #ff2d55;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .fullscreen-controls {
        padding: 20px;
        padding-bottom: 40px;
    }

    .fs-track-title {
        font-size: 24px;
    }

    .fs-track-artist {
        font-size: 16px;
    }

    .fs-controls {
        gap: 25px;
    }

    .fs-play-btn {
        width: 70px;
        height: 70px;
    }

    .fs-control-btn svg {
        width: 28px;
        height: 28px;
    }
}
