#microWindow {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2501;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border-radius: 10px;
    width: 96%;
    max-width: 700px;
    min-height: 50%;
    max-height: 15em;
    overflow: hidden;
    top: 15%;
    flex-direction: column;
}

.micro-header {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    padding: 3px 15px 1px 10px;
    background: rgba(250, 250, 250, 1);
    flex-shrink: 0;
}

.micro-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.micro-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.micro-title-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.micro-pron-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.micro-title {
    font-weight: 500;
    font-size: 24px;
    color: #000000;
    padding: 0 0 1px 0;
    white-space: nowrap;
    min-width: 0;
}

.micro-pronunciation {
    color: var(--text-sub);
    font-size: 16px;
    white-space: nowrap;
}

.micro-stems-container {
    display: flex;
    gap: 10px;
    font-size: 0.75em;
    color: var(--text-sub);
    line-height: 1.1;
    flex-shrink: 0;
    margin-left: 10px;
}

#microContent {
    padding: 0 20px;
    padding-bottom: max(env(safe-area-inset-bottom), 30px); /* Safe area for bottom navigation */
    overflow-y: auto;
    flex-grow: 1;
    overscroll-behavior: contain;
}

.view-full-btn {
    width: 100%;
    padding: 16px;
    margin-top: 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}

.extra-content-toggle {
    margin-top: 15px;
    padding: 8px 0;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid var(--border-color);
}

.extra-content-container {
    display: none;
}

.extra-content-container.visible {
    display: block;
}

.hahaha{
    border-left: 1px solid #8181818c;
    border-right: 1px solid #8181818c;
}

/* Inline Fetch UI */
.fetch-ui-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 40px;
}

.fetch-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px 4px 2px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fetch-input {
    width: 60px;
    height: 34px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    outline: none;
    font-weight: bold;
    color: var(--text-color);
}

.fetch-search-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fetch-search-btn:hover {
    background: #8989892e;
}

.fetch-search-btn svg {
    display: block;
}

/* Dark Mode Support for Fetch Input */
body.dark-mode .fetch-input-wrapper {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .fetch-input {
    color: #e8eaed;
}

body.dark-mode .fetch-search-btn {
    background: #4c8fe7;
}

body.dark-mode .fetch-search-btn:hover {
    background: #6ea4f1;
}

.fetch-loading-icon {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: fetch-spin 1s linear infinite;
    cursor: pointer;
}

.fetch-progress-meter {
    font-size: 10px;
    color: var(--text-sub);
    margin-top: 2px;
    white-space: nowrap;
}

@keyframes fetch-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.micro-header-top .tts-btn svg{
    width: 1.9em;
    height: 3em;
    min-width: 66px;
    min-height: 66px;
}

.micro-header-top .pin-btn{
height:3em;
}

.micro-Close {
    display: none;

}