/* ═══════════════════════════════════════════════════
   SUNO RAP VOCAL PROMPT GENERATOR — STYLES
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #0a0a0f;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --orange-400: #fb923c;
    --green-400: #4ade80;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: #fff;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

.bg-orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(128px); animation: pulse 4s ease-in-out infinite; }
.orb-1 { top: -10rem; left: -10rem; width: 24rem; height: 24rem; background: rgba(147, 51, 234, 0.2); }
.orb-2 { top: 50%; right: -10rem; width: 24rem; height: 24rem; background: rgba(6, 182, 212, 0.15); animation-delay: 1s; }
.orb-3 { bottom: -10rem; left: 33%; width: 24rem; height: 24rem; background: rgba(236, 72, 153, 0.15); animation-delay: 0.5s; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.05); } }

.container { position: relative; z-index: 10; max-width: 72rem; margin: 0 auto; padding: 2rem 1rem; }
@media (min-width: 640px) { .container { padding: 3rem 1rem; } }

.header { text-align: center; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .header { margin-bottom: 3.5rem; } }

.back-link { display: inline-block; margin-bottom: 1rem; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.back-link:hover { color: var(--purple-400); }

.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 9999px; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); color: #d8b4fe; font-size: 0.875rem; margin-bottom: 1.5rem; }
.badge-dot { display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--purple-400); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

.title { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.025em; margin-bottom: 1rem; line-height: 1.2; }
@media (min-width: 640px) { .title { font-size: 3rem; } }
@media (min-width: 1024px) { .title { font-size: 3.75rem; } }

.title-gradient { background: linear-gradient(to right, var(--purple-400), var(--pink-400), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-white { color: rgba(255, 255, 255, 0.9); }
.subtitle { color: rgba(255, 255, 255, 0.5); font-size: 1.125rem; max-width: 36rem; margin: 0 auto; }

.section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.section { margin-bottom: 2.5rem; }
.card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 1rem; padding: 1.5rem; margin-bottom: 2rem; }

.main-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .main-grid { grid-template-columns: 1fr 1fr; } }
.controls-column { display: flex; flex-direction: column; }
.output-column { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .output-column { position: sticky; top: 2rem; align-self: start; } }

.presets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .presets-grid { grid-template-columns: repeat(4, 1fr); } }

.preset-btn { padding: 0.75rem 1rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.03); text-align: left; cursor: pointer; transition: all 0.3s ease; color: #fff; }
.preset-btn:hover { transform: scale(1.02); background: rgba(255, 255, 255, 0.06); }
.preset-btn.active { background: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.1); }
.preset-emoji { font-size: 1.25rem; }
.preset-name { font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); margin-top: 0.25rem; }
.preset-btn.active .preset-name { color: #d8b4fe; }

.vocal-styles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.vocal-style-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.02); text-align: left; cursor: pointer; transition: all 0.2s ease; color: #fff; }
.vocal-style-btn:hover { background: rgba(255, 255, 255, 0.05); }
.vocal-style-btn.active { background: linear-gradient(to right, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2)); border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.05); }
.vocal-style-emoji { font-size: 1.25rem; flex-shrink: 0; }
.vocal-style-info { min-width: 0; }
.vocal-style-label { font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vocal-style-desc { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.effects-container { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.effect-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.875rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.03); font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.2s ease; }
.effect-btn:hover { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }
.effect-btn.active { background: rgba(6, 182, 212, 0.2); border-color: rgba(34, 211, 238, 0.4); color: #67e8f9; box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.05); }
.effect-close { margin-left: 0.25rem; font-size: 0.75rem; }

.mix-styles-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .mix-styles-grid { grid-template-columns: repeat(2, 1fr); } }
.mix-style-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.02); text-align: left; cursor: pointer; transition: all 0.2s ease; color: #fff; }
.mix-style-btn:hover { background: rgba(255, 255, 255, 0.05); }
.mix-style-btn.active { background: linear-gradient(to right, rgba(236, 72, 153, 0.2), rgba(249, 115, 22, 0.2)); border-color: rgba(236, 72, 153, 0.4); }
.mix-style-emoji { font-size: 1.25rem; }
.mix-style-label { font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }

.energy-bpm-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .energy-bpm-grid { grid-template-columns: 1fr 1fr; } }
.energy-container { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.energy-btn { display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.03); font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.2s ease; }
.energy-btn:hover { color: rgba(255, 255, 255, 0.7); }
.energy-btn.active { background: rgba(249, 115, 22, 0.2); border-color: rgba(251, 146, 60, 0.4); color: #fdba74; }

.bpm-slider { width: 100%; height: 0.5rem; background: rgba(255, 255, 255, 0.1); border-radius: 9999px; appearance: none; cursor: pointer; outline: none; }
.bpm-slider::-webkit-slider-thumb { appearance: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--purple-400); box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.3); cursor: pointer; }
.bpm-slider::-moz-range-thumb { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--purple-400); border: none; }
.bpm-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); margin-top: 0.25rem; }

.lang-custom-section { display: flex; flex-direction: column; gap: 1rem; }
.language-container { display: flex; gap: 0.5rem; }
.language-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.03); font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.2s ease; }
.language-btn:hover { color: rgba(255, 255, 255, 0.7); }
.language-btn.active { background: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.4); color: #d8b4fe; }

.custom-input { width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); font-size: 0.875rem; outline: none; transition: all 0.2s ease; }
.custom-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.custom-input:focus { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1); }

.output-card { border-radius: 1rem; padding: 1.5rem; backdrop-filter: blur(8px); }
.output-card-purple { background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.08), rgba(6, 182, 212, 0.08)); border: 1px solid rgba(168, 85, 247, 0.2); }
.output-card-pink { background: linear-gradient(to bottom right, rgba(236, 72, 153, 0.08), rgba(249, 115, 22, 0.08)); border: 1px solid rgba(236, 72, 153, 0.2); }
.output-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.output-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.output-title-purple { color: #d8b4fe; }
.output-title-pink { color: #f9a8d4; }
.copy-btn { padding: 0.375rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: 1px solid; }
.copy-btn-purple { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.3); }
.copy-btn-purple:hover { background: rgba(168, 85, 247, 0.3); }
.copy-btn-pink { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; border-color: rgba(236, 72, 153, 0.3); }
.copy-btn-pink:hover { background: rgba(236, 72, 153, 0.3); }
.copy-btn.copied { background: rgba(34, 197, 94, 0.2) !important; color: #86efac !important; border-color: rgba(34, 197, 94, 0.3) !important; }
.output-content { background: rgba(0, 0, 0, 0.3); border-radius: 0.75rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.05); }
.output-text { color: rgba(255, 255, 255, 0.8); font-size: 0.875rem; line-height: 1.6; font-family: 'SF Mono', Monaco, monospace; word-break: break-word; }
.output-hint { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); margin-top: 0.75rem; }

.tips-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.tips-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }
.tips-list li b { color: rgba(255, 255, 255, 0.7); }
.tip-bullet { color: var(--purple-400); flex-shrink: 0; margin-top: 0.125rem; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0.75rem; padding: 1rem; text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-value-purple { color: var(--purple-400); }
.stat-value-cyan { color: var(--cyan-400); }
.stat-value-pink { color: var(--pink-400); }
.stat-label { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); margin-top: 0.25rem; }

.crosslinks {
            margin-top: 3rem; margin-bottom: 0;
            padding: 1.5rem;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 1rem;
        }
        .crosslinks-title {
            font-size: .75rem; font-weight: 600;
            color: rgba(255,255,255,0.35);
            text-transform: uppercase; letter-spacing: .1em;
            margin-bottom: 1rem;
            display: flex; align-items: center; gap: .5rem;
        }
        .crosslinks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: .625rem;
        }
        .crosslink {
            display: flex; align-items: center; gap: .625rem;
            padding: .75rem 1rem;
            border-radius: .75rem;
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.05);
            text-decoration: none; color: #fff;
            transition: all .25s;
        }
        .crosslink:hover {
            background: rgba(255,255,255,0.05);
            border-color: rgba(255,255,255,0.1);
            transform: translateY(-2px);
        }
        .crosslink-emoji { font-size: 1.25rem; }
        .crosslink-info { min-width: 0; }
        .crosslink-name {
            font-size: .8125rem; font-weight: 600;
            color: rgba(255,255,255,0.85);
        }
        .crosslink-sub {
            font-size: .6875rem;
            color: rgba(255,255,255,0.35);
        }
 .share-block {
            padding: 1.25rem;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: .875rem;
            text-align: center;
        }
        .share-title {
            font-size: .75rem; font-weight: 600;
            color: rgba(255,255,255,0.35);
            text-transform: uppercase; letter-spacing: .08em;
            margin-bottom: .75rem;
        }
        .share-buttons {
            display: flex; justify-content: center;
            flex-wrap: wrap; gap: .5rem;
        }
        .share-btn {
            display: inline-flex; align-items: center; gap: .375rem;
            padding: .5rem 1rem; border-radius: .5rem;
            font-size: .8125rem; font-weight: 500;
            text-decoration: none; color: rgba(255,255,255,0.7);
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.03);
            transition: all .25s; cursor: pointer;
        }
        .share-btn:hover {
            background: rgba(255,255,255,0.06);
            color: #fff;
            transform: translateY(-1px);
        }
        .share-btn-tg:hover { border-color: rgba(38,166,227,0.3); }
        .share-btn-vk:hover { border-color: rgba(76,117,163,0.3); }
        .share-btn-tw:hover { border-color: rgba(29,155,240,0.3); }
        .share-btn-copy:hover { border-color: rgba(139,92,246,0.3); }
.footer { margin-top: 4rem; text-align: center; padding-bottom: 2rem; }
.footer p { color: rgba(255, 255, 255, 0.2); font-size: 0.875rem; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::selection { background: rgba(168, 85, 247, 0.3); color: #fff; }
