main {
    padding: 0 calc(var(--two-em) / 2);
    padding-top: 20px;
}

main section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 26px;
    color: #fff;
}

.section-header .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
}

.section-header a {
    font-size: 13px;
    color: #d94a9a;
    font-weight: bold;
    display: flex;
    gap: 4px;
    transition: all 150ms ease;
    white-space: nowrap;
    align-items: center;
}

.section-header a:hover {
    color: #fff;
    gap: 8px;
}

nav ul {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #c13180 transparent;
    gap: 8px;
    padding: 8px 0 16px;
}

nav ul a {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 110px;
    max-width: 110px;
    min-height: 90px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255);
    transition: all 250ms ease;
    font-size: 12px;
    border-radius: 16px;
    text-align: center;
}

nav ul a img {
    width: 25px;
    filter:
        invert(32%) sepia(82%) saturate(3000%) hue-rotate(300deg) brightness(90%) contrast(95%);
}

nav ul a:hover {
    background: rgba(193, 49, 128, 0.12);
    border-color: rgba(193, 49, 128, 0.35);
    transform: translateY(-2px);
}

nav ul a.active {
    background: rgba(193, 49, 128, 0.12);
    border-color: rgba(193, 49, 128, 0.35);
    transform: translateY(-2px);
}

main .grid-box {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: calc(var(--two-em) / 2);
}

main .grid-box a {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 250ms ease;
    will-change: transform;
    background: rgba(255, 255, 255, 0.06);
}

main .grid-box a:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(193, 49, 128, 0.3);
    z-index: 2;
}

main .grid-box a .img-box {
    transition: filter 250ms ease;
}

main .grid-box a:hover .img-box {
    filter: brightness(0.7);
}

main .grid-box a .img-box::before {
    padding-top: 100%;
}

main .grid-box[data-first] a:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

main .grid-box a .tags {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: calc(var(--two-em) * .25);
    display: flex;
    font-size: 11px;
    justify-content: space-between;
}

main .grid-box a .tags .star {
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #ffc107;
    padding: 2px 7px;
    border-radius: var(--radius);
}

main .grid-box a .tags .tag {
    text-transform: uppercase;
    background: linear-gradient(135deg, #c13180, #6c2d82);
    height: fit-content;
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    letter-spacing: 1px;
    border-radius: var(--radius);
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

main .grid-box a .text {
    width: 100%;
    text-align: center;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    transition: transform 250ms ease;
    transform: translateY(100%);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

main .grid-box a:hover .text {
    transform: translateY(0);
}

main .grid-box[data-first] a:first-child .star {
    padding: 4px 12px;
}

main .grid-box[data-first] a:first-child .text {
    transform: translateY(0);
    font-size: 19px;
}

@media screen and (max-width:769px) {
    main .grid-box {
        grid-template-columns: repeat(3, 1fr);
    }

}