/* responsive.css - 移动端适配 @media (max-width: 1208px) */

@media screen and (max-width: 1208px) {
    .header {
        padding: 15px 20px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .header-content {
        width: 100% !important;
    }

    .header-title h1 {
        font-size: 2.5em !important;
    }

    /* 移动端 H1 和作者信息并排 */
    .title-row {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: wrap;
    }

    .app-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .author-info {
        font-size: 14px !important;
        margin-top: 0 !important;
    }

    .stats-bar {
        font-size: 14px !important;
        margin-top: 8px !important;
    }

    .controls-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        flex-shrink: 0;
        width: 100%;
    }

    .wordlist-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px;
        flex-shrink: 0;
        width: 100%;
    }

    .wordlist-label {
        font-size: 14px !important;
        white-space: nowrap;
    }

    .wordlist-select-wrapper {
        width: 100%;
    }

    .wordlist-select-btn {
        flex: 1;
        width: 100% !important;
        max-width: none !important;
        height: 36px !important;
        min-width: 140px !important;
        font-size: 14px !important;
    }

    .wordlist-dropdown {
        min-width: auto;
        max-width: none;
        left: 0;
        right: 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .wordlist-item {
        padding: 12px 14px !important;
        gap: 3px !important;
    }

    .wordlist-item-name {
        font-size: 14px !important;
    }

    .wordlist-item-desc {
        font-size: 12px !important;
    }

    .wordlist-item-status {
        font-size: 12px !important;
    }

    .btn-group {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        width: 100%;
    }

    .btn {
        flex: 1;
        padding: 0 10px !important;
        font-size: 14px !important;
        height: 40px !important;
    }

    #wordContainer {
        grid-template-columns: repeat(1, 1fr) !important;
        padding: 20px !important;
        width: 100%;
        overflow-x: hidden;
    }

    .word-card {
        padding: 16px 20px 12px !important;
        min-height: 220px;
        height: 220px;
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .word-card > .level-tag,
    .word-card > .mastery-label {
        flex-shrink: 0;
    }

    .word-card > .word-row {
        flex: 0 0 auto;
        margin-top: 16px;
    }

    .word-card > .mean-display {
        flex: 0 0 auto;
        height: 36px;
        margin-top: 4px;
    }

    .word-card > .extra-meanings-display {
        flex: 1;
        min-height: 0;
        margin-bottom: 4px;
    }

    .word-card > .btn-audio {
        flex-shrink: 0;
        margin-top: auto;
    }

    .level-tag {
        font-size: 22px !important;
        padding: 2px 6px !important;
    }

    .mastery-label {
        font-size: 22px !important;
        padding: 10px !important;
        margin: -10px !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mastery-checkbox {
        width: 24px !important;
        height: 24px !important;
    }

    .word-display {
        font-size: 4rem; /* Start slightly smaller to avoid instant overflow */
    }

    .pos-display {
        font-size: 1.8rem !important;
    }

    .mean-display {
        font-size: 20px !important;
        height: 36px;
        display: flex;
        align-items: center;
    }

    .btn-audio {
        height: 40px !important;
        font-size: 22px !important;
    }
}
