/* Variables & Reset */
:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-red: #fe2c55;
    --accent-cyan: #25f4ee;
    --nav-bg: #000000;
    --bottom-nav-height: 55px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    /* Empêche le scroll global, on gère le scroll dans main */
    height: 100vh;
    width: 100vw;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.top-nav-tabs {
    display: flex;
    gap: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.tab.active {
    color: var(--text-primary);
    position: relative;
    font-weight: 700;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

.search-icon {
    position: absolute;
    right: 20px;
    font-size: 20px;
}

/* Video Feed Area */
.video-feed {
    height: calc(100vh - var(--bottom-nav-height));
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    /* Vertical Scroll Snap for TikTok feel */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.video-feed::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari/Opera */
}

/* Video Container */
.video-container {
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    background-color: #111;
}

/* Temporaire: Placeholder pour la vidéo */
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #1a1a1a, #333);
    font-size: 24px;
    color: var(--text-secondary);
}

.tiktok-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

/* Video Info (Left Bottom) */
.video-info {
    position: absolute;
    bottom: 20px;
    left: 15px;
    width: 75%;
    z-index: 5;
    padding-right: 15px;
}

.username {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Fix lint */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hashtag {
    font-weight: bold;
}

.music-ticker {
    display: flex;
    align-items: center;
    font-size: 14px;
    width: 70%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.music-ticker i {
    margin-right: 10px;
}

/* Actions Menu (Right Side) */
.video-actions {
    position: absolute;
    bottom: 20px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 5;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
}

.action-button i {
    font-size: 32px;
    margin-bottom: 5px;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.action-button span {
    font-size: 12px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Profile Icon specifically */
.profile-btn {
    position: relative;
    margin-bottom: 15px;
}

.profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid white;
}

.follow-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.follow-badge i {
    font-size: 10px !important;
    margin: 0;
    filter: none;
}

/* Music Disc Animation */
.music-disc {
    margin-top: 10px;
}

.disc-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 8px solid #333;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: var(--nav-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    gap: 4px;
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    color: var(--text-primary);
}

.upload-icon-container {
    width: 45px;
    height: 30px;
    background: linear-gradient(to right, var(--accent-cyan) 0%, var(--accent-cyan) 30%, var(--text-primary) 30%, var(--text-primary) 70%, var(--accent-red) 70%, var(--accent-red) 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.upload-icon-container::after {
    content: '';
    position: absolute;
    background: var(--text-primary);
    width: 35px;
    height: 28px;
    border-radius: 6px;
    z-index: 1;
}

.icon-plus {
    color: black !important;
    z-index: 2;
    font-size: 16px !important;
}

/* -----------------------------
   Boutons Interactifs (Actifs)
----------------------------- */
.btn-like.active i {
    color: var(--accent-red);
}

.btn-bookmark.active i {
    color: #f7d154;
}

/* -----------------------------
   Modals & Bottom Sheets
----------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    /* Affiche en bas */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    background: #222;
    width: 100%;
    height: 60vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.active .bottom-sheet {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.close-modal {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Comments Modal Specifics */
.comment-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.comment-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
}

.comment-text {
    flex: 1;
}

.comment-username {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.comment-text p {
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.3;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
}

.modal-footer input {
    flex: 1;
    background: #333;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    outline: none;
}

#postCommentBtn {
    background: var(--accent-red);
    border: none;
    color: white;
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

/* Share Modal Specifics */
.share-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 20px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.share-btn i {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
}

/* -----------------------------
   Section Inbox (Messages)
----------------------------- */
.inbox-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--bottom-nav-height));
    background-color: var(--bg-color);
    z-index: 5;
    overflow-y: auto;
    display: none;
    /* Flex by JS when active */
    flex-direction: column;
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #222;
}

.inbox-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.inbox-header i {
    font-size: 20px;
}

.inbox-list {
    padding: 10px 0;
}

.inbox-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.inbox-item:active {
    background-color: #1a1a1a;
}

.inbox-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.inbox-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
}

.like-bg {
    background-color: var(--accent-red);
}

.inbox-text {
    flex: 1;
    overflow: hidden;
}

.inbox-user {
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.inbox-text p {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 10px;
}

.inbox-action-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
}

.inbox-thumbnail img {
    width: 40px;
    height: 55px;
    border-radius: 4px;
    object-fit: cover;
    margin-left: 10px;
}

/* -----------------------------
   Section Recherche (Search)
----------------------------- */
.search-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 20;
    /* Au dessus de tout, même des navs */
    display: none;
    /* Block via JS */
    color: var(--text-primary);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

#closeSearchBtn {
    font-size: 20px;
    cursor: pointer;
}

.search-input-container {
    flex: 1;
    background-color: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 38px;
}

.search-input-container i {
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 8px;
}

.search-input-container input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 15px;
}

.search-btn-text {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.search-body {
    padding: 20px;
}

.search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.search-history-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.search-history-header i {
    color: var(--text-secondary);
    font-size: 14px;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-tag {
    background-color: #222;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    color: #e0e0e0;
}

.search-divider {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 25px 0;
}

.trending-searches h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.trending-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.trending-rank {
    width: 20px;
    font-weight: bold;
    color: var(--text-secondary);
}

/* Les 3 premiers rangs en couleur via JS ou n-th child */
.trending-item:nth-child(1) .trending-rank {
    color: #fcc200;
}

.trending-item:nth-child(2) .trending-rank {
    color: #c0c0c0;
}

.trending-item:nth-child(3) .trending-rank {
    color: #cd7f32;
}

.trending-text {
    flex: 1;
    font-size: 15px;
}

.trending-icon {
    color: var(--accent-red);
    font-size: 14px;
}

/* -----------------------------
   Section Profil
----------------------------- */
.profile-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--bottom-nav-height));
    background-color: var(--bg-color);
    z-index: 5;
    overflow-y: auto;
    display: none;
    /* Flex by JS when active */
    flex-direction: column;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #222;
}

.profile-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.profile-header i {
    font-size: 20px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.profile-main-pic {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.profile-username {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 16px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-actions-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.edit-profile-btn {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 600;
}

.add-friends-btn {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
}

.profile-bio {
    font-size: 14px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.profile-tabs {
    display: flex;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.profile-tab {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    color: var(--text-secondary);
}

.profile-tab.active {
    color: white;
    border-bottom: 2px solid white;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.grid-item {
    aspect-ratio: 3/4;
    background-color: #333;
    position: relative;
    background-image: url('https://picsum.photos/200/300?random=1');
    background-size: cover;
}

.grid-item:nth-child(even) {
    background-image: url('https://picsum.photos/200/300?random=2');
}

.grid-item:nth-child(3n) {
    background-image: url('https://picsum.photos/200/300?random=3');
}

.grid-views {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.grid-views i {
    font-size: 10px;
}

/* -----------------------------
   Section Following List (Mes abonnements)
----------------------------- */
.following-list-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Prend tout l'écran, Cache la bottom nav */
    background-color: var(--bg-color);
    z-index: 50;
    /* Au-dessus de tout le reste */
    overflow-y: auto;
    display: none;
    flex-direction: column;
}

.following-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #222;
}

.following-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.following-header i {
    font-size: 20px;
    cursor: pointer;
}

.following-search-bar {
    padding: 15px;
}

.following-users-list {
    padding: 0 15px;
}

.following-user-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.following-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.following-username {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.following-fullname {
    font-size: 13px;
    color: var(--text-secondary);
}

.following-btn-state {
    background: transparent;
    border: 1px solid #444;
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.following-btn-state.friends {
    background-color: #333;
    border: none;
}

/* -----------------------------
   Section Caméra (Upload / Bouton +)
----------------------------- */
.camera-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 100;
    /* Toujours au-dessus */
    display: none;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.camera-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f1c2c, #928DAB);
    /* Effet caméra flou */
    opacity: 0.6;
    z-index: 1;
}

.camera-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.camera-header i {
    font-size: 24px;
    cursor: pointer;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.camera-add-music {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.camera-tools-right {
    position: absolute;
    top: 80px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 10px;
    border-radius: 20px;
}

.camera-tool-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.camera-tool-icon i {
    font-size: 22px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.camera-tool-icon span {
    font-size: 10px;
    font-weight: 500;
}

.camera-tools-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 30px;
    margin-bottom: 20px;
}

.camera-effects,
.camera-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.effect-icon-container,
.upload-icon-container-cam {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid white;
}

.effect-icon-container img,
.upload-icon-container-cam img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-effects span,
.camera-upload span {
    font-size: 12px;
    font-weight: 500;
}

.record-btn-container {
    padding-bottom: 20px;
}

.record-btn-outer {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 44, 85, 0.5);
    /* Rouge transparent */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.record-btn-inner {
    width: 60px;
    height: 60px;
    background-color: var(--accent-red);
    border-radius: 50%;
}

.camera-modes {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0 30px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.mode {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.mode.active {
    color: white;
}

/* -----------------------------
   Section Explore / Découverte
----------------------------- */
.explore-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - var(--bottom-nav-height));
    background-color: var(--bg-color);
    z-index: 5;
    overflow-y: auto;
    display: none;
    /* Flex via JS */
    flex-direction: column;
}

.explore-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.explore-header .search-input-container {
    flex: 1;
    background-color: #222;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 38px;
}

.explore-header .search-input-container i {
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 8px;
}

.explore-header .search-input-container input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.explore-header>i {
    font-size: 20px;
    color: white;
}

.explore-content {
    padding: 0;
    padding-bottom: 20px;
}

/* Carousel Tendances */
.explore-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 10px 15px;
    scrollbar-width: none;
}

.explore-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    min-width: 85%;
    height: 140px;
    border-radius: 8px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    background-size: cover;
    background-position: center;
}

.trending-banner-1 {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent), url('https://picsum.photos/400/200?random=20');
}

.trending-banner-2 {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent), url('https://picsum.photos/400/200?random=21');
}

.carousel-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.carousel-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Catégories */
.explore-categories {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px;
    scrollbar-width: none;
}

.explore-categories::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    background-color: #222;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #333;
}

.explore-divider {
    border: none;
    height: 1px;
    background-color: #222;
    margin: 5px 15px;
}

/* Suggestions Grille */
.explore-suggestions {
    padding: 15px;
}

.suggestions-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.explore-grid-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.explore-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-video-info {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}




.profile-actions-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.edit-profile-btn {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 600;
}

.add-friends-btn {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
}

.profile-bio {
    font-size: 14px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.profile-tabs {
    display: flex;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.profile-tab {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 12px 0;
    color: var(--text-secondary);
}

.profile-tab.active {
    color: white;
    border-bottom: 2px solid white;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.grid-item {
    aspect-ratio: 3/4;
    background-color: #333;
    position: relative;
    background-image: url('https://picsum.photos/200/300?random=1');
    background-size: cover;
}

.grid-item:nth-child(even) {
    background-image: url('https://picsum.photos/200/300?random=2');
}

.grid-item:nth-child(3n) {
    background-image: url('https://picsum.photos/200/300?random=3');
}

.grid-views {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.grid-views i {
    font-size: 10px;
}