* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    background: #101014;
    color: #fff;
}

body {
    min-height: 100vh;
    background: #101014;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    height: 68px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #09090c;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand {
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1px;
}

.brand span {
    color: #e50914;
}

.header-caption {
    color: #888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero {
    min-height: 330px;
    padding: 65px 7%;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 78% 45%, rgba(130,20,45,.28), transparent 42%),
        linear-gradient(110deg, #101014 10%, #1b151f 58%, #111014 100%);
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    color: #e50914;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero h1 {
    margin: 17px 0 13px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.hero p {
    max-width: 520px;
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
}

.catalog {
    padding: 28px 6% 60px;
}

.catalog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.catalog-heading h2 {
    font-size: 23px;
}

.video-count {
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.search-input {
    width: min(260px, 45%);
    padding: 10px 13px;
    border: 1px solid #38383f;
    border-radius: 6px;
    outline: none;
    color: #fff;
    background: #1b1b22;
}

.search-input:focus {
    border-color: #e50914;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px;
}

.video-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #1b1b22;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.video-card:hover,
.video-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    outline: 2px solid rgba(229,9,20,.75);
}

.video-card-pending {
    cursor: default;
    opacity: .68;
}

.video-card-pending:hover {
    transform: none;
    box-shadow: none;
    outline: none;
}

.video-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 25%, rgba(150,30,60,.45), transparent 38%),
        linear-gradient(135deg, #29202f, #121218 75%);
}

.cover-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-mark {
    color: rgba(255,255,255,.08);
    font-size: clamp(70px, 10vw, 115px);
    font-weight: 900;
    line-height: 1;
}

.cover-play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.48);
    font-size: 18px;
    padding-left: 3px;
}

.pending-label {
    position: absolute;
    left: 9px;
    bottom: 9px;
    padding: 5px 8px;
    border-radius: 4px;
    color: #eee;
    background: rgba(0,0,0,.75);
    font-size: 10px;
}

.video-info {
    padding: 13px;
}

.video-info h3 {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.35;
}

.video-info p {
    color: #999;
    font-size: 11px;
}

.empty-message {
    grid-column: 1 / -1;
    padding: 35px 0;
    color: #aaa;
    text-align: center;
}

.site-footer {
    padding: 22px 6%;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #666;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 700px) {
    .site-header {
        height: 58px;
        padding: 0 16px;
    }

    .header-caption {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero {
        min-height: 275px;
        padding: 48px 22px;
    }

    .hero h1 {
        font-size: clamp(31px, 9vw, 40px);
    }

    .hero p {
        font-size: 13px;
    }

    .catalog {
        padding: 22px 14px 42px;
    }

    .catalog-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .search-input {
        width: 100%;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .video-info {
        padding: 10px;
    }

    .video-info h3 {
        font-size: 12px;
    }

    .video-info p {
        font-size: 10px;
    }

}


/* Acceso con contraseña solicitado en cada carga de la página. */
body.locked { overflow: hidden; }
.password-gate {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
    padding: 22px; background: radial-gradient(ellipse at 50% 35%, rgba(130,20,45,.22), transparent 48%), #101014;
}
.password-gate[hidden] { display: none; }
.password-panel {
    width: min(410px, 100%); padding: 38px 32px; border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px; background: #19191f; box-shadow: 0 22px 70px rgba(0,0,0,.45); text-align: center;
}
.password-brand { display: inline-block; margin-bottom: 30px; }
.password-eyebrow { color: #e50914; font-size: 10px; font-weight: 800; letter-spacing: 2.5px; }
.password-panel h1 { margin: 12px 0 9px; font-size: 24px; }
.password-description { margin-bottom: 22px; color: #aaa; font-size: 13px; line-height: 1.5; }
.password-input {
    width: 100%; padding: 13px 14px; border: 1px solid #41414a; border-radius: 6px;
    outline: none; color: #fff; background: #101014; font-size: 15px;
}
.password-input:focus { border-color: #e50914; }
.password-submit {
    width: 100%; margin-top: 13px; padding: 13px; border: 0; border-radius: 6px;
    color: #fff; background: #e50914; font-size: 14px; font-weight: 700; cursor: pointer;
}
.password-submit:disabled { opacity: .65; cursor: wait; }
.password-error { min-height: 18px; margin-top: 12px; color: #ff7379; font-size: 12px; }
.video-thumbnail { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.video-thumbnail[hidden] { display: none; }
.thumbnail-edit {
    position: absolute; z-index: 3; right: 8px; top: 8px; padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.28); border-radius: 5px; color: #fff;
    background: rgba(0,0,0,.76); font-size: 10px; font-weight: 700; cursor: pointer;
    opacity: 0; transition: opacity .15s ease;
}
.video-card:hover .thumbnail-edit, .video-card:focus-within .thumbnail-edit { opacity: 1; }
.thumbnail-edit:disabled { opacity: 1; cursor: wait; }
.video-card .cover-art[hidden] { display: none; }
@media (hover: none) { .thumbnail-edit { opacity: 1; } }
@media (max-width: 700px) {
    .password-panel { padding: 32px 23px; }
    .thumbnail-edit { right: 5px; top: 5px; padding: 6px 7px; font-size: 9px; opacity: 1; }
}
