:root {
    --bg: #ffffff;
    --bg-card: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --accent: #10b981;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg: #0f0f0f;
    --bg-card: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #9ca3af;
    --accent: #10b981;
    --border: #2d2d2d;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
header {
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo .domain {
    /* color: var(--text-muted); */
    color: red;
    font-weight: 400;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text);
    font-size: 1.2rem;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-card);
}

/* Categories */
.categories {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-tab:hover {
    border-color: var(--text-muted);
}

.category-tab.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Player */
.player-section {
    padding: 20px 0;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
}

.play-btn svg {
    width: 18px;
    height: 18px;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    min-height: 24px;
}

.player-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.player-nav-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.player-nav-arrow:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.player-nav-arrow svg {
    width: 14px;
    height: 14px;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s;
}

.time {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 70px;
    text-align: right;
}

/* News */
.news-section {
    padding: 20px 0;
}

/* Date Navigation */
.date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.new-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none; /* For anchor tags */
}

.nav-arrow:hover:not(.disabled) {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.nav-arrow svg {
    width: 16px;
    height: 16px;
}

.nav-arrow.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
    background: transparent;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Content visibility */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

/* Responsive */
@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }

    header {
        padding: 24px 0;
    }

    .logo {
        font-size: 1.6rem;
    }

    .categories {
        padding: 20px 0;
    }

    .news-item {
        padding: 24px;
    }
}