.mods_container {
    max-width: 1400px;
    margin: 0 2rem 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .mods_container {
        margin-left: calc(var(--sidebar-width-collapsed) + 32px);
    }
}

.mods_main {
    min-width: 0;
}

.mods_sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.mods_header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 2rem;
}

.mods_header_content {
    flex: 1;
}

.mods_header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.mods_header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    line-height: 1.6;
}

.mods_list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mod_card {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 1.75rem;
    padding: 1.5rem;
    background: rgba(30, 32, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mod_card:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    background: rgba(30, 32, 36, 0.85);
}

.mod_image_wrapper {
    width: 140px;
    height: 105px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.04));
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 191, 36, 0.25);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mod_image_wrapper:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.mod_image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 8px;
}

.mod_card:hover .mod_image {
    transform: scale(1.05);
}

.mod_content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mod_title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.mod_description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.mod_meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.mod_meta_item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mod_meta_item svg {
    width: 13px;
    height: 13px;
}

.mod_actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-direction: row;
    width: fit-content;
}

.mod_download, .mod_view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    border: none;
}

.mod_download svg,
.mod_view svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mod_view_icon {
    padding: 0;
    min-width: 36px;
    width: 36px;
    height: 36px;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod_view_icon svg {
    width: 16px;
    height: 16px;
}

.mod_download {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.15));
    color: rgba(251, 191, 36, 1);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.mod_download:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.2));
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}

.mod_view {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mod_view:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.mod_author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.mod_author svg {
    width: 14px;
    height: 14px;
}

.mod_rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mod_stars {
    display: flex;
    gap: 2px;
}

.mod_star {
    width: 14px;
    height: 14px;
    color: rgba(251, 191, 36, 0.8);
}

.mod_star.empty {
    color: rgba(255, 255, 255, 0.15);
}

.mod_rating_count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1200px) {
    .mod_card {
        grid-template-columns: 120px 1fr;
        gap: 1.5rem;
    }
    
    .mod_image_wrapper {
        width: 120px;
        height: 90px;
    }
    
    .mod_actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 1rem;
        flex-direction: row;
    }
    
    .mod_download {
        flex: 0 0 auto;
    }
    
    .mod_view {
        flex: 0 0 auto;
    }
}

@media (max-width: 968px) {
    .mods_container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mods_sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .mods_container {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .mods_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .mods_header_actions {
        width: 100%;
        flex-direction: column;
    }
    
    .mods_info_btn {
        width: 100%;
        justify-content: center;
    }
    
    .mods_upload_btn {
        width: 100%;
        justify-content: center;
    }
    
    .mods_header h1 {
        font-size: 1.75rem;
    }
    
    .mods_header p {
        font-size: 0.875rem;
    }
    
    .mods_filters {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .mods_filter_btn {
        flex: 1;
        min-width: calc(33.333% - 0.35rem);
        justify-content: center;
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .mods_filter_btn svg {
        width: 14px;
        height: 14px;
    }
    
    .mod_card {
        grid-template-columns: 100px 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .mod_image_wrapper {
        width: 100px;
        height: 75px;
    }
    
    .mod_image {
        padding: 6px;
    }
    
    .mod_actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .mod_download {
        flex: 1;
    }
    
    .mod_view {
        flex: 0 0 auto;
    }
    
    .mod_view_icon {
        padding: 0.65rem;
        width: 36px;
        height: 36px;
    }
    
    .mod_download svg,
    .mod_view svg {
        width: 16px;
        height: 16px;
    }
    
    .mod_title {
        font-size: 1rem;
    }
    
    .mod_description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .mod_meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .mod_author svg,
    .mod_meta_item svg {
        width: 12px;
        height: 12px;
    }
    
    .mods_search_box {
        padding: 1rem;
    }
    
    .mods_search_input {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .mods_container {
        padding: 0.75rem;
        margin: 0 0.5rem;
    }
    
    .mods_header h1 {
        font-size: 1.5rem;
    }
    
    .mods_filters {
        flex-direction: column;
    }
    
    .mods_filter_btn {
        width: 100%;
        min-width: 100%;
    }
    
    .mod_card {
        padding: 0.875rem;
    }
}


.mods_search_box {
    background: rgba(30, 32, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.mods_search_box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.mods_search_input_wrapper {
    position: relative;
}

.mods_search_icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.mods_search_input {
    width: 100%;
    padding: 0.65rem 0.65rem 0.65rem 2.25rem;
    background: rgba(20, 22, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.mods_search_input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.mods_search_input:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(20, 22, 26, 0.8);
}


.mods_search_results {
    margin-top: 0.75rem;
    display: none;
}

.mods_search_results.active {
    display: block;
}

.mods_search_result_item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(20, 22, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mods_search_result_item:hover {
    background: rgba(20, 22, 26, 0.8);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateX(2px);
}

.mods_search_result_image {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    padding: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.mods_search_result_content {
    flex: 1;
    min-width: 0;
}

.mods_search_result_title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mods_search_result_author {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}


.mods_filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mods_filter_btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(30, 32, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mods_filter_btn svg {
    width: 16px;
    height: 16px;
}

.mods_filter_btn:hover {
    background: rgba(30, 32, 36, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.mods_filter_btn.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.15));
    border-color: rgba(251, 191, 36, 0.4);
    color: rgba(251, 191, 36, 1);
}

.mods_filter_btn.active:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.2));
    border-color: rgba(251, 191, 36, 0.5);
}


.mod_view {
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mod_view:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.mod_view:active {
    transform: translateY(1px);
}

.mods_loading {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mod_card_skeleton {
    background: rgba(20, 22, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
}

.mod_image_skeleton {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
}

.mod_content_skeleton {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton_line {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton_title {
    height: 24px;
    width: 60%;
}

.skeleton_desc {
    width: 100%;
}

.skeleton_desc.short {
    width: 80%;
}

.skeleton_meta {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.skeleton_meta_item {
    width: 120px;
    height: 14px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.mods_empty_state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
}

.mods_empty_state svg {
    width: 80px;
    height: 80px;
    color: rgba(251, 191, 36, 0.3);
    margin-bottom: 1.5rem;
}

.mods_empty_state h3 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mods_empty_state p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.mods_empty_state .btn-primary {
    padding: 0.75rem 2rem;
    background: rgba(251, 191, 36, 1);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mods_empty_state .btn-primary:hover {
    background: rgba(251, 191, 36, 0.9);
    transform: translateY(-2px);
}

.mod_pinned {
    border-color: rgba(251, 191, 36, 0.4) !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.03)) !important;
    position: relative;
}

.pin_badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 6px;
    color: rgba(251, 191, 36, 1);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.pin_badge svg {
    width: 14px;
    height: 14px;
}

.pin_btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.pin_btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: rgba(251, 191, 36, 1);
}

.pin_btn svg {
    width: 18px;
    height: 18px;
}

.mod_pinned .pin_btn {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: rgba(251, 191, 36, 1);
}


.mods-floating-btn {
    display: none !important;
}


.mod_title_row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mod_version {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(251, 191, 36, 1);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mod_title_row {
        flex-wrap: wrap;
    }
    
    .mod_version {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}


/* Image Lightbox */
.mod-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mod-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.mod-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.mod-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod-lightbox-close:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .mod-lightbox-close {
        top: 10px;
        right: 10px;
    }
}
