.dict-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    font-family: 'Segoe UI', sans-serif;
}

.dict-header {
    background: linear-gradient(135deg, #c0392b 0%, #8e1a0e 100%);
    color: white;
    border-radius: 20px;
    padding: 32px 36px 28px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(192, 57, 43, 0.3);
}

.dict-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dict-back {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.dict-back:hover { color: white; text-decoration: none; }

.dict-count {
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.dict-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.dict-subtitle {
    opacity: 0.8;
    margin: 0 0 20px;
    font-size: 15px;
}

.dict-search {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dict-group {
    margin-bottom: 28px;
}

.dict-letter {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #c0392b;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(192,57,43,0.25);
}

.dict-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.dict-table thead tr {
    background: #f8f0ef;
    border-bottom: 2px solid #f0d8d6;
}

.dict-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f3030;
}

.dict-table th:first-child { width: 40px; text-align: center; }

.dict-row {
    border-bottom: 1px solid #f5eeee;
    transition: background 0.15s;
}

.dict-row:last-child { border-bottom: none; }

.dict-row:hover { background: #fdf6f6; }

.dict-table td {
    padding: 12px 16px;
    font-size: 14px;
    vertical-align: top;
    color: #2d2d2d;
}

.dict-num {
    text-align: center;
    color: #bbb;
    font-size: 12px;
    width: 40px;
}

.dict-tr {
    font-weight: 700;
    font-size: 15px;
    color: #c0392b;
    white-space: nowrap;
}

.dict-uz {
    font-weight: 600;
    color: #1a5276;
    white-space: nowrap;
}

.dict-ex {
    color: #555;
    font-style: italic;
    font-size: 13px;
}

/* learn.css uchun dict-btn */
.level-btn.dict-btn {
    border-color: #8e44ad;
    color: #8e44ad;
}

.level-btn.dict-btn:hover,
.level-btn.dict-btn.active {
    background: #8e44ad;
    color: white;
    border-color: #8e44ad;
}

@media (max-width: 768px) {
    .dict-table th:nth-child(4),
    .dict-table th:nth-child(5),
    .dict-table td:nth-child(4),
    .dict-table td:nth-child(5) { display: none; }

    .dict-title { font-size: 1.5rem; }
}
