* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Player Container */
.player-container {
    position: fixed;
    top: 78%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.folder-selector h2 {
    color: #ffa12f;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.folder-selector p {
    color: #ffa12f;
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.select-folder-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: 600;
    color: #1a1a1a;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.select-folder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.select-folder-btn:active {
    transform: translateY(0);
}

.now-playing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    margin-bottom: 30px;
    gap: 0;
}

.track-info {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.track-name {
     color: #ffa12f;
    font-size: 2.8em;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
    word-wrap: break-word;
    max-width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-name {
     color: #ffa12f;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
    word-wrap: break-word;
    max-width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 0;
}

.control-btn {
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.play-btn {
    width: 90px;
    height: 90px;
}

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

.play-btn svg {
    width: 50px;
    height: 50px;
     color: #ffa12f;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.play-icon {
    margin-left: 3px;
}

.nav-btn {
    width: 60px;
    height: 60px;
}

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

.nav-btn svg {
    width: 35px;
    height: 35px;
    color: #ffa12f;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Audio Level Control */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none; /* Başlangıçta gizli */
}

.audio-control-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-label {
    color: #d4af37;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

#broadcastLevel {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

#broadcastLevel::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#broadcastLevel::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#levelValue {
    color: #fff;
    font-size: 0.9em;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* Bottom Text */
.bottom-text-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    width: 100%;
    max-width: 90%;
}

.bottom-text {
    color: #ffa12f;
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0 8px 0;
    user-select: none;
}

.bottom-text:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.bottom-subtitle {
    color: #ffa12f;
    font-size: 1.1em;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    user-select: none;
    opacity: 0.85;
}

.bottom-subtitle:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Edit Panel */
.edit-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-panel-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    border-radius: 20px;
    padding: 40px;
    min-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
}

.edit-panel-content h3 {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 30px;
    text-align: center;
}

.close-panel-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #fff;
    font-size: 1em;
    font-weight: 500;
}

.form-group input[type="text"] {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.font-size-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.font-size-control input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.font-size-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.font-size-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.font-size-control span {
    color: #d4af37;
    font-size: 1.1em;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.edit-panel-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.panel-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-container {
        max-width: 90%;
    }
    
    .track-name {
        font-size: 2em;
        min-height: 60px;
    }
    
    .artist-name {
        font-size: 1.5em;
        min-height: 50px;
    }
    
    .play-btn {
        width: 89px;
        height: 89px;
    }
    
    .play-btn svg {
        width: 40px;
        height: 40px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .nav-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .controls {
        gap: 20px;
    }
    
    .audio-control {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
    }
    
    .audio-control-content {
        gap: 8px;
    }
    
    .audio-label {
        font-size: 0.8em;
    }
    
    #broadcastLevel {
        width: 80px;
    }
    
    #levelValue {
        font-size: 0.8em;
        min-width: 40px;
    }
    
    .bottom-text-container {
        bottom: 30px;
    }
    
    .bottom-text {
        font-size: 1.4em;
    }
    
    .edit-panel-content {
        min-width: 90%;
        padding: 30px 20px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.track-name.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth transitions */
.track-name,
.artist-name {
    transition: opacity 0.3s ease;
}
