.hero {
    min-height: min(720px, 74vh);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(50px, 7vw, 100px);
    padding: 30px 0 50px;
}

.hero-left { position: relative; z-index: 2; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(167,139,250,.2);
    border-radius: 999px;
    background: rgba(139,92,246,.08);
    color: #C4B5FD;
    font-size: 13px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 12px rgba(52,211,153,.7);
}

.hero h1 {
    max-width: 720px;
    margin: 22px 0 20px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.18;
    letter-spacing: -1.8px;
    font-weight: 800;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(135deg, #C4B5FD 5%, #8B5CF6 60%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    max-width: 620px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 17px;
    line-height: 2;
}

.hero-buttons { display: flex; gap: 12px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 25px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #7C3AED, #9F67FF);
    border: 1px solid rgba(196,181,253,.2);
    font-weight: 700;
    box-shadow: 0 15px 38px rgba(124,58,237,.28);
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}

.btn-primary::after { content: "←"; font-size: 18px; transition: transform .3s ease; }

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(124,58,237,.4);
    filter: brightness(1.06);
}

.btn-primary:hover::after { transform: translateX(-4px); }

.hero-right {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.hero-card-3d {
    position: relative;
    width: min(410px, 82vw);
    aspect-ratio: 1;
    border-radius: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(139,92,246,.18), transparent 30%),
        rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 35px 90px rgba(0,0,0,.45);
    backdrop-filter: blur(22px);
    transform-style: preserve-3d;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s ease;
}

.hero-card-3d::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(139,92,246,.12);
    filter: blur(45px);
    top: 55px;
}

.hero-card-3d::after {
    content: "24/7";
    position: absolute;
    top: 22px;
    left: 24px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #A7F3D0;
    background: rgba(52,211,153,.08);
    border: 1px solid rgba(52,211,153,.15);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-card-3d:hover {
    transform: translateY(-7px) rotateX(3deg) rotateY(-3deg);
    border-color: rgba(167,139,250,.2);
}

.disc-3d {
    position: relative;
    z-index: 1;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        repeating-radial-gradient(circle, rgba(255,255,255,.05) 0 2px, transparent 3px 7px),
        conic-gradient(from 0deg, #5B21B6, #A78BFA, #6D28D9, #8B5CF6, #5B21B6);
    box-shadow: 0 20px 55px rgba(109,40,217,.42), inset 0 0 0 10px rgba(0,0,0,.18);
    animation: spin3d 12s linear infinite;
}

.disc-3d::before {
    content: "";
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
}

.disc-inner {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #30204F, #0D0D14 70%);
    border: 8px solid rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

@keyframes spin3d {
    to { transform: rotate(360deg); }
}

.hero-card-3d h3 {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    font-size: 20px;
}

.hero-card-3d p {
    position: relative;
    z-index: 1;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.section-title {
    margin: 82px 0 36px;
    text-align: center;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    margin-bottom: 9px;
}

.section-title p { color: var(--muted); }

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 18px;
}

.genre-card {
    position: relative;
    min-height: 210px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.genre-card::after {
    content: "←";
    position: absolute;
    left: 22px;
    bottom: 20px;
    color: #A78BFA;
    opacity: 0;
    transform: translateX(8px);
    transition: .3s ease;
}

.genre-card:hover {
    transform: translateY(-7px);
    border-color: rgba(167,139,250,.25);
    background: linear-gradient(145deg, rgba(139,92,246,.09), rgba(255,255,255,.035));
    box-shadow: 0 28px 65px rgba(0,0,0,.32);
}

.genre-card:hover::after { opacity: 1; transform: translateX(0); }

.genre-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    font-size: 25px;
    background: rgba(139,92,246,.12);
    border: 1px solid rgba(167,139,250,.16);
    box-shadow: 0 12px 28px rgba(109,40,217,.16);
}

.genre-card h3 { font-size: 22px; }

.stats {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.search-wrapper {
    width: min(680px, 100%);
    margin: 10px auto 34px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 5px;
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 45px rgba(0,0,0,.18);
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.search-form:focus-within {
    background: rgba(255,255,255,.055);
    border-color: rgba(167,139,250,.4);
    box-shadow: 0 18px 55px rgba(109,40,217,.16), 0 0 0 4px rgba(139,92,246,.06);
}

.search-input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0 18px;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 15px;
}

.search-input::placeholder { color: #706C7B; }

.search-btn {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #7C3AED, #9F67FF);
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(124,58,237,.25);
    transition: transform .25s ease, box-shadow .25s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124,58,237,.36);
}

.search-clear {
    width: 34px;
    height: 34px;
    margin-inline: 4px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--muted);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06);
    transition: .25s ease;
}

.search-clear:hover {
    color: #FDA4AF;
    background: rgba(251,113,133,.08);
    border-color: rgba(251,113,133,.18);
}

.genre-grid .no-result {
    grid-column: 1 / -1;
    padding: 55px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 24px;
    background: rgba(255,255,255,.02);
}

.install-banner {
    position: fixed;
    right: 20px;
    left: 20px;
    bottom: 20px;
    z-index: 9998;
    padding: 12px;
    border-radius: 20px;
    background: rgba(13,13,20,.9);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(24px);
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
    animation: slideUp .45s cubic-bezier(.2,.8,.2,1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-content {
    max-width: 760px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 13px;
}

.banner-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(139,92,246,.12);
    border: 1px solid rgba(167,139,250,.15);
    font-size: 23px;
}

.banner-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.banner-text strong { font-size: 14px; }
.banner-text span { color: var(--muted); font-size: 12px; }

.banner-btn {
    min-width: 74px;
    padding: 10px 17px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #7C3AED, #9F67FF);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.banner-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: 10px;
    transition: .25s ease;
}

.banner-close:hover { color: #FDA4AF; background: rgba(251,113,133,.08); }

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 45px;
        padding-top: 15px;
    }
    .hero-right { order: -1; }
    .hero p { margin-inline: auto; }
    .hero-buttons { justify-content: center; }
    .hero-card-3d { width: min(340px, 78vw); }
}

@media (max-width: 600px) {
    .hero { gap: 32px; padding-top: 5px; }
    .hero h1 { font-size: 35px; letter-spacing: -1px; }
    .hero p { font-size: 15px; line-height: 1.9; }
    .hero-buttons { width: 100%; }
    .btn-primary { width: 100%; }
    .hero-card-3d { width: min(300px, 82vw); border-radius: 30px; }
    .disc-3d { width: 145px; height: 145px; }
    .disc-inner { width: 50px; height: 50px; }
    .genre-grid { grid-template-columns: 1fr; gap: 13px; }
    .genre-card { min-height: 170px; padding: 21px; }
    .section-title { margin: 60px 0 26px; }
    .search-wrapper { margin-bottom: 25px; }
    .search-form { min-height: 58px; }
    .search-btn { width: 46px; height: 46px; flex-basis: 46px; }
    .banner-content { gap: 9px; }
    .banner-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .install-banner { right: 10px; left: 10px; bottom: 10px; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 31px; }
    .banner-icon { display: none; }
}

/* ===== Final visual refinements ===== */
.search-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}

.search-btn:hover svg {
    transform: scale(1.08) rotate(-8deg);
}



/* Page heading helpers used by genres/singer templates */
.page-intro {
    padding-top: 8px;
}

.page-intro .section-title {
    margin: 24px 0 28px;
}

.page-intro .section-title h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.3;
    margin: 8px 0 8px;
}

.eyebrow,
.card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #B9A7E8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
}

.card-kicker {
    opacity: .72;
    font-size: 10px;
    letter-spacing: 1px;
}

.genre-card-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.card-arrow {
    transition: transform .3s ease;
}

@media (max-width: 600px) {
    .page-intro .section-title {
        margin: 18px 0 22px;
    }
}
