/* ── Reset & Variables ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-grad: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --panel: rgba(255,255,255,0.05);
    --panel-border: rgba(255,255,255,0.08);
    --accent: #c084fc;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --radius: 14px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-grad);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    padding: 24px;
}

.dashboard-container { max-width: 1400px; margin: 0 auto; }

.glass-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.main-header { padding: 16px 24px; margin-bottom: 24px; }
.main-header h1 { font-size: 20px; font-weight: 800; color: #f1f5f9; }
.main-header h1 span { color: var(--accent); }

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.toolbar {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.toolbar-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-dim);
}
.channel-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: var(--text);
    font-size: 12px; font-weight: 500;
    padding: 6px 28px 6px 12px;
    cursor: pointer; min-width: 170px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
}
.channel-select:focus { outline: none; border-color: var(--accent); }
.channel-select option { background: #1e1b4b; color: var(--text); }

.title-search {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: var(--text);
    font-size: 12px; font-weight: 500;
    padding: 6px 12px; min-width: 200px;
    font-family: inherit;
}
.title-search::placeholder { color: var(--text-dim); }
.title-search:focus { outline: none; border-color: var(--accent); }
.title-search::-webkit-search-cancel-button { cursor: pointer; }

/* ── Month Accordion ─────────────────────────────────────────────────────── */
.month-accordion { margin-bottom: 10px; }
.month-accordion-header {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    cursor: pointer; user-select: none;
    transition: background 0.15s, border-color 0.15s;
}
.month-accordion.open .month-accordion-header {
    background: linear-gradient(135deg,rgba(99,102,241,.18),rgba(168,85,247,.08));
    border-color: rgba(167,139,250,.25);
    border-radius: 10px 10px 0 0;
}
.month-accordion-chevron { font-size: 13px; color: #64748b; flex-shrink: 0; }
.month-accordion.open .month-accordion-chevron { color: #a78bfa; }
.month-accordion-label { font-size: 13px; font-weight: 800; color: #f1f5f9; letter-spacing: 0.02em; }
.month-accordion-pills { display: flex; gap: 5px; margin-left: 10px; }
.month-priority-pill { padding: 1px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.month-priority-pill.high   { background: rgba(34,197,94,.15);  border: 1px solid rgba(34,197,94,.2);   color: #86efac; }
.month-priority-pill.medium { background: rgba(147,51,234,.15); border: 1px solid rgba(167,139,250,.2); color: #d8b4fe; }
.month-priority-pill.low    { background: rgba(37,99,235,.15);  border: 1px solid rgba(96,165,250,.2);  color: #93c5fd; }
.month-accordion-count { margin-left: auto; font-size: 11px; font-weight: 600; color: #64748b; flex-shrink: 0; }
.month-accordion-body {
    display: none;
    padding: 14px 0 4px 16px;
    border-left: 2px solid rgba(167,139,250,.2);
    border-right: 1px solid rgba(167,139,250,.1);
    border-bottom: 1px solid rgba(167,139,250,.1);
    border-radius: 0 0 10px 10px;
    margin-bottom: 4px;
}
.month-accordion.open .month-accordion-body { display: block; }

/* ── Date Group ──────────────────────────────────────────────────────────── */
.date-group { margin-bottom: 36px; }
.date-group-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: #f1f5f9;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.date-group-label { flex-shrink: 0; }
.date-group-pills { display: flex; gap: 5px; }
.date-group-total { margin-left: auto; font-size: 11px; font-weight: 600; color: #64748b; flex-shrink: 0; }

/* ── Swimlane ────────────────────────────────────────────────────────────── */
.swimlane { margin-bottom: 16px; }
.swimlane-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 18px; border-radius: 12px; margin-bottom: 12px;
}
.swimlane-header.high   { background: linear-gradient(135deg,rgba(20,83,45,.65),rgba(22,163,74,.38));   border: 1px solid rgba(34,197,94,.3); }
.swimlane-header.medium { background: linear-gradient(135deg,rgba(88,28,135,.65),rgba(147,51,234,.38)); border: 1px solid rgba(167,139,250,.3); }
.swimlane-header.low    { background: linear-gradient(135deg,rgba(23,37,84,.65),rgba(37,99,235,.38));   border: 1px solid rgba(96,165,250,.3); }
.swimlane-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.swimlane-header.high   .swimlane-label { color: #86efac; }
.swimlane-header.medium .swimlane-label { color: #d8b4fe; }
.swimlane-header.low    .swimlane-label { color: #93c5fd; }
.swimlane-count { font-size: 11px; font-weight: 500; opacity: 0.65; }
.swimlane-header.high   .swimlane-count { color: #86efac; }
.swimlane-header.medium .swimlane-count { color: #d8b4fe; }
.swimlane-header.low    .swimlane-count { color: #93c5fd; }

/* ── Card Grid ───────────────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

/* ── Video Card ──────────────────────────────────────────────────────────── */
.vcard {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.vcard:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(192,132,252,0.3);
    transform: translateY(-1px);
}
.vcard-channel {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--accent); margin-bottom: 2px;
}
.vcard-handle { font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
.vcard-title  { font-size: 13px; font-weight: 600; color: #f1f5f9; line-height: 1.45; }
.vcard-meta   { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; }
.vcard-date     { font-size: 11px; color: var(--text-dim); }
.vcard-duration { font-size: 11px; color: var(--text-dim); }

/* ── Empty State ─────────────────────────────────────────────────────────── */
.empty-state { padding: 40px; text-align: center; font-size: 13px; color: var(--text-dim); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    body { padding: 16px; }
    .toolbar { flex-direction: column; align-items: flex-start; }
}
