:root {
    --primary: #fe2c55;
    --secondary: #25f4ee;
    --dark: #121212;
    --darker: #000;
    --light: #fff;
    --gray: #777;
    --font-lg: 2rem;
    --font-md: 1.6rem;
    --font-sm: 1.2rem;
    --font-xs: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--darker);
    color: var(--light);
    height: 100vh;
    overflow-x: hidden;
}

.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.navbar {
    display: flex;
    justify-content: center;
    padding: 15px 10px;
    background: var(--dark);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 800px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--gray);
    font-size: var(--font-xs);
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
    gap: 5px;
}

.nav-btn i {
    font-size: var(--font-md);
}

.nav-btn.active {
    color: var(--primary);
    transform: translateY(-3px);
}

.nav-btn:hover {
    color: var(--light);
    background: rgba(255,255,255,0.05);
}

.content {
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.media-item {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.media-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    cursor: pointer;
}

.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s;
    z-index: 2;
}

.media-container:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--primary);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.7));
    z-index: 1;
}

.media-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    z-index: 3;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    margin-bottom: 5px;
    font-size: 22px;
    transition: all 0.3s;
}

.action-btn:hover .action-icon {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.action-text {
    font-size: var(--font-xs);
    font-weight: 500;
}

.media-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
}

.media-username {
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.media-username i {
    margin-left: 10px;
    color: var(--primary);
}

.media-desc {
    font-size: var(--font-xs);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Modal de anuncio */
.ad-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-container {
    width: 90%;
    max-width: 800px;
    background: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.ad-iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.ad-controls {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--darker);
}

.ad-timer {
    color: var(--light);
    font-size: var(--font-xs);
    text-align: center;
}

.ad-timer span {
    color: var(--primary);
    font-weight: bold;
}

/* Pantalla completa */
.fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 900;
    display: none;
    justify-content: center;
    align-items: center;
}

.fullscreen-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-fs {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 901;
}

@media (max-width: 768px) {
    :root {
        --font-lg: 1.8rem;
        --font-md: 1.4rem;
        --font-sm: 1.1rem;
        --font-xs: 0.9rem;
    }
    .play-icon {
        font-size: 50px;
        width: 70px;
        height: 70px;
    }
    .ad-iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-lg: 1.6rem;
        --font-md: 1.3rem;
        --font-sm: 1rem;
        --font-xs: 0.85rem;
    }
    .play-icon {
        font-size: 40px;
        width: 60px;
        height: 60px;
    }
    .ad-iframe {
        height: 250px;
    }
}