* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    min-height: 100vh;
}

.main-container {
    max-width: 600px;
    margin: 20px auto 100px;
    padding: 0 15px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 5px;
}

.header p {
    color: #aaa;
    font-size: 13px;
}

/* Вкладки */
.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(45,45,45,0.8);
    border: 2px solid #444;
    border-radius: 30px;
    padding: 10px 16px;
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}

/* Список символов — как deck-item в настройках */
.symbol-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.symbol-item {
    background: rgba(45,45,45,0.8);
    border-radius: 12px;
    border: 1px solid #444;
    overflow: hidden;
    transition: all 0.2s;
}

.symbol-item.expanded {
    border-color: #4CAF50;
    background: rgba(45,45,45,0.95);
}

/* Компактная строка */
.symbol-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
}

.symbol-char {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #FF9800;
    min-width: 50px;
}

.symbol-transcription {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #4CAF50;
    margin-left: 8px;
}

.symbol-analog {
    margin-left: auto;
    color: #aaa;
    font-size: 16px;
    font-weight: 500;
    text-align: right;
}

/* Раскрытая панель с деталями */
.symbol-detail {
    padding: 0 16px 16px 16px;
    border-top: 1px solid #444;
    display: none;
}

.symbol-item.expanded .symbol-detail {
    display: block;
}

.detail-pronounce {
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.detail-desc {
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.detail-example {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.example-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: white;
}

.example-trans {
    font-family: 'Courier New', monospace;
    color: #888;
    font-size: 14px;
}

.speak-btn {
    background: rgba(76,175,80,0.2);
    border: 1px solid #4CAF50;
    border-radius: 20px;
    padding: 6px 12px;
    color: #4CAF50;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.speak-btn:hover {
    background: #4CAF50;
    color: white;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
}

.add-deck-btn {
    background: rgba(33,150,243,0.2);
    border: 1px solid #2196F3;
    border-radius: 20px;
    padding: 8px 20px;
    color: #2196F3;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-deck-btn:hover {
    background: #2196F3;
    color: white;
}

/* Нижняя панель */
.bottom-panel {
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(30px);
    border-top: 2px solid #444;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    padding: 5px;
}

.home {
    background: rgba(76,175,80,0.3);
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.btn.cards {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border: 2px solid #2196F3;
}

.btn:hover { transform: scale(1.05); }

.user-id {
    color: #ccc;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 20px;
}