/* ==========================================================================
   Header / Footer
   ========================================================================== */
.gpv-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0d0f13;
    border-bottom: 1px solid #23262e;
}

.gpv-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 16px;
}

.gpv-header__logo { text-decoration: none; }

.gpv-header__sitename {
    font-size: 20px;
    font-weight: 700;
    color: #e8eaed;
}

.gpv-header__search { flex: 1; max-width: 480px; margin-left: auto; }

.gpv-searchform { display: flex; }

.gpv-searchform__input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: #e8eaed;
    background: #1c1f26;
    border: 1px solid #2c303a;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.gpv-searchform__input:focus { border-color: #8ab4f8; }

.gpv-searchform__btn {
    padding: 8px 12px;
    color: #e8eaed;
    background: #2c303a;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.gpv-nav { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.gpv-nav a { color: #9aa0a6; text-decoration: none; font-size: 14px; }
.gpv-nav a:hover { color: #e8eaed; }

@media (max-width: 600px) {
    .gpv-header__nav { display: none; }
    .gpv-header__sitename { font-size: 17px; }
}

.gpv-footer {
    margin-top: 48px;
    padding: 28px 16px;
    text-align: center;
    color: #6b7078;
    font-size: 13px;
    background: #0d0f13;
    border-top: 1px solid #23262e;
}

.gpv-footer-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.gpv-footer-nav a { color: #9aa0a6; text-decoration: none; }

/* ==========================================================================
   Single video: layout con/sin sidebar
   ========================================================================== */
.gpv-single {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .gpv-single--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
}

.gpv-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.gpv-player iframe,
.gpv-player__facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gpv-player__facade { padding: 0; cursor: pointer; background: #000; }
.gpv-player__poster { width: 100%; height: 100%; object-fit: cover; }

.gpv-player__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    display: grid; place-items: center;
    font-size: 22px; color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    transition: transform .15s ease;
}

.gpv-player__facade:hover .gpv-player__play { transform: translate(-50%, -50%) scale(1.1); }

.gpv-video__title {
    margin: 14px 0 8px;
    font-size: clamp(18px, 2.6vw, 26px);
    line-height: 1.3;
    color: #f1f3f4;
}

.gpv-video__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.gpv-chip {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #8ab4f8;
    text-decoration: none;
    background: rgba(138, 180, 248, 0.12);
    border-radius: 999px;
}

.gpv-chip--actor { color: #f8b48a; background: rgba(248, 180, 138, 0.12); }

.gpv-video__date { margin-left: auto; font-size: 12px; color: #6b7078; }

.gpv-video__description {
    max-width: 72ch;
    font-size: 15px;
    line-height: 1.7;
    color: #c7cbd1;
}

.gpv-video__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gpv-tag { font-size: 13px; color: #8ab4f8; text-decoration: none; }

/* Breadcrumbs */
.gpv-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: #6b7078;
}
.gpv-breadcrumbs li + li::before { content: '\203A'; margin-right: 6px; }
.gpv-breadcrumbs a { color: #9aa0a6; text-decoration: none; }

/* Relacionados */
.gpv-related { margin-top: 32px; }
.gpv-related__title { font-size: 18px; color: #e8eaed; margin-bottom: 12px; }
.gpv-grid--compact { padding: 0; }

/* Sidebar */
.gpv-sidebar { display: none; }

@media (min-width: 1024px) {
    .gpv-single--sidebar .gpv-sidebar { display: block; }
}

.gpv-widget {
    margin-bottom: 20px;
    padding: 14px;
    background: #111318;
    border: 1px solid #23262e;
    border-radius: 10px;
}
.gpv-widget__title { margin: 0 0 10px; font-size: 14px; color: #e8eaed; }

/* Estado vacío */
.gpv-none { padding: 40px 16px; text-align: center; color: #9aa0a6; }
.gpv-none .gpv-searchform { max-width: 400px; margin: 16px auto 0; }

/* 404 */
.gpv-404 { max-width: 1400px; margin: 0 auto; padding: 24px 16px; }
.gpv-404 h1 { color: #e8eaed; }
.gpv-404 p { color: #9aa0a6; }

/* Archivo / cabeceras de taxonomía */
.gpv-archive__header { max-width: 1400px; margin: 0 auto; padding: 20px 16px 0; }
.gpv-archive__header h1 { margin: 0; font-size: clamp(20px, 3vw, 28px); color: #e8eaed; }
.gpv-archive__desc { color: #9aa0a6; font-size: 14px; }

/* Accesibilidad */
.screen-reader-text, .gpv-skip-link {
    position: absolute;
    width: 1px; height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
}
.gpv-skip-link:focus {
    width: auto; height: auto; clip: auto; z-index: 999;
    padding: 8px 16px; background: #8ab4f8; color: #000;
}

/* ==========================================================================
   v1.3 — Micro-tarjetas del sidebar (widgets)
   ========================================================================== */
.gpv-widget-cards { display: flex; flex-direction: column; gap: 10px; }

.gpv-card--micro .gpv-card__link {
    display: grid;
    grid-template-columns: 110px 1fr;   /* miniatura | texto */
    gap: 10px;
    align-items: start;
}

.gpv-card__media--micro {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
}

.gpv-card__duration--micro {
    right: 4px;
    bottom: 4px;
    padding: 1px 4px;
    font-size: 10px;
}

.gpv-card__body--micro { padding: 0; }

.gpv-card__title--micro {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-line-clamp: 2;              /* truncado en 2 líneas */
}

.gpv-card__views {
    font-size: 11px;
    color: #6b7078;
}


/* ==========================================================================
   v1.3 — Capa sprite del hover preview (APAGADO / DESACTIVADO)
   Se ha ocultado esta capa para evitar deformaciones y permitir
   la animación nativa multidireccional de cards.css.
   ========================================================================== */
.gpv-card__media[data-sprite] { position: relative; }

.gpv-sprite-layer {
    display: none !important; /* El botón nuclear: Oculta el sprite deforme para siempre */
    pointer-events: none;
}



/* ==========================================================================
   v1.4 — Age-Gate modal (RTA)
   ========================================================================== */
.gpv-age-locked { overflow: hidden; }

.gpv-age-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gpv-age-gate[hidden] { display: none; }

.gpv-age-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 8, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gpv-age-gate__box {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 32px 28px;
    background: #111318;
    border: 1px solid #2c303a;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.gpv-age-gate__icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }

.gpv-age-gate__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #f1f3f4;
}

.gpv-age-gate__text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #c7cbd1;
}

.gpv-age-gate__legal {
    margin: 0 0 20px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7078;
}

.gpv-age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.gpv-age-gate__btn {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.gpv-age-gate__btn:hover { opacity: 0.9; }

.gpv-age-gate__btn--accept {
    background: #d32f2f;
    color: #fff;
}

.gpv-age-gate__btn--exit {
    background: transparent;
    color: #9aa0a6;
    border: 1px solid #2c303a;
}

.gpv-age-gate__footer {
    margin: 0;
    font-size: 11px;
    color: #6b7078;
}

.gpv-age-gate__footer a { color: #8ab4f8; text-decoration: none; }

@media (min-width: 480px) {
    .gpv-age-gate__actions { flex-direction: row; }
    .gpv-age-gate__btn--accept { flex: 1; }
}
