h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.hero {
    background: linear-gradient(145deg, #111c38, #17172f);
    border: 1px solid #1a2a57;
    border-radius: 1rem;
    padding: 2rem;
}

.hero h1 {
    margin-top: 0;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background: #4c6fff;
    color: white;
}

.btn-secondary {
    background: #222d56;
    color: #d9e1ff;
}

.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: #121c3c;
    border: 1px solid #1d2d59;
    border-radius: 0.8rem;
    padding: 1rem;
}

.input {
    width: 100%;
    margin: 0.5rem 0 0.8rem;
    padding: 0.45rem;
    border: 1px solid #2e3f71;
    background: #0f1630;
    color: #e8ecff;
    border-radius: 0.4rem;
}

.practice-room {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(680px, 1280px);
    grid-template-rows: auto auto auto;
    gap: 1rem;
    justify-content: center;
    align-items: start;
    padding: 0.35rem;
    border-radius: 1rem;
}

.practice-room::before,
.practice-room::after {
    content: none;
}

.practice-room > * {
    position: relative;
    z-index: 1;
}

.practice-room h2 {
    margin: 0;
}

.practice-center,
.practice-bottom {
    backdrop-filter: blur(2px);
}

.practice-center {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.practice-bottom {
    grid-column: 1;
    grid-row: 3;
    position: relative;
    z-index: 1;
    width: auto;
    max-width: none;
    margin: 0;
    padding-top: 0.95rem;
    box-sizing: border-box;
}

.player-host {
    position: relative;
    width: min(100%, 980px);
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 0.8rem;
    background: #070d1f;
    border: 1px solid #1c2b54;
    overflow: hidden;
    margin: 0 auto;
}

.player-host:fullscreen {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
    margin: 0;
}

.player-host-maximized-fallback {
    position: fixed !important;
    inset: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    aspect-ratio: auto;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    z-index: 4000;
    background: #000;
}

body.player-host-maximized-body {
    overflow: hidden;
}

#youtube-player-host iframe {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.loop-marker-panel {
    margin-top: 0.8rem;
}

.loop-marker-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #c8d4ff;
    margin-bottom: 0.35rem;
}

.loop-marker-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: #0a1430;
    border: 1px solid #273a6c;
    overflow: visible;
}

.loop-marker-region {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(76, 111, 255, 0.32);
}

.loop-marker {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 18px;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.loop-marker-pulse {
    animation-duration: 920ms;
    animation-timing-function: cubic-bezier(0.18, 0.82, 0.2, 1);
    animation-iteration-count: 1;
    animation-fill-mode: none;
}

.loop-marker-pulse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid currentColor;
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0;
    pointer-events: none;
    animation-duration: 1300ms;
    animation-timing-function: cubic-bezier(0.16, 0.86, 0.22, 1);
    animation-iteration-count: 1;
    animation-fill-mode: none;
    animation-name: var(--loop-marker-ring-animation, none);
}

@keyframes loopMarkerPulseA {
    0% {
        transform: translateX(-50%) scaleX(0.45) scaleY(0.55);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95), 0 0 0 0 rgba(255, 255, 255, 0.8);
    }
    28% {
        transform: translateX(-50%) scaleX(3.3) scaleY(1.95);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.52), 0 0 16px 7px rgba(255, 255, 255, 0.68);
    }
    58% {
        transform: translateX(-50%) scaleX(2.1) scaleY(1.3);
        box-shadow: 0 0 0 11px rgba(255, 255, 255, 0.22), 0 0 10px 3px rgba(255, 255, 255, 0.36);
    }
    100% {
        transform: translateX(-50%) scaleX(1) scaleY(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes loopMarkerPulseB {
    0% {
        transform: translateX(-50%) scaleX(0.45) scaleY(0.55);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95), 0 0 0 0 rgba(255, 255, 255, 0.8);
    }
    28% {
        transform: translateX(-50%) scaleX(3.3) scaleY(1.95);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.52), 0 0 16px 7px rgba(255, 255, 255, 0.68);
    }
    58% {
        transform: translateX(-50%) scaleX(2.1) scaleY(1.3);
        box-shadow: 0 0 0 11px rgba(255, 255, 255, 0.22), 0 0 10px 3px rgba(255, 255, 255, 0.36);
    }
    100% {
        transform: translateX(-50%) scaleX(1) scaleY(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes loopMarkerRingA {
    0% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.75;
    }
    35% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.58;
    }
    75% {
        transform: translate(-50%, -50%) scale(0.42);
        opacity: 0.26;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.04);
        opacity: 0;
    }
}

@keyframes loopMarkerRingB {
    0% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.75;
    }
    35% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.58;
    }
    75% {
        transform: translate(-50%, -50%) scale(0.42);
        opacity: 0.26;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.04);
        opacity: 0;
    }
}

.loop-start {
    background: #26d7a2;
    color: #26d7a2;
}

.loop-end {
    background: #ff4f7f;
    color: #ff4f7f;
}

.loop-current {
    background: #ffffff;
}

.practice-tab-rail {
    grid-column: 1;
    grid-row: 2;
    position: static;
    margin: 0;
    pointer-events: none;
    z-index: 2;
}

.practice-tab-strip {
    display: inline-flex;
    gap: 0.28rem;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    pointer-events: auto;
    padding: 0.34rem;
    border-radius: 999px;
    border: 1px solid #dcd7cf;
    background: linear-gradient(180deg, #ffffff, #f8f6f2);
    box-shadow: 0 10px 24px rgba(28, 22, 18, 0.22);
}

.practice-tab-button {
    border: 1px solid transparent;
    background: transparent;
    color: #5f5a51;
    border-radius: 999px;
    padding: 0.44rem 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 170ms ease;
}

.practice-tab-button:hover {
    color: #3a342a;
    background: rgba(168, 130, 89, 0.12);
}

.practice-tab-button.active {
    background: linear-gradient(145deg, #5c3a23, #3e2719);
    border-color: #7a4f30;
    color: #fff7ec;
    box-shadow: 0 3px 10px rgba(32, 19, 12, 0.28);
}

.notation-tab-attention {
    animation: notation-tab-spotlight 900ms ease-out 2;
}

@keyframes notation-tab-spotlight {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 3px 10px rgba(32, 19, 12, 0.28);
    }

    45% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 0 3px rgba(236, 177, 112, 0.28), 0 10px 24px rgba(32, 19, 12, 0.3);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 3px 10px rgba(32, 19, 12, 0.28);
    }
}

.practice-subtab-strip {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #4d3a2f;
}

.practice-subtab-button {
    border: 1px solid #6a533f;
    background: linear-gradient(180deg, #2f241d, #221a15);
    color: #dac8af;
    border-radius: 0.75rem;
    padding: 0.38rem 0.86rem;
    font-size: 0.84rem;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: all 160ms ease;
}

.practice-subtab-button:hover {
    border-color: #9a7758;
    color: #f3e2cb;
    transform: translateY(-1px);
}

.practice-subtab-button.active {
    background: linear-gradient(145deg, #c18a5f, #8b5a3b);
    border-color: #d7a47a;
    color: #fff7eb;
    box-shadow: inset 0 1px 0 rgba(255, 233, 204, 0.24);
}

.control-row {
    display: grid;
    grid-template-columns: 120px minmax(220px, 1fr) 120px minmax(220px, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.practice-bottom .control-row {
    grid-template-columns: 120px minmax(120px, 300px) 120px minmax(120px, 300px);
    justify-content: start;
}

.practice-bottom .loop-input-group .input {
    width: 130px;
    min-width: 130px;
}

.practice-bottom .control-row input[type="number"].input {
    width: 100px;
    min-width: 100px;
}

.practice-bottom .control-row select.input {
    width: 220px;
    min-width: 220px;
}

.control-row label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #99acd8;
    font-weight: 600;
}

.loop-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.loop-input-group .input {
    margin: 0;
}

.control-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.55rem;
    border-top: 1px solid #27355e;
}

.generation-options {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.generation-options .input {
    margin: 0;
    width: 190px;
    min-width: 190px;
}

.generation-progress-panel {
    width: min(100%, 460px);
    margin-top: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid #2f4377;
    background: linear-gradient(160deg, rgba(13, 23, 55, 0.94), rgba(8, 17, 44, 0.92));
}

.generation-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
    font-size: 0.86rem;
}

.generation-progress-header span {
    color: #c9dcff;
}

.generation-progress-header strong {
    color: #f0f7ff;
}

.generation-progress-track {
    position: relative;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0, 128, 224, 0.4);
    background: rgba(5, 14, 36, 0.88);
}

.generation-progress-fill {
    position: relative;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #6020e0, #0190fb, #00c0e0);
    box-shadow: 0 0 10px rgba(0, 144, 251, 0.35);
    transition: width 240ms linear;
}

.generation-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 42%;
    min-width: 24px;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
    opacity: 0.9;
    animation: generation-progress-shimmer 1.2s linear infinite;
}

@keyframes generation-progress-shimmer {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(260%);
    }
}

.control-action-right {
    margin-left: auto;
}

.notation-panel {
    position: relative;
}

.notation-panel-opening {
    animation: notation-panel-enter 460ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes notation-panel-enter {
    0% {
        opacity: 0.15;
        transform: translateY(10px) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notation-loading-status {
    margin: 0.55rem 0 0.2rem;
    color: #f0cda0;
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.score-panel {
    margin-top: 1rem;
    border-top: 1px solid #4d3a2f;
    padding-top: 0.8rem;
}

.notation-mode-toggle {
    display: inline-flex;
    gap: 0.35rem;
    margin-top: 0.4rem;
    margin-bottom: 0.75rem;
    padding: 0.28rem;
    border-radius: 999px;
    border: 1px solid #5f4632;
    background: linear-gradient(180deg, rgba(33, 25, 20, 0.92), rgba(24, 18, 14, 0.96));
}

.notation-mode-button {
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #d7c4a9;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.36rem 0.8rem;
    cursor: pointer;
    transition: all 150ms ease;
}

.notation-mode-button:hover {
    color: #f3debf;
    background: rgba(167, 127, 90, 0.14);
}

.notation-mode-button.active {
    color: #fff6ea;
    background: linear-gradient(145deg, #b37b52, #7d5034);
    border-color: #cb9670;
}

.score-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.score-panel-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #f9dfb0;
}

.score-panel-header span {
    color: #dfc79c;
    font-size: 0.85rem;
}

.notation-midi-download-button {
    margin-bottom: 0.7rem;
    border-color: rgba(232, 179, 110, 0.72);
    background: linear-gradient(145deg, rgba(106, 66, 31, 0.9), rgba(72, 43, 21, 0.92));
    color: #ffe9cb;
}

.notation-midi-download-button:hover {
    border-color: rgba(255, 201, 130, 0.9);
    background: linear-gradient(145deg, rgba(127, 80, 38, 0.92), rgba(87, 52, 24, 0.94));
}

.notation-host {
    display: grid;
    gap: 0.6rem;
    max-height: 560px;
    overflow: auto;
    padding: 0.45rem;
    border-radius: 12px;
    border: 1px solid #5b4534;
    background: linear-gradient(160deg, rgba(47, 29, 21, 0.7), rgba(24, 16, 14, 0.76));
}

.notation-host-loading {
    animation: notation-host-breathe 760ms ease-in-out infinite alternate;
}

@keyframes notation-host-breathe {
    0% {
        border-color: #5b4534;
        box-shadow: 0 0 0 rgba(248, 200, 145, 0);
    }

    100% {
        border-color: #b68258;
        box-shadow: 0 0 0 3px rgba(248, 200, 145, 0.16);
    }
}

.notation-measure {
    border: 1px solid #6a513b;
    border-radius: 10px;
    background: rgba(251, 236, 208, 0.94);
    padding: 0.25rem;
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    animation: notation-measure-enter 420ms cubic-bezier(0.2, 0.85, 0.26, 1) forwards;
}

.notation-host .notation-measure:nth-child(2n) {
    animation-delay: 80ms;
}

.notation-host .notation-measure:nth-child(3n) {
    animation-delay: 140ms;
}

.notation-host .notation-measure:nth-child(5n) {
    animation-delay: 200ms;
}

@keyframes notation-measure-enter {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
        filter: saturate(0.85);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: saturate(1);
    }
}

.notation-measure svg {
    display: block;
    width: 100%;
    height: auto;
}

.guitar-tab-host {
    display: grid;
    gap: 0.6rem;
    max-height: 560px;
    overflow: auto;
    padding: 0.45rem;
    border-radius: 12px;
    border: 1px solid #5b4534;
    background: linear-gradient(160deg, rgba(47, 29, 21, 0.7), rgba(24, 16, 14, 0.76));
}

.guitar-tab-sheet {
    border: 1px solid #6a513b;
    border-radius: 10px;
    background: rgba(251, 236, 208, 0.94);
    padding: 0.6rem 0.7rem;
}

.guitar-tab-sheet pre {
    margin: 0;
    white-space: pre;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.42;
    color: #2a1a12;
}

.list-reset {
    list-style: none;
    margin: 0;
    padding: 0;
}

.button-link {
    background: transparent;
    border: none;
    color: #9eb4ff;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 1400px) {
    .practice-room {
        grid-template-columns: 1fr;
    }

    .practice-center,
    .practice-bottom {
        grid-column: 1;
        grid-row: auto;
    }

    .practice-bottom {
        max-width: 100%;
    }

    .control-row,
    .practice-bottom .control-row {
        grid-template-columns: 120px 1fr;
    }

    .practice-bottom .loop-input-group .input,
    .practice-bottom .control-row input[type="number"].input,
    .practice-bottom .control-row select.input {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .control-row,
    .practice-bottom .control-row {
        grid-template-columns: 1fr;
    }

    .notation-host,
    .guitar-tab-host {
        max-height: 420px;
    }
}

.home-stage {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    overflow: hidden;
}

.home-stage-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.home-stage-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(110deg, rgba(6, 10, 30, 0.86) 0%, rgba(6, 10, 30, 0.66) 42%, rgba(6, 10, 30, 0.24) 100%),
        radial-gradient(circle at 76% 20%, rgba(96, 32, 224, 0.34), transparent 40%),
        radial-gradient(circle at 10% 84%, rgba(0, 192, 224, 0.28), transparent 46%);
}

.home-stage-content {
    max-width: 840px;
    padding: clamp(2.4rem, 6vw, 4rem) clamp(1rem, 4vw, 3.5rem);
}

.home-logo-wrap {
    margin-bottom: 1rem;
}

.home-main-logo {
    display: block;
    width: clamp(10rem, 22vw, 16rem);
    height: auto;
    filter: drop-shadow(0 8px 22px rgba(5, 8, 26, 0.58));
}

.home-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bfd2f8;
    font-weight: 700;
}

.home-stage-content h1 {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3.8rem);
    line-height: 1.04;
    color: #edf4ff;
    max-width: 18ch;
}

.home-subtitle {
    margin-top: 0.9rem;
    max-width: 56ch;
    color: #c9d8f6;
}

.instrument-picker {
    margin-top: 1rem;
    margin-bottom: 0.65rem;
}

.instrument-picker-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #bed0f2;
}

.instrument-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.instrument-option {
    border: 1px solid rgba(185, 133, 255, 0.4);
    background: rgba(11, 19, 41, 0.72);
    color: #f2ecff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

.instrument-option.active {
    background: linear-gradient(125deg, rgba(154, 101, 255, 0.84), rgba(255, 156, 69, 0.78));
    border-color: rgba(255, 174, 111, 0.86);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 214, 173, 0.45) inset, 0 0 16px rgba(154, 101, 255, 0.32);
}

.youtube-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 10.5rem auto;
    gap: 1rem;
    align-items: center;
    justify-content: start;
    width: min(100%, 58rem);
}

.youtube-search-controls > * {
    min-width: 0;
}

.youtube-search-controls .input,
.youtube-search-controls select.input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-stage-content .input {
    margin: 0;
    background: rgba(6, 16, 44, 0.78);
    border-color: rgba(0, 128, 224, 0.56);
    color: #e8f4ff;
}

.home-stage-content .btn-primary {
    background: linear-gradient(130deg, #6020e0, #0080e0);
    border-color: rgba(0, 192, 224, 0.75);
    color: #f4fbff;
}

.home-stage-content .btn-secondary {
    background: rgba(12, 28, 72, 0.86);
    border-color: rgba(0, 128, 224, 0.55);
    color: #d4e8ff;
}

.sort-order-select {
    width: 11rem;
}

.optimized-query {
    margin-top: 0.55rem;
    color: #bcdcf8;
    font-size: 0.9rem;
}

.search-results-page {
    padding: 1rem clamp(0.8rem, 2.2vw, 1.5rem) 1.5rem;
}

.search-results-panel {
    max-width: 1120px;
    margin: 0 auto;
}

.search-results-panel h1 {
    margin: 0;
}

.search-results-controls {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 10.5rem auto;
}

.search-results-panel .input {
    margin: 0;
}

.search-results-list {
    margin-top: 1rem;
    padding: 0;
}

.home-account-bar {
    position: absolute;
    top: clamp(0.7rem, 2vw, 1.15rem);
    right: clamp(0.8rem, 2.8vw, 1.8rem);
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(25, 200, 255, 0.46);
    background: linear-gradient(120deg, rgba(106, 61, 255, 0.24), rgba(25, 200, 255, 0.2));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(8, 24, 58, 0.35);
    backdrop-filter: blur(5px);
}

.home-account-bar .btn-secondary,
.home-account-bar .btn-primary {
    padding: 0.36rem 0.82rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.84rem;
}

.home-account-bar .btn-secondary {
    background: rgba(8, 22, 52, 0.72);
    border-color: rgba(25, 200, 255, 0.62);
    color: #e4f4ff;
}

.home-account-bar .btn-primary {
    background: linear-gradient(140deg, #6a3dff, #19c8ff);
    border-color: rgba(25, 200, 255, 0.78);
    color: #fff;
}

.home-account-dropdown {
    position: relative;
}

.home-account-summary {
    list-style: none;
    cursor: pointer;
    padding: 0.36rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(25, 200, 255, 0.62);
    background: rgba(8, 22, 52, 0.72);
    color: #e4f4ff;
    font-weight: 700;
    font-size: 0.84rem;
}

.home-account-summary::-webkit-details-marker {
    display: none;
}

.home-account-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 10.5rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.35rem;
    border-radius: 0.62rem;
    border: 1px solid rgba(25, 200, 255, 0.5);
    background: linear-gradient(140deg, rgba(10, 22, 54, 0.96), rgba(11, 24, 58, 0.94));
    box-shadow: 0 12px 24px rgba(2, 8, 26, 0.45);
}

.home-account-dropdown-menu a {
    display: block;
    text-decoration: none;
    color: #e4f4ff;
    font-weight: 650;
    font-size: 0.82rem;
    padding: 0.35rem 0.52rem;
    border-radius: 0.42rem;
}

.home-account-dropdown-menu a:hover {
    background: rgba(25, 200, 255, 0.16);
}

.home-action-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-action-card {
    padding: 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 128, 224, 0.45);
    background: linear-gradient(150deg, rgba(12, 20, 56, 0.8), rgba(8, 16, 44, 0.7));
    backdrop-filter: blur(1.5px);
}

.home-action-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #eff6ff;
}

.home-action-card p {
    margin: 0.45rem 0 0.8rem;
    color: #c5d7f4;
    font-size: 0.92rem;
}

.home-action-links {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.home-action-card .btn-primary,
.home-action-card .btn-secondary {
    padding: 0.45rem 0.8rem;
}

.home-login-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(3, 8, 24, 0.64);
    backdrop-filter: blur(4px);
}

.home-login-modal {
    width: min(100%, 400px);
    border-radius: 1rem;
    border: 1px solid rgba(0, 128, 224, 0.5);
    background: linear-gradient(150deg, rgba(12, 20, 56, 0.96), rgba(8, 16, 44, 0.95));
    box-shadow: 0 20px 46px rgba(2, 8, 26, 0.55);
    padding: 0.82rem 0.82rem 0.9rem;
    position: relative;
}

.home-login-subtitle {
    margin: 0.1rem 2rem 0.45rem 0;
    color: #c5d7f4;
    font-size: 0.92rem;
}

.home-login-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 128, 224, 0.48);
    background: rgba(12, 28, 72, 0.92);
    color: #d4e8ff;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.home-login-form {
    margin-top: 0.45rem;
    display: grid;
    gap: 0.42rem;
}

.home-login-form label {
    color: #d9e7ff;
    font-size: 0.79rem;
    font-weight: 700;
}

.home-login-modal .input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.38rem 0.58rem;
    font-size: 0.9rem;
    border-radius: 0.42rem;
    background: rgba(6, 16, 44, 0.78);
    border-color: rgba(0, 128, 224, 0.56);
    color: #e8f4ff;
}

.home-login-modal .btn-primary {
    justify-self: start;
    width: auto;
    margin-top: 0.2rem;
    padding: 0.42rem 0.68rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
}

.home-login-remember {
    margin-top: 0.18rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.78rem;
    color: #d3e6ff;
    font-weight: 600;
}

.home-login-remember input[type="checkbox"] {
    margin: 0;
    width: 0.92rem;
    height: 0.92rem;
    accent-color: #19c8ff;
}

.home-results {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 clamp(1rem, 4vw, 3.5rem) 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.youtube-result-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0.75rem;
    background: linear-gradient(150deg, rgba(20, 28, 50, 0.84), rgba(10, 15, 29, 0.8));
    border: 1px solid rgba(124, 145, 209, 0.42);
    backdrop-filter: blur(1.5px);
}

.youtube-result-item img {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(113, 134, 195, 0.5);
}

.youtube-result-item h3 {
    margin: 0 0 0.25rem;
}

.youtube-result-item p {
    margin: 0.2rem 0 0.5rem;
}

.result-channel {
    font-size: 0.85rem;
    color: #d8e2ff;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .youtube-search-controls {
        grid-template-columns: minmax(0, 1fr) 10rem auto;
        width: 100%;
    }

    .sort-order-select {
        width: 10rem;
    }
}

@media (max-width: 900px) {
    .home-stage-content {
        padding-top: 1.6rem;
    }

    .home-account-bar {
        position: static;
        justify-content: center;
        width: 100%;
        margin-bottom: 0.8rem;
        border-radius: 0.75rem;
        padding: 0.45rem;
    }

    .youtube-search-controls {
        grid-template-columns: 1fr;
    }

    .home-action-grid {
        grid-template-columns: 1fr;
    }

    .youtube-result-item {
        grid-template-columns: 1fr;
    }
}

:root {
    --bg-main: #070912;
    --bg-elev: #101528;
    --bg-elev-2: #181f37;
    --line-soft: #34406a;
    --text-main: #f3f6ff;
    --text-muted: #b4bfdf;
    --accent-main: #9a65ff;
    --accent-alt: #23d0ad;
    --accent-warm: #ff9c45;
}

body {
    color: var(--text-main);
    background:
        radial-gradient(950px 460px at 10% -10%, rgba(154, 101, 255, 0.28), transparent 55%),
        radial-gradient(760px 420px at 100% 0%, rgba(255, 156, 69, 0.2), transparent 52%),
        radial-gradient(600px 300px at 50% 100%, rgba(35, 208, 173, 0.12), transparent 55%),
        var(--bg-main);
}

h1, h2, h3 {
    letter-spacing: 0.01em;
}

p {
    color: var(--text-muted);
}

.card {
    background: linear-gradient(160deg, rgba(23, 31, 58, 0.96), rgba(13, 18, 35, 0.95));
    border: 1px solid var(--line-soft);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.btn-primary,
.btn-secondary,
.instrument-option {
    font-weight: 600;
    transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.instrument-option:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-primary {
    background: linear-gradient(130deg, var(--accent-main), #5b8bff);
    border: 1px solid #8d9fff;
}

.btn-secondary {
    background: #1a2548;
    border: 1px solid #324273;
}

.input,
select.input,
textarea.input {
    background: #0b1329;
    border-color: #334473;
    color: var(--text-main);
}

.signup-form-shell .input,
.signup-form-shell select.input,
.signup-form-shell textarea.input {
    background: linear-gradient(180deg, #f8f8ff, #f1f7ff);
    border: 1px solid rgba(109, 91, 246, 0.3);
    color: #161a25;
}

.signup-form-shell .input::placeholder,
.signup-form-shell select.input::placeholder,
.signup-form-shell textarea.input::placeholder {
    color: #6a7184;
}

.signup-form-shell .input:focus,
.signup-form-shell select.input:focus,
.signup-form-shell textarea.input:focus {
    outline: none;
    border-color: rgba(25, 200, 255, 0.92);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(25, 200, 255, 0.2), 0 0 0 1px rgba(106, 61, 255, 0.28);
}

.hero {
    background:
        linear-gradient(145deg, rgba(26, 33, 58, 0.92), rgba(15, 21, 41, 0.94)),
        radial-gradient(circle at 80% 15%, rgba(255, 138, 91, 0.26), transparent 35%);
    border: 1px solid #2c3860;
}

.hero p {
    max-width: 70ch;
}

.page-subtitle {
    color: var(--text-muted);
    margin-top: -0.35rem;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    color: #d8e1ff;
    border: 1px solid #3c4f83;
    background: #19254a;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.creators-page {
    display: grid;
    gap: 0.9rem;
}

.creator-instrument-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.creator-instrument-button {
    border: 1px solid rgba(0, 128, 224, 0.45);
    border-radius: 0.8rem;
    background: linear-gradient(155deg, rgba(10, 20, 54, 0.92), rgba(8, 16, 44, 0.9));
    color: #d9e9ff;
    padding: 0.45rem;
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    cursor: pointer;
}

.creator-instrument-button img {
    width: 100%;
    max-width: 168px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0.65rem;
    border: 1px solid rgba(0, 192, 224, 0.5);
}

.creator-instrument-button span {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.creator-instrument-button.active {
    border-color: rgba(0, 224, 224, 0.95);
    box-shadow: 0 0 0 2px rgba(0, 224, 224, 0.28), 0 8px 22px rgba(0, 128, 224, 0.35);
    transform: translateY(-1px);
}

.creators-status {
    margin: 0.1rem 0 0.4rem;
    color: #bfd3f7;
}

.creators-busy {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(0, 192, 224, 0.45);
    border-radius: 999px;
    background: rgba(10, 24, 62, 0.82);
    color: #d6e8ff;
    font-size: 0.88rem;
}

.creators-busy-spinner {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    border: 2px solid rgba(214, 232, 255, 0.35);
    border-top-color: #00c0e0;
    animation: creators-spin 0.75s linear infinite;
}

@keyframes creators-spin {
    to {
        transform: rotate(360deg);
    }
}

.creators-group {
    padding: 0.9rem;
}

.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    gap: 0.75rem;
}

.creator-card {
    border: 1px solid rgba(0, 128, 224, 0.38);
    border-radius: 0.75rem;
    padding: 0.8rem;
    background: linear-gradient(155deg, rgba(15, 26, 62, 0.9), rgba(8, 16, 44, 0.88));
    display: grid;
    gap: 0.5rem;
}

.creator-thumbnail {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 192, 224, 0.48);
}

.creator-card h3 {
    margin: 0;
    color: #edf5ff;
    font-size: 1rem;
}

.creator-description {
    margin: 0;
    color: #c6d8f5;
    font-size: 0.9rem;
}

.creator-metrics {
    display: grid;
    gap: 0.2rem;
    font-size: 0.82rem;
    color: #aecdff;
}

.creator-card .btn-secondary {
    justify-self: start;
}

.practice-room .practice-center,
.practice-room .practice-bottom {
    background:
        linear-gradient(160deg, rgba(14, 24, 58, 0.96), rgba(8, 15, 41, 0.95)),
        radial-gradient(circle at 88% 12%, rgba(1, 144, 251, 0.2), transparent 40%),
        radial-gradient(circle at 10% 100%, rgba(96, 32, 224, 0.2), transparent 44%);
    border: 1px solid rgba(0, 128, 224, 0.42);
    box-shadow: 0 16px 34px rgba(2, 8, 24, 0.42);
}

.practice-room .section-title h2 {
    color: #eef5ff;
}

.practice-room .video-info-panel.with-creator::after {
    content: "";
    display: block;
    clear: both;
}

.practice-room .video-info-header {
    position: relative;
    display: block;
    margin-bottom: 0.5rem;
}

.practice-room .video-creator-support {
    float: right;
    display: inline-grid;
    justify-items: center;
    gap: 0.55rem;
    width: clamp(210px, 18vw, 280px);
    min-height: 320px;
    margin-left: 1rem;
    margin-bottom: 0.45rem;
    text-decoration: none;
    padding: 0.9rem 0.9rem 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(0, 192, 224, 0.58);
    background: linear-gradient(140deg, rgba(10, 34, 76, 0.9), rgba(15, 30, 66, 0.86));
    color: #ddf5ff;
    transition: all 150ms ease;
}

.practice-room .video-creator-support:hover {
    border-color: rgba(132, 226, 255, 0.88);
    color: #f4fdff;
    box-shadow: 0 0 0 2px rgba(0, 192, 224, 0.2);
}

.practice-room .video-creator-support img {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    border: 2px solid rgba(0, 192, 224, 0.58);
    object-fit: cover;
}

.practice-room .video-creator-copy {
    display: grid;
    gap: 0.22rem;
    text-align: center;
    min-width: 0;
    width: 100%;
}

.practice-room .video-creator-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9dcdef;
}

.practice-room .video-creator-copy strong {
    font-size: 1.28rem;
    line-height: 1.12;
    color: #f2faff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.practice-room .video-creator-handle {
    font-size: 0.86rem;
    color: #b7daf1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.practice-room .tag {
    color: #d7ecff;
    border-color: rgba(0, 192, 224, 0.5);
    background: linear-gradient(130deg, rgba(8, 33, 72, 0.9), rgba(15, 28, 62, 0.86));
}

.practice-room .player-host {
    border-color: rgba(0, 128, 224, 0.48);
    box-shadow: 0 10px 24px rgba(0, 8, 26, 0.45);
}

.practice-room .loop-marker-header {
    color: #c9ddff;
}

.practice-room .loop-marker-track {
    background: rgba(4, 16, 44, 0.92);
    border-color: rgba(0, 128, 224, 0.45);
}

.practice-room .loop-marker-region {
    background: linear-gradient(90deg, rgba(96, 32, 224, 0.42), rgba(1, 144, 251, 0.42));
}

.practice-room .loop-start {
    background: #00c0e0;
    color: #00c0e0;
}

.practice-room .loop-end {
    background: #ff9c45;
    color: #ff9c45;
}

.practice-room .practice-tab-strip {
    border-color: rgba(0, 128, 224, 0.34);
    background: linear-gradient(180deg, rgba(11, 24, 58, 0.95), rgba(8, 18, 44, 0.95));
    box-shadow: 0 12px 26px rgba(2, 7, 22, 0.38);
}

.practice-room .practice-tab-button {
    color: #b8d2ff;
}

.practice-room .practice-tab-button:hover {
    color: #edf5ff;
    background: rgba(1, 144, 251, 0.15);
}

.practice-room .practice-tab-button.active {
    background: linear-gradient(130deg, #6020e0, #0190fb);
    border-color: rgba(0, 192, 224, 0.72);
    color: #f5fbff;
    box-shadow: 0 6px 16px rgba(1, 144, 251, 0.3);
}

.practice-room .control-row label {
    color: #b8cef6;
}

.practice-room .input,
.practice-room select.input {
    background: rgba(6, 18, 48, 0.86);
    border-color: rgba(0, 128, 224, 0.52);
    color: #e7f2ff;
}

.practice-room .input:focus,
.practice-room select.input:focus {
    outline: none;
    border-color: rgba(0, 192, 224, 0.9);
    box-shadow: 0 0 0 3px rgba(1, 144, 251, 0.22);
}

.practice-room .control-actions {
    border-top-color: rgba(0, 128, 224, 0.36);
}

.practice-room .btn-primary {
    background: linear-gradient(130deg, #6020e0, #0190fb);
    border-color: rgba(0, 192, 224, 0.78);
    color: #f3fbff;
}

.practice-room .btn-secondary {
    background: linear-gradient(145deg, rgba(11, 27, 68, 0.92), rgba(8, 20, 52, 0.92));
    border-color: rgba(0, 128, 224, 0.5);
    color: #d7e9ff;
}

.practice-room .start-loop-button {
    background: linear-gradient(145deg, #1d8f48, #166a35);
    border-color: rgba(68, 196, 113, 0.9);
    color: #ecfff3;
    box-shadow: 0 0 0 1px rgba(58, 171, 97, 0.34) inset;
}

.practice-room .start-loop-button:hover {
    background: linear-gradient(145deg, #24a354, #1a7d3f);
    border-color: rgba(99, 215, 141, 0.95);
}

.practice-room .btn-primary:disabled,
.practice-room .btn-secondary:disabled {
    opacity: 0.56;
    filter: saturate(0.7);
    cursor: not-allowed;
    transform: none;
}

.practice-room .generation-options .input {
    background: rgba(8, 22, 56, 0.92);
}

@media (max-width: 900px) {
    .creator-instrument-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .creators-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .creator-thumbnail {
        height: 150px;
    }
}
