.home-discovery-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 14px;
}

.home-discovery-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 26px;
    border: 1px solid #eadfea;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 14%, rgb(232 211 241 / 80%), transparent 32%),
        radial-gradient(circle at 78% 80%, rgb(248 224 236 / 74%), transparent 28%),
        linear-gradient(135deg, #fff 0%, #fcf8fd 58%, #f7f0fa 100%);
}

.home-discovery-hero::after {
    position: absolute;
    inset-inline-end: 5%;
    bottom: -42px;
    width: 250px;
    height: 250px;
    border: 1px solid rgb(195 128 224 / 17%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.home-hero-kicker {
    margin: 0 0 4px;
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-discovery-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.025em;
}

.home-hero-description {
    max-width: 660px;
    margin: 0 0 17px;
    color: var(--color-text);
    line-height: 1.65;
}

.home-discovery-hero .search-form {
    max-width: 800px;
    margin: 0;
}

.home-popular-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

.home-popular-topics-label {
    margin-inline-end: 2px;
    color: var(--color-text-sub);
    font-size: 0.78rem;
    font-weight: 700;
}

.home-topic-chip {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 5px 11px;
    border: 1px solid #e4d7e8;
    border-radius: 999px;
    background: rgb(255 255 255 / 72%);
    color: var(--color-text);
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.home-topic-chip:hover {
    border-color: #d7b4e3;
    background: #fff;
    color: var(--color-primary-dark);
}

.home-discovery-section {
    margin: 0 0 34px;
}

.home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 1.35rem;
}

.home-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fdeaf3;
    color: #d94d8d;
    font-size: 0.85rem;
    line-height: 1;
}

.home-section-more {
    color: #d94d8d;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.home-section-more:hover {
    text-decoration: underline;
}

.home-group-grid,
.home-song-grid,
.home-latest-grid {
    display: grid;
    gap: 14px;
}

.home-group-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-song-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-media-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2dce4;
    border-radius: 11px;
    background: #f3f1f4;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.home-media-card:hover {
    border-color: #dfa5bf;
    transform: translateY(-1px);
}

.home-media-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f3f1f4;
}

.home-media-card-media::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 62%;
    background: linear-gradient(
        to bottom,
        rgb(255 255 255 / 0%) 0%,
        rgb(255 255 255 / 12%) 30%,
        rgb(255 255 255 / 72%) 66%,
        rgb(255 255 255 / 96%) 88%,
        rgb(255 255 255 / 98%) 100%
    );
    content: "";
    pointer-events: none;
}

.home-media-card-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.home-media-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(135deg, #f6f3f7, #f2f1f5);
    color: var(--color-text-sub);
    font-size: 0.76rem;
    text-align: center;
}

.home-media-card-copy {
    position: absolute;
    z-index: 2;
    inset-inline-end: 38px;
    bottom: 10px;
    inset-inline-start: 11px;
    display: grid;
    gap: 1px;
    min-width: 0;
}

.home-media-card-title {
    display: block;
    overflow: hidden;
    color: var(--color-text-heading);
    font-size: clamp(1.08rem, 1.55vw, 1.35rem);
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-media-card-subtitle {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--color-text);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-card-chevron {
    position: absolute;
    z-index: 2;
    inset-inline-end: 11px;
    bottom: 8px;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1;
}

.home-latest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-latest-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e2dce4;
    border-radius: 11px;
    background: #fff;
}

.home-latest-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f2f1f4;
}

.home-latest-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-latest-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(255 255 255 / 90%);
    box-shadow: 0 5px 18px rgb(25 20 28 / 20%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform .15s ease, background-color .15s ease;
}

.home-latest-play::after {
    position: absolute;
    top: 50%;
    left: 54%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid var(--color-primary-dark);
    content: "";
    transform: translate(-50%, -50%);
}

.home-latest-media:hover .home-latest-play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

.home-latest-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    padding: 10px 11px 11px;
}

.home-latest-title {
    display: block;
    overflow: hidden;
    color: var(--color-text-heading);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-latest-title:hover {
    color: var(--color-primary-dark);
}

.home-latest-meta {
    display: grid;
    gap: 1px;
    color: var(--color-text-sub);
    font-size: 0.78rem;
    line-height: 1.45;
}

.home-latest-meta strong {
    overflow: hidden;
    color: var(--color-text-heading);
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-related-video-area {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 2px;
}

.home-related-video-button.stage-status-mini-button {
    max-width: 100%;
}

@media (max-width: 1080px) {
    .home-group-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-song-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-media-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .home-discovery-page {
        width: min(100% - 20px, 1180px);
    }

    .home-discovery-hero {
        margin-bottom: 24px;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .home-discovery-hero::after {
        inset-inline-end: -55px;
        bottom: -75px;
        width: 190px;
        height: 190px;
    }

    .home-discovery-hero h2 {
        font-size: 1.65rem;
    }

    .home-hero-description {
        margin-bottom: 13px;
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .home-popular-topics {
        gap: 6px;
    }

    .home-popular-topics-label {
        width: 100%;
    }

    .home-topic-chip {
        min-height: 29px;
        padding: 5px 9px;
        font-size: 0.74rem;
    }

    .home-discovery-section {
        margin-bottom: 26px;
    }

    .home-section-heading {
        margin-bottom: 9px;
    }

    .home-section-heading h2 {
        gap: 7px;
        font-size: 1.1rem;
    }

    .home-section-icon {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    .home-section-more {
        font-size: 0.78rem;
    }

    .home-group-grid,
    .home-song-grid,
    .home-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .home-media-card-media::after {
        height: 66%;
    }

    .home-media-card-copy {
        inset-inline-end: 31px;
        bottom: 8px;
        inset-inline-start: 8px;
    }

    .home-media-card-title {
        font-size: clamp(0.96rem, 4.5vw, 1.1rem);
    }

    .home-media-card-subtitle {
        font-size: 0.68rem;
    }

    .home-card-chevron {
        inset-inline-end: 8px;
        bottom: 7px;
        font-size: 1.2rem;
    }

    .home-latest-play {
        width: 40px;
        height: 40px;
    }

    .home-latest-play::after {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 10px;
    }

    .home-latest-body {
        gap: 6px;
        padding: 8px;
    }

    .home-latest-title {
        font-size: 1rem;
    }

    .home-latest-meta {
        font-size: 0.7rem;
    }

    .home-latest-meta strong {
        font-size: 0.76rem;
    }

    .home-related-video-button.stage-status-mini-button {
        width: 100%;
        justify-content: center;
    }
}
