/* =========================================================
   LYRICS GROOVE — RELATED ARTISTS
   Premium Dark Discovery Section
   ========================================================= */


/* =========================================================
   MAIN SECTION
   ========================================================= */

.lg-related-artists {
    position: relative;

    width: 100%;

    margin: 70px auto 70px;

    padding: 1px;

    box-sizing: border-box;

    border-radius: 30px;

    background:
        linear-gradient(
            120deg,
            #f7c94a 0%,
            #ff72c7 45%,
            #8c7bff 100%
        );

    box-shadow:
        0 0 30px rgba(255, 194, 70, 0.10),
        0 0 55px rgba(255, 77, 190, 0.08);

    overflow: hidden;
}


/* =========================================================
   INNER PANEL
   ========================================================= */

.lg-related-artists-inner {
    position: relative;

    width: 100%;

    min-height: 520px;

    padding: 58px 42px 58px;

    box-sizing: border-box;

    border-radius: 29px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(120, 85, 190, 0.15),
            transparent 42%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(255, 70, 170, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 100%,
            rgba(70, 100, 255, 0.08),
            transparent 30%
        ),
        #050718;

    color: #ffffff;

    overflow: hidden;
}


/* =========================================================
   DECORATIVE DOT FIELD — TOP RIGHT
   ========================================================= */

.lg-related-artists-inner::before {
    content: "";

    position: absolute;

    top: -20px;
    right: -10px;

    width: 190px;
    height: 150px;

    opacity: 0.35;

    pointer-events: none;

    background-image:
        radial-gradient(
            rgba(255, 80, 170, 0.75) 1px,
            transparent 1px
        );

    background-size: 12px 12px;

    mask-image:
        linear-gradient(
            135deg,
            transparent 0%,
            black 70%
        );

    -webkit-mask-image:
        linear-gradient(
            135deg,
            transparent 0%,
            black 70%
        );
}


/* =========================================================
   DECORATIVE DOT FIELD — BOTTOM LEFT
   ========================================================= */

.lg-related-artists-inner::after {
    content: "";

    position: absolute;

    bottom: -30px;
    left: -20px;

    width: 180px;
    height: 140px;

    opacity: 0.22;

    pointer-events: none;

    background-image:
        radial-gradient(
            rgba(90, 120, 255, 0.75) 1px,
            transparent 1px
        );

    background-size: 12px 12px;

    mask-image:
        linear-gradient(
            315deg,
            transparent 0%,
            black 70%
        );

    -webkit-mask-image:
        linear-gradient(
            315deg,
            transparent 0%,
            black 70%
        );
}


/* =========================================================
   HEADING
   ========================================================= */

.lg-related-artists-heading {
    position: relative;

    z-index: 2;

    width: 100%;

    text-align: center;

    margin: 0 auto 58px;
}


/* ---------------------------------------------------------
   DISCOVER MORE LABEL
   --------------------------------------------------------- */

.lg-related-artists-heading::before {
    content: "✦  DISCOVER MORE  ✦";

    display: block;

    margin-bottom: 12px;

    font-size: 13px;
    line-height: 1;

    font-weight: 700;

    letter-spacing: 2.5px;

    color: #f7ce66;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   MAIN TITLE
   --------------------------------------------------------- */

.lg-related-artists-heading h2 {
    margin: 0;
    padding: 0;

    font-size: clamp(36px, 4vw, 58px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -1.8px;

    color: #ffffff;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   GRADIENT LINE UNDER TITLE
   --------------------------------------------------------- */

.lg-related-artists-heading h2::after {
    content: "";

    display: block;

    width: 150px;
    height: 4px;

    margin: 18px auto 0;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #f8c94d 0%,
            #ff5ec4 50%,
            #6f91ff 100%
        );

    box-shadow:
        0 0 12px rgba(255, 91, 195, 0.45),
        0 0 20px rgba(111, 145, 255, 0.20);
}


/* ---------------------------------------------------------
   SUBTITLE
   --------------------------------------------------------- */

.lg-related-artists-heading p {
    margin: 18px 0 0;

    font-size: 16px;

    line-height: 1.6;

    color: rgba(255, 255, 255, 0.65);

    letter-spacing: 0.15px;
}


/* =========================================================
   ARTIST GRID
   ========================================================= */

.lg-related-artists-grid {
    position: relative;

    z-index: 2;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: flex-start;

    gap: 42px 28px;

    width: 100%;

    max-width: 1320px;

    margin: 0 auto;
}


/* =========================================================
   ARTIST CARD
   ========================================================= */

.lg-related-artist {
    position: relative;

    display: flex;

    /*
     * Wider card so long Korean/English artist names
     * have enough horizontal room.
     */
    flex: 0 0 190px;

    width: 190px;

    min-width: 190px;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    color: #ffffff;

    text-decoration: none;

    text-align: center;

    box-sizing: border-box;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}


.lg-related-artist:hover {
    color: #ffffff;

    text-decoration: none;

    transform: translateY(-8px);
}


/* =========================================================
   ARTIST IMAGE
   ========================================================= */

.lg-related-artist-image {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 132px;
    height: 132px;

    flex: 0 0 132px;

    border-radius: 50%;

    padding: 3px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #f8c84c 0%,
            #ff55c7 50%,
            #6d8cff 100%
        );

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 18px rgba(255, 199, 74, 0.22),
        0 0 34px rgba(255, 75, 194, 0.14);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* ---------------------------------------------------------
   OUTER RING
   --------------------------------------------------------- */

.lg-related-artist-image::before {
    content: "";

    position: absolute;

    inset: -8px;

    border-radius: 50%;

    border: 1px solid rgba(255, 203, 80, 0.22);

    opacity: 0.75;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}


/* ---------------------------------------------------------
   ARTIST PHOTO
   --------------------------------------------------------- */

.lg-related-artist-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #090a18;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   HOVER IMAGE
   --------------------------------------------------------- */

.lg-related-artist:hover .lg-related-artist-image {
    transform: scale(1.055);

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 0 24px rgba(255, 201, 70, 0.42),
        0 0 42px rgba(255, 76, 196, 0.25),
        0 0 60px rgba(93, 126, 255, 0.16);
}


.lg-related-artist:hover .lg-related-artist-image::before {
    transform: scale(1.08);

    opacity: 1;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.lg-related-artist-placeholder {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #2c315a,
            #090a18
        );

    color: #f7c94d;

    font-size: 32px;
}


/* =========================================================
   ARTIST NAME
   ========================================================= */

.lg-related-artist-name {
    display: block;

    /*
     * IMPORTANT:
     * The name area is wider than the image.
     */
    width: 220px !important;

    max-width: 220px !important;

    margin-top: 18px;

    padding: 0;

    box-sizing: border-box;

    text-align: center;

    font-size: 16px;

    line-height: 1.3;

    font-weight: 750;

    color: #ffffff;

    /*
     * IMPORTANT:
     * NEVER allow artist names to wrap.
     */
    white-space: nowrap !important;

    word-break: keep-all !important;

    overflow-wrap: normal !important;

    writing-mode: horizontal-tb !important;

    overflow: hidden;

    text-overflow: ellipsis;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.lg-related-artist:hover .lg-related-artist-name {
    color: #ffd76c;

    transform: translateY(-2px);
}


/* =========================================================
   RELATED ARTIST GENRE BADGE
   ========================================================= */

.lg-related-artist-genres {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: max-content;

    max-width: 100%;

    margin: 9px auto 0;

    padding: 5px 12px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.20);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.025);

    font-size: 10px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.5px;

    white-space: nowrap;

    color: #d8bfff;

    box-shadow:
        inset 0 0 8px rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* ---------------------------------------------------------
   GENRE TEXT
   --------------------------------------------------------- */

.lg-related-artist-genres span {
    color: inherit;
}


/* ---------------------------------------------------------
   GENRE SEPARATOR
   --------------------------------------------------------- */

.lg-related-artist-genres .lg-genre-separator {
    margin: 0 5px;

    color: #f7c94d;

    opacity: 0.85;
}


/* ---------------------------------------------------------
   GENRE HOVER
   --------------------------------------------------------- */

.lg-related-artist:hover .lg-related-artist-genres {
    transform: translateY(-2px);

    box-shadow:
        0 0 12px rgba(255, 91, 195, 0.12);
}


/* =========================================================
   AUTOMATIC GENRE COLORS
   ========================================================= */


/* Pop */

.lg-related-artist-genres[data-genres*="Pop"] {
    color: #d77cff;

    border-color:
        rgba(215, 124, 255, 0.45);

    box-shadow:
        inset 0 0 10px rgba(215, 124, 255, 0.035);
}


/* K-Pop
   Must come AFTER Pop because K-Pop contains "Pop".
*/

.lg-related-artist-genres[data-genres*="K-Pop"] {
    color: #f4c84a;

    border-color:
        rgba(244, 200, 74, 0.45);

    box-shadow:
        inset 0 0 10px rgba(244, 200, 74, 0.035);
}


/* Rock */

.lg-related-artist-genres[data-genres*="Rock"] {
    color: #5796ff;

    border-color:
        rgba(87, 150, 255, 0.45);

    box-shadow:
        inset 0 0 10px rgba(87, 150, 255, 0.035);
}


/* Dance */

.lg-related-artist-genres[data-genres*="Dance"] {
    color: #ff65c8;

    border-color:
        rgba(255, 101, 200, 0.45);

    box-shadow:
        inset 0 0 10px rgba(255, 101, 200, 0.035);
}


/* Hip-Hop */

.lg-related-artist-genres[data-genres*="Hip-Hop"] {
    color: #9c8cff;

    border-color:
        rgba(156, 140, 255, 0.45);
}


/* R&B */

.lg-related-artist-genres[data-genres*="R&B"] {
    color: #ff8cbd;

    border-color:
        rgba(255, 140, 189, 0.45);
}


/* EDM */

.lg-related-artist-genres[data-genres*="EDM"] {
    color: #55d9ff;

    border-color:
        rgba(85, 217, 255, 0.45);
}


/* J-Pop */

.lg-related-artist-genres[data-genres*="J-Pop"] {
    color: #ff8abf;

    border-color:
        rgba(255, 138, 191, 0.45);
}


/* Indie */

.lg-related-artist-genres[data-genres*="Indie"] {
    color: #72d6a2;

    border-color:
        rgba(114, 214, 162, 0.45);
}


/* Jazz */

.lg-related-artist-genres[data-genres*="Jazz"] {
    color: #74a7ff;

    border-color:
        rgba(116, 167, 255, 0.45);
}


/* Ballad */

.lg-related-artist-genres[data-genres*="Ballad"] {
    color: #f29acb;

    border-color:
        rgba(242, 154, 203, 0.45);
}


/* Alternative */

.lg-related-artist-genres[data-genres*="Alternative"] {
    color: #b48cff;

    border-color:
        rgba(180, 140, 255, 0.45);
}


/* =========================================================
   EXPLORE MORE ARTISTS
   ========================================================= */

.lg-related-artists-more {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    justify-content: center;

    width: max-content;

    min-width: 330px;

    margin: 58px auto 0;

    padding: 16px 28px;

    box-sizing: border-box;

    border: 1px solid transparent;

    border-radius: 999px;

    background:
        linear-gradient(
            #0a0b1b,
            #0a0b1b
        ) padding-box,

        linear-gradient(
            90deg,
            #ff73c7,
            #f8c94d,
            #7c8cff
        ) border-box;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 0.3px;

    text-decoration: none;

    box-shadow:
        0 0 18px rgba(255, 82, 195, 0.14),
        0 0 28px rgba(248, 201, 77, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.lg-related-artists-more:hover {
    color: #ffffff;

    text-decoration: none;

    transform: translateY(-3px);

    box-shadow:
        0 0 22px rgba(255, 87, 197, 0.30),
        0 0 40px rgba(248, 201, 77, 0.18),
        0 0 55px rgba(111, 145, 255, 0.14);
}


/* ---------------------------------------------------------
   BUTTON STAR
   --------------------------------------------------------- */

.lg-related-artists-more::before {
    content: "✦";

    margin-right: 13px;

    color: #ffd36b;

    font-size: 18px;
}


/* ---------------------------------------------------------
   BUTTON ARROW
   --------------------------------------------------------- */

.lg-related-artists-more::after {
    content: "→";

    margin-left: 15px;

    color: #ffd36b;

    font-size: 20px;

    transition:
        transform 0.3s ease;
}


.lg-related-artists-more:hover::after {
    transform: translateX(5px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .lg-related-artists-inner {
        padding-left: 30px;
        padding-right: 30px;
    }


    .lg-related-artists-grid {
        gap: 38px 24px;
    }


    .lg-related-artist {
        flex-basis: 180px;

        width: 180px;

        min-width: 180px;
    }


    .lg-related-artist-name {
        width: 205px !important;

        max-width: 205px !important;
    }


    .lg-related-artist-image {
        width: 122px;
        height: 122px;

        flex-basis: 122px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .lg-related-artists {
        margin-top: 45px;

        margin-bottom: 45px;

        border-radius: 22px;
    }


    .lg-related-artists-inner {
        min-height: 0;

        padding: 42px 18px 45px;

        border-radius: 21px;
    }


    .lg-related-artists-heading {
        margin-bottom: 42px;
    }


    .lg-related-artists-heading::before {
        font-size: 10px;

        letter-spacing: 1.8px;
    }


    .lg-related-artists-heading h2 {
        font-size: 34px;

        letter-spacing: -1px;

        white-space: nowrap;
    }


    .lg-related-artists-heading h2::after {
        width: 115px;

        height: 3px;

        margin-top: 14px;
    }


    .lg-related-artists-heading p {
        font-size: 14px;

        margin-top: 14px;
    }


    .lg-related-artists-grid {
        gap: 36px 18px;
    }


    .lg-related-artist {
        flex-basis: 135px;

        width: 135px;

        min-width: 135px;
    }


    .lg-related-artist-image {
        width: 108px;

        height: 108px;

        flex-basis: 108px;
    }


    .lg-related-artist-name {
        /*
         * Keep the name on ONE LINE even on mobile.
         */
        width: 170px !important;

        max-width: 170px !important;

        margin-top: 15px;

        font-size: 14px;

        white-space: nowrap !important;

        word-break: keep-all !important;

        overflow-wrap: normal !important;

        writing-mode: horizontal-tb !important;
    }


    .lg-related-artist-genres {
        margin-top: 8px;

        padding: 4px 9px;

        font-size: 9px;
    }


    .lg-related-artists-more {
        width: 92%;

        min-width: 0;

        margin-top: 45px;

        padding: 14px 18px;

        font-size: 13px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .lg-related-artists-heading h2 {
        font-size: 30px;
    }


    .lg-related-artists-grid {
        gap: 32px 12px;
    }


    .lg-related-artist {
        flex-basis: 125px;

        width: 125px;

        min-width: 125px;
    }


    .lg-related-artist-name {
        width: 160px !important;

        max-width: 160px !important;

        font-size: 13px;

        white-space: nowrap !important;

        word-break: keep-all !important;

        overflow-wrap: normal !important;

        writing-mode: horizontal-tb !important;
    }


    .lg-related-artist-image {
        width: 100px;

        height: 100px;

        flex-basis: 100px;
    }

}