/* 全局基础 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.4;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: #2563eb;
}

/* 顶栏 */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #111827;
    color: #f9fafb;
    position: relative;
}

.topbar .brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 16px;
}

.topbar .brand img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.topbar-actions {
    position: absolute;
    right: 10px;
}

.topbar-actions .btn {
    margin-left: 6px;
}

/* 按钮 */
.btn {
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}

.btn-sm {
    padding: 3px 8px;
    font-size: 12px;
}

.btn-accent {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 页面布局 */
main.layout {
    max-width: 1100px;
    margin: 12px auto;
    padding: 0 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.main-column {
    flex: 1 1 0;
    min-width: 0;
}

.side-column {
    width: 300px;
    flex: 0 0 auto;
}

/* 手机响应式 */
@media(max-width: 900px) {
    main.layout {
        flex-direction: column;
    }
    .side-column {
        width: 100%;
    }
}

/* 播放器卡片 */
.player-card {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    margin-bottom: 15px;
}

.player-left img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

.player-right {
    flex: 1;
    min-width: 0;
}

.player-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 16px;
}

.player-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

#audioPlayer {
    width: 100%;
}

/* 分类栏（横向排列，自动换行） */
.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.category-tab {
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    background: #fff;
}

.category-tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 电台列表 */
.station-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.station-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    cursor: pointer;
}

.station-logo img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
}

.station-info {
    flex: 1;
}

.station-name {
    font-size: 14px;
    font-weight: 600;
}

.station-meta {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.station-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 意见反馈 */
.feedback-card {
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    font-size: 13px;
}

.feedback-card h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.feedback-card textarea {
    width: 100%;
    min-height: 70px;
    margin-bottom: 8px;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.feedback-card input {
    width: 100%;
    margin-bottom: 8px;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

/* 侧栏内容 */
.side-card {
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    font-size: 13px;
    margin-bottom: 12px;
}

.side-card h3 {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* 链接列表 */
.links {
    list-style: none;
    font-size: 12px;
}

.links li {
    margin-bottom: 4px;
}

/* 社交账户 */
.social-list {
    list-style: none;
    font-size: 12px;
}

.social-list li {
    margin-bottom: 8px;
}

.ad-item {
    margin-bottom: 6px;
    font-size: 12px;
}

/* 夜间模式 */
.dark body {
    background: #020617;
    color: #e5e7eb;
}

.dark .topbar {
    background: #0f172a;
}

.dark .player-card,
.dark .side-card,
.dark .station-item,
.dark .feedback-card {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: none;
}

.dark .category-tab {
    background: #1e293b;
    border-color: #475569;
    color: #e5e7eb;
}

.dark .category-tab.active {
    background: #2563eb;
    color: #fff;
}
