/* =========================================================
   Block Albums / All Releases
========================================================= */
.albums-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    margin: 25px 0;
}

.album-card {
    min-width: 0;
    height: 100%;
}

.album-link {
    position: relative;
    display: block;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.album-link:hover {
    border-color: rgba(255, 123, 56, .45);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .32);
}

.album-image {
    position: relative;
    width: 100%;
    min-height: 395px;
    aspect-ratio: 1 / 1.42;
    overflow: hidden;
    background-color: #151820;
    background-position: center;
    background-size: cover;
    filter: none;
}

.album-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .97),
            rgba(0, 0, 0, .52) 38%,
            rgba(0, 0, 0, .12) 72%,
            transparent
        ),
        radial-gradient(
            circle at 70% 18%,
            rgba(255, 123, 56, .20),
            transparent 32%
        );
    pointer-events: none;
}

/* =========================================================
   Album Info
========================================================= */
.album-info {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: auto;
    padding: 0;
    overflow: visible;
    color: #fff;
    text-align: left;
    background: transparent;
}

.album-info h2 {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 5px 0;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .41);
    color: #ff9d35;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-title {
    width: 93%;
    min-height: 46px;
    margin-top: 0;
    box-sizing: border-box;
}

.album-title span {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .41);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.album-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    color: #d7dbe5;
    font-size: 11px;
    font-weight: 700;
}

.block-genre-all {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
    color: #fff;
}

.block-genre-all span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid rgba(255, 123, 56, .25);
    border-radius: 999px;
    background: rgba(155, 55, 19, .89);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-added {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 10px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: #c9ccd5;
    font-size: 11px;
    font-weight: 700;
}

.album-added i {
    color: #ff7b38;
}

.album-added b {
    color: #ff9d35;
    font-weight: 900;
}

/* =========================================================
   Views / Comments / New
========================================================= */
.view-comments {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.534);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.view-comments span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.views::before {
    content: "👁";
    font-size: 11px;
}

.comments::before {
    content: "💬";
    font-size: 11px;
}

.new-badge {
    position: absolute;
    top: 48px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 42px;
    margin: 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: linear-gradient(45deg, #b10000, #d11414);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

/* =========================================================
   Viewed
========================================================= */
.container-viewed {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 5;
    display: inline-block;
    margin: 0;
    cursor: pointer;
}

.icon-viewed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 100%;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 16px;
    transition: transform .2s ease, background .2s ease;
}

.container-viewed:hover .icon-viewed {
    transform: scale(1.06);
    background: rgba(0, 0, 0, .78);
}

.menu-viewed {
    position: absolute;
    left: 0;
    top: 42px;
    min-width: 165px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(12, 13, 17, .96);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
    transform: translateY(-4px);
}

.container-viewed:hover .menu-viewed {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#view-date-viewed {
    color: #e9edf5;
    font-size: 12px;
}

#view-date-viewed b {
    color: #ff9d35;
}

/* =========================================================
   All Releases Controls
========================================================= */
.allrelease-top-block {
    display: flex;
    margin-bottom: 30px;
}

.allrelease-foot-block {
    justify-content: space-between;
    align-items: center;
    width: 300px;
    margin-top: 20px;
    border-radius: 5px;
}

.form_sortallrelease {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.container-query-search {
    display: flex;
    align-items: center;
}

.select_sortallrelease {
    appearance: none;
    position: relative;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all .3s ease;
}

.select_sortallrelease option {
    background-color: #fff;
}

.select_sortallrelease:focus,
.select_sortallrelease:hover {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, .5);
}

.release-header-item-one,
.release-header-item {
    color: #eaeaea;
    font-size: 14px;
}

.release-header-item-one {
    font-weight: bold;
}

.release-link:hover {
    background: linear-gradient(135deg, #ff6f61, #eb4d4b);
    transform: scale(1.05);
}

/* =========================================================
   Viewed Info Note
========================================================= */
.allrelease-viewed-note {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: -15px 0 25px 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-left: 3px solid rgba(255, 165, 0, .75);
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(0, 0, 0, .18));
    color: #d6d6d6;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.allrelease-viewed-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 100%;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: 14px;
}

.allrelease-viewed-note-icon::before {
    content: "👁";
}

.allrelease-viewed-note-text b {
    color: orange;
    font-weight: 600;
}

/* =========================================================
   1133 x 638
========================================================= */
@media screen and (min-width: 1100px) and (max-width: 1160px) and (min-height: 610px) and (max-height: 670px) {
    .albums-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .album-image {
        min-height: 340px;
    }

    .album-info h2 {
        font-size: 14px;
    }

    .album-title span {
        font-size: 13px;
    }

    .album-subline,
    .album-added {
        font-size: 10px;
    }

    .block-genre-all span {
        padding: 3px 7px;
        font-size: 9px;
    }

    .view-comments {
        padding: 6px 9px;
        font-size: 11px;
    }

    .new-badge {
        min-width: 36px;
        font-size: 8px;
    }

    .allrelease-top-block {
        margin-bottom: 18px;
    }

    .form_sortallrelease {
        gap: 10px;
    }

    .select_sortallrelease {
        padding: 8px;
        font-size: 12px;
    }

    .release-header-item-one,
    .release-header-item {
        font-size: 12px;
    }

    .allrelease-viewed-note {
        margin: -10px 0 18px 0;
        padding: 8px 11px;
        font-size: 12px;
    }
}

/* =========================================================
   1280 x 720
========================================================= */
@media screen and (min-width: 1240px) and (max-width: 1320px) and (min-height: 690px) and (max-height: 735px) {
    .albums-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 9px;
        margin-top: 20px;
    }

    .album-image {
        min-height: 365px;
    }

    .album-info h2 {
        font-size: 14px;
    }

    .album-title span {
        font-size: 13px;
    }

    .album-subline,
    .album-added {
        font-size: 10px;
    }

    .block-genre-all span {
        padding: 3px 7px;
        font-size: 9px;
    }

    .form_sortallrelease {
        gap: 11px;
    }

    .select_sortallrelease {
        padding: 8px;
        font-size: 12px;
    }

    .allrelease-viewed-note {
        margin: -10px 0 18px 0;
        padding: 8px 11px;
        font-size: 12px;
    }
}

/* =========================================================
   1280 x 768
========================================================= */
@media screen and (min-width: 1240px) and (max-width: 1320px) and (min-height: 736px) and (max-height: 800px) {
    .albums-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 9px;
        margin-top: 22px;
    }

    .album-image {
        min-height: 380px;
    }

    .album-info h2 {
        font-size: 15px;
    }

    .album-title span {
        font-size: 14px;
    }

    .album-subline,
    .album-added {
        font-size: 11px;
    }

    .block-genre-all span {
        padding: 3px 8px;
        font-size: 10px;
    }

    .form_sortallrelease {
        gap: 12px;
    }

    .select_sortallrelease {
        padding: 9px;
        font-size: 13px;
    }

    .allrelease-viewed-note {
        margin: -12px 0 22px 0;
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* =========================================================
   1280 x 1024
========================================================= */
@media screen and (min-width: 1240px) and (max-width: 1320px) and (min-height: 980px) and (max-height: 1060px) {
    .albums-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 25px;
    }

    .album-image {
        min-height: 395px;
    }

    .album-info h2 {
        font-size: 16px;
    }

    .album-title span {
        font-size: 15px;
    }

    .album-subline,
    .album-added {
        font-size: 11px;
    }

    .block-genre-all span {
        padding: 4px 9px;
        font-size: 10px;
    }
}

/* =========================================================
   Tablet / Mobile
========================================================= */
@media screen and (max-width: 960px) {
    .albums-container {
        grid-template-columns: repeat(2, minmax(0, 190px));
        justify-content: center;
        gap: 5px;
        margin: 25px 0;
    }

    .album-link {
        width: 100%;
    }

    .album-image {
        min-height: 290px;
        aspect-ratio: 1 / 1.42;
    }

    .album-info {
        left: 9px;
        right: 9px;
        bottom: 9px;
    }

    .album-info h2 {
        margin-bottom: 4px;
        padding: 5px 7px;
        font-size: 12px;
    }

    .album-title {
        width: 88%;
        min-height: 40px;
    }

    .album-title span {
        padding: 5px 7px;
        font-size: 11px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .album-subline {
        gap: 4px;
        margin-top: 6px;
        font-size: 9px;
    }

    .block-genre-all {
        gap: 3px;
        margin-top: 6px;
    }

    .block-genre-all span {
        padding: 3px 6px;
        font-size: 9px;
    }

    .album-added {
        gap: 3px;
        margin-top: 7px;
        padding-top: 7px;
        font-size: 9px;
        line-height: 1.25;
    }

    .view-comments {
        top: 8px;
        right: 8px;
        gap: 4px;
        padding: 5px 7px;
        font-size: 9px;
    }

    .views::before,
    .comments::before {
        font-size: 9px;
    }

    .new-badge {
        top: 39px;
        right: 8px;
        min-width: 32px;
        padding: 3px 6px;
        font-size: 7px;
    }

    .container-viewed {
        left: 8px;
        top: 8px;
    }

    .icon-viewed {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }

    .menu-viewed {
        top: 34px;
        min-width: 115px;
        max-width: 150px;
        padding: 6px 8px;
        white-space: normal;
    }

    #view-date-viewed {
        font-size: 10px;
    }

    .select_sortallrelease {
        margin: 10px;
    }

    .allrelease-viewed-note {
        width: auto;
        margin: -10px 10px 20px 10px;
        font-size: 12px;
    }
}

/* =========================================================
   Firefox / Narrow Screens
========================================================= */
@media (max-width: 1203px) {
    @supports (-moz-appearance: none) {
        .albums-container {
            grid-template-columns: repeat(2, minmax(0, 230px));
            justify-content: center;
        }

        .album-image {
            min-height: 330px;
            aspect-ratio: 1 / 1.42;
        }
    }
}