:root {
    --clipy-accent: #ff2d55;
    --clipy-bg: #000000;
}

html, body {
    min-height: 100%;
    background: var(--clipy-bg);
    overscroll-behavior-y: contain;
}

.app-wrapper {
    min-height: 100vh;
}

/* ---- Onglets Pour toi / Abonnements ---- */
.feed-tabs {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: #000;
}
.feed-tabs a {
    color: #888;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    padding-bottom: 4px;
}
.feed-tabs a.active {
    color: #fff;
    border-bottom: 2px solid var(--clipy-accent);
}

/* ---- Fil vidéo (feed) ---- */
.feed {
    height: calc(100vh - 40px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.feed-item {
    position: relative;
    height: calc(100vh - 40px);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.feed-item video {
    transform: translateY(-40px);
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.feed-caption {
    position: absolute;
    left: 12px;
    right: 80px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
    transform: translateY(-50px);
}

.mute-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: .85rem;
    pointer-events: none;
    z-index: 5;
}

.feed-actions {
    position: absolute;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    transform: translateY(-50px);
}

.feed-actions button {
    background: rgba(0,0,0,.35);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-actions .count {
    display: block;
    font-size: .75rem;
    margin-top: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

.feed-actions .liked {
    color: var(--clipy-accent);
}

.avatar-round {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

/* ---- Bottom nav ---- */
.bottom-nav {
    background: #0d0d0d !important;
    border-top: 1px solid #222;
    height: 60px;
}

.nav-icon {
    color: #aaa;
    text-align: center;
    font-size: .7rem;
    text-decoration: none;
}
.nav-icon i {
    display: block;
    font-size: 1.5rem;
}
.nav-icon.active {
    color: #fff;
}
.nav-add i {
    font-size: 2.4rem;
    color: var(--clipy-accent);
}

/* ---- Pages standards (login, upload, profil) ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page-with-bottom-nav {
    padding-bottom: 100px;
}

.profile-video-grid img,
.profile-video-grid video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    background: #111;
}

.brand-title {
    font-weight: 800;
    letter-spacing: -1px;
}
.brand-title span {
    color: var(--clipy-accent);
}

.upload-progress-wrap {
    display: none;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
