* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #070e20 50%, #082344 100%);
    color: rgb(157, 157, 157);
    min-height: 100vh;
}

.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.page.active {
    display: block;
}

/* Главная страница */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.logo h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #1e1329);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.create-btn {
    background: linear-gradient(135deg, #20274a, #764ba2);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.plus {
    font-size: 2rem;
    font-weight: bold;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Общие стили для других страниц */
.header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #1e1329);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Страница выбора типа партии */
.track-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.track-type-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.track-type-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.track-type-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.track-type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.track-type-card p {
    opacity: 0.8;
    line-height: 1.5;
}

/* Страница ввода промпта */
.prompt-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.selected-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.selected-track .icon {
    font-size: 2rem;
}

#selectedTrackName {
    font-size: 1.3rem;
    font-weight: bold;
}

.prompt-examples {
    margin-bottom: 2rem;
}

.prompt-examples h4 {
    margin-bottom: 1rem;
    color: #a8b2d1;
}

.example {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-left: 3px solid #667eea;
    transition: background 0.3s ease;
}

.example:hover {
    background: rgba(255, 255, 255, 0.1);
}

#promptInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

#promptInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

#promptInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.style-options {
    margin-bottom: 2rem;
}

.style-options h4 {
    margin-bottom: 1rem;
    color: #a8b2d1;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.style-grid select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    color: rgb(110, 110, 110);
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.style-grid select:focus {
    outline: none;
    border-color: #667eea;
}

.generate-btn {
    background: linear-gradient(135deg, #20274a, #764ba2);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-3px);
}

/* Страница результата */
.result-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.track-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.track-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.track-info .icon {
    font-size: 3rem;
}

.track-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.track-info p {
    opacity: 0.8;
}

.audio-player {
    margin-bottom: 1rem;
}

.audio-player audio {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.player-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-btn {
    background: linear-gradient(135deg, #20274a, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.suggestions h4 {
    margin-bottom: 1.5rem;
    color: #a8b2d1;
}

.suggestion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.suggestion-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    transform: translateY(-3px);
}

.suggestion-card h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.suggestion-card p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .create-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header h2 {
        font-size: 2rem;
    }

    .track-types {
        grid-template-columns: 1fr;
    }

    .style-grid {
        grid-template-columns: 1fr;
    }

    .player-controls {
        flex-direction: column;
    }

    .player-controls button {
        width: 100%;
    }
}
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(
        135deg,
        #1a1a2e 0%,
        #16213e 50%,
        #0f3460 100%
    );
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --accent-color: #64ffda;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #e74c3c;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);

    --border-radius: 16px;
    --border-radius-lg: 24px;
}
/* Библиотека проектов */
.library-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.library-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.project-description {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.project-audio {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

.project-actions button {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-play {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.btn-play:hover {
    background: rgba(39, 174, 96, 0.3);
}

.btn-edit {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.btn-edit:hover {
    background: rgba(52, 152, 219, 0.3);
}

.btn-delete {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-delete:hover {
    background: rgba(231, 76, 60, 0.3);
}

.empty-library {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-library h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.empty-library p {
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* Адаптивность для библиотеки */
@media (max-width: 768px) {
    .library-stats {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Добавь в конец style.css */
.advanced-settings {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-settings h4 {
    margin-bottom: 1rem;
    color: #a8b2d1;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.advanced-grid .control-group {
    margin-bottom: 0;
}
/* Добавь в конец style.css */
.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card.large {
    grid-column: span 1;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    opacity: 0.8;
}

.stat-value {
    font-weight: bold;
    color: #667eea;
}

.stat-value-large {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.stats-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

#projectsGrid .title{
    font-size: 24px;
    margin-bottom: 15px;
}