﻿.genre-page .site-header {
    position: relative;
}

.genre-main {
    min-height: 72vh;
    padding-bottom: 90px;
}

.genre-banner {
    min-height: 290px;
    padding: 58px 5.6% 70px;
    background:
        url("../images/genre-waves.svg") center bottom / cover no-repeat,
        radial-gradient(ellipse at 80% 100%, #4b09221f, transparent 65%),
        #0a0b0e;
}

.genre-banner-content {
    max-width: 1420px;
    margin: 0 auto;
}

.genre-breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px;
    font-size: 14px;
}

.genre-breadcrumb [aria-current] {
    color: var(--pink);
}

.genre-breadcrumb-arrow {
    width: 14px;
    height: 14px;
}

.genre-arrow svg {
    width: 18px;
    height: 18px;
}

.genre-banner h1 {
    position: relative;
    width: fit-content;
    margin: 0 0 20px;
    font-size: clamp(40px, 4vw, 60px);
    letter-spacing: -1.5px;
}

.genre-banner h1::after {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 76px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink) 62%, #ff12611a 62%);
    box-shadow: 0 0 12px #ff12612a;
    content: "";
}

.genre-banner p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}

.genre-directory {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 82%;
    max-width: 1280px;
    margin: 45px auto 0;
}

.genre-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 0;
    min-height: 112px;
    padding: 25px;
    border: 1px solid #282b39;
    border-radius: 10px;
    background: linear-gradient(120deg, #0d1016, #0a0c10);
    transition: border-color .2s, transform .2s, background .2s;
}

.genre-tile h2 {
    margin: 0 0 7px;
    font-size: 20px;
    font-weight: 600;
}

.genre-count {
    color: #c7c9d3;
    font-size: 15px;
}

.genre-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid #8b8d97;
    border-radius: 50%;
    color: #f7f7f9;
    font-size: 23px;
    line-height: 1;
}

.genre-tile:hover {
    transform: translateY(-3px);
    border-color: #ff397c90;
    background: linear-gradient(120deg, #211019, #0c0d12);
}

.genre-tile:hover .genre-arrow {
    border-color: var(--pink);
    color: #ff6d9f;
}

@media (max-width: 1000px) {
    .genre-directory {
        width: 89%;
        gap: 16px;
    }

    .genre-tile {
        padding: 20px 16px;
    }

    .genre-tile h2 {
        font-size: 18px;
    }
}

@media (max-width: 760px) {
    .genre-main {
        min-height: 65vh;
        padding-bottom: 35px;
    }

    .genre-banner {
        min-height: 240px;
        padding: 35px 5% 50px;
        background-position: 65% bottom;
    }

    .genre-breadcrumb {
        font-size: 12px;
    }

    .genre-banner p {
        max-width: 300px;
        font-size: 14px;
    }

    .genre-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 90%;
        gap: 14px;
        margin-top: 25px;
    }

    .genre-tile {
        gap: 8px;
        min-height: 105px;
        padding: 18px 13px;
    }

    .genre-tile h2 {
        font-size: 16px;
    }

    .genre-count {
        font-size: 12px;
    }

    .genre-arrow {
        width: 27px;
        height: 27px;
        font-size: 19px;
    }
}
