/*
Theme Name: MRMP4 Player
Theme URI: https://example.com
Author: Tu Nombre
Description: Tema ultra-ligero para entradas de video (Rayito/MRMP4). Portada fija oscura (Dragon Ball IA). Fondo de entradas blanco por defecto y configurable.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mrmp4-theme
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Fondo global por defecto (solo afecta a listados/single; la portada trae su propio CSS oscuro) */
body:not(.front-landing) {
    background: var(--mrmp4-entry-bg, #ffffff);
    color: #1a1a1a;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.mrmp4-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Single entry: centrado vertical/horizontal, fondo configurable (blanco por defecto) */
.mrmp4-entry {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: var(--mrmp4-entry-bg, #ffffff);
    color: #1a1a1a;
}

.mrmp4-entry .entry-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Listados (blog, búsqueda, archivos) — no se usan en la home */
.mrmp4-list {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    background: var(--mrmp4-entry-bg, #ffffff);
    color: #1a1a1a;
}

.mrmp4-list article {
    width: 100%;
    margin: 0 0 24px 0;
}

.mrmp4-list .entry-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #333;
}

.mrmp4-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
