@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --vod-bg:        #0F1E35;
    --vod-card-bg:   #162035;
    --vod-accent:    #F97316;
    --vod-accent2:   #2563EB;
    --vod-text:      #E2E8F0;
    --vod-muted:     #94A3B8;
    --vod-border:    rgba(255,255,255,.07);
    --vod-font-head: 'Cormorant Garamond', Georgia, serif;
    --vod-font-body: 'Inter', system-ui, sans-serif;
    --vod-radius:    6px;
    --vod-tr:        .22s ease;
    --vod-gap:       10px;
    --vod-pad:       40px;
    --vod-card-w:    calc((100vw - 80px - 30px) / 4);
}

.vod-catalog-wrap *,
.vod-catalog-wrap *::before,
.vod-catalog-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.vod-catalog-wrap {
    background: var(--vod-bg);
    color: var(--vod-text);
    font-family: var(--vod-font-body);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-bottom: 80px;
    overflow-x: hidden;
}

.post-type-archive-video_vod h1.page-title,
.post-type-archive-video_vod .archive-description {
    display: none !important;
}

.vod-hero {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: var(--vod-bg);
}

.vod-hero__parallax {
    position: absolute;
    inset: -70px 0;
    will-change: transform;
    background: linear-gradient(160deg, #0F1E35 0%, #1a0a22 40%, #0a1220 100%);
    background-image:
        radial-gradient(ellipse 80% 60% at 72% 38%, rgba(232,196,74,.07) 0%, transparent 68%),
        radial-gradient(ellipse 50% 80% at 18% 62%, rgba(200,57,43,.05) 0%, transparent 65%);
}

.vod-hero__deco {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 48%;
    pointer-events: none;
    overflow: hidden;
}

.vod-hero__deco-line {
    display: block;
    position: absolute;
    height: 1px;
    width: 75%;
    right: 0;
    background: linear-gradient(to right, transparent, rgba(232,196,74,.14), transparent);
}

.vod-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,13,18,.25) 0%, rgba(13,13,18,.88) 78%, var(--vod-bg) 100%);
}

.vod-hero__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0 var(--vod-pad) 42px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    z-index: 2;
}

.vod-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vod-accent);
    color: #000;
    font-family: var(--vod-font-head);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    width: fit-content;
}

.vod-hero__title {
    font-family: var(--vod-font-head);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 32px rgba(0,0,0,.65);
}

.vod-hero__subtitle {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    font-weight: 300;
    line-height: 1.7;
    max-width: 560px;
}

.vod-hero__edit-hint {
    font-size: .68rem;
    color: var(--vod-accent);
    opacity: .6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vod-hero__edit-hint a {
    color: var(--vod-accent);
    text-decoration: underline;
}

.vod-catalog__header {
    display: flex;
    align-items: center;
    padding: 32px var(--vod-pad) 22px;
}

.vod-catalog__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vod-accent-bar {
    display: block;
    width: 3px;
    height: 22px;
    background: var(--vod-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.vod-catalog__title {
    font-family: var(--vod-font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.vod-catalog__count {
    font-size: .78rem;
    color: var(--vod-muted);
    font-weight: 400;
    margin-left: 4px;
}

.vod-rows {
    display: flex;
    flex-direction: column;
}

.vod-row {
    padding: 0 var(--vod-pad) 26px;
}

.vod-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vod-row__label {
    font-family: var(--vod-font-head);
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255,255,255,.3);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vod-row__nav {
    display: flex;
    gap: 5px;
}

.vod-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.11);
    color: var(--vod-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--vod-tr), border-color var(--vod-tr), color var(--vod-tr);
}

.vod-arrow:hover {
    background: var(--vod-accent);
    border-color: var(--vod-accent);
    color: #000;
}

.vod-row-sep {
    height: 1px;
    background: var(--vod-border);
    margin: 0 var(--vod-pad);
}

.vod-scroll-outer {
    overflow: hidden;
    width: 100%;
}

.vod-scroll-inner {
    overflow-x: scroll;
    overflow-y: visible;
    cursor: grab;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.vod-scroll-inner::-webkit-scrollbar { display: none; }
.vod-scroll-inner:active { cursor: grabbing; }

.vod-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--vod-card-w);
    gap: var(--vod-gap);
    width: calc(var(--n-cards, 10) * var(--vod-card-w) + (var(--n-cards, 10) - 1) * var(--vod-gap));
}

.vod-card {
    position: relative;
    border-radius: var(--vod-radius);
    overflow: hidden;
    background: var(--vod-card-bg);
    aspect-ratio: 16 / 9;
    width: var(--vod-card-w);
    cursor: pointer;
    transition: transform var(--vod-tr);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.5); 
    display: flex;
    flex-direction: column;
    

}

.vod-card:hover {
    transform: translateY(-5px) scale(1.04);
    z-index: 20;
}

.vod-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vod-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter var(--vod-tr);
}

.vod-card:hover .vod-card__thumb img {
    filter: brightness(.55);
}

.vod-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
}

.vod-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--vod-radius);
}

.vod-card__crown {
    position: absolute;
    top: 7px; left: 7px;
    z-index: 3;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--vod-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vod-card__badge {
    position: absolute;
    top: 7px; right: 7px;
    z-index: 3;
    font-family: var(--vod-font-head);
    font-size: .58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.vod-card__badge--price { 
    background: var(--vod-accent2); 
    color: #fff;
    font-size: .87rem;  /* agrega esta línea */
}
.vod-card__badge--owned { background: #1a6e2e; color: #fff; }

.vod-card__num {
    position: absolute;
    bottom: -2px; left: -3px;
    z-index: 5;
    font-family: var(--vod-font-head);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--vod-bg);
    -webkit-text-stroke: 2px rgba(255,255,255,.12);
    pointer-events: none;
    user-select: none;
}

.vod-card__play {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--vod-tr);
    pointer-events: none;
}

.vod-card:hover .vod-card__play { opacity: 1; }

.vod-card__play-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #F97316;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s;
    pointer-events: auto;
}

.vod-card__play-btn:hover { transform: scale(1.12); }

.vod-card__footer {
    position: static !important;
    opacity: 1 !important;
    background: transparent !important;
    padding: 6px 2px 0 !important;
}


.vod-card:hover .vod-card__footer { opacity: 1;  }

.vod-card__title {
    color: var(--vod-text) !important;
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vod-card__dur {
    font-size: .6rem;
    color: var(--vod-muted);
}

.vod-empty {
    text-align: center;
    padding: 80px var(--vod-pad);
    color: var(--vod-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.vod-btn {
    display: inline-block;
    background: var(--vod-accent);
    color: #000;
    font-family: var(--vod-font-head);
    font-weight: 700;
    font-size: .85rem;
    padding: .65rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
}

.vod-btn:hover { background: #f0cd5a; color: #000; }

@media (max-width: 900px) {
    :root {
        --vod-pad: 24px;
        --vod-card-w: calc((100vw - 48px - 20px) / 3);
    }
}

@media (max-width: 580px) {
    :root {
        --vod-pad: 16px;
        --vod-card-w: calc((100vw - 32px - 10px) / 2);
    }
    .vod-card:hover { transform: none; }
    .vod-hero { height: 260px; }
}

/* ── BUSCADOR EN CATÁLOGO ── */
.vod-searchbar-wrap {
    padding: 20px var(--vod-pad) 0;
}
.vod-searchbar-form { width: 100%; }
.vod-searchbar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #112240;
    border: 1px solid rgba(96,165,250,.2);
    border-radius: 10px;
    padding: 10px 16px;
    max-width: 640px;
    transition: border-color .2s;
}
.vod-searchbar-inner:focus-within {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.vod-searchbar-inner svg { color: #94A3B8; flex-shrink: 0; }
.vod-searchbar-inner input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #E2E8F0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .88rem;
}
.vod-searchbar-inner input::placeholder { color: #64748B; }
.vod-searchbar-inner button {
    background: #F97316;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
}
.vod-searchbar-inner button:hover { background: #FB923C; }
