html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #f8f9fa;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: #fff;
}

/* 音樂播放器樣式 */
#player-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    #player-container h5,
    #player-container p {
        color: white;
    }

#player-cover {
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-range {
    cursor: pointer;
}

    .form-range::-webkit-slider-thumb {
        background: white;
    }

    .form-range::-moz-range-thumb {
        background: white;
    }

/* 歌曲列表樣式 */
.song-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

    .song-row:hover {
        background-color: #f1f3f5;
    }

    .song-row.table-active {
        background-color: #e7f5ff;
    }

.play-song-btn {
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s;
}

    .play-song-btn:hover {
        color: #764ba2;
        transform: scale(1.2);
    }

/* 按鈕樣式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #5568d3 0%, #654a8d 100%);
    }

/* 卡片樣式 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

/* 表格樣式 */
.table {
    background-color: white;
}

    .table thead th {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
    }

/* 封面圖片樣式 */
.img-thumbnail {
    border-radius: 4px;
}

/* 進度條樣式 */
#progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
}

    #progress-bar::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }

#volume-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
}

/* 動畫效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.play-song-btn:active {
    animation: pulse 0.3s ease-in-out;
}

/* 響應式設計 */
@media (max-width: 768px) {
    #player-container .col-md-2 {
        margin-bottom: 1rem;
    }

    .btn-group {
        flex-direction: column;
    }

        .btn-group .btn {
            border-radius: 0.25rem !important;
            margin-bottom: 0.25rem;
        }
}

/* 警告訊息樣式 */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 導覽列樣式 */
.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-link {
    transition: color 0.2s;
}

    .nav-link:hover {
        color: #667eea !important;
    }
