/* Tracker by MSW - REDESIGNED */

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ТОРРЕНТА ===== */
.torrent {
    background: linear-gradient(145deg, #454545, #3a3a3a);
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 0;
    padding-bottom: 0;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.torrent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.torrent:last-child {
    margin-bottom: 0;
}

.torrent img {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== ЗАГОЛОВОК (ССЫЛКА НА СКАЧИВАНИЕ) ===== */
.torrent .title {
    height: auto;
    clear: both;
}

.torrent .title a {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #4a4a4a, #3f3f3f);
    text-decoration: none;
    gap: 15px;
    transition: background 0.2s ease;
    color: #fff;
    z-index: 1;
    position: relative;
}

.torrent .title a:hover {
    background: linear-gradient(135deg, #525252, #474747);
}

/* ===== КНОПКА СКАЧИВАНИЯ ===== */
.torrent .download,
.torrent .download a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5a5a5a, #4a4a4a);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    float: none;
    margin: 0;
    text-align: center;
    line-height: normal;
    box-shadow: none;
}

.torrent .title a:hover .download {
    background: linear-gradient(135deg, #666, #555);
    transform: scale(1.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.torrent .download i,
.torrent .download a i {
    font-size: 20px;
    color: #e4e4e4;
}

/* ===== ИНФОРМАЦИЯ О ФАЙЛЕ ===== */
.torrent .info_d {
    flex: 1;
    min-width: 0;
    height: auto;
    background: transparent;
    color: #fff;
    transition: none;
    display: block;
}

.torrent .title a:hover .info_d {
    background: transparent;
    color: #fff;
}

.torrent .info_d1 {
    height: auto;
    font-size: 14px;
    margin-left: 0;
    padding-left: 0;
    display: block;
    vertical-align: baseline;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.4;
    color: #fff;
}

.torrent .info_d1 span {
    color: #fff;
    border-bottom: none;
}

/* ===== РАЗМЕР ФАЙЛА ===== */
.info_d-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5f5f5f, #505050);
    position: static;
    right: auto;
    top: auto;
    line-height: normal;
    padding: 8px 16px;
    color: #fff;
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.torrent .title a:hover .info_d-size {
    background: linear-gradient(135deg, #6a6a6a, #5a5a5a);
}

/* ===== MAGNET ССЫЛКА ===== */
.torrent > div:nth-child(2) {
    display: inline-flex;
    position: static;
    top: auto;
    left: auto;
    padding: 0 20px 15px;
    float: none;
    border: none;
    height: auto;
    width: auto;
    text-align: center;
    margin: 0;
    border-radius: 0;
    z-index: 1;
    background: transparent;
}

.torrent > div:nth-child(2) a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.torrent > div:nth-child(2) a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.torrent > div:nth-child(2) a i {
    font-size: 18px;
    color: #e4e4e4;
}

.torrent > div:nth-child(2):hover {
    background: transparent;
    border-color: transparent;
}

.torrent > div:nth-child(2):hover i {
    color: #fff;
}

/* ===== ADMIN БЛОК (ОБНОВИТЬ) ===== */
.torrent-admin-block {
    display: inline-flex;
    width: auto;
    float: none;
    top: auto;
    position: static;
    left: auto;
    text-align: center;
    padding: 0 0 15px;
    vertical-align: top;
}

.torrent-admin-block a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #aaa;
    padding: 0;
    line-height: normal;
    border: none;
    margin: 0;
}

.torrent-admin-block a:first-child {
    margin-top: 0;
}

.torrent-admin-block a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.torrent-admin-block a i {
    font-size: 16px;
}

.torrent-admin-block a > span {
    display: none;
}

.torrent-admin-block div.torrent-admin-block-rad {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #aaa;
    padding: 0;
    line-height: normal;
    border: none;
    margin: 0 5px;
}

.torrent-admin-block div.torrent-admin-block-rad:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.torrent-admin-block div.torrent-admin-block-rad > span {
    display: none;
}

/* ===== КОНТЕНТ (ЗАГРУЗЧИК, СОДЕРЖАНИЕ) ===== */
.torrent .cont {
    margin: 0;
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.15);
}

.torrent .cont a {
    color: #ff6b5b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.torrent .cont a:hover {
    border-bottom: none;
    color: #ff8a7d;
}

.torrent .cont .bord_a1 {
    padding: 0;
    padding-bottom: 15px;
    position: relative;
    color: #999;
    font-family: 'Montserrat', sans-serif;
    text-transform: none;
    font-size: 13px;
    line-height: 1.6;
}

.torrent .cont .bord_a1 b {
    color: #bbb;
    font-weight: 500;
}

/* ===== СПИСОК ФАЙЛОВ ===== */
.torrent .li_list_a3 {
    padding: 0;
    position: relative;
    color: #888;
    font-family: 'Montserrat', sans-serif;
    text-transform: none;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.torrent .li_swing_a1 {
    float: none;
    display: flex;
    align-items: center;
    color: #bbb;
    margin-bottom: 10px;
}

.torrent .li_swing_a1 b {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
}

.torrent .li_list_a1 {
    margin-left: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0 10px;
    color: #aaa;
    max-height: 200px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #333;
}

.torrent .li_list_a1::-webkit-scrollbar {
    width: 6px;
}

.torrent .li_list_a1::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.torrent .li_list_a1::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

/* ===== FILE TREE ===== */
.trackerFileTree {
    color: #aaa;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 1.8;
}

.trackerFileTree .folder {
    font-weight: bold;
    padding-left: 18px;
    cursor: pointer;
}

.trackerFileTree .folder i {
    font-style: normal;
    font-weight: normal;
    cursor: default;
}

.trackerFileTree .next_folder {
    padding-left: 18px;
}

.trackerFileTree img {
    vertical-align: middle;
    border: 0;
    padding: 0;
    margin: 0;
}

.trackerFileTree .folderOpen .next_folder {
    display: block;
}

.trackerFileTree .folderClose .next_folder {
    display: none;
}

.trackerFileTree .folderOpen {
    background: url('../img/folder_open.png') no-repeat;
}

.trackerFileTree .folderClose {
    background: url('../img/folder_close.png') no-repeat;
}

.trackerAllFolder {
    cursor: pointer;
    width: 20px;
    height: 20px;
    float: right;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.trackerAllFolder:hover {
    opacity: 1;
}

.trackerAllFolder.implode {
    background: url('../img/folder_implode.png') no-repeat center;
    background-size: contain;
}

.trackerAllFolder.explode {
    background: url('../img/folder_explode.png') no-repeat center;
    background-size: contain;
}

/* ===== LOADING ===== */
.trackerShowLoading {
    opacity: 0.6;
    filter: alpha(Opacity=60);
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ===== TORRENT BLOCK CONTAINER ===== */
.torrent-block {
    margin-top: 20px;
    position: relative;
    padding: 0;
}

div.torrent-block div.title {
    padding: 0;
    z-index: 1;
}

.torrent-block > div:last-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}

/* ===== USERINFO AVATAR ===== */
.userinfo .avatar {
    width: 70px;
    height: 70px;
    display: inline-block;
    float: right;
}

.userinfo .avatar b.cover {
    background-size: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* ===== СТАТУСЫ (СКАЧАНО, РАЗДАЁТСЯ, КАЧАЕТСЯ) ===== */
.torrent .li_download,
.torrent .li_distribute,
.torrent .li_swing {
    padding: 4px 10px;
    margin-right: 8px;
    float: none;
    display: inline-block;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    border-radius: 6px;
    text-transform: uppercase;
    background-image: none;
}

.torrent .li_download {
    background: #666;
}

.torrent .li_distribute {
    background: #2a7a2a;
}

.torrent .li_swing {
    background: #a13030;
}

.torrent .li_download_m,
.torrent .li_distribute_m,
.torrent .li_swing_m {
    padding: 4px 10px;
    margin-right: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    border-radius: 6px;
}

.torrent .li_download_m {
    background: #666;
}

.torrent .li_distribute_m {
    background: #2a7a2a;
}

.torrent .li_swing_m {
    background: #a13030;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 800px) {
    .torrent {
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .torrent .title a {
        padding: 15px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .torrent .download,
    .torrent .download a {
        width: 45px;
        height: 45px;
    }

    .torrent .download i,
    .torrent .download a i {
        font-size: 18px;
    }

    .torrent .info_d1 {
        font-size: 13px;
    }

    .info_d-size {
        font-size: 12px;
        padding: 6px 12px;
    }

    .torrent > div:nth-child(2) {
        padding: 0 15px 12px;
    }

    .torrent > div:nth-child(2) a,
    .torrent-admin-block a,
    .torrent-admin-block div.torrent-admin-block-rad {
        width: 40px;
        height: 40px;
    }

    .torrent .cont {
        padding: 15px;
    }

    .torrent .li_list_a3 {
        padding: 12px;
    }

    .torrent .cont .bord_a1 {
        font-size: 12px;
    }
}

@media screen and (max-width: 540px) {
    .torrent {
        border-radius: 8px;
    }

    .torrent .title a {
        padding: 12px;
        gap: 10px;
    }

    .torrent .download,
    .torrent .download a {
        width: 40px;
        height: 40px;
    }

    .torrent .download i,
    .torrent .download a i {
        font-size: 16px;
    }

    .torrent .info_d {
        flex: 1 1 calc(100% - 120px);
    }

    .torrent .info_d1 {
        font-size: 12px;
    }

    .info_d-size {
        font-size: 11px;
        padding: 5px 10px;
    }

    .torrent > div:nth-child(2) {
        padding: 0 12px 10px;
    }

    .torrent > div:nth-child(2) a,
    .torrent-admin-block a,
    .torrent-admin-block div.torrent-admin-block-rad {
        width: 36px;
        height: 36px;
    }

    .torrent > div:nth-child(2) a i {
        font-size: 16px;
    }

    .torrent-admin-block a i {
        font-size: 14px;
    }

    .torrent .cont {
        padding: 12px;
    }

    .torrent .cont .bord_a1 {
        font-size: 11px;
        padding-bottom: 12px;
    }

    .torrent .li_list_a3 {
        padding: 10px;
    }

    .torrent .li_swing_a1 b {
        font-size: 10px;
    }

    .trackerFileTree {
        font-size: 11px;
    }
}

/* ===== LARGE SCREENS (1600px+) ===== */
@media screen and (min-width: 1600px) {
    .torrent {
        border-radius: 14px;
        margin-bottom: 25px;
    }
    
    .torrent .title a {
        padding: 22px 25px;
        gap: 18px;
    }
    
    .torrent .download,
    .torrent .download a {
        width: 55px;
        height: 55px;
    }
    
    .torrent .download i,
    .torrent .download a i {
        font-size: 22px;
    }
    
    .torrent .info_d1 {
        font-size: 15px;
    }
    
    .info_d-size {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .torrent > div:nth-child(2) a,
    .torrent-admin-block a,
    .torrent-admin-block div.torrent-admin-block-rad {
        width: 50px;
        height: 50px;
    }
    
    .torrent > div:nth-child(2) a i {
        font-size: 20px;
    }
    
    .torrent .cont {
        padding: 22px 25px;
    }
    
    .torrent .cont .bord_a1 {
        font-size: 14px;
    }
    
    .torrent .li_list_a3 {
        padding: 18px;
    }
    
    .trackerFileTree {
        font-size: 13px;
    }
}

/* ===== EXTRA LARGE SCREENS (1920px+) ===== */
@media screen and (min-width: 1920px) {
    .torrent {
        border-radius: 16px;
        margin-bottom: 30px;
    }
    
    .torrent .title a {
        padding: 25px 30px;
        gap: 20px;
    }
    
    .torrent .download,
    .torrent .download a {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }
    
    .torrent .download i,
    .torrent .download a i {
        font-size: 24px;
    }
    
    .torrent .info_d1 {
        font-size: 16px;
    }
    
    .info_d-size {
        font-size: 15px;
        padding: 12px 24px;
        border-radius: 10px;
    }
    
    .torrent > div:nth-child(2) {
        padding: 0 25px 18px;
    }
    
    .torrent > div:nth-child(2) a,
    .torrent-admin-block a,
    .torrent-admin-block div.torrent-admin-block-rad {
        width: 55px;
        height: 55px;
        border-radius: 10px;
    }
    
    .torrent > div:nth-child(2) a i {
        font-size: 22px;
    }
    
    .torrent-admin-block a i {
        font-size: 20px;
    }
    
    .torrent .cont {
        padding: 25px 30px;
    }
    
    .torrent .cont .bord_a1 {
        font-size: 15px;
        padding-bottom: 18px;
    }
    
    .torrent .li_list_a3 {
        padding: 20px;
        border-radius: 10px;
    }
    
    .torrent .li_swing_a1 b {
        font-size: 13px;
    }
    
    .trackerFileTree {
        font-size: 14px;
        line-height: 2;
    }
    
    .torrent .li_list_a1 {
        max-height: 250px;
    }
}

/* ===== ULTRA WIDE SCREENS (2560px+) ===== */
@media screen and (min-width: 2560px) {
    .torrent {
        border-radius: 18px;
        margin-bottom: 35px;
        box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
    }
    
    .torrent .title a {
        padding: 30px 40px;
        gap: 25px;
    }
    
    .torrent .download,
    .torrent .download a {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }
    
    .torrent .download i,
    .torrent .download a i {
        font-size: 28px;
    }
    
    .torrent .info_d1 {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .info_d-size {
        font-size: 17px;
        padding: 14px 28px;
        border-radius: 12px;
    }
    
    .torrent > div:nth-child(2) {
        padding: 0 30px 22px;
    }
    
    .torrent > div:nth-child(2) a,
    .torrent-admin-block a,
    .torrent-admin-block div.torrent-admin-block-rad {
        width: 65px;
        height: 65px;
        border-radius: 12px;
    }
    
    .torrent > div:nth-child(2) a i {
        font-size: 26px;
    }
    
    .torrent-admin-block a i {
        font-size: 24px;
    }
    
    .torrent .cont {
        padding: 30px 40px;
    }
    
    .torrent .cont .bord_a1 {
        font-size: 17px;
        padding-bottom: 22px;
    }
    
    .torrent .li_list_a3 {
        padding: 25px;
        border-radius: 12px;
    }
    
    .torrent .li_swing_a1 b {
        font-size: 14px;
    }
    
    .trackerFileTree {
        font-size: 16px;
        line-height: 2.2;
    }
    
    .torrent .li_list_a1 {
        max-height: 300px;
        padding: 0 15px;
    }
    
    .torrent .li_list_a1::-webkit-scrollbar {
        width: 8px;
    }
}
