.dict-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: -6px;
    margin-bottom: 20px;
}

.dict-search-wrapper {
    background: rgba(94, 124, 155, 0.12);
    border: 1.5px solid rgba(94, 124, 155, 0.25);
    border-radius: 16px;
    padding: 20px 24px 16px;
    margin-bottom: 8px;
}

.dict-search-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5e7c9b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-container {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    border: 1px solid #e1e3e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-container .search-icon {
    color: #adb5bd;
    margin-right: 6px;
    font-size: 0.9rem;
}

.search-container input {
    border: none;
    padding: 10px;
    flex: 1;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.dict-try-words {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.dict-try-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.dict-try-word {
    background: white;
    border: 1px solid rgba(94, 124, 155, 0.35);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.dict-try-word:hover {
    background: rgba(94, 124, 155, 0.12);
    border-color: #5e7c9b;
    color: #5e7c9b;
}

/* Dictionary word cards */
.dict-word-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dict-word-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e1e3e6;
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.dict-word-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border-color: #c0c4cc;
}

.dict-word-card.expanded {
    border-color: #c0c4cc;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.dict-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

.dict-card-digit {
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    background: #5e7c9b;
    border-radius: 6px;
    padding: 2px 7px;
    flex-shrink: 0;
}

.dict-card-english {
    font-weight: 600;
    font-size: 1rem;
}

.dict-card-spanish {
    color: #6c757d;
    font-size: 0.95rem;
}

.dict-card-native {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-blue);
}

.dict-card-arrow {
    margin-left: auto;
    color: #adb5bd;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.dict-word-card.expanded .dict-card-arrow {
    transform: rotate(90deg);
}

.dict-card-detail {
    border-top: 1px solid #f0f0f0;
    padding: 16px 18px 18px;
}

.dict-detail-section {
    margin-bottom: 14px;
}

.dict-detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    margin-bottom: 4px;
}

.dict-detail-word {
    font-size: 1.05rem;
    font-weight: 600;
}

.dict-detail-audio {
    display: none;
}

.dict-audio-player {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #d6e5ff;
    background: #edf4ff;
}

.dict-audio-player-compact {
    margin-top: 0;
    margin-left: 8px;
    padding: 4px 9px;
}

.dict-audio-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(160deg, #1d6fdc, #134d9d);
    box-shadow: 0 7px 14px rgba(19, 77, 157, 0.26);
}

.dict-audio-btn i {
    font-size: 0.8rem;
}

.dict-audio-player-compact .dict-audio-btn {
    width: 28px;
    height: 28px;
}

.dict-audio-player-compact .dict-audio-btn i {
    font-size: 0.68rem;
}

.dict-audio-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    min-width: 50px;
}

.dict-audio-wave span {
    width: 4px;
    height: 7px;
    border-radius: 999px;
    background: #7fa5d8;
    opacity: 0.45;
}

.dict-audio-player.is-playing .dict-audio-wave span {
    animation: dictWave 0.82s ease-in-out infinite;
    opacity: 1;
    background: #225fb4;
}

.dict-audio-player.is-playing .dict-audio-wave span:nth-child(2) { animation-delay: 0.1s; }
.dict-audio-player.is-playing .dict-audio-wave span:nth-child(3) { animation-delay: 0.2s; }
.dict-audio-player.is-playing .dict-audio-wave span:nth-child(4) { animation-delay: 0.3s; }
.dict-audio-player.is-playing .dict-audio-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes dictWave {
    0%,
    100% {
        transform: scaleY(0.45);
    }
    50% {
        transform: scaleY(1.35);
    }
}

.dict-detail-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.dict-detail-digit {
    font-size: 5rem;
    font-weight: 700;
    color: #5e7c9b;
    line-height: 1;
    text-align: center;
}

.dict-detail-alt {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.dict-detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr 240px;
    align-items: center;
}

.dict-detail-image-col {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-container.sidebar-collapsed #dictionary .dict-detail-layout {
    grid-template-columns: 360px 1fr 300px;
}

@media (max-width: 600px) {
    .dict-detail-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .dict-detail-image-col {
        grid-column: unset;
    }

    .dict-detail-audio-col,
    .dict-detail-image-col {
        width: 100%;
    }

    .dict-try-word {
        font-size: 0.75rem;
        padding: 2px 9px;
    }

    .dict-try-label {
        font-size: 0.75rem;
    }
}
