/* ==========================================================
   MiniTalkies - Premium UI
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root {
    --bg-light: #f8f9fb;
    --bg-card-light: #ffffff;
    --text-primary-light: #222222;
    --text-secondary-light: #666666;
    --border-light: #ececec;
    
    --bg: var(--bg-light);
    --bg-card: var(--bg-card-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --border: var(--border-light);
    
    --brand-primary: #ff1744;
    --brand-pink: #ff007f;
    --brand-purple: #7f00ff;
}

body.dark {
    --bg: #09090b;
    --bg-card: #18181c;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
}

html,
body{
    width:100%;
    height:100%;
    font-family:'Roboto',sans-serif;
    background:var(--bg);
    color:var(--text-primary);
    overflow-x:hidden;
    scroll-behavior:smooth;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ================= NAVBAR ================= */

.navbar{

    height:70px;
    background:#181818!important;
    padding:0 20px;
    z-index:1030;
    box-shadow:0 2px 12px rgba(0,0,0,.12);

}

.navbar-brand{

    display:flex;
    align-items:center;
    color:#fff!important;
    text-decoration:none;

}

.navbar-brand img{

    width:55px;
    height:55px;
    object-fit:contain;

}

.navbar-brand h5{

    margin:0;
    font-size:26px;
    font-weight:700;
    color:#fff;

}

.navbar-brand small{

    display:block;
    color:#ddd;
    font-size:11px;
    letter-spacing:.5px;

}

/* Search */

.search-box{

    max-width:800px;
    width:100%;
    display:flex;
    align-items:center;
    margin:auto;

}

.search-box .form-control{

    height:46px;
    border:1px solid #ddd;
    border-radius:30px 0 0 30px;
    box-shadow:none;
    padding-left:20px;

}

.search-box .form-control:focus{

    border-color:#ff0033;
    box-shadow:0 0 0 .15rem rgba(255,0,51,.15);

}

.search-box button{

    width:60px;
    height:46px;
    border:1px solid #ddd;
    border-left:none;
    border-radius:0 30px 30px 0;
    background:#fff;

}

.search-box button:hover{

    background:#f5f5f5;

}

/* Right Icons */

.nav-icons{

    display:flex;
    align-items:center;
    gap:12px;

}

.nav-icons .btn{

    width:42px;
    height:42px;
    border-radius:50%;
    background:#252525;
    color:#fff;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;

}

.nav-icons .btn:hover{

    background:#ff0033;

}

.nav-icons img{

    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    cursor:pointer;
    border:2px solid #fff;

}
/* ================= SIDEBAR ================= */

.sidebar{

    position:fixed;
    top:70px;
    left:0;

       width:250px;
    height:calc(100vh - 70px);

    background:var(--bg-card);

    border-right:1px solid var(--border);

    overflow-y:auto;

    z-index:1000;

    transition:.3s;

}

.sidebar::-webkit-scrollbar{

    width:6px;

}

.sidebar::-webkit-scrollbar-thumb{

    background:#d8d8d8;
    border-radius:20px;

}

.sidebar-menu{

    display:flex;
    flex-direction:column;

    padding:12px;

}

.sidebar-menu a{

    display:flex;
    align-items:center;

    gap:15px;

     padding:15px 20px;

    text-decoration:none;

    color:var(--text-primary);

    border-radius:14px;

    font-size:15px;

    font-weight:500;

    transition:.25s;

}

.sidebar-menu a i{

    width:24px;

    font-size:18px;

    text-align:center;

}

.sidebar-menu a:hover{

    background:rgba(255,255,255,0.05);

    color:#ff0033;

}

.sidebar-menu a:hover i{

    color:#ff0033;

}

.sidebar-menu a.active{

      background:#ff1744;

    box-shadow:0 8px 20px rgba(255,23,68,.35);

    color:#fff;

    font-weight:600;

}
.search-box input{

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

}

.sidebar-menu a.active i{

    color:#fff;

}

.sidebar hr{

    margin:14px 0;

    border-color:#ececec;

}

.sidebar small{

    display:block;

    padding:0 15px 8px;

    color:#888;

    font-size:12px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.8px;

}

/* ================= OFFCANVAS ================= */

.offcanvas{

    width:280px;

}

.offcanvas-header{

    border-bottom:1px solid #ececec;

}

.offcanvas-body{

    padding:0;

}

.offcanvas .sidebar-menu{

    padding:15px;

}
/* ================= MAIN CONTENT ================= */

.main-content{

       margin-left:250px;
    margin-top:70px;

    min-height:100vh;

    padding:25px;

    background:#fafafa;

    transition:.3s;
 animation:fadeIn .4s ease;

}


@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* ================= CATEGORY ================= */
::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-thumb{

    background:#ff1744;

    border-radius:20px;

}

::-webkit-scrollbar-track{
    background:#f1f1f1;
}
::selection{

    background:#ff1744;

    color:#fff;

}
.category-bar{

    display:flex;

    align-items:center;

    gap:12px;

    overflow-x:auto;

    padding:8px 0 20px;

    margin-bottom:20px;

    scrollbar-width:none;

}

.category-bar::-webkit-scrollbar{

    display:none;

}

.thumbnail::after{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.15),
        transparent
    );

}
.category-bar button{

    border:none;

    outline:none;

    padding:0 22px;

    border-radius:50px;

    background:#ececec;

    color:#222;

    font-size:14px;

    font-weight:500;

    white-space:nowrap;

    transition:.3s;

    cursor:pointer;
       height:46px;

   

}

.category-bar button:hover{

    background:#ff0033;

    color:#fff;

    transform:translateY(-2px);

}

.category-bar button.active{

    background:#181818;

    color:#fff;

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}

/* Category Section Title */

.section-title{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:18px;

}

.section-title h4{

    margin:0;

    font-size:24px;

    font-weight:700;

    color:#222;

}

.section-title a{

    text-decoration:none;

    color:#ff0033;

    font-size:14px;

    font-weight:600;

}

.section-title a:hover{

    color:#d9002c;

}

/* ================= MOBILE ================= */

@media(max-width:991px){

.main-content{

    margin-left:0;

    padding:18px;

}

.category-bar{

    gap:10px;

}

.category-bar button{

    padding:8px 18px;

    font-size:13px;

}

}

@media(max-width:576px){

.main-content{

    padding:15px;

}

.category-bar{

    margin-bottom:15px;

}

.category-bar button{

    padding:7px 16px;

    font-size:12px;

}

}
/* ================= HERO BANNER ================= */

#heroSlider{
    margin-top:10px;
    margin-bottom:30px;
}

#heroSlider .carousel-inner{

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 20px 45px rgba(0,0,0,.15);

}

.hero-image{

    width:100%;
     height:550px;
    object-fit:cover;

}

.hero-overlay{

    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;

    padding:70px;

    background:linear-gradient(
        90deg,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.45) 45%,
        rgba(0,0,0,.10) 100%
    );

    color:#fff;

}

.hero-overlay h2{

    font-size:58px;
    font-weight:800;
    line-height:1.1;
    margin-bottom:18px;

}

.hero-overlay p{

    max-width:560px;

    font-size:20px;

    line-height:1.8;

    color:#f2f2f2;

    margin-bottom:30px;

}

.hero-buttons{

    display:flex;

    align-items:center;

    gap:16px;

}

.hero-buttons .btn{

    min-width:180px;

    height:54px;

    border-radius:50px;

    font-size:16px;

    font-weight:600;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:.3s;

}

.hero-buttons .btn-danger{

    background:#ff0033;

    border:none;

}

.hero-buttons .btn-danger:hover{

    background:#d8002c;

    transform:translateY(-2px);

}

.hero-buttons .btn-light{

    background:rgba(255,255,255,.92);

    color:#111;

    border:none;

}

.hero-buttons .btn-light:hover{

    background:#fff;

    transform:translateY(-2px);

}

.carousel-control-prev,
.carousel-control-next{

    width:7%;

}

.carousel-control-prev-icon,
.carousel-control-next-icon{

    width:48px;

    height:48px;

    border-radius:50%;

    background-color:rgba(0,0,0,.45);

    padding:22px;

}

/* ================= STORIES ================= */

.story-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;

}

.story-header h4{

    font-size:24px;
    font-weight:700;
    color:#222;

}

.story-header a{

    color:#ff0033;
    text-decoration:none;
    font-weight:600;

}

.story-row{

    display:flex;

    gap:20px;

    overflow-x:auto;

    padding:5px 0 15px;

    margin-bottom:35px;

    scrollbar-width:none;

}

.story-row::-webkit-scrollbar{

    display:none;

}

.story{

    min-width:85px;

    text-align:center;

    cursor:pointer;
        transition:.3s;

}

.story-image{

    position:relative;

   width:85px;
    height:85px;

    margin:auto;

    border-radius:50%;

    padding:3px;

    background:linear-gradient(
        45deg,
        #ff0050,
        #ff7a00,
        #ff0050
    );

    transition:.35s;

}

.story-image img{

    width:100%;

    height:100%;

    border-radius:50%;

    object-fit:cover;

    border:3px solid #fff;

}

.story:hover .story-image{

    transform:translateY(-5px) scale(1.05);

}

.story-name{

    margin-top:10px;

    font-size:13px;

    font-weight:500;

    color:#444;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.story-online{

    position:absolute;

    right:6px;

    bottom:6px;

      width:16px;

    height:16px;

    background:#00c853;

    border:2px solid #fff;

    border-radius:50%;

}

.story-add{

    background:#ececec;

}

.story-add img{

    opacity:.8;

}

.story-add .fa-plus{

    position:absolute;

    right:4px;

    bottom:4px;

    width:24px;

    height:24px;

    background:#0d6efd;

    color:#fff;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:12px;

    border:2px solid #fff;

}

@media(max-width:768px){

.story{

    min-width:72px;

}

.story-image{

    width:68px;

    height:68px;

}

.story-name{

    font-size:12px;

}

}

/* ================= VIDEO GRID ================= */
a{
    transition:.3s;
}
.video-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));

    gap:28px;

    margin-top:25px;

}

.video-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #ececec;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor:pointer;
}
.container-fluid{
    max-width:1700px;
    margin:auto;
}

.video-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 24px rgba(0,0,0,.08);
    border-color: rgba(255,23,68,.25);
}
.story:hover{

    transform:translateY(-5px);

}

.thumbnail{

    position:relative;

    overflow:hidden;

}

.thumbnail img{
    width:100%;
    height:220px;
    display:block;
    object-fit:cover;
    transition: transform 0.45s ease;
}

.video-card:hover .thumbnail img{

    transform:scale(1.08);

}

.video-progress{

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:4px;

    background:rgba(255,255,255,.25);

}

.video-progress-fill{

    width:35%;

    height:100%;

    background:#ff0033;

}

.duration{

    position:absolute;

    right:10px;

    bottom:10px;

    background:rgba(0,0,0,.85);

    color:#fff;

    padding:4px 8px;

    border-radius:6px;

    font-size:12px;

    font-weight:600;

}

.video-info{

    display:flex;

    gap:12px;

    padding:15px;

}

.channel-logo{

    width:48px;

    height:48px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;

}

.video-title{

    font-size:17px;

    font-weight:700;

    line-height:1.4;

    color:#111;

    margin-bottom:5px;

}

.video-channel{

    font-size:14px;

    color:#666;

    margin-bottom:4px;

}

.video-meta{

    font-size:13px;

    color:#888;

}

@media(max-width:768px){

.video-grid{

    grid-template-columns:1fr;

    gap:20px;

}

.thumbnail img{

    height:220px;

}

}
/* ================= SHORTS ================= */

.shorts-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:45px 0 20px;

}

.shorts-header h4{

    font-size:28px;

    font-weight:700;

    color:#222;

}

.shorts-header a{

    color:#ff0033;

    text-decoration:none;

    font-weight:600;

}

.shorts-row{

    display:flex;

    gap:22px;

    overflow-x:auto;

    padding-bottom:15px;

    scrollbar-width:none;

}

.shorts-row::-webkit-scrollbar{

    display:none;

}

.short-card{

    position:relative;

     min-width:240px;

    height:430px;

    border-radius:20px;

    overflow:hidden;

    cursor:pointer;

    transition:.35s;

    flex-shrink:0;

}

.short-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 40px rgba(0,0,0,.18);

}

.short-card img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.4s;

}

.short-card:hover img{

    transform:scale(1.08);

}

.short-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.05)
    );

}

.short-title{

    position:absolute;

    left:15px;

    right:15px;

    bottom:18px;

    color:#fff;

    font-size:16px;

    font-weight:600;

    z-index:2;

}

.short-title small{

    display:block;

    margin-top:6px;

    color:#ddd;

}

.short-overlay{

    position:absolute;

    top:15px;

    right:15px;

    display:flex;

    flex-direction:column;

    gap:10px;

    z-index:2;

}

.short-overlay .btn{

    width:42px;

    height:42px;

    border-radius:50%;

    background:rgba(0,0,0,.55);

    border:none;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

}

.short-overlay .btn:hover{

    background:#ff0033;

}
/* ================= FLOATING ACTION ================= */

.floating-menu{

    position:fixed;

    right:25px;

    bottom:25px;

    z-index:999;

}

.floating-btn{

    width:65px;

    height:65px;

    border:none;

    border-radius:50%;

    background:#ff0033;

    color:#fff;

    font-size:24px;

    cursor:pointer;

    box-shadow:0 15px 35px rgba(255,0,51,.35);

    transition:.35s;

}

.floating-btn:hover{

    transform:scale(1.08) rotate(90deg);

    background:#d8002c;

}

.floating-items{

    position:absolute;

    right:0;

    bottom:80px;

    display:none;

    flex-direction:column;

    gap:12px;

}

.floating-item{

    display:flex;

    align-items:center;

    gap:12px;

    min-width:220px;

    padding:14px 18px;

    background:#fff;

    color:#222;

    text-decoration:none;

    border-radius:14px;

    box-shadow:0 10px 25px rgba(0,0,0,.12);

    transition:.3s;

}

.floating-item:hover{

    background:#ff0033;

    color:#fff;

    transform:translateX(-6px);

}

.floating-item i{

    width:22px;

    text-align:center;

    font-size:18px;

}

.floating-item:hover i{

    color:#fff !important;

}

/* Mobile */

@media(max-width:768px){

.floating-menu{

    right:18px;

    bottom:18px;

}

.floating-btn{

    width:58px;

    height:58px;

    font-size:20px;

}

.floating-item{

    min-width:190px;

    padding:12px 15px;

}

}
/* ================= RESPONSIVE ================= */

/* Laptop */

@media(max-width:1200px){

.main-content{

    padding:20px;

}

.hero-image{

    height:400px;

}

.video-grid{

    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));

}

}

/* Tablet */

@media(max-width:991px){

.sidebar{

    display:none;

}

.main-content{

    margin-left:0;

    margin-top:70px;

    padding:18px;

}

.search-box{

        width:60%;

    margin:0 15px;

}

.navbar-brand img{

    width:48px;

    height:48px;

}

.navbar-brand h5{

    font-size:22px;

}

.hero-image{

    height:320px;

}

.hero-overlay{

    padding:35px;

}

.hero-overlay h2{

    font-size:36px;

}

.hero-overlay p{

    font-size:15px;

}

.video-grid{

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.short-card{

    min-width:190px;

    height:340px;

}

}


/* Small Mobile */

@media(max-width:480px){

.navbar-brand h5{

    font-size:18px;

}

.navbar-brand small{

    display:none;

}

.main-content{

    padding:12px;

}

.hero-image{

    height:210px;

}

.hero-overlay h2{

    font-size:22px;

}

.hero-overlay p{

    display:none;

}

.category-bar button{

    padding:7px 14px;

    font-size:12px;

}

.story-image{

    width:60px;
  padding:4px;
    height:60px;

}

.story-name{

    font-size:11px;

}

.channel-logo{

    width:42px;

    height:42px;

}

.video-title{

    font-size:15px;

}

.video-channel{

    font-size:13px;

}

.video-meta{

    font-size:12px;

}

.short-card{

    min-width:150px;

    height:260px;

}

.floating-btn{

    width:55px;

    height:55px;

    font-size:20px;

}

}
/* ================= DARK MODE ================= */

body.dark{

    background:#0f0f0f;

    color:#f1f1f1;

}

body.dark .navbar{

    background:#181818!important;

}

body.dark .sidebar{

    background:#181818;

    border-right:1px solid #2d2d2d;

}

body.dark .sidebar-menu a{

    color:#ddd;

}

body.dark .sidebar-menu a:hover{

    background:#2d2d2d;

    color:#fff;

}

body.dark .sidebar-menu a.active{

    background:#ff0033;

    color:#fff;

}

body.dark .main-content{

    background:#0f0f0f;

}

body.dark .category-bar button{

    background:#2a2a2a;

    color:#fff;

}

body.dark .category-bar button.active{

    background:#ff0033;

}

body.dark .video-card{

    background:#1a1a1a;

    border:1px solid #2f2f2f;

}

body.dark .video-title{

    color:#fff;

}

body.dark .video-channel{

    color:#bdbdbd;

}

body.dark .video-meta{

    color:#999;

}

body.dark .story-name{

    color:#fff;

}

body.dark .floating-item{

    background:#202020;

    color:#fff;

}

body.dark .floating-item:hover{

    background:#ff0033;

}

body.dark .search-box .form-control{

    background:#202020;

    color:#fff;

    border-color:#444;

}

body.dark .search-box button{

    background:#202020;

    color:#fff;

    border-color:#444;

}

body.dark .hero-buttons .btn-light{

    background:#303030;

    color:#fff;

}

body.dark .hero-buttons .btn-light:hover{

    background:#404040;

}
.up-next-card{
    transition:.3s;
    cursor:pointer;
}

.up-next-card:hover{
    transform:translateX(6px);
    box-shadow:0 10px 25px rgba(0,0,0,.12)!important;
}

.up-next-card img{
    transition:.3s;
}

.up-next-card:hover img{
    transform:scale(1.05);
}

.up-next-card .card-body{
    overflow:hidden;
}
/* < ================= COMMENTS ================= --> */
.comments-section{
    margin-top:40px;
}
.comments-section input{
    font-size:16px;
    padding:12px 0;
}

.comments-section input:focus{
    border-color:#ff1744 !important;
    box-shadow:none;
}
.comment-item{
    padding:12px;
    border-radius:12px;
    transition:.25s;
}

.comment-item:hover{
    background:#f8f9fa;
}
.comments-section .btn-light{
    border-radius:25px;
    font-size:13px;
}
.comments-section .btn-light:hover{
    background:#ff1744;
    color:#fff;
}
@media(min-width:992px){

.up-next{
    position:sticky;
    top:85px;
}

}
.comments-section img{
    object-fit:cover;
}

.video-player video{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    background:#000;
}
.video-page h3{
    margin-top:22px;
    margin-bottom:18px;
}
.btn-subscribe{
    height:42px;
    padding:0 28px;
    border-radius:25px;
    font-weight:600;
}
.video-actions .btn{
    border-radius:25px;
    padding:9px 18px;
    font-weight:500;
}
.video-description{
    border-radius:18px;
}
/* ================= VIDEO PAGE RESPONSIVE ================= */

.video-page{
    overflow-x:hidden;
}

.video-player video{
    width:100%;
    height:auto;
    border-radius:15px;
}

.video-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.video-actions .btn{
    white-space:nowrap;
}

.video-description{
    width:100%;
    word-break:break-word;
}

.up-next{
    position:static!important;
}

/* ================= Tablet ================= */

@media (max-width:991px){

    .video-page .row{
        flex-direction:column;
    }

    .video-page .col-lg-8,
    .video-page .col-lg-4{
        width:100%;
        max-width:100%;
    }

    .up-next{
        margin-top:25px;
    }

    .video-actions{
        margin-top:15px;
    }

}

/* ================= Mobile ================= */

@media (max-width:768px){

    .navbar{
        height:60px;
        padding:0 10px;
    }

    .sidebar{
        display:none;
    }

    .main-content{
        margin-left:0;
        padding:12px;
    }

    .video-page h3{
        font-size:22px;
    }

    .channel-info{
        flex-direction:column;
        align-items:flex-start!important;
        gap:12px;
    }

    .btn-subscribe{
        width:100%;
    }

    .video-actions{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .video-actions .btn{
        width:100%;
        justify-content:center;
    }

    .comments-section input{
        font-size:14px;
    }

    .up-next-card{
        margin-bottom:15px;
    }

    .up-next-card img{
        height:100px;
        object-fit:cover;
    }

}

/* ================= Small Mobile ================= */

@media (max-width:576px){

    .video-page h3{
        font-size:18px;
    }

    .video-actions{
        grid-template-columns:1fr;
    }

    .video-description{
        padding:15px!important;
        font-size:14px;
    }

    .comment-item{
        padding:10px;
    }

    .comment-item img{
        width:40px!important;
        height:40px!important;
    }

    .up-next-card{
        flex-direction:column;
    }

    .up-next-card img{
        width:100%!important;
        height:180px!important;
        border-radius:12px 12px 0 0;
    }

    .up-next-card .card-body{
        padding:12px;
    }

}

/* ================= Dark Theme Fix ================= */

body.dark .video-description,
body.dark .comment-item,
body.dark .up-next-card,
body.dark .card{
    background:#181818!important;
    border-color:#2f2f2f!important;
    color:#fff!important;
}

body.dark .text-muted,
body.dark small,
body.dark p{
    color:#bdbdbd!important;
}

body.dark .btn-light{
    background:#2a2a2a!important;
    color:#fff!important;
    border:1px solid #3a3a3a!important;
}

body.dark .form-control,
body.dark textarea{
    background:#202020!important;
    color:#fff!important;
    border-color:#3a3a3a!important;
}

@media (max-width:768px){

    /* Hide */
    .btn-upload,
    .btn-wallet,
    .btn-settings{
        display:none !important;
    }

}

/* ================= MOBILE NAVBAR ================= */

@media (max-width:768px){

    .navbar{
        height:auto;
        min-height:60px;
        padding:5px 0 10px 0;
    }

    .navbar .container-fluid{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        flex-wrap:wrap;
        padding:0 12px;
    }

    /* Menu */
    .navbar>.container-fluid>.btn:first-child{
        width:40px;
        height:40px;
        padding:0;
        flex-shrink:0;
    }

    /* Logo */
    .navbar-brand{
        margin:0;
        padding:0;
        flex-shrink:0;
    }

    .navbar-brand img{
        width:38px;
        height:38px;
    }

    .navbar-brand h5,
    .navbar-brand small{
        display:none!important;
    }

    /* Search */
    .search-box{
        display:flex!important;
        order:3;
        width:100%;
        margin-top:10px;
    }

    .search-box .form-control{
        height:42px;
    }

    .search-box button{
        height:42px;
    }

    /* Icons */
    .nav-icons{
        display:flex;
        align-items:center;
        gap:6px;
        margin-left:auto;
    }

    .nav-icons .btn:not(.rounded-pill){
        width:36px;
        height:36px;
        min-width:36px;
        padding:0;
    }

    .nav-icons .btn.rounded-pill{
        height:36px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        padding:0 12px!important;
        font-size:12px;
        width:auto;
        min-width:auto;
    }

    .nav-icons img{
        width:36px;
        height:36px;
    }

    .nav-icons .dropdown{
        margin-left:0!important;
    }

    .main-content{
        margin-top:105px;
    }

}
.shorts-row{
    display:flex;
    gap:20px;
    overflow-x:auto;
    padding-bottom:10px;
}

.short-card{
    width:220px;
    min-width:220px;
    text-decoration:none;
    border-radius:15px;
    overflow:hidden;
}

.short-thumb{
    position:relative;
    overflow:hidden;
    border-radius:15px;
}

.short-thumb img{
    width:100%;
    height:390px;
    object-fit:cover;
    display:block;
}

.play-overlay{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:60px;
    height:60px;
    background:rgba(0,0,0,.45);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:24px;
    opacity:0;
    transition:.3s;
}

.short-card:hover .play-overlay{
    opacity:1;
}

.duration{
    position:absolute;
    bottom:10px;
    right:10px;
}
.short-page{

    display:flex;
    justify-content:center;
    align-items:center;

    min-height:calc(100vh - 70px);

    background:#fff;
}

.short-wrapper{

    display:flex;
    align-items:flex-end;
    gap:20px;
}

.short-player{

    position:relative;
}

.short-player video{

    width:420px;
    height:90vh;

    object-fit:cover;

    border-radius:18px;

    background:#000;
}

.short-info{

    position:absolute;

    left:15px;

    right:15px;

    bottom:15px;

    color:#fff;

    z-index:20;

    text-shadow:0 1px 4px rgba(0,0,0,.7);
}

.short-actions{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:12px;

    margin-bottom:30px;
}

.short-actions button{

    width:56px;

    height:56px;

    border-radius:50%;

    border:none;

    background:#f1f1f1;

    font-size:22px;

    cursor:pointer;
}

.short-actions span{

    font-size:13px;

    color:#444;
}

/* ================= STORIES SYSTEM ================= */
.story-unseen {
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, #ff007f, #7f00ff);
    display: inline-block;
}
.story-unseen img {
    border: 2px solid var(--bg);
    border-radius: 50%;
    display: block;
}
.story-seen {
    border-radius: 50%;
    padding: 2.5px;
    background: #6b7280;
    display: inline-block;
}
.story-seen img {
    border: 2px solid var(--bg);
    border-radius: 50%;
    display: block;
}
.story-add {
    position: relative;
    border-radius: 50%;
}
.story-add i {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #ff1744;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid var(--bg);
}

/* ================= STORY VIEWER MODAL ================= */
.story-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.story-viewer-modal.open {
    display: flex;
}
.story-viewer-content {
    position: relative;
    max-width: 450px;
    width: 100%;
    height: 85vh;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.story-progress-indicators {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 1010;
}
.story-progress-bar-wrapper {
    flex-grow: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}
.story-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    transition: width 0.1s linear;
}
.story-viewer-header {
    position: absolute;
    top: 22px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    z-index: 1010;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.story-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    object-fit: cover;
}
.story-username {
    font-weight: 600;
    font-size: 14px;
}
.story-time-ago {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}
.story-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.story-close-btn:hover {
    opacity: 1;
}
.story-media-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    cursor: pointer;
}
.story-viewer-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.story-viewer-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1010;
}
#storyLikeBtn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}
#storyLikeBtn.active {
    background: #ff1744;
    border-color: #ff1744;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

/* ================= OFFCANVAS MOBILE SIDEBAR THEME COMPATIBILITY ================= */
.offcanvas {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-right: 1px solid var(--border) !important;
}

.offcanvas-header {
    border-bottom: 1px solid var(--border) !important;
}

.offcanvas-header h5 {
    color: var(--text-primary) !important;
}

.offcanvas-body .sidebar-menu a {
    color: var(--text-primary) !important;
}

.offcanvas-body .sidebar-menu a.active {
    color: #fff !important;
    background: #ff1744 !important;
}

.offcanvas-body .sidebar-menu a:hover {
    color: #ff0033 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark .offcanvas .btn-close {
    filter: invert(1) grayscale(1) brightness(2) !important;
}
