/* ========================================
   ELEMEGI MOBILE STYLES
   Mobile-first responsive design
   ======================================== */

/* Mobile breakpoint - max 768px */
@media (max-width: 768px) {

    /* ========================================
       LAYOUT & STRUCTURE
       ======================================== */

    .elemegi-layout {
        flex-direction: column;
    }

    /* Hide desktop sidebar on mobile */
    .elemegi-sidebar {
        display: none !important;
    }

    /* Main content full width */
    .elemegi-main-content {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    /* ========================================
       MOBILE HEADER
       ======================================== */

    .elemegi-header {
        padding: 16px 0 12px 0;
        margin-bottom: 12px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        height: auto;
    }

    /* Mobile Logo */
    .mobile-logo {
        display: block;
    }

    .mobile-logo-img {
        width: 101px;
        height: 24px;
        object-fit: contain;
    }

    /* Hide desktop header elements */
    .header-logo,
    .header-actions,
    .btn-share-effort,
    .header-profile-dropdown {
        display: none !important;
    }

    /* Mobile Search */
    .header-search {
        width: 100% !important;
        max-width: 100% !important;
        height: 40px;
        order: 0;
        margin: 0;
    }

    .header-search form {
        height: 40px;
    }

    .search-input {
        height: 40px;
        padding: 8px 4px 8px 16px;
        font-size: 14px;
        border: 1px solid #E4E7E4;
        border-radius: 100px;
    }

    .search-icon {
        width: 32px;
        height: 32px;
        right: 4px;
    }

    .search-icon img {
        width: 14px;
        height: 14px;
    }

    /* ========================================
       SLIDER BANNER AREA
       ======================================== */

    .slider-banner-area {
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .slider-banner-left {
        width: 100%;
        height: 140px;
        flex: none;
        border-radius: 12px;
    }

    .slider-banner-right {
        display: none;
        /* Hide on mobile */
    }

    .slider-container {
        border-radius: 12px;
    }

    .slider-dots {
        bottom: 10px;
        padding: 4px 8px;
        gap: 6px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }

    /* ========================================
       CATEGORY FILTER
       ======================================== */


    .category-filter {
        padding: 12px 0;
        gap: 8px;
    }

    .category-btn {
        min-width: auto;
        height: 28px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        margin-right: 6px !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
        font-family: Plus Jakarta Sans;
        line-height: 20px !important;
    }

    .category-scroll-btn {
        display: none !important;
    }

    /* ========================================
       VIDEO GRID
       ======================================== */

    .video-grid-container {
        padding: 16px 0;
    }

    .video-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        grid-template-columns: none !important;
    }

    /* Suggestion Tabs */
    .suggestion-tabs-wrapper {
        overflow-x: auto;
        white-space: nowrap;
        margin-bottom: 16px;
        -webkit-overflow-scrolling: touch;
        padding: 0 4px 4px 0;
    }

    .suggestion-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .suggestion-tabs {
        display: flex;
        gap: 8px;
    }

    .suggestion-tab {
        background: #EFF6EF;
        border-radius: 6px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        color: #1A1A1A;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        padding-right: 12px;
        padding-left: 12px;
    }

    .suggestion-tab:hover {
        background-color: #E4E7E4;
    }

    .suggestion-tab.active {
    background: #028702;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    height: 32px;
    border-radius: 6px;
    padding-right: 12px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .suggestion-tab.active:focus {
        outline: none;
        border: none;
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: flex;
    }


    /* Horizontal video grid for save videos page */
    .liked-videos-container .video-grid {
        gap: 8px;
    }

    .liked-videos-container .video-grid-container {
        padding: 0;
    }

    .liked-videos-icon-wrapper {
        margin-bottom: 22px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .liked-videos-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 600;
        font-size: 21px;
        line-height: 22px;
        color: #1A1A1A;
        margin: 0 0 8px 0;
    }

    .liked-videos-icon {
        width: 72px;
        height: 66px;
        opacity: 1;
        object-fit: contain;
    }

    .watch-history-container {
        padding: 0;
    }

    .video-card {
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }

    .video-card:hover {
        background-color: none;
        box-shadow: none;
        transform: none;
    }

    /* Horizontal Video Card for Save Videos Page */
    .liked-videos-container .video-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        height: 100px;
        padding: 0;
        cursor: pointer;
        border: none;
    }

    .liked-videos-container .video-thumbnail {
        width: 160px;
        height: 100px;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        aspect-ratio: unset;
    }

    .liked-videos-container .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .liked-videos-container .video-category-badge {
        display: none;
        /* Hide category badge on thumbnail for horizontal cards */
    }

    .liked-videos-container .video-duration {
        position: absolute;
        bottom: 6px;
        left: 6px;
        background: #021E02B2;
        color: #FFFFFF;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 8px;
        width: auto;
        min-width: auto;
        height: auto;
        line-height: 16px;
    }

    .liked-videos-container .video-author-avatar {
        display: none;
        /* Hide author avatar on thumbnail for horizontal cards */
    }

    .liked-videos-container .video-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        min-width: 0;
    }

    .liked-videos-container .video-author-name {
        display: none;
        /* Hide author name for horizontal cards */
    }

    .liked-videos-container .video-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 13px;
        font-weight: 500;
        line-height: 20px;
        color: #1A1A1A;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
    }

    .liked-videos-container .video-meta {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 12px;
        font-weight: 500;
        line-height: 18px;
        color: #707470;
        margin: 0;
        gap: 4px;
        display: flex;
        align-items: center;
    }

    .liked-videos-container .video-meta span {
        font-size: 12px;
        font-weight: 500;
        line-height: 18px;
    }

    .liked-videos-container .video-meta i {
        font-size: 4px;
        color: #707470;
    }

    /* Category text in info section for horizontal cards */
    .liked-videos-container .video-category-text {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 12px;
        font-weight: 700;
        color: #028702;
        line-height: 18px;
        display: block;
    }

    .liked-videos-container {
        padding: 10px 0 7px 0;
        width: 100%;
    }

    .liked-videos-page-title {
        display: none;
    }

    /* Watch History Date Sections */
    .watch-history-section {
        margin-bottom: 12px;
    }

    .watch-history-section-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        color: #1A1A1A;
        margin: 0 0 10px 0;
        padding: 0;
    }

    /* Default vertical video card styles */
    .video-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .video-category-badge {
        top: 10px;
        left: 10px;
        height: 24px;
        min-width: auto;
        padding: 0 8px;
        font-size: 11px;
        border-radius: 6px;
        font-family: Plus Jakarta Sans;
        font-weight: 700;
        font-style: Bold;
        line-height: 18px;
    }

    .video-duration {
        bottom: 10px;
        left: 10px;
        width: 38px;
        height: 20px;
        min-width: 34px;
        font-size: 11px;
        padding: 1px 5px;
        border-radius: 6px;
        font-family: Plus Jakarta Sans;
        font-weight: 700;
        line-height: 18px;
    }

    .video-author-avatar {
        width: 48px;
        height: 48px;
        right: 12px;
        bottom: 0;
    }

    .video-info {
        padding: 10px 12px 14px 12px;
        gap: 8px;
    }

    .video-author-name {
        font-size: 13px;
        font-family: Plus Jakarta Sans;
        font-weight: 600;
        font-style: SemiBold;
        line-height: 20px;

    }

    .video-title {
        font-size: 14px;
        line-height: 20px;
        -webkit-line-clamp: 2;
        font-family: Plus Jakarta Sans;
        font-weight: 500 !important;
    }

    .video-meta {
        font-size: 13px;
        gap: 6px;
        height: auto;
        width: 100%;
        max-width: 100%;
        font-family: Plus Jakarta Sans;
        font-weight: 500;
        font-style: Medium;
        line-height: 20px;
    }

    .video-meta span {
        font-size: 13px;
        font-family: Plus Jakarta Sans;
        font-weight: 500;
        font-style: Medium;
        line-height: 20px;
    }

    #loadMoreContainer {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        width: 100%;
    }

    .btn-load-more-videos {
        width: 100%;
        max-width: 200px;
        height: 40px;
        font-size: 14px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        background-color: #FFFFFF;
        border-radius: 56px;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        color: #1A1A1A;
        text-decoration: none !important;
        transition: all 0.2s;
        box-shadow: 0px 0px 12px 0px #B4B4B459;
    }


    #loadMoreContainerMobile {
        height: 56px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) -10.37%, #FFFFFF 93%);
        position: relative;
        bottom: 50px;
        z-index: 10;
    }

    .btn-load-more-videos:focus {
        outline: none;
        box-shadow: 0px 0px 12px 0px #B4B4B459;
    }


    /* ========================================
       MOBILE BOTTOM NAVIGATION
       ======================================== */

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        border-top: 1px solid #E4E7E4;
        z-index: 1000;
        padding: 0 16px;
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-sizing: border-box;
        backdrop-filter: blur(36px);

    }

    .bottom-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        height: 100%;
        padding: 0 0 18px 0;
    }

    .bottom-nav-item img {
        width: 24px;
        height: 24px;
        border-width: 1.4px;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #707470;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 10px;
        font-weight: 500;
        gap: 4px;
        padding: 8px 0;
        min-width: 56px;
        transition: color 0.2s;
    }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: #1A1A1A;
        text-decoration: none;
    }

    .bottom-nav-item i {
        font-size: 20px;
    }

    .bottom-nav-item span {
        font-size: 10px;
        line-height: 1;
        font-family: Plus Jakarta Sans;
        font-weight: 500;
        font-style: Medium;
        line-height: 16px;
        color: #1A1A1A;

    }

    /* Center Add Button */
    .bottom-nav-add {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .modern-settings-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        opacity: 1;
        width: 100%;
        height: 100%;
        padding: 20px 0 0 0;
    }

    .settings-tabs {
        display: flex;
        gap: 32px;
        border-bottom: 1px solid #E4E7E4;
        padding: 15px 0 0 0;
        margin: 0;
    }

    .channel-profile-page.desktop-profile {
        display: none !important;
    }

    .mobile-profile-page {
        display: block;
    }

    #video-category-select {
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        padding: 5px 15px;
        height: auto;
        width: 50%;
    }

    .channel-banner-container {
        display: none;
    }

    .channel-header-info {
        display: none;
    }
}

@media (min-width: 769px) {
    #loadMoreContainerMobile {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 32px;
        margin-bottom: 32px;
        height: auto;
        background: none;
        position: static;
        bottom: auto;
        z-index: auto;
    }

    #loadMoreContainer {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 32px;
        margin-bottom: 32px;
        padding: 0;
    }

    .comment-user-avatar-mobile {
        display: none;
    }

    .header-mobile-wrapper {
        display: none;
    }

    .video-replies-overlay {
        display: none;
    }
}

/* ========================================
   SMALLER MOBILE (max 480px)
   ======================================== */

@media (max-width: 480px) {
    .elemegi-main-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .slider-banner-left {
        height: 120px;
    }

    .video-grid {
        gap: 8px;
    }

    .category-btn {
        height: 26px;
        padding: 0 10px;
        font-size: 12px;
    }

    .bottom-nav-item {
        min-width: 48px;
    }

    .bottom-nav-item span {
        font-size: 10px;
        line-height: 1;
        font-family: Plus Jakarta Sans;
        font-weight: 500;
        font-style: Medium;
        line-height: 16px;
        color: #1A1A1A;
    }
}

/* ========================================
   HIDE MOBILE ELEMENTS ON DESKTOP
   ======================================== */

@media (min-width: 769px) {

    .mobile-bottom-nav,
    .mobile-logo {
        display: none !important;
    }
}

/* ========================================
   FOLLOWED USERS PAGE - MOBILE ONLY
   ======================================== */

/* Base styles - mobile only page with header */
.followed-users-page,
.mobile-profile-page {
    padding: 0;
    min-height: calc(100vh - 200px);
}

.followed-users-page {
    margin: 0;
}

.followed-users-page-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}

.followed-users-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.followed-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.followed-user-item:hover {
    text-decoration: none;
}

.followed-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.followed-user-info {
    flex: 1;
    min-width: 0;
}

.followed-user-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.followed-user-stats {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #707470;
}

.followed-user-stats strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: #1A1A1A;
}

.followed-user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FF69B4;
    flex-shrink: 0;
    margin-right: 4px;
}

.followed-users-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 250px;
}

.followed-users-empty i {
    font-size: 40px;
    color: #E4E7E4;
    margin-bottom: 16px;
}

.followed-users-empty p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #707470;
    margin-bottom: 20px;
}

.btn-explore-users {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    background-color: #1A1A1A;
    color: #FFFFFF;
    border-radius: 56px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.btn-explore-users:hover {
    background-color: #333333;
    color: #FFFFFF;
    text-decoration: none;
}

/* Empty State - New Design */
.followed-users-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.empty-state-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}

.empty-state-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #707470;
    margin: 0;
    max-width: 280px;
}

/* Popular Creators Section */
.popular-creators-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E4E7E4;
}

.popular-creators-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.mobile-page-header {
    display: none;
    /* Hidden on desktop */
}

/* Mobile Page Header - Common Styles */
@media (max-width: 768px) {

    /* Hide default header on pages with mobile-page-header */
    body:has(.followed-users-page) .elemegi-header,
    body:has(.mobile-profile-page) .elemegi-header {
        display: none !important;
    }

    body:has(.followed-users-page) .mobile-logo,
    body:has(.mobile-profile-page) .mobile-logo {
        display: none !important;
    }

    body:has(.followed-users-page) .elemegi-main-content,
    body:has(.mobile-profile-page) .elemegi-main-content {
        padding-top: 0 !important;
    }

    /* Mobile Page Header Styles - Common for all pages */
    .mobile-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 16px;
        margin: 0;
        margin-bottom: 8px;
        border-bottom: 1px solid #E4E7E4;
    }

    .mobile-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 12px;
        margin-right: 22px;
        flex-shrink: 0;
    }

    .mobile-back-btn img {
        width: 16px;
        height: 12px;
        object-fit: contain;
    }

    .mobile-header-logo {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: flex-start;
    }

    .mobile-header-logo img {
        width: 101px;
        height: 24px;
        object-fit: contain;
    }

    .mobile-search-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .mobile-search-icon-btn img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }
}

/* ========================================
   MOBILE PROFILE PAGE
   ======================================== */

/* Hide desktop profile on mobile */
@media (max-width: 768px) {

    .desktop-profile,
    .channel-profile-page.desktop-profile {
        display: none !important;
    }
}

/* Hide mobile profile on desktop */
@media (min-width: 769px) {
    .mobile-profile-page {
        display: none !important;
    }
}



/* Banner */
.mobile-profile-banner {
    position: relative;
    width: 100%;
    height: 100px;
    max-height: 100px;
    overflow: hidden;
    background: #E8F5E9;
    border-radius: 16px;

}

.mobile-profile-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-cover-upload-form {
    position: absolute;
    bottom: 2px;
    left: 16px;
    z-index: 10;
}

.mobile-cover-upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 56px;
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    width: 163px;
    height: 32px;
}

.mobile-cover-upload-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.mobile-cover-upload-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.mobile-profile-banner-logo {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
}

.mobile-profile-banner-logo-img {
    width: 80px;
    height: auto;
    opacity: 0.9;
}

/* Profile Info Section */
.mobile-profile-info-section {
    padding: 0 16px;
    margin-top: 10px;
    position: relative;
    z-index: 20;
}

.mobile-profile-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 343px;
    min-height: 72px;
    margin-bottom: 16px;
}

.mobile-profile-avatar-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.mobile-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-profile-upload-form {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
}

.mobile-profile-upload-btn {
    width: 72px;
    height: 72px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    background: #28272766;
    transition: all 0.2s ease;
    margin: 0 auto;
}


.mobile-profile-upload-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mobile-profile-name-stats-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.mobile-profile-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
}

.mobile-profile-stats {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #707470;
    margin: 0;
}

.mobile-profile-stats strong {
    font-weight: 600;
    color: #1A1A1A;
}

.mobile-profile-stats .dot-separator {
    margin: 0 6px;
    color: #707470;
}

.mobile-profile-bio {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    color: #707470;
    margin: 0 0 16px 0;
}

/* Action Buttons */
.mobile-profile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-profile-edit-btn {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border: 1px solid #E4E7E4;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #1A1A1A;
    text-decoration: none !important;
    transition: all 0.2s;
}

.mobile-profile-subscribe-btn {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1A1A1AFF;
    border: 1px solid #E4E7E4;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #FFFF;
    text-decoration: none !important;
    transition: all 0.2s;
}

.mobile-profile-unsubscribe-btn {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E4E7E4;
    border: 1px solid #E4E7E4;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #1A1A1A;
    text-decoration: none !important;
    transition: all 0.2s;
}

.mobile-profile-unsubscribe-btn:focus {
    outline: none;
    border: none;
}

.mobile-profile-notification-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border: 1px solid #E4E7E4;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-profile-notification-btn:hover {
    background-color: #F5F5F5;
}

.mobile-profile-notification-btn img {
    width: 20px;
    height: 20px;
}

.notification-badge-mobile {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    background: #1A1A1A !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 3px 6px !important;
    border-radius: 10px !important;
    text-align: center !important;
}

/* Profile Sections */

/* Profile Action Cards */
@media (max-width: 768px) {
    .mobile-profile-action-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }
}

@media (min-width: 769px) {
    .mobile-profile-action-cards {
        display: none !important;
    }
}

.mobile-profile-action-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    height: 80px;
    padding: 0 16px;
    border: 1px solid #E4E7E4;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s;
}


.mobile-profile-action-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-profile-action-card-icon img {
    width: 24px;
    height: 24px;
}

.mobile-profile-action-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mobile-profile-action-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #1A1A1A;
    margin: 0 0 4px 0;
}

.mobile-profile-action-card-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #707470;
    margin: 0;
}

.mobile-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mobile-profile-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #1A1A1A;
    margin: 0;
}

.mobile-profile-section-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    text-decoration: none !important;
    padding: 6px 12px;
    border: 1px solid #E4E7E4;
    border-radius: 100px;
    transition: all 0.2s;
    width: 105px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-profile-section-link:hover {
    background-color: #E4E7E4;
    color: #1A1A1A;
    text-decoration: none;
}

/* Horizontal Scroll Container */
.mobile-profile-horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding: 0 16px 15px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-profile-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Horizontal Video Card */
.profile-horizontal-card {
    flex-shrink: 0;
    width: 160px;
    text-decoration: none !important;
    display: block;
}

.profile-horizontal-card:hover {
    text-decoration: none;
}

.profile-horizontal-thumb {
    position: relative;
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.profile-horizontal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-horizontal-duration {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.profile-horizontal-info {
    width: 100%;
}

.profile-horizontal-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-style: Bold;
    font-size: 12px;
    color: #028702;
    display: block;
    margin-bottom: 4px;
    line-height: 18px;


}

.profile-horizontal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-horizontal-meta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    color: #707470;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.profile-horizontal-meta .dot {
    margin: 0 4px;
}

/* Tabs */
.mobile-profile-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0 9px 0;
}

.mobile-profile-tab {
    background: #EFF6EF;
    border-radius: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    color: #1A1A1A;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding-right: 12px;
    padding-left: 12px;
}

.mobile-profile-tab:hover {
    background: #EFF6EF;
    color: #028702;
}

.mobile-profile-tab:focus {
    outline: none;
    border: none;
}

.mobile-profile-tab.active {
    background: #028702;
    color: #FFFFFF;
    height: 32px;
    border-radius: 6px;
    padding-right: 12px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;


}

/* Tab Content */
.mobile-profile-tab-content {
    display: none;
}

.mobile-profile-tab-content.active {
    display: block;
}

/* Video List */
.mobile-profile-video-list {
    display: flex;
    flex-direction: column;
}

.mobile-profile-video-item {
    display: flex;
    gap: 12px;
    text-decoration: none !important;
    margin-bottom: 16px;
}

.mobile-profile-video-item:hover {
    text-decoration: none;
}

.mobile-profile-video-thumb {
    position: relative;
    width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-profile-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-profile-video-duration {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.mobile-profile-video-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-profile-video-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-style: Bold;
    line-height: 18px;
    color: #028702;
    margin-bottom: 4px;
}

.mobile-profile-video-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    color: #1A1A1A;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-profile-video-meta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: #707470;
    display: flex;
    align-items: center;
}

.mobile-profile-video-meta .dot {
    margin: 0 6px;
}

/* Videos Section */
.mobile-profile-videos-section {
    margin-top: 8px;
}

/* Load More */
.mobile-profile-load-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Empty State */
.mobile-profile-empty {
    text-align: center;
    padding: 40px 20px;
}

.mobile-profile-empty p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #707470;
    margin: 0;
}

/* Hide header on profile page */
@media (max-width: 768px) {
    body:has(.mobile-profile-page) .elemegi-header {
        display: none !important;
    }

    body:has(.mobile-profile-page) .mobile-logo {
        display: none !important;
    }

    body:has(.mobile-profile-page) .elemegi-main-content {
        padding-top: 0 !important;
    }
}

/* ========================================
   NOTIFICATIONS PAGE
   ======================================== */

@media (max-width: 768px) {

    /* Hide default header on notifications page */
    body:has(.notifications-page) .elemegi-header {
        display: none;
    }

    /* Hide header on mobile for specific pages */
    @media (max-width: 768px) {
        .elemegi-header.hide-on-mobile {
            display: none !important;
        }
    }

    body:has(.notifications-page) .elemegi-header {
        display: none !important;
    }

    body:has(.notifications-page) .mobile-logo {
        display: none !important;
    }

    body:has(.notifications-page) .elemegi-main-content {
        padding-top: 0 !important;
    }


    .notifications-page {
        padding: 0;
        min-height: calc(100vh - 80px);
        padding-bottom: 100px;
    }

    /* Notifications Header */
    .notifications-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid #E4E7E4;
        background: #FFFFFF;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .notifications-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .notifications-back-btn img {
        width: 18px;
        height: 16px;
        object-fit: contain;
    }

    .notifications-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        color: #1A1A1A;
        margin: 0;
        flex: 1;
        text-align: center;
    }

    .notifications-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        padding: 0;
    }

    .notifications-menu-btn img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .notifications-menu-btn:focus {
        outline: none;
    }

    .notifications-menu-dropdown {
        position: relative;
    }

    .notifications-menu-dropdown-content {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: #FFFFFF;
        border: 1px solid #E4E7E4;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        z-index: 1000;
        overflow: hidden;
    }

    .notifications-menu-dropdown-item {
        display: block;
        width: 100%;
        padding: 12px 16px;
        background: none;
        border: none;
        text-align: left;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        color: #1A1A1A;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .notifications-menu-dropdown-item:hover {
        background-color: #F5F5F5;
    }

    .notifications-menu-dropdown-item:active {
        background-color: #E4E7E4;
    }

    /* Notifications Tabs */
    .notifications-tabs {
        display: flex;
        gap: 8px;
        padding: 12px 16px;
        border-bottom: 1px solid #E4E7E4;
        background: #FFFFFF;
    }

    .notification-tab {
        flex: 1;
        padding: 8px 16px;
        background: #EFF6EF;
        border: none;
        border-radius: 100px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        color: #1A1A1A;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 6px;
    }

    .notification-tab:hover {
        background: #E0F0E0;
    }

    .notification-tab:focus {
        outline: none;
    }

    .notification-tab.active {
        background: #028702;
        color: #FFFFFF;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
    }

    .notification-tab.active:focus {
        outline: none;
    }

    .notification-tab.active .unread-count {
        color: #FFFFFF;
    }

    .unread-count {
        color: #1A1A1A;
        font-weight: 600;
    }


    .notifications-section {
        margin-top: 24px;
    }

    .notifications-section:first-child {
        margin-top: 16px;
    }

    .notifications-section-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        color: #1A1A1A;
        padding: 0 0 12px 16px;
    }

    .notifications-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .notification-item {
        border-bottom: 1px solid #E4E7E4;
        border-top: 1px solid #E4E7E4;
    }

    .notification-item-unread {
        background-color: #EFF6EF;
    }

    .notification-item:last-child {
        border-bottom: 1px solid #E4E7E4;
    }

    .notification-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .notification-text {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 13px;
        font-weight: 500;
        line-height: 20px;
        color: #1A1A1A;
        margin: 0;
    }

    .notification-text strong {
        font-weight: 600;
        color: #1A1A1A;
    }

    .notification-time {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 13px;
        font-weight: 500;
        line-height: 20px;
        color: #707470;
    }

}

@media (min-width: 769px) {

    /* Hide mobile profile on desktop */
    .mobile-profile-page {
        display: none !important;
    }

    /* Show desktop profile on desktop */
    .channel-profile-page.desktop-profile {
        display: block;
    }
}



/* Hide watch history date sections on desktop */
@media (min-width: 769px) {

    .watch-history-mobile,
    .watch-history-mobile .watch-history-section,
    .watch-history-mobile .watch-history-section-title {
        display: none !important;
    }

    .watch-history-desktop {
        display: block !important;
    }

    .saved-videos-mobile,
    .saved-videos-mobile .watch-history-section,
    .saved-videos-mobile .watch-history-section-title {
        display: none !important;
    }

    .saved-videos-desktop {
        display: block !important;
    }
}

/* Hide desktop version on mobile */
@media (max-width: 768px) {
    .watch-history-desktop {
        display: none !important;
    }

    .watch-history-mobile {
        display: block !important;
    }

    .saved-videos-desktop {
        display: none !important;
    }

    .saved-videos-mobile {
        display: block !important;
    }
}

/* SweetAlert2 Button Focus Outline Remove */
.swal2-confirm:focus,
.swal2-cancel:focus,
.swal2-deny:focus {
    outline: none !important;
    box-shadow: none !important;
}

.swal2-confirm:focus-visible,
.swal2-cancel:focus-visible,
.swal2-deny:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ========================================
   VIDEO PAGE - MOBILE STYLES
   ======================================== */
@media (max-width: 768px) {


    /* Custom Mobile Header for Video Page */
    .video-mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: 1px solid #f0f0f0;
    }

    .video-mobile-header .back-btn {
        font-size: 18px;
        color: #1A1A1A;
        width: 24px;
        display: flex;
        align-items: center;
    }

    .video-mobile-header .logo-img {
        height: 20px;
        object-fit: contain;
    }

    .video-mobile-header .search-btn {
        font-size: 18px;
        color: #1A1A1A;
        width: 24px;
        display: flex;
        justify-content: flex-end;
    }

    /* Layout Reset */
    .video-page-container {
        padding: 0 !important;
        margin-top: 0 !important;
        background: #fff;
        display: flex;
        flex-direction: column;
    }

    .video-main-section {
        width: 100%;
        padding: 0;
    }

    /* Video Player */
    .video-player-wrapper {
        width: 100%;
        background: #000;
        position: relative;
        border-radius: 0;
        margin-bottom: 20px;
        aspect-ratio: 16 / 9;
    }

    .video-player-wrapper video {
        width: 100%;
        max-height: 300px;
        background: #000;
        display: block;
    }

    /* Info Box */
    .video-info-box {
        padding: 0;
        margin: 0;
    }

    .video-page-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
        color: #1A1A1A;
        margin-bottom: 8px;
        height: auto;
    }

    .video-info-box-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #707470;
    }

    .video-info-box-header a {
        color: #707470;
        font-weight: 500;
        font-family: Plus Jakarta Sans;
        font-style: Medium;
        font-size: 13px;
        line-height: 20px;
    }

    /* Author Section */
    .video-action-bar {
        border: none;
        padding: 0;
        margin-bottom: 0;
        flex-direction: column;
        gap: 16px;
    }

    .video-author-info {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .video-author-img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }

    .author-detail {
        flex: 1;
    }

    .author-detail .name {
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        color: #1A1A1A;
        display: block;
        margin-bottom: 2px;
    }

    .author-detail .subs {
        font-size: 12px;
        color: #707470;
        font-weight: 500;
        line-height: 18px;
    }

    .subs-wrapper {
        font-size: 12px;
        color: #707470;
    }

    .btn-subscribe {
        background: #1A1A1A;
        color: #fff;
        border-radius: 100px;
        height: 32px;
        padding: 0 20px;
        font-size: 12px;
        font-weight: 600;
        border: none;
        margin-left: auto;
    }

    .btn-unsubscribe {
        background: #F0F0F0;
        color: #1A1A1A;
    }

    /* Interaction Buttons Scroll */
    .video-stats-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-left: -16px;
        padding-left: 16px;
        padding-right: 16px;
        width: calc(100% + 32px);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .video-stats-actions::-webkit-scrollbar {
        display: none;
    }

    .video-actions-wrapper {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    /* Make all action buttons pill shaped and consistent */
    .video-action-group {
        display: flex;
        background: #FFFFFF;
        border-radius: 100px;
        height: 36px;
        align-items: center;
        padding: 0;
        overflow: hidden;
        flex-shrink: 0;
    }

    .action-btn-pill {
        height: 36px;
        background: transparent;
        border: none;
        padding: 0 12px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        font-size: 12px;
    }

    .action-btn-pill img {
        width: 24px;
        height: 24px;
    }

    .action-divider {
        width: 1px;
        height: 20px;
        background: #E0E0E0;
    }

    .video-action-single {
        height: 36px;
        background: #FFFFFF;
        border-radius: 100px;
        border: 1px solid #E0E0E0;
        color: #1A1A1A;
        padding: 0 16px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        flex-shrink: 0;
    }

    .video-action-single img {
        width: 24px;
        height: 24px;
    }

    .video-action-more-wrapper {
        flex-shrink: 0;
    }

    .video-action-more {
        display: none;
    }

    .video-more-item {
        height: 36px;
        background: #FFFFFF;
        border-radius: 100px;
        border: 1px solid #E0E0E0;
        color: #1A1A1A;
        padding: 0 16px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        font-size: 14px;
    }

    .video-more-item i {
        font-size: 20px;
        color: #1A1A1A;
        border-top-right-radius: 100px;
    }

    /* Content Box (Description) */
    .single-video-info-content {
        margin-top: 12px;
        padding: 12px !important;
        background: #F5F5F5 !important;
        border: none !important;
        border-radius: 12px !important;
    }

    .video-info-section-title {
        font-size: 12px;
        font-weight: 700;
        font-family: Plus Jakarta Sans;
        line-height: 18px;
        color: #707470;
        margin-bottom: 8px;
    }

    .video-description-text {
        font-size: 13px;
        line-height: 20px;
        color: #333;
    }

    .btn-toggle-description {
        font-weight: 700;
        color: #1A1A1A;
        font-size: 13px;
    }

    /* Gallery */
    .video-gallery-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
        margin-top: 8px;
    }

    .video-gallery-list::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        border-radius: 8px;
        overflow: hidden;
    }

    /* Comments */
    .video-comments-container {
        border-top: 1px solid #F0F0F0;
        border-radius: 8px;
        padding: 12px;
        background: #F9F9F9;
        margin: 0;
    }

    .comments-header-area {
        margin-bottom: 10px;
    }

    .comments-count-title {
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        display: flex;
        align-items: center;
        width: 100%;
        gap: 3px;
        margin: 0;
    }

    .comments-count-title span {
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        color: #707470;

    }


    /* Mobile Comments Toggle Styles */
    .comments-count-title.desktop-header {
        display: none;
    }

    .comments-count-title.mobile-preview-header i {
        font-size: 12px;
        padding: 4px 0 0 11px;
    }

    /* Collapsed State (Default) */
    .video-comments-container:not(.expanded) .mobile-comments-content-wrapper .comment-input-row,
    .video-comments-container:not(.expanded) .mobile-comments-content-wrapper .comment-input-area-logged,
    .video-comments-container:not(.expanded) .comments-pagination-container {
        display: none !important;
    }

    .video-comments-container:not(.expanded) .comment-item:not(:first-child) {
        display: none !important;
    }

    .replies-container {
        position: relative;
        padding-top: 10px;
        margin-left: -32px;
        margin-bottom: 10px
    }

    .replies-container .comment-item {
        gap: 12px;
        position: relative;
        margin: 0;

    }

    .replies-container .replies-container {
        padding-left: 24px;
    }

    .btn-comment-cancel {
        display: none !important;
    }

    /* Comment Form Actions - Mobile (General) */
    .comment-form-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        margin-top: 8px;
        padding: 0;
    }

    .btn-comment-submit {
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        min-width: 40px;
    }

    .btn-comment-submit .btn-comment-submit-text {
        display: none;
    }

    .btn-comment-submit i {
        font-size: 14px;
        color: #FFFFFF;
    }

    .video-comments-container:not(.expanded) .comment-item:first-child .comment-actions,
    .video-comments-container:not(.expanded) .comment-item:first-child .replies-toggle-btn,
    .video-comments-container:not(.expanded) .comment-item:first-child .replies-container {
        display: none !important;
    }

    .video-comments-container:not(.expanded) .comment-item:first-child {
        border: none;
        padding: 0;
        margin: 0;
        margin-top: 12px;
    }

    .video-comments-container:not(.expanded) .comment-item:first-child .comment-avatar {
        width: 28px;
        height: 28px;
    }

    .video-comments-container:not(.expanded) .comment-item:first-child .comment-content-box {
        gap: 0;
    }

    .video-comments-container:not(.expanded) .comment-item:first-child .comment-author-info {
        display: none;
    }

    .video-comments-container:not(.expanded) .comment-item:first-child .comment-author-info {
        display: none;
    }

    .video-comments-container:not(.expanded) .comment-item:first-child .comment-text {
        font-size: 13px;
        color: #1A1A1A;
        line-height: 20px;
        font-weight: 400;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Expanded State (Bottom Sheet / Card Overlay) */
    .video-comments-container.expanded {
        position: fixed;
        top: auto;
        /* Bottom sheet style */
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85vh;
        /* Card height */
        z-index: 9999;
        background: #fff;
        padding: 0;
        margin: 0;
        border-radius: 16px 16px 0 0;
        /* Rounded top */
        display: flex;
        flex-direction: column;
        border: none;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        animation: slideUp 0.3s ease-out forwards;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    /* Header */
    .video-comments-container.expanded .comments-header-area {
        display: none;
    }

    .video-comments-container.expanded .mobile-preview-header {
        display: none;
    }

    /* Expanded Mobile Header */
    .expanded-header-mobile {
        display: none;
    }

    .video-comments-container.expanded .expanded-header-mobile {
        display: flex;
        padding: 16px;
        border-bottom: 1px solid #F0F0F0;
        margin: 0;
        flex-shrink: 0;
        background: #fff;
    }

    .mobile-preview-header-mobile {
        font-size: 18px;
        font-weight: 700;
        color: #1A1A1A;
        margin: 0;
    }

    .video-comments-container.expanded .mobile-overlay-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .overlay-title {
        font-size: 16px;
        font-weight: 700;
        color: #1A1A1A;
        margin: 0;
    }

    .btn-close-comments {
        background: transparent;
        border: none;
        font-size: 20px;
        color: #1A1A1A;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Content Wrapper */
    .video-comments-container.expanded .mobile-comments-content-wrapper {
        flex: 1;
        overflow-y: hidden;
        /* Manage scroll internally */
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    /* Input Area (Footer) */
    .video-comments-container.expanded .mobile-comments-content-wrapper .comment-input-area-logged,
    .video-comments-container.expanded .mobile-comments-content-wrapper .comment-input-row {
        display: flex !important;
        order: 2;
        padding: 12px 0 16px 0;
        border-top: 1px solid #F0F0F0;
        background: #F9F9F9;
        flex-shrink: 0;
        margin: 0;
        width: 100%;
        position: relative;
    }

    /* Input Styling for Footer */
    .video-comments-container.expanded .comment-form-new {
        display: flex;
        width: 100%;
        align-items: center;
    }

    .video-comments-container.expanded .comment-account-info {
        display: none;
        /* Hide 'commenting as' text to save space or keep it? Screenshot shows just avatar + input */
    }

    .video-comments-container.expanded .comment-user-details {
        display: none;
        /* We will show just the avatar next to input */
    }

    .video-comments-container.expanded .comment-input-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 8px;
        border: none;
        padding: 0;
    }

    .video-comments-container.expanded .comment-user-avatar-mobile {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
    }

    .video-comments-container.expanded .comment-input-wrapper input {
        background: #EEEEEE;
        border: none;
        height: 36px;
        border-radius: 8px;
        padding-left: 16px;
        width: 80%;
    }

    /* Comment Form Actions - Mobile */
    .video-comments-container.expanded .comment-form-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        margin-top: 8px;
        padding: 0 16px;
    }

    .video-comments-container.expanded .btn-comment-cancel {
        display: none !important;
    }

    .video-comments-container.expanded .btn-comment-submit {
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 24px;
        padding: 0;
        border-radius: 4px;
        min-width: 40px;
    }

    .video-comments-container.expanded .btn-comment-submit .btn-comment-submit-text {
        display: none;
    }

    /* Hide desktop reply forms on mobile */
    .reply-form-container {
        display: none !important;
    }

    /* Comments List (Scrollable Area) */
    .video-comments-container.expanded #comments-list {
        display: block;
        order: 1;
        /* Above footer */
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .video-comments-container.expanded .comments-pagination-container {
        display: block !important;
        order: 1;
        padding: 0 16px 16px 16px;
        height: 56px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) -10.37%, #FFFFFF 93%);
        position: relative;
        bottom: 50px;
        z-index: 10;
    }

    /* Reset Styles for Expanded Items */
    .video-comments-container.expanded .comment-item:first-child .comment-author-info,
    .video-comments-container.expanded .comment-item:first-child .comment-actions {
        display: flex !important;
    }

    .video-comments-container.expanded .comment-item:first-child .comment-avatar {
        width: 40px;
        height: 40px;
    }

    .video-comments-container.expanded .comment-item:first-child {
        margin-top: 0;
    }

    .video-comments-container.expanded .comment-item:first-child .comment-text {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
        display: block;
    }

    /* Dim background/overlay backdrop */
    body.comments-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9990;
    }



    .video-suggestions-sidebar-title {
        font-size: 16px;
        line-height: 24px;
        color: #1A1A1A;
        font-family: Plus Jakarta Sans;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .suggestion-card {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        gap: 0;
    }

    .suggestion-thumb-wrapper {
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 10px;
        aspect-ratio: 16/9;
    }

    .suggestion-info {
        padding: 0;
    }

    .suggestion-title {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 4px;
    }

    .suggestion-meta {
        font-size: 12px;
        color: #606060;
    }

    .page-suggestions-container {
        padding: 0;
    }

    .popular-channels-box {
        width: 100%;
        height: 435px;
        border: none;
        padding: 18px 0 0 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Filter Chips (New component) */
    .recommendation-filters {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 16px 12px 16px;
        margin: 0 -16px 12px -16px;
        scrollbar-width: none;
    }

    .recommendation-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        padding: 6px 12px;
        background: #F5F5F5;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #1A1A1A;
        white-space: nowrap;
        border: none;
    }

    .filter-chip.active {
        background: #1A1A1A;
        color: #fff;
        /* Tümü is black per screenshot - wait, screenshot shows green? "Tümü" is Green per user text? User said "Green 'Tümü', Gray others" */
        background: #028702;
    }

    .btn-close-comments-mobile {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        font-size: 24px;
        color: #1A1A1A;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-close-comments-mobile i {
        font-size: 24px;
    }

    .replies-container .comment-avatar {
        width: 40px;
        height: 40px;
    }

    /* Mobile Replies Overlay (Second Layer) */
    .video-replies-overlay {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85vh;
        z-index: 10000;
        /* Higher than comments overlay */
        background: #fff;
        border-radius: 16px 16px 0 0;
        display: none;
        /* Hidden by default */
        flex-direction: column;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        animation: slideUp 0.3s ease-out forwards;
    }

    .video-replies-overlay.active {
        display: flex;
    }

    .video-replies-overlay .expanded-header-mobile {
        display: flex;
        /* Override hidden */
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #F0F0F0;
    }

    .btn-back-replies-mobile {
        background: transparent;
        border: none;
        font-size: 20px;
        color: #1A1A1A;
        padding: 0 22px 0 0px;
        display: flex;
        align-items: center;
    }

    .mobile-replies-content-wrapper {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        /* Padding bottom to handle footer height is handled by order/layout usually, but we need space for fixed look if relevant */
    }

    .mobile-replies-footer {
        padding: 12px 16px;
        border-top: 1px solid #F0F0F0;
        background: #F9F9F9;
        flex-shrink: 0;
    }

    .mobile-replies-footer .comment-form-new {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .mobile-replies-footer .comment-input-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 8px;
        flex: 1;
    }

    .mobile-replies-footer .comment-user-avatar-mobile {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        display: block !important;
        /* Force show */
    }

    .mobile-replies-footer input {
        background: #EEEEEE;
        border: none;
        height: 36px;
        border-radius: 8px;
        padding-left: 12px;
        width: 100%;
        font-size: 14px;
    }

    .mobile-replies-footer .comment-form-actions {
        display: flex;
        align-items: center;
        margin-left: 8px;
        padding: 0;
        margin-top: 0;
        width: auto;
    }

    .mobile-replies-footer .btn-comment-submit {
        margin: 0;
        width: 32px;
        height: 24px;
        border-radius: 4px;
    }

    /* Styling cloned content in replies overlay */
    .video-replies-overlay .comment-item {
        margin-bottom: 20px;
    }

    .video-replies-overlay .parent-comment-clone {
        border-bottom: 1px solid #eee;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .video-replies-overlay .replies-list-clone {
        padding-left: 0;
        /* Reset indentation since it's a dedicated view? Screenshot shows indentation for replies */
        margin-left: 0;
    }
}

.video-similar-accounts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: #fff;
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease-out forwards;
}

.video-similar-accounts-overlay.active {
    display: flex;
}

.video-similar-accounts-overlay .expanded-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
    background: #fff;
    flex-shrink: 0;
}

.mobile-similar-accounts-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.similar-accounts-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.similar-account-item-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.similar-account-link-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    min-width: 0;
}

.similar-account-avatar-mobile {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.similar-account-info-mobile {
    flex: 1;
    min-width: 0;
}

.similar-account-name-mobile {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.similar-account-stats-mobile {
    font-size: 12px;
    color: #707470;
}

.btn-similar-subscribe-mobile {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border: none;
    border-radius: 56px;
    padding: 7px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
}

.btn-similar-unsubscribe-mobile {
    background: #FFFFFF;
    border: 1px solid #E4E7E4;
    color: #1A1A1A;
    border-radius: 56px;
    padding: 7px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.btn-similar-unsubscribe {
    background: #FFFFFF;
    border: 1px solid #E4E7E4;
    color: #1A1A1A;
    border-radius: 56px;
    padding: 7px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.btn-similar-subscribe {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border: none;
    border-radius: 56px;
    padding: 7px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
}

@media (min-width: 769px) {
    .video-similar-accounts-overlay {
        display: none !important;
    }
}