/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #eef2ff 0%, #d9e6ff 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', 'Roboto', sans-serif;
    color: #0a2540;
    min-height: 100vh;
}

/* BARRA SUPERIOR */
.navbar {
    background: #0a2b6b;
    box-shadow: 0 8px 20px rgba(0, 20, 50, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 2px solid #3b82f6;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: #3b82f6;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-family: monospace;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #a0c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* BUSCADOR */
.search-wrapper {
    flex: 1;
    max-width: 550px;
    min-width: 240px;
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 60px;
    padding: 0.2rem 0.2rem 0.2rem 1.2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #cbdff2;
}

.search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.7rem 0;
    background: transparent;
    font-weight: 500;
    color: #0a2b6b;
}

.search-wrapper input::placeholder {
    color: #6c8db0;
    font-weight: 400;
}

.search-wrapper button {
    background: #1e40af;
    border: none;
    color: white;
    border-radius: 50px;
    padding: 0 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.search-wrapper button:hover {
    background: #2563eb;
    transform: scale(0.97);
}

.reset-btn {
    background: #2563eb40 !important;
    color: #0a2b6b !important;
}

.reset-btn:hover {
    background: #60a5fa !important;
    color: white !important;
}

/* GRID DE VIDEOS */
.videos-container {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 1.5rem 5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 20, 60, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s;
    border: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 35px -12px #1e3a8a60;
    border-color: #3b82f6;
}

.video-player {
    background: #000;
    position: relative;
    width: 100%;
}

.video-player video {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    display: block;
    background: #0b1120;
    pointer-events: auto;
}

.card-info {
    padding: 1rem 1rem 1.2rem 1rem;
}

.video-title {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #0f2b4f;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-title span {
    background: #eef2ff;
    padding: 0.2rem 0.6rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1e40af;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, #3b82f6, #1e3a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.username {
    font-weight: 700;
    color: #2563eb;
}

.stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 14px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
}

.stats i {
    margin-right: 6px;
    color: #2563eb;
}

/* MENÚ INFERIOR */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    display: flex;
    justify-content: center;
    padding: 0.7rem 0;
    border-top: 1px solid #bfdbfe;
    z-index: 90;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2c3e66;
    font-size: 0.75rem;
    font-weight: 700;
    transition: 0.1s;
    cursor: pointer;
    padding: 0 1.5rem;
}

.menu-item i {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.menu-item.active {
    color: #1e3a8a;
    text-shadow: 0 0 6px #60a5fa;
}

.footer-credit {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 4.5rem;
    font-size: 0.7rem;
    color: #2c5282;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #ffffffee;
    border-radius: 60px;
    font-weight: 600;
    color: #0a2b6b;
    font-size: 1.2rem;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}

/* RESPONSIVE */
@media (max-width: 720px) {
    .navbar {
        padding: 0.8rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .search-wrapper {
        max-width: 100%;
    }
    .logo-text {
        font-size: 1.4rem;
    }
    .videos-container {
        padding: 1rem 1rem 5rem 1rem;
        gap: 1.2rem;
        grid-template-columns: 1fr;
    }
    .menu-item i {
        font-size: 1.4rem;
    }
    .stats {
        gap: 1rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .videos-container {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    }
}

/* SCROLL */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #d9e6ff;
}
::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 12px;
}