/* 全局樣式 */
body {
    background-color: #f8f9fa;
    padding-top: 60px; /* 為固定導航列留出空間 */
}

/* 導航欄 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar .btn-outline-light {
    border-radius: 20px;
    padding: 0.375rem 1rem;
    font-size: 0.9rem;
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-brand {
    font-size: 1.5rem;
    padding: 0.5rem 0;
}

.navbar-brand i {
    vertical-align: middle;
}

/* 回到頂部按鈕 */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* 回到首頁按鈕 */
.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* 卡片樣式 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

/* 音樂列表 */
#musicList .card {
    background-color: white;
}

#musicList .card-body {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.5rem;
}

#musicList .card-title {
    margin-bottom: 1rem;
    flex-grow: 1;
}

#musicList .btn {
    width: 100%;
}

#musicList .card-footer {
    margin-top: auto;
    padding-top: 0;
}

#musicList .btn-outline-primary {
    margin-bottom: 0.5rem;
}

#musicList .btn-outline-danger {
    opacity: 0.8;
}

#musicList .btn-outline-danger:hover {
    opacity: 1;
}

/* 音頻播放器 */
audio {
    border-radius: 20px;
    width: 100%;
}

audio::-webkit-media-controls-panel {
    background-color: #f8f9fa;
}

/* 字幕文字 */
.subtitle-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.subtitle-text span {
    display: block;
    margin: 0;
    padding: 0;
}

/* 片段卡片 */
.segment-card {
    margin-bottom: 1rem;
}

.segment-card .card-body {
    padding: 1.5rem;
}

/* 按鈕樣式 */
.btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.25rem 0.8rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .subtitle-text {
        font-size: 1rem;
    }
    
    audio {
        width: 100%;
    }

    #musicList .card {
        margin-bottom: 1rem;
    }

    #musicList .card-body {
        padding: 1rem;
    }

    #musicList .card-footer {
        padding: 0 1rem 1rem 1rem;
    }

    .col-md-4 {
        margin-bottom: 1.5rem;
    }

    .navbar .btn-outline-light {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }
}

/* 動畫效果 */
.btn {
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* 載入中動畫 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
} 