:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

.header { text-align: center; margin-bottom: 30px; }
.header h1 { color: var(--primary); font-size: 2.5rem; margin-bottom: 5px; }

.container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.player-box {
    position: sticky;
    top: 20px;
    background: #f1f5f9;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
    z-index: 1000;
}

#status-line { font-weight: 600; color: var(--primary); margin-bottom: 10px; }
audio { width: 100%; border-radius: 8px; }

.search-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.input-group, .filter-group { display: flex; gap: 10px; }

input, select, button {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 16px;
}

input { flex: 2; }
button {
    background-color: var(--primary);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover { background-color: var(--primary-hover); }

.item-card {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.item-card:hover { background-color: #fcfdfe; }

.transcript-box {
    background: #f8fafc;
    padding: 15px;
    border-left: 4px solid var(--primary);
    margin: 12px 0;
    font-style: italic;
}

.p-btn {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.meta-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
