/* Radio CDMX — programas, episodios y evidencia trazable */

.mm-radio-page {
    max-width: 98%;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

.mm-radio-hero {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 50%, #1a1a2e 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}
.mm-radio-hero-content { max-width: 800px; }
.mm-radio-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #c4b5fd;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}
.mm-radio-hero h1 {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    font-weight: 800;
    line-height: 1.2;
}
.mm-radio-hero-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}
.mm-radio-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.mm-radio-kpi {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
}
.mm-radio-kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}
.mm-radio-kpi-label {
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Sections */
.mm-radio-section { margin-bottom: 2rem; }
.mm-radio-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4c1d95;
    border-bottom: 2px solid #4c1d95;
    padding-bottom: 0.5rem;
    margin: 0 0 0.75rem 0;
}
.mm-radio-section-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
}

/* Items */
.mm-radio-items {
    display: grid;
    gap: 0.5rem;
}
.mm-radio-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #7c3aed;
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 0.9rem;
}
.mm-radio-item-medium {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4c1d95;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}
.mm-radio-item-title {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}
.mm-radio-item-title a {
    color: #1f2937;
    text-decoration: none;
}
.mm-radio-item-title a:hover { text-decoration: underline; }
.mm-radio-item-meta {
    font-size: 0.72rem;
    color: #9ca3af;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
/* Programas */
.mm-radio-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.mm-radio-program-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mm-radio-program-card h3 {
    font-size: 1rem;
    margin: 0.45rem 0;
}
.mm-radio-program-card h3 a { color: #312e81; }
.mm-radio-program-card p { margin: 0.35rem 0; font-size: 0.82rem; }
.mm-radio-card-topline,
.mm-radio-card-counts,
.mm-radio-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 0.75rem;
}
.mm-radio-badge {
    background: #5b21b6;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
}
.mm-radio-source-warning { color: #b45309; }
.mm-radio-method-note { line-height: 1.5; }
.mm-radio-latest { display: block; margin-top: 0.25rem; font-size: 0.82rem; }
.mm-radio-status { padding: 2px 7px; border-radius: 10px; font-weight: 700; }
.mm-radio-status-ready { background: #dcfce7; color: #166534; }
.mm-radio-status-pending { background: #fef3c7; color: #92400e; }
.mm-radio-status-failed { background: #fee2e2; color: #991b1b; }
.mm-radio-status-empty,
.mm-radio-status-missing { background: #f3f4f6; color: #4b5563; }
.mm-radio-transcript-excerpt { margin: 0.65rem 0; color: #374151; line-height: 1.55; font-size: 0.84rem; }
.mm-radio-links a { color: #5b21b6; font-weight: 700; }

/* Table */
.mm-radio-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mm-radio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.mm-radio-table th {
    background: #f8f9fa;
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    white-space: nowrap;
}
.mm-radio-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid #f3f4f6;
}
.mm-radio-table tr:hover { background: #f9fafb; }
.mm-radio-table-title {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mm-radio-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Empty */
.mm-radio-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

/* Filters */
.mm-radio-filters {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.mm-radio-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.mm-radio-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.mm-radio-filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.mm-radio-filter-group select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    min-width: 180px;
}
.mm-radio-filter-group select:focus {
    outline: 2px solid #7c3aed;
    outline-offset: -1px;
    border-color: #7c3aed;
}
.mm-radio-filter-btn {
    padding: 0.4rem 1rem;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}
.mm-radio-filter-btn:hover { background: #6d28d9; }

@media (max-width: 768px) {
    .mm-radio-hero { padding: 1.5rem 1rem; }
    .mm-radio-hero h1 { font-size: 1.5rem; }
    .mm-radio-kpis { flex-direction: column; }
    .mm-radio-kpi { min-width: auto; }
    .mm-radio-program-grid { grid-template-columns: 1fr; }
    .mm-radio-table { font-size: 0.75rem; }
}
