:root {
    --primary-color: #5865F2;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b9bbbe;
    --accent-color: #00d2ff;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass-border);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#recordings-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
}

.card-info {
    flex: 1;
}

.filename {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta span {
    margin-right: 16px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.audio-player {
    height: 36px;
    border-radius: 8px;
    opacity: 0.8;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-download:hover {
    background: #4752c4;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.button-group {
    display: flex;
    gap: 8px;
}

.btn-delete {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: #ff4757;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.animate-in {
    animation: fadeIn 0.5s ease backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .card-actions {
        width: 100%;
        justify-content: space-between;
    }

    .audio-player {
        flex: 1;
    }
}