.feed-card {
    align-items: unset !important;
    background: #262626 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    max-width: 413px !important;
    min-width: 0 !important;
    position: relative !important;
}

.feed-card:hover {
    transform: translateY(-2px);
}


.feed-card-preview {
    align-items: center;
    background: #181a1b;
    box-sizing: border-box;
    display: flex;
    height: 223px;
    justify-content: center;
    margin: 0;
    opacity: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.feed-card-preview audio {
    height: 40px;
    width: 90%;
}


.feed-card-preview img,
.feed-card-preview video {
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    min-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
}


.listing-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #2E2D2D;
}

.listing-icon-box .listing-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}


.feed-card-preview .listing-icon-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2E2D2D !important;
    border-radius: 12px !important;
}

.feed-card-preview .listing-icon-box .listing-icon {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
}


.listing-icon,
.listing-icon-box img {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.listing-icon-box img {
    pointer-events: none;
}


.feed-card-info {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 16px;
}


:root {
    --feed-card-font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.feed-card {

    font-family: var(--feed-card-font-family);
    color: var(--muted, #b6c6e3);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.feed-card-title {
    color: #EBEBEB;
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    font-weight: 800;
    font-style: normal;
    font-size: 24px;
    line-height: 43.7px;
    letter-spacing: 0em;
    vertical-align: middle;
    margin-bottom: 8px;


    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.feed-card-description {
    color: #828282;
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;

    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-bottom: 12px;
}

.feed-card-username {
    color: #8f8f8f;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.feed-card-views,
.feed-card-date {
    align-items: center;
    display: flex;
    gap: 8px;
}


.feed-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    justify-items: stretch !important;
    align-items: start !important;
    margin-top: 20px;
}


body .feed-container .feed-grid .feed-card,
body[data-profile-login] #profile-files-grid.feed-grid>.feed-card,
.profile-main-content .feed-grid .feed-card,
#profile-files-grid .feed-card {
    background: #262626 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    padding: 16px !important;
    width: 100% !important;
    max-width: 420px !important;
    height: 420px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.2s ease !important;
    border: 1px solid #FFFFFF33 !important;
}


.feed-container .feed-grid>.feed-card,
#feed-grid>.feed-card {
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.feed-card-delete {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    z-index: 30;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.feed-card-delete:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.feed-card-delete img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

@media (min-width: 1025px) {
    .feed-card-delete {
        display: flex;
    }
}

body .feed-container .feed-grid .feed-card:hover,
body[data-profile-login] #profile-files-grid.feed-grid>.feed-card:hover,
.profile-main-content .feed-grid .feed-card:hover,
#profile-files-grid .feed-card:hover {
    transform: translateY(-2px) !important;
}

body .feed-container .feed-grid .feed-card .feed-card-preview,
body[data-profile-login] #profile-files-grid.feed-grid>.feed-card .feed-card-preview,
.profile-main-content .feed-grid .feed-card .feed-card-preview,
#profile-files-grid .feed-card .feed-card-preview {
    background: #181a1b !important;
    border-radius: 16px !important;
    height: 223px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


body[data-profile-login] #profile-files-grid .feed-card-preview .listing-icon-box .listing-icon,
#profile-files-grid .feed-card-preview .listing-icon-box .listing-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: contain !important;
    object-position: center !important;
}


body .feed-container .feed-grid .feed-card .feed-card-username,
body[data-profile-login] #profile-files-grid.feed-grid>.feed-card .feed-card-username,
.profile-main-content .feed-grid .feed-card .feed-card-username,
#profile-files-grid .feed-card .feed-card-username {
    font-weight: 800 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}


.feed-card-stats img {
    display: block;
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px;
    object-fit: contain;
}

.feed-card-stats .feed-card-views img {
    width: 30px !important;
    height: 30px !important;
}

.feed-card-stats .feed-card-date img {
    width: 22px !important;
    height: 22px !important;
}

.feed-card-stats span {
    font-family: Handjet;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: inherit;
}

.feed-card-date span {
    cursor: help;
}

.feed-card-author {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-card-avatar {
    border-radius: 50%;
    height: 24px;
    object-fit: cover;
    width: 24px;
}

.feed-card-username {
    color: #8f8f8f;
    font-size: 14px;
    font-weight: 500;
}

.feed-card-stats {
    font-family: Handjet;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 177px;
    height: 20px;
    gap: 8px;
    opacity: 1;
    color: #b6c6e3;
    padding: 4px 0;
}


.feed-card-username {
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.feed-card-views,
.feed-card-date {
    align-items: center;
    display: flex;
    gap: 4px;
}


.filter-bar {
    align-items: center;
    backdrop-filter: blur(6px);
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #FFFFFF33;
    bottom: 20px;
    display: flex;
    gap: 8px;
    left: 50%;
    padding: 12px 20px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 1000;
}

.filter-btn {
    align-items: center !important;
    background: transparent;
    border-radius: 25px;
    border: none;
    color: #8f8f8f;
    cursor: pointer;
    display: flex !important;
    font-size: 16px;
    font-weight: 500;
    gap: 6px;
    height: auto;
    justify-content: center !important;
    line-height: 1;
    margin: 0;
    padding: 8px 16px;
    transition: all 0.2s ease;
    vertical-align: top;
}

.filter-btn span {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.filter-btn.active {
    background: var(--accent);
    border-radius: 8px;
    color: #fff;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-icon {
    display: block;
    flex-shrink: 0;
    height: 20px;
    width: 20px;
}

.lazy-audio,
.lazy-image,
.lazy-video {
    transition: opacity 0.3s ease;
}

.lazy-loaded {
    opacity: 1 !important;
}

.lazy-placeholder {
    align-items: center;
    animation: pulse 1.5s ease-in-out infinite alternate;
    background: #181a1b;
    border-radius: 16px;
    display: flex;
    justify-content: center;
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    background: var(--accent);
    border-radius: 8px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    transition: background 0.2s ease;
}

.load-more-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.load-more-btn:hover {
    background: #6a8a25;
}

@media (max-width: 900px) {

    body,
    html {
        overflow-x: hidden;
    }

    .feed-card {
        box-sizing: border-box;
        margin: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px !important;
        width: 100% !important;
    }

    .feed-card-description {
        font-size: 16px;
        line-height: 22px;
    }

    .feed-card-info {
        padding: 14px;
    }

    .feed-card-preview {
        box-sizing: border-box;
        height: 56vw;
        max-height: 360px;
        max-width: 100% !important;
        overflow: hidden;
        width: 100% !important;
    }

    .feed-card-preview img,
    .feed-card-preview video {
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    .feed-card-title {
        color: #EBEBEB;
        font-family: 'Handjet', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Segoe UI Mono', monospace;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .feed-card-username {
        font-size: 14px;
    }


    .feed-container {
        padding: 20px 0 !important;
        background: transparent;
        width: 100% !important;
    }


    .feed-grid,
    #feed-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
        gap: 24px !important;
        gap: 24px !important;
        justify-items: stretch !important;
        align-items: start !important;
        width: 100% !important;

        .feed-grid .feed-card,
        #profile-files-grid .feed-card {
            margin-right: 10px;
            margin-bottom: 10px;
        }

        max-width: 1000px !important;
        margin: 0 auto !important;
    }


    #feed-grid.feed-grid,
    .feed-container>div>#feed-grid,
    .feed-container #feed-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
        max-width: 1000px !important;
        margin: 24px auto 0 auto !important;
        display: grid !important;
    }

    .filter-bar {
        -webkit-overflow-scrolling: touch;
        bottom: 16px;
        box-sizing: border-box;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        left: 50%;
        max-width: calc(100vw - 20px);
        overflow-x: auto;
        padding: 8px 10px;
        transform: translateX(-50%);
        width: auto;
    }

    .filter-btn {
        align-items: center !important;
        flex-direction: column;
        flex: 0 0 auto;
        font-size: 0;
        gap: 4px;
        justify-content: center !important;
        padding: 8px;
    }

    .filter-btn span {
        display: none !important;
    }

    .filter-btn.active span {
        color: #e0e6ed;
        display: block !important;
        font-size: 11px !important;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .feed-card {
        box-sizing: border-box !important;
        margin: 0 !important;
        max-width: 100% !important;
        padding: 12px !important;
        width: 100% !important;
    }

    .feed-card-description {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .feed-card-info {
        padding: 8px 0 0 0 !important;
    }

    .feed-card-preview {
        border-radius: 10px !important;
        height: 280px !important;
    }

    .feed-card-stats {
        font-size: 10px !important;
        gap: 8px !important;
        width: auto !important;
        height: auto !important;
    }


    .feed-card-title {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .feed-card-username {
        font-size: 11px !important;
    }

    .feed-container {
        max-width: 1200px !important;
        padding: 16px 20px 100px 20px !important;
    }

    .feed-grid {
        gap: 12px !important;
        grid-template-columns: repeat(3, 1fr) !important;
        margin: 0 auto !important;
        max-width: 1100px !important;
    }

    .filter-bar {
        bottom: 20px;
        box-sizing: border-box;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        left: 50%;
        max-width: none;
        overflow: visible;
        padding: 12px 20px;
        transform: translateX(-50%);
        width: auto;
    }

    .filter-btn {
        -webkit-tap-highlight-color: transparent;
        align-items: center !important;
        flex-direction: row;
        font-size: 16px;
        font-weight: 500 !important;
        gap: 6px;
        padding: 8px 16px;
        transform: none !important;
        transition: none !important;
    }

    .filter-btn span {
        display: inline-block !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        transform: none !important;
        transition: none !important;
    }

    .filter-btn,
    .filter-btn * {
        -webkit-animation: none !important;
        -webkit-transform: none !important;
        transform: none !important;
        animation: none !important;
        will-change: auto !important;
    }

    .filter-btn.active span {
        font-size: 16px !important;
    }

    .filter-btn.active,
    .filter-btn:active {
        font-size: 16px !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
        transform: none !important;
    }

    .filter-icon {
        height: 20px;
        width: 20px;
    }
}

@media (max-width: 600px) {

    body,
    html {
        overflow-x: hidden;
    }

    .feed-card {
        border-radius: 10px !important;
        margin: 0 !important;
        padding: 12px !important;
    }

    .feed-card-description {
        color: #828282;
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .feed-card-info {
        padding: 12px;
    }

    .feed-card-preview {
        border-radius: 12px;
        height: 60vw;
        max-height: 320px;
        max-width: 100% !important;
        overflow: hidden;
        width: 100% !important;
    }

    .feed-card-preview img,
    .feed-card-preview video {
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    .feed-card-title {
        font-size: 18px;
    }

    .feed-card-username {
        font-size: 13px;
    }


    body .feed-container .feed-grid .feed-card,
    body[data-profile-login] #profile-files-grid.feed-grid>.feed-card,
    .feed-container .feed-grid>.feed-card,
    #feed-grid>.feed-card,
    #profile-files-grid .feed-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }


    .feed-card-title {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }

    .feed-card-description {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .feed-card-stats {
        font-size: 14px !important;
        gap: 8px !important;
        width: auto !important;
        height: auto !important;
    }

    .feed-card-stats img {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    .feed-container {
        padding: 12px 12px 128px 12px;
    }

    .filter-bar {
        bottom: 12px;
        gap: 8px;
        max-width: calc(100vw - 16px);
        padding: 6px 10px;
    }

    .filter-btn {
        align-items: center !important;
        flex-direction: column;
        flex: 0 0 auto;
        font-size: 0;
        gap: 4px;
        padding: 6px;
    }

    .filter-btn span {
        display: none !important;
    }

    .filter-btn.active span {
        color: #e0e6ed;
        display: block !important;
        font-size: 10px !important;
    }

    .filter-icon {
        height: 18px;
        width: 18px;
    }

    .feed-grid {
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }


    .feed-card-preview img,
    .feed-card-preview video {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }


    .feed-card-title,
    .feed-card-description,
    .feed-card-username {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }


    .feed-container,
    .feed-container>div,
    .feed-grid {
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}


@media (max-width: 600px) {

    .feed-grid,
    #feed-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 12px !important;
    }


    .feed-grid>.feed-card,
    #feed-grid>.feed-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


@media (min-width: 601px) and (max-width: 1024px) {

    .feed-grid,
    #feed-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr)) !important;
        gap: 20px !important;
        max-width: 900px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
    }

    .feed-grid>.feed-card,
    #feed-grid>.feed-card {
        width: 100% !important;
        max-width: none !important;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.8;
    }
}




.feed-card-author {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-card-avatar {
    border-radius: 50%;
    height: 24px;
    object-fit: cover;
    width: 24px;
}


@media (min-width: 1025px) {
    html body[data-profile-login] div#profile-files-grid.feed-grid>.feed-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 !important;
        align-self: start !important;
    }
}


.feed-card-date,
.feed-card-views {
    align-items: center;
    color: #8f8f8f;
    display: flex;
    font-size: 12px;
    gap: 4px;
}


#profile-files-grid .feed-card-preview .listing-icon-box .listing-icon,
.profile-main-content .feed-grid .feed-card-preview .listing-icon-box .listing-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}


body[data-profile-login] #profile-files-grid .feed-card {
    height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
}

body[data-profile-login] #profile-files-grid .feed-card .feed-card-preview {
    height: 223px !important;
    flex: 0 0 223px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

body[data-profile-login] #profile-files-grid .feed-card .feed-card-preview img,
body[data-profile-login] #profile-files-grid .feed-card .feed-card-preview video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


.feed-card-avatar {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}


.feed-card-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 24px !important;
    min-height: 24px !important;
}


.feed-card-description {

    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}


.feed-card-author a:hover .feed-card-username {
    color: #789d2a;
    text-decoration: underline;
    transform: scale(1.05);
}


.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    text-align: center;
    font-family: 'Handjet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--muted, #989898);
    margin: 40px 0;
}


@media (max-width: 600px) {
    .empty-state {
        height: 150px;
        font-size: 16px;
        margin: 20px 0;
    }
}