.discover {
    min-height: 100%;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
    color: #151515;
    background: #fff;
    font-size: 14px;
}

.discover * { box-sizing: border-box; }
.discover a { color: inherit; text-decoration: none; }

.discover-header {
    position: relative;
    min-height: 168px;
    padding: 8px 17px 40px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 105%, rgba(223, 255, 245, .95) 0 24%, transparent 52%),
        linear-gradient(128deg, #a8f1e9 0%, #66dfcf 55%, #20bfae 100%);
}

.discover-header::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -64px;
    width: 190px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    filter: blur(1px);
}

.discover-bar { position: relative; z-index: 3; display: flex; align-items: center; height: 38px; }
.discover-bar a { display: flex; align-items: center; width: 34px; height: 38px; }
.discover-bar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.discover-hero-copy { position: relative; z-index: 2; width: calc(100% - 112px); padding-top: 7px; }
.discover-kicker { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border: 1px solid rgba(0, 91, 82, .12); border-radius: 99px; color: #117d73; background: rgba(255, 255, 255, .46); font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.discover-header h1 { margin: 6px 0 4px; font-size: 22px; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; }
.discover-header p { max-width: 255px; margin: 0; overflow: hidden; color: #397b74; font-size: 11px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }

.discover-hero-art { position: absolute; z-index: 1; right: 7px; top: 39px; width: 126px; height: 100px; color: rgba(255, 255, 255, .82); filter: drop-shadow(0 8px 14px rgba(10, 112, 99, .13)); }
.discover-hero-art svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.discover-hero-art .art-soft { fill: rgba(255, 255, 255, .2); stroke: rgba(255, 255, 255, .68); }
.discover-hero-art .art-back { fill: rgba(255, 255, 255, .11); stroke: rgba(255, 255, 255, .34); }
.discover-hero-art .art-mark { stroke: rgba(255, 255, 255, .98); stroke-width: 5; }
.discover-hero-art .art-dot { fill: rgba(255, 255, 255, .78); stroke: none; }
.discover-hero-art .art-spark { stroke: rgba(255, 255, 255, .62); stroke-width: 3; }
.discover-rank-art { transform: rotate(-3deg); }
.discover-latest-art { transform: rotate(3deg); }

.discover-body { position: relative; z-index: 4; min-height: calc(100vh - 140px); margin-top: -25px; padding: 14px 14px 25px; border-radius: 24px 24px 0 0; background: #fff; }
.discover-options { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 1px 0; overflow-x: auto; scrollbar-width: none; }
.discover-options::-webkit-scrollbar { display: none; }
.discover-options a { flex-shrink: 0; padding: 7px 10px; border-radius: 8px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.discover .selected { color: #08a995; background: #d8fbf4; font-weight: 700; }

.discover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 9px; }
.discover-card { display: block; min-width: 0; }
.discover-cover { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 10px; background: #f0f0f0; }
.discover-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.discover-copy { min-width: 0; }
.discover-copy h2 { margin: 7px 0 4px; overflow: hidden; font-size: 14px; font-weight: 550; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.discover-copy p { margin: 3px 0; overflow: hidden; color: #999; font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.discover-new { position: absolute; right: 5px; top: 5px; padding: 3px 6px; border-radius: 5px; color: #fff; background: linear-gradient(135deg, #24d2ba, #0eb49f); box-shadow: 0 3px 9px rgba(14, 180, 159, .22); font-size: 10px; }

.discover-rank-tabs { display: flex; align-items: center; gap: 7px; margin: 0 0 13px; }
.discover-rank-tabs a { min-width: 66px; padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; color: #555; background: #f6f6f6; font-size: 13px; line-height: 20px; text-align: center; white-space: nowrap; }
.discover-ranking { display: flex; flex-direction: column; gap: 0; }
.discover-ranking .discover-card { position: relative; display: flex; align-items: center; gap: 11px; min-height: 126px; padding: 8px 0; }
.discover-ranking .discover-card + .discover-card { border-top: 1px solid #f0f1f1; }
.discover-ranking .discover-cover { flex-shrink: 0; width: 78px; aspect-ratio: 3 / 4.15; border-radius: 9px; box-shadow: 0 4px 12px rgba(36, 55, 52, .08); }
.discover-ranking .discover-copy { flex: 1; padding: 0; overflow: hidden; }
.discover-rank-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.discover-ranking h2 { flex: 1; min-width: 0; margin: 0; color: #171919; font-size: 15px; font-weight: 700; line-height: 1.45; }
.discover-rank-score { flex-shrink: 0; color: #f27a34; font-size: 11px; font-weight: 650; white-space: nowrap; }
.discover-ranking p { margin: 5px 0; font-size: 11px; }
.discover-ranking .discover-description { display: -webkit-box; min-height: 32px; margin: 3px 0 5px; overflow: hidden; color: #8e9292; line-height: 16px; text-overflow: ellipsis; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.discover-heat { display: inline-block; margin-top: 1px; padding: 2px 6px; border-radius: 5px; color: #b7833d; background: #fcf5e9; font-size: 10px; line-height: 17px; }
.discover-number { position: absolute; left: 0; top: 0; min-width: 23px; padding: 2px 6px; border-radius: 0 0 8px 0; color: #fff; background: rgba(85, 90, 109, .72); font-size: 14px; font-weight: 750; text-align: center; }
.discover-number.place-1 { background: linear-gradient(135deg, #ffe584, #ffb12b); }
.discover-number.place-2 { background: linear-gradient(135deg, #e2e7f0, #99a9bd); }
.discover-number.place-3 { background: linear-gradient(135deg, #ffcb96, #df935d); }

.discover--latest .discover-header { background: radial-gradient(circle at 14% 110%, rgba(255, 249, 218, .96) 0 28%, transparent 55%), linear-gradient(128deg, #ffebc9 0%, #ffd8b8 56%, #ffbc9e 100%); }
.discover--latest .discover-header p { color: #916a48; }
.discover--latest .discover-kicker { color: #a36335; border-color: rgba(133, 76, 36, .1); }
.discover--latest .discover-hero-art { filter: drop-shadow(0 8px 14px rgba(167, 85, 39, .12)); }
.discover--latest .discover-options { margin-bottom: 13px; padding-bottom: 9px; border-bottom: 1px solid #f1f1f1; }
.discover--latest .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 10px; }
.discover--latest .discover-card { overflow: hidden; border: 1px solid #f0f0f0; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(39, 46, 44, .05); }
.discover--latest .discover-cover { border-radius: 11px 11px 0 0; }
.discover--latest .discover-copy { padding: 1px 9px 9px; }
.discover--latest .discover-copy h2 { margin: 7px 0 4px; font-size: 14px; }
.discover-latest-meta { display: flex; align-items: center; gap: 4px; }
.discover-latest-meta span { padding: 1px 4px; border-radius: 4px; color: #0ea993; background: #e1faf5; font-size: 9px; }

.discover-empty { padding: 72px 0; color: #999; line-height: 2.5; text-align: center; }
.discover-empty a { color: #08ae9a; }
.discover-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; color: #aaa; font-size: 12px; }
.discover-pagination a { padding: 8px 14px; border-radius: 8px; color: #555; background: #f5f5f5; }
.discover a:focus-visible,
.discover button:focus-visible,
.discover select:focus-visible { outline: 2px solid #08ae9a; outline-offset: 2px; }

.discover--filter .discover-header { min-height: auto; padding: 6px 14px 12px; background: #fff; }
.discover--filter .discover-header::after { display: none; }
.discover--filter .discover-bar { height: 44px; }
.discover--filter .discover-bar h1 { position: absolute; left: 50%; margin: 0; transform: translateX(-50%); font-size: 21px; }
.discover--filter .discover-body { min-height: 0; margin: 0; padding-top: 0; border-radius: 0; }
.discover--filter .discover-options { gap: 8px; margin-bottom: 8px; padding: 1px 0; }
.discover--filter .discover-options a { padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 20px; }

@media (max-width: 360px) {
    .discover-header { min-height: 158px; }
    .discover-hero-copy { width: calc(100% - 92px); }
    .discover-header h1 { font-size: 20px; }
    .discover-hero-art { right: -4px; top: 41px; width: 116px; height: 92px; }
    .discover-rank-tabs a { min-width: 61px; padding-inline: 9px; }
    .discover-ranking .discover-cover { width: 72px; }
    .discover-rank-score { font-size: 10px; }
}
