.torrent-list {
    max-width: 900px;
    margin: 16px auto;
    font-size: 14px;
    color: #1F2C3C;
    border-collapse: collapse;
}

.torrent-header, .torrent-row {
    display: grid;
    grid-template-columns: 4fr 2fr 1fr 1fr 1fr;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 6px 0;
}

.torrent-header {
    font-weight: 600;
    border-bottom: 2px solid #333;
    color: #223344;
}

.col-title {
    display: flex;
    align-items: center;
}

.col-date {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.col-center {
    text-align: center;
}

.col-action {
    text-align: right;
}

.poster {
    width: 28px;
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
}

/* Versioner kompakt */
.torrent-version {
    display: flex;
    align-items: center;
    gap: 16px; /* Mellanslag mellan titel, datum, seeders, leechers och knapp */
    padding: 2px 36px;
    font-size: 11px;
    border-bottom: none;
}


    .torrent-version .col-title {
        flex: 1;
        overflow: hidden;
        white-space: wrap;
        text-overflow: ellipsis;
    }

    .torrent-version .col-date {
        flex: 1;
        display: flex;
        flex-direction: column;
        font-size: 12px;
        text-align: center;
    }

    .torrent-version .col-center {
        flex: 0.6;
        text-align: center;
        font-size: 12px;
    }

    .torrent-version .col-action {
        flex: 1;
        text-align: right;
    }

    .torrent-version:hover {
        background-color: rgba(240, 240, 240, 0.3);
    }

/* Huvudrad fortfarande grid */
.torrent-row.torrent-group-title {
    display: grid;
    grid-template-columns: 4fr 2fr 1fr 1fr 1fr;
    align-items: center;
    border-bottom: none;

    padding: 6px 0;
}
.torrent-version.last-version {
    border-bottom: 1px solid #ccc; /* Streck under sista versionen */
}
.torrent-row:hover {
    background-color: #f7f7f7;
}
.torrent-row.last-row {
    border-bottom: 1px solid #ccc; /* streck under sista raden i gruppen */
}
/* Highlight */
.highlight-green {
    color: #00cc66;
    font-weight: bold;
}

.highlight-red {
    color: #cc3333;
}

/* Buttons */
.btn-add {
    background-color: #3399ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
}

    .btn-add:hover {
        background-color: #2389e0;
    }

/* Periodval */
.torrent-period {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

    .torrent-period button {
        background: #eee;
        border: none;
        padding: 4px 12px;
        border-radius: 12px;
        cursor: pointer;
    }

        .torrent-period button.active {
            background: #3399ff;
            color: #fff;
            font-weight: bold;
        }

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 16px;
}

    .pagination a, .pagination span {
        display: inline-block;
        margin: 0 4px;
        padding: 4px 8px;
        border-radius: 4px;
        background: #eee;
        color: #333;
        text-decoration: none;
    }

    .pagination .current {
        background: #3399ff;
        color: #fff;
        font-weight: bold;
    }

    .pagination a:hover {
        background: #ddd;
    }

.imdb {
    font-size: 12px;
    color: #5a4800;
    text-decoration: none;
}

    .imdb:hover {
        text-decoration: underline;
    }

.available-on {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}