:root {
    --page: #050b14;
    --surface: #0b1524;
    --surface-2: #101e31;
    --surface-3: #17283d;
    --text: #f5f8fc;
    --muted: #9eb0c7;
    --line: rgba(255, 255, 255, 0.1);
    --cyan: #18c8e8;
    --lime: #d7f331;
    --danger: #ff6b75;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(24, 200, 232, 0.12), transparent 34rem),
        radial-gradient(circle at 90% 25%, rgba(215, 243, 49, 0.07), transparent 28rem),
        var(--page);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

a {
    color: var(--cyan);
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover {
    color: var(--lime);
}

:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}

img,
video {
    max-width: 100%;
}

#container.site-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.site-header {
    position: relative;
    z-index: 10;
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 20, 0.9);
    backdrop-filter: blur(16px);
}

.header-top,
#submenu,
#content.site-main,
.footer-inner {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.header-top {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 28px;
}

#logo {
    width: min(330px, 36vw);
    height: auto;
    flex: 0 1 auto;
}

#logo a,
#logo img {
    display: block;
    width: 100%;
    height: auto;
}

#right {
    width: auto;
    height: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#userlinks,
#nologinlinks {
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

#userlinks a,
#nologinlinks a {
    font-weight: 700;
}

.header-cta {
    padding: 7px 14px;
    border: 1px solid rgba(215, 243, 49, 0.45);
    border-radius: 999px;
    color: var(--lime);
}

.header-cta:hover {
    background: var(--lime);
    color: #07111f;
}

#slidetabsmenu {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    font-size: inherit;
}

#slidetabsmenu ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

#slidetabsmenu li {
    display: block;
}

#slidetabsmenu a,
#slidetabsmenu a:hover {
    float: none;
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--muted);
    font: 700 0.9rem/1.2 Inter, "Segoe UI", Arial, sans-serif;
}

#slidetabsmenu a span,
#slidetabsmenu a:hover span {
    float: none;
    display: block;
    height: auto;
    padding: 9px 12px;
    background: none;
}

#slidetabsmenu a:hover {
    color: var(--text);
}

#slidetabsmenu a:hover span {
    background: var(--surface-2);
    border-radius: 10px;
}

.menu-toggle {
    display: none;
}

#submenu {
    height: auto;
    padding: 0 0 18px;
    background: none;
}

#search {
    float: none;
    width: 100%;
}

#search form {
    max-width: 650px;
    margin: 0 0 0 auto;
    display: flex;
    gap: 10px;
}

#search_query,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
    min-height: 44px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

#search_query {
    width: 100%;
}

#search_query::placeholder,
input::placeholder,
textarea::placeholder {
    color: #71839a;
}

.searchbutton,
button,
input[type="submit"],
input[type="button"],
.button-primary,
.button-secondary {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: 800 0.92rem/1.2 Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.searchbutton,
.button-primary,
input[type="submit"] {
    background: var(--lime);
    color: #07111f;
}

.searchbutton:hover,
.button-primary:hover,
input[type="submit"]:hover {
    background: #e7fb72;
    color: #07111f;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.site-main {
    padding-block: 38px 64px;
}

.hero {
    position: relative;
    min-height: 455px;
    padding: clamp(36px, 6vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: 40px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(24, 200, 232, 0.14), transparent 45%),
        linear-gradient(315deg, rgba(215, 243, 49, 0.1), transparent 40%),
        var(--surface);
    box-shadow: var(--shadow);
}

.hero h1,
.page-intro h1 {
    max-width: 720px;
    margin: 10px 0 18px;
    color: var(--text);
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.eyebrow {
    display: block;
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-art {
    position: relative;
    min-height: 280px;
}

.hero-art::before,
.hero-art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.hero-art::before {
    width: 250px;
    height: 250px;
    top: 8px;
    right: 10%;
    border: 1px solid rgba(24, 200, 232, 0.32);
    box-shadow: 0 0 0 32px rgba(24, 200, 232, 0.04), 0 0 0 64px rgba(24, 200, 232, 0.025);
}

.hero-art::after {
    width: 170px;
    height: 170px;
    top: 48px;
    right: calc(10% + 40px);
    background: linear-gradient(145deg, var(--cyan), #075775);
    box-shadow: 0 25px 70px rgba(24, 200, 232, 0.35);
}

.hero-mic {
    position: absolute;
    z-index: 2;
    top: 67px;
    right: calc(10% + 94px);
    width: 62px;
    height: 98px;
    border: 8px solid #07111f;
    border-radius: 32px;
    color: transparent;
}

.hero-mic::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -48px;
    width: 8px;
    height: 50px;
    border-radius: 10px;
    background: #07111f;
    transform: translateX(-50%);
}

.hero-mic::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -48px;
    width: 68px;
    height: 8px;
    border-radius: 10px;
    background: #07111f;
    transform: translateX(-50%);
}

.hero-note {
    position: absolute;
    z-index: 3;
    color: var(--lime);
    font-size: 2.5rem;
    font-weight: 900;
}

.hero-note-one {
    top: 4px;
    right: 6%;
    transform: rotate(12deg);
}

.hero-note-two {
    left: 8%;
    bottom: 34px;
    color: var(--cyan);
    transform: rotate(-14deg);
}

.sound-wave {
    position: absolute;
    z-index: 3;
    left: 5%;
    right: 3%;
    bottom: 8px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sound-wave i {
    display: block;
    width: 7px;
    border-radius: 999px;
    background: linear-gradient(var(--lime), var(--cyan));
}

.sound-wave i:nth-child(1),
.sound-wave i:nth-child(7) { height: 20px; }
.sound-wave i:nth-child(2),
.sound-wave i:nth-child(6) { height: 38px; }
.sound-wave i:nth-child(3),
.sound-wave i:nth-child(5) { height: 58px; }
.sound-wave i:nth-child(4) { height: 70px; }

.content-section {
    margin-top: 64px;
}

.section-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.page-intro h1 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-heading > a,
.back-link {
    font-weight: 800;
}

.otherrecordings {
    width: 100%;
}

.otherrecordings .ul {
    margin: 0;
    padding: 0;
}

.recording-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.recording-card a {
    display: block;
    color: var(--text);
}

.recording-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--surface-3);
}

.recording-card-copy {
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.recording-card-copy small,
.song-card-copy small {
    color: var(--muted);
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.song-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.song-card > a {
    display: block;
    color: var(--text);
}

.song-card:hover {
    border-color: rgba(24, 200, 232, 0.46);
    transform: translateY(-3px);
}

.song-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--surface-3);
}

.song-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 300ms ease;
}

.song-card:hover .song-card-image img {
    transform: scale(1.035);
}

.song-card-copy {
    min-height: 96px;
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.song-card-copy strong {
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-intro {
    margin-top: 0;
    padding: 34px 0 12px;
}

.page-intro p {
    max-width: 650px;
    color: var(--muted);
}

.page-intro + .song-grid,
.page-intro + .genre-grid {
    margin-top: 34px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.genre-card {
    min-height: 135px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(24, 200, 232, 0.1), transparent 60%), var(--surface);
    color: var(--text);
}

.genre-card:nth-child(3n + 2) {
    background: linear-gradient(145deg, rgba(215, 243, 49, 0.09), transparent 60%), var(--surface);
}

.genre-card:hover {
    border-color: rgba(215, 243, 49, 0.42);
    color: var(--text);
    transform: translateY(-3px);
}

.genre-card span {
    font-size: 1.35rem;
    font-weight: 850;
}

.genre-card small {
    color: var(--muted);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 52px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
}

.empty-state h2 {
    margin: 0;
    color: var(--text);
}

.empty-state p {
    color: var(--muted);
}

.card-actions {
    padding: 0 18px 18px;
    display: flex;
    gap: 16px;
    font-size: 0.88rem;
    font-weight: 800;
}

.danger-link {
    color: var(--danger);
}

table {
    max-width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    color: var(--text);
}

th,
td {
    padding: 12px 14px;
    border-color: var(--line) !important;
}

form {
    max-width: 100%;
}

textarea {
    width: min(100%, 620px);
}

#player {
    width: min(100%, 800px) !important;
    margin-inline: auto;
}

#player video,
video#video {
    display: block;
    width: min(100%, 800px) !important;
    height: auto !important;
    max-height: calc(100vh - 270px);
    margin-inline: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.video {
    max-width: 800px !important;
    margin-inline: auto !important;
}

.video .player {
    max-width: 100%;
}

.site-main > .container {
    width: min(100%, 540px);
    margin: 30px auto;
}

.auth-wrap {
    min-height: 610px;
    display: grid;
    place-items: center;
    padding: 30px 0;
}

.auth-card {
    width: min(100%, 500px);
    padding: clamp(26px, 5vw, 44px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(24, 200, 232, 0.09), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}

.auth-card-wide {
    width: min(100%, 620px);
}

.auth-card h1 {
    margin: 8px 0 10px;
    color: var(--text);
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.auth-card > p {
    color: var(--muted);
}

.auth-card form {
    margin-top: 26px;
    display: grid;
    gap: 10px;
}

.auth-card label,
.request-form label {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 800;
}

.auth-card input {
    width: 100%;
}

.auth-card input[type="submit"],
.auth-card button {
    margin-top: 12px;
}

.auth-switch {
    margin: 22px 0 0;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid > div {
    display: grid;
    gap: 10px;
}

.field-response {
    min-height: 5px;
    color: var(--muted);
    font-size: 0.82rem;
}

.status-message {
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.status-error {
    border-color: rgba(255, 107, 117, 0.4);
    background: rgba(255, 107, 117, 0.08);
    color: #ffb7bc;
}

.status-success {
    border-color: rgba(215, 243, 49, 0.35);
    background: rgba(215, 243, 49, 0.07);
    color: #e7fb72;
}

.request-form {
    margin: 30px 0 60px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.request-form > div {
    display: grid;
    gap: 8px;
}

.request-form input[type="text"] {
    width: 100%;
}

.request-list-heading {
    margin-top: 0;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.data-table {
    width: 100% !important;
}

.data-table tr:not(:last-child) {
    border-bottom: 1px solid var(--line);
}

.form-bg {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
}

.form-bg p {
    padding-left: 0 !important;
}

.site-main .form-bg h2 {
    color: var(--text);
}

.footer {
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--line);
    background: #030811;
}

.footer-inner {
    padding-block: 36px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    color: var(--muted);
}

.footer-inner strong {
    color: var(--text);
    font-size: 1.1rem;
}

.footer-inner p {
    max-width: 520px;
    margin: 6px 0 0;
}

.footer-legal {
    text-align: right;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .header-top {
        min-height: 78px;
        flex-wrap: wrap;
    }

    #logo {
        width: min(290px, calc(100% - 90px));
    }

    .menu-toggle {
        width: 48px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        background: var(--surface);
        color: var(--text);
    }

    .menu-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .menu-toggle-icon,
    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        width: 21px;
        height: 2px;
        display: block;
        border-radius: 4px;
        background: currentColor;
        transition: transform 160ms ease;
    }

    .menu-toggle-icon {
        position: relative;
    }

    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .menu-toggle-icon::before { top: -7px; }
    .menu-toggle-icon::after { top: 7px; }

    .menu-open .menu-toggle-icon {
        background: transparent;
    }

    .menu-open .menu-toggle-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-open .menu-toggle-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    #right {
        width: 100%;
        display: none;
        align-items: stretch;
        gap: 18px;
        padding-bottom: 18px;
    }

    .menu-open #right {
        display: flex;
    }

    #userlinks,
    #nologinlinks {
        justify-content: space-between;
        order: 2;
    }

    #slidetabsmenu ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    #slidetabsmenu a span {
        padding: 12px;
        border-radius: 10px;
        background: var(--surface);
    }

    #submenu {
        padding-top: 12px;
    }

    #search form {
        max-width: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 230px;
    }

    .song-grid,
    .genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-form {
        grid-template-columns: 1fr 1fr;
    }

    .request-form input[type="submit"] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .header-top,
    #submenu,
    #content.site-main,
    .footer-inner {
        width: min(100% - 24px, 1120px);
    }

    .site-main {
        padding-block: 24px 50px;
    }

    #player video,
    video#video {
        max-height: none;
    }

    #search form {
        gap: 7px;
    }

    .searchbutton {
        padding-inline: 14px;
    }

    .hero {
        min-height: 0;
        padding: 32px 22px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 13vw, 3.7rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .hero-art {
        min-height: 205px;
    }

    .hero-art::before {
        width: 200px;
        height: 200px;
        right: 50%;
        transform: translateX(50%);
    }

    .hero-art::after {
        width: 140px;
        height: 140px;
        right: 50%;
        transform: translateX(50%);
    }

    .hero-mic {
        top: 62px;
        right: 50%;
        transform: translateX(50%);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-section {
        margin-top: 48px;
    }

    .song-grid,
    .genre-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .request-form {
        grid-template-columns: 1fr;
    }

    .request-form input[type="submit"] {
        grid-column: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-legal {
        text-align: left;
    }

    table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
