html, body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: #fff;
    height: 100%;
}
:root {
    --video-max-width: 400px; /* 👈 CAMBIA ESTE VALOR */
}

body {
    background: url("fondo.jpg") center/cover fixed no-repeat;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: -2;
    pointer-events: none;
}

/* -------------------- Layout general -------------------- */
.layout {
    height: 100vh;
}

/* -------------------- Sidebar translúcida -------------------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    padding: 20px;
    overflow-y: auto;

    background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.25));
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Logo */
.logo {
    width: 250px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Navegación */
.nav {
    margin-top: 20px;
}

.nav-btn {
    width: 100%;
    background: #1ab7ea;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 8px;
}

.nav-btn:hover {
    background: #14a3d3;
}

.nav-content {
    display: none;
    margin-top: 12px;
}

.nav-content.open {
    display: block;
}

/* -------------------- Contenido principal -------------------- */
.content {
    margin-left: 300px;
    padding: 40px;
    padding-top: 60px;
    max-width: calc(100vw - 300px);
    box-sizing: border-box;
}

/* -------------------- Cards -------------------- */
.card {
    background: rgba(20,20,20,.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,.4);
    margin-bottom: 30px;
}
#buscar {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;

    background: #1ab7ea; /* color principal */
    color: #fff;

    border: none;
    border-radius: 10px;

    cursor: pointer;
    transition: all 0.2s ease;
}

#buscar:hover {
    background: #14a3d3;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    #buscar {
        font-size: 18px;
        padding: 16px;
    }
}

#buscar:active {
    transform: scale(0.98);
}

/* Inputs */
input, select {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    box-sizing: border-box;
}

input:focus, select:focus {
    outline: none;
    border-color: #1ab7ea;
}

/* Buscador */
.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.modo {
    display: flex;
    gap: 12px;
}

/* -------------------- Resultados -------------------- */
.resultado {
    background: rgba(30,30,30,.9);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.resultado-header {
    margin-bottom: 16px;
}

/* Tabla info */
.info {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.info td {
    padding: 4px 6px;
    vertical-align: top;
}

.info td:first-child {
    opacity: .6;
    width: 140px;
}

/* -------------------- Videos -------------------- */
.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    max-width: var(--video-max-width);
}


.video-name {
    width: 100%;
    box-sizing: border-box;
}



.video-card video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #000;
}


/* -------------------- MOBILE -------------------- */
@media (max-width: 768px) {

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 16px;
    }

    .content {
        margin-left: 0;
        max-width: 100%;
        padding: 20px;
    }

    .logo {
        width: 180px;
        height: auto;
    }

    .nav-btn {
        padding: 12px;
        font-size: 16px;
    }

    .card {
        padding: 16px;
    }

    input, select {
        font-size: 16px; /* evita zoom raro en iPhone */
    }

    .videos {
        grid-template-columns: 1fr;
    }

}

