/* UI组件样式合集 - 合并自多个小文件以减少HTTP请求 */

/* ========== 页脚修复样式 ========== */
html {
    height: auto !important;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

footer {
    margin-top: auto !important;
    position: relative !important;
    bottom: auto !important;
    z-index: 1 !important;
}

footer.bg-dark {
    position: relative !important;
    bottom: auto !important;
    width: 100% !important;
    clear: both !important;
}

footer::after {
    content: "";
    display: table;
    clear: both;
}

.container {
    position: relative !important;
}

footer.bg-dark.text-white {
    background-color: #343a40 !important;
    color: white !important;
    padding: 3rem 0 !important;
}

/* ========== 播放列表状态指示器 ========== */
.data-source-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.status-text {
    font-weight: 500;
}

.status-icon {
    font-size: 14px;
    animation: spin 2s linear infinite;
}

.status-icon.success {
    animation: none;
    color: #28a745;
}

.status-icon.error {
    animation: none;
    color: #dc3545;
}

.status-icon.cached {
    animation: none;
    color: #ffc107;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.playlist .hed {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.playlist .hed h2 {
    margin: 0;
    flex: 1;
}

/* 注意：电台卡片样式 (.one_block.one_station) 已移除，
   避免与现有样式冲突。电台卡片样式应该在 style.css 或其他核心样式文件中定义。 */

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .playlist .hed {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-source-indicator {
        font-size: 11px;
    }
}
