* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b0f15;
    --bg-soft: #11161f;
    --card: #101620;
    --card-strong: #0f1722;
    --muted: #9aa6b2;
    --text: #e5e7eb;
    --accent: #7c5cff;
    --accent-strong: #3dd5c3;
    --accent-soft: rgba(124, 92, 255, 0.16);
    --success: #2fbf95;
    --danger: #f97373;
    --border: rgba(148, 163, 184, 0.18);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(circle at 20% 0%, #151c28 0%, #0b0f15 55%, #070a10 100%);
    min-height: 100vh;
    padding: 24px;
    color: var(--text);
}

.app-shell {
    max-width: 1400px;
    margin: 0 auto;
}

.app-body {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 24px;
    align-items: start;
}

.content {
    background: var(--card);
    border-radius: 20px;
    padding: 26px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(4, 8, 15, 0.5);
}

.footer-banner {
    margin: 32px auto 24px;
    max-width: 1400px;
    background: #0b111b;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 20px 60px rgba(4, 8, 15, 0.4);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
    display: grid;
    place-items: center;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
}

.footer-text {
    color: var(--muted);
    max-width: 520px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text);
}

.footer-actions {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #0d131e;
    color: var(--text);
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 16px;
}

.social-btn:hover {
    border-color: rgba(124, 92, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2);
}

.promo-card {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(200px, 0.8fr);
    gap: 20px;
    background: #0d131e;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(4, 8, 15, 0.35);
}

.promo-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-left p {
    color: var(--muted);
    font-size: 14px;
}

.promo-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-form input {
    flex: 1 1 220px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #0b111b;
    color: var(--text);
}

.promo-status {
    color: var(--muted);
    font-size: 13px;
    min-height: 20px;
}

.promo-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(61, 213, 195, 0.2));
    border-radius: 16px;
    padding: 16px;
}

.promo-illustration {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(124, 92, 255, 0.25);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.promo-highlight {
    color: var(--text);
    font-size: 14px;
}

.sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}

.sidebar-right {
    justify-self: end;
}

.sidebar-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 16px 40px rgba(4, 8, 15, 0.35);
}

.sidebar-panel .song-grid {
    grid-template-columns: 1fr;
}

.sidebar-panel .song-card {
    padding: 10px;
    border-radius: 14px;
    gap: 8px;
}

.sidebar-panel .song-cover {
    height: 120px;
}

.sidebar-panel .song-title {
    font-size: 13px;
}

.sidebar-panel .song-meta {
    font-size: 11px;
}

.sidebar-panel .player {
    padding: 8px 10px;
}

.sidebar-panel .player-btn {
    width: 28px;
    height: 28px;
}

.sidebar-panel .icon-btn {
    font-size: 11px;
    padding: 5px 8px;
}

.icon-btn.star-btn {
    color: #fbbf24;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.glow-top {
    color: #fbbf24;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.6), 0 0 18px rgba(251, 191, 36, 0.35);
}

.glow-latest {
    color: #7c5cff;
    text-shadow: 0 0 6px rgba(124, 92, 255, 0.6), 0 0 18px rgba(124, 92, 255, 0.35);
}

.panel-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.badge-new {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.2);
    color: #c4b5fd;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--card-strong);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-item:hover {
    border-color: rgba(124, 92, 255, 0.5);
    background: rgba(124, 92, 255, 0.12);
}

.panel-meta {
    color: var(--muted);
    font-size: 11px;
    margin-top: 6px;
}

.panel-empty {
    color: var(--muted);
    font-size: 13px;
}

.hidden {
    display: none !important;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px 22px;
    background: rgba(8, 12, 20, 0.65);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
    display: grid;
    place-items: center;
}

.brand-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-title h1 {
    font-size: 22px;
    margin: 0;
    letter-spacing: 0.4px;
    color: #f9fafb;
}

.brand-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(61, 213, 195, 0.12);
    color: var(--accent-strong);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-link {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.top-link:hover {
    color: #e2e8f0;
    background: rgba(124, 92, 255, 0.16);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1f2937;
    border: 1px solid var(--border);
}

.balance {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.section {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: var(--card-strong);
    border: 1px solid var(--border);
}

.section h2 {
    font-size: 22px;
    margin-bottom: 14px;
    color: #f9fafb;
}

.generator-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(124, 92, 255, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(124, 92, 255, 0.4);
}

.section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.section p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(61, 213, 195, 0.12));
    border: 1px solid rgba(124, 92, 255, 0.35);
    margin-bottom: 18px;
}


.generator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: start;
}

.generator-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.generator-settings {
    position: sticky;
    top: 120px;
}

.settings-card {
    background: #0d131e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-title {
    font-size: 14px;
    color: #f9fafb;
    font-weight: 600;
}

.settings-label {
    font-size: 12px;
    color: var(--muted);
}

.settings-select {
    background: #0b0f15;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 13px;
}

.settings-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.settings-footer strong {
    color: #f9fafb;
    font-size: 16px;
}

.hero-card h2 {
    margin-bottom: 8px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ghost-btn {
    background: transparent;
    border: 1px solid rgba(124, 92, 255, 0.5);
    color: var(--text);
    padding: 13px 16px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ghost-btn:hover {
    background: rgba(124, 92, 255, 0.18);
}

.hero-badge {
    background: rgba(10, 15, 26, 0.55);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 120px;
    text-align: center;
}

.hero-badge span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-badge strong {
    display: block;
    font-size: 22px;
    color: #f8fafc;
    margin-top: 6px;
}

.top-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(8, 12, 20, 0.65);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.top-menu .menu-btn {
    width: auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(13, 19, 30, 0.8);
}

.top-menu .menu-btn.active {
    border-color: rgba(124, 92, 255, 0.6);
    background: rgba(124, 92, 255, 0.18);
}

.menu-btn {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
    text-align: left;
}

.menu-btn:hover {
    border-color: rgba(124, 92, 255, 0.4);
    background: rgba(124, 92, 255, 0.12);
}

.login-widget {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.logout-btn {
    background: rgba(249, 115, 115, 0.12);
    color: #fecaca;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.admin-btn {
    background: rgba(124, 92, 255, 0.2);
    color: #e9d5ff;
}

.admin-block {
    margin: 15px 0;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.admin-form input,
.admin-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.admin-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-strong);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.task-status {
    color: var(--muted);
    font-size: 14px;
}

.toast {
    background: #121826;
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    text-align: center;
    margin: 10px 0 20px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    border: 1px solid var(--border);
}

.toast.success {
    background: rgba(47, 191, 149, 0.18);
    color: #d1fae5;
}

.toast.error {
    background: rgba(249, 115, 115, 0.18);
    color: #fee2e2;
}

.detail-card {
    background: var(--card-strong);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.detail-card--clean {
    padding: 18px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
    color: var(--muted);
    font-size: 13px;
}

.detail-desc {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cover-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
    display: block;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.profile-form input {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: #0d131e;
    color: var(--text);
}

.profile-form textarea {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 14px;
    min-height: 90px;
    resize: vertical;
    background: #0d131e;
    color: var(--text);
}

.history-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.history-filters input,
.history-filters select {
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 14px;
    background: #0d131e;
    color: var(--text);
}

.history-filters select#gallerySort {
    min-width: 160px;
}

.step {
    animation: fadeIn 0.3s;
}

.step.hidden {
    display: none;
}

.step h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: #e2e8f0;
}

.options {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 16px;
    font-size: 15px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--card-strong);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--text);
}

.option-btn:hover {
    border-color: rgba(124, 92, 255, 0.6);
    background: rgba(124, 92, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124, 92, 255, 0.25);
}

.option-btn:active {
    transform: translateY(0);
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
    background: #0d131e;
    color: var(--text);
}

.composer-input {
    min-height: 140px;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.08);
}

textarea::placeholder,
input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn, .back-btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.submit-btn {
    background: linear-gradient(135deg, #7c5cff 0%, #3dd5c3 100%);
    color: #0b0f15;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124, 92, 255, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

.back-btn {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5f5;
}

.back-btn:hover {
    background: #e0e0e0;
}

.progress-section {
    text-align: center;
    padding: 40px 20px;
}

.progress-container {
    max-width: 360px;
    margin: 0 auto;
    background: #0d131e;
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 18px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 12px;
    color: #888;
}

.progress-step {
    flex: 1;
    text-align: center;
}

.progress-step.active {
    color: #667eea;
    font-weight: 600;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.action-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.track-card {
    background: #0d131e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 14px 30px rgba(4, 8, 15, 0.35);
}

.track-card.variant-a {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 18px 34px rgba(124, 92, 255, 0.25);
}

.track-card.variant-b {
    border-color: rgba(61, 213, 195, 0.45);
    box-shadow: 0 18px 34px rgba(61, 213, 195, 0.2);
}

.track-card.variant-a .track-title::after,
.track-card.variant-b .track-title::after {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.track-card.variant-a .track-title::after {
    content: "A";
    background: rgba(124, 92, 255, 0.2);
    color: #c4b5fd;
}

.track-card.variant-b .track-title::after {
    content: "B";
    background: rgba(61, 213, 195, 0.2);
    color: #99f6e4;
}

.track-cover {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    display: grid;
    place-items: center;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-fallback {
    font-size: 20px;
}

.track-body {
    flex: 1;
}

.track-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.track-card audio {
    width: 100%;
    margin-bottom: 8px;
}

.track-actions {
    display: flex;
    gap: 8px;
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.main-left,
.main-center,
.main-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.main-block {
    background: #0d131e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.block-header {
    font-weight: 600;
    margin-bottom: 12px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.news-card {
    background: #0b111b;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.news-title {
    font-weight: 600;
}

.news-body {
    color: var(--muted);
    font-size: 14px;
}

.news-date {
    font-size: 12px;
    color: var(--muted);
}

.song-card {
    background: #0d131e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(4, 8, 15, 0.35);
}

.song-card.is-active,
.track-card.is-active {
    border-color: rgba(61, 213, 195, 0.6);
    box-shadow: 0 18px 36px rgba(61, 213, 195, 0.3);
}

.song-card.is-published {
    border-color: rgba(124, 92, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.2), 0 18px 36px rgba(124, 92, 255, 0.25);
}

.publish-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.18);
    color: #c4b5fd;
    font-size: 11px;
}

.song-cover {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    background: #111827;
    display: grid;
    place-items: center;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.song-title {
    font-size: 15px;
    font-weight: 600;
}

.song-meta {
    font-size: 12px;
    color: var(--muted);
}

.song-card audio {
    width: 100%;
}

.audio-player {
    width: 100%;
    height: 34px;
    border-radius: 12px;
    background: #0b0f15;
    border: 1px solid var(--border);
}

.audio-player::-webkit-media-controls-panel {
    background: #0b0f15;
}

.audio-player::-webkit-media-controls-play-button,
.audio-player::-webkit-media-controls-mute-button {
    filter: invert(1);
}

.audio-player::-webkit-media-controls-current-time-display,
.audio-player::-webkit-media-controls-time-remaining-display {
    color: #cbd5f5;
}

.audio-player::-webkit-media-controls-volume-slider,
.audio-player::-webkit-media-controls-timeline {
    filter: invert(1);
}

.song-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.song-actions .icon-btn {
    font-size: 12px;
    padding: 6px 10px;
}

.player {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #0b0f15;
}

.player .waveform {
    display: grid;
    grid-template-columns: repeat(22, 1fr);
    gap: 3px;
    height: 20px;
    align-items: end;
}

.player .wave {
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: rgba(124, 92, 255, 0.3);
    transition: height 0.2s ease, background 0.2s ease;
}

.player .wave:nth-child(3n) {
    height: 14px;
}

.player .wave:nth-child(4n) {
    height: 18px;
}

.player .wave:nth-child(5n) {
    height: 12px;
}

.player.is-playing .wave {
    background: rgba(61, 213, 195, 0.7);
}

.player-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0d131e;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
}

.player-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-range {
    width: 100%;
    accent-color: #7c5cff;
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
}

.player-audio {
    display: none;
}

.lyrics-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0b0f15;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

.icon-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    border-color: rgba(124, 92, 255, 0.5);
    background: rgba(124, 92, 255, 0.18);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #0b0f15;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c5cff 0%, #3dd5c3 100%);
    width: 0%;
    transition: width 0.3s;
    border-radius: 4px;
}

#progressText {
    font-size: 18px;
    color: #cbd5f5;
    margin-bottom: 10px;
}

.result-section {
    text-align: center;
    padding: 20px;
}

.result-section h2 {
    color: var(--success);
    margin-bottom: 20px;
}

#resultContent {
    background: #0d131e;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid var(--border);
}

.lyrics-preview {
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.payment-btn {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0d131e;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-btn:hover {
    border-color: var(--accent);
    background: rgba(124, 92, 255, 0.14);
}

.login-card {
    background: var(--card-strong);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.login-card p {
    color: var(--muted);
    margin: 12px 0 18px;
    font-size: 14px;
}

.login-widget script {
    max-width: 100%;
}

@media (max-width: 960px) {
    .app-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .sidebar-right {
        justify-self: stretch;
    }

    .footer-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-card {
        grid-template-columns: 1fr;
    }

    .generator-layout {
        grid-template-columns: 1fr;
    }

    .generator-settings {
        position: static;
    }
}

@media (max-width: 600px) {
    body {
        padding: 16px 10px 40px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .content {
        padding: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
