/*
1021每日新闻样式
HNC Daily News Module Styles
与现有模块样式保持一致
*/

/* ============= 基础容器样式（匹配其他模块） ============= */
#hnc-daily-news-section {
    background-color: #ffffff;
    border: 1px solid #e0e6f0;
    border-radius: 12px;
    padding: 1.5em 2em;
    margin-top: 2em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

/* 确保所有子元素不会破坏容器样式 */
#hnc-daily-news-section>* {
    position: relative;
    z-index: 1;
}

/* 只影响每日新闻模块的标题样式，不覆盖全局样式 */
#hnc-daily-news-section .hnc-module-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1em;
    text-align: center;
    position: relative;
}

/* 移除可能会影响其他模块的伪元素样式 */
#hnc-daily-news-section .hnc-module-title::after {
    content: none;
    display: none;
}

/* === 每日新闻标题行 === */
.hnc-daily-news-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 1em;
}

#hnc-daily-news-section .hnc-daily-news-header-row .hnc-module-title {
    margin: 0;
    text-align: left;
}

/* === 复制链接图标按钮 === */
#hnc-daily-news-copy-link-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

#hnc-daily-news-copy-link-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

#hnc-daily-news-copy-link-btn:active {
    background: #f1f5f9;
}

#hnc-daily-news-copy-link-btn.copied {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* ============= 新手指南 ============= */
.hnc-onboarding {
    background: linear-gradient(135deg, #f4f7ff 0%, #eef2ff 100%);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.hnc-onboarding-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 15px;
}

.hnc-onboarding-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.hnc-onboarding-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hnc-onboarding-step .step-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.hnc-onboarding-step .step-number {
    width: 22px;
    height: 22px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.hnc-onboarding-step .step-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

/* ============= 分页与加载更多 ============= */
.hnc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 4px;
    flex-wrap: wrap;
}

.hnc-load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #5b9aff 100%);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(91, 154, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hnc-load-more-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.hnc-load-more-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91, 154, 255, 0.45);
}

.hnc-page-status {
    color: #4b5563;
    font-size: 13px;
}

/* ============= 词汇弹出提示 ============= */
.hnc-vocab-popover {
    position: absolute;
    background: #111827;
    color: #f9fafb;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    max-width: 320px;
    z-index: 20000;
    border: 1px solid #1f2937;
}

.hnc-vocab-popover-term {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hnc-vocab-popover-phonetic {
    color: #c7d2fe;
    font-size: 13px;
}

.hnc-vocab-popover-def {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.hnc-vocab-popover-def.cn {
    color: #a7f3d0;
}

.hnc-vocab-popover-example {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.5;
}

.hnc-vocab-popover-example .label {
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 4px;
}

.hnc-vocab-popover-example .text {
    color: #f3f4f6;
}

.hnc-vocab-popover-example .text.cn {
    color: #a7f3d0;
    margin-top: 3px;
}

/* ============= Toast 通知 ============= */
.hnc-notification {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30000;
    min-width: 260px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    display: none;
}

.hnc-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #111827;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
}

.hnc-notification[data-variant="info"] {
    background: #e0f2fe;
    border: 1px solid #93c5fd;
}

.hnc-notification[data-variant="warn"] {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.hnc-notification[data-variant="error"] {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.hnc-notification[data-variant="success"] {
    background: #dcfce7;
    border: 1px solid #86efac;
}

/* ============= 信息提示框 ============= */
.hnc-info-box {
    background: #e3f2fd;
    color: #1565c0;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5em;
    font-weight: 500;
    line-height: 1.5;
    border-left: 4px solid #1565c0;
}

.hnc-explore-info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ============= 筛选控件 ============= */
.hnc-news-filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e1e8ed;
}

.hnc-filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hnc-filter-controls label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.hnc-category-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
    background: white;
    transition: border-color 0.3s ease;
}

.hnc-category-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.hnc-filter-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.hnc-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============= 新闻网格布局 ============= */
.hnc-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* ============= 新闻卡片样式 ============= */
.hnc-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
    cursor: pointer;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.hnc-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hnc-news-card-header {
    background: #ffffff;
    color: #1f2937;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.hnc-news-date {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.hnc-news-level {
    display: none;
}

.hnc-news-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hnc-news-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hnc-news-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hnc-difficulty-indicator {
    display: none;
}

.hnc-difficulty-stars {
    font-size: 15px;
    letter-spacing: 1px;
    color: #f5c542;
}

.hnc-difficulty-stars .stars-empty {
    color: #d8dee8;
}

.hnc-difficulty-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hnc-difficulty-label {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95rem;
}

.hnc-difficulty-detail {
    color: #6b7280;
    font-size: 0.85rem;
}

.hnc-news-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.hnc-news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hnc-category-tag {
    background: #ecf0f1;
    color: #34495e;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hnc-news-stats {
    display: flex;
    gap: 15px;
    color: #95a5a6;
    font-size: 0.8rem;
}

.hnc-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hnc-news-card-footer {
    padding: 0 20px 20px;
    margin-top: auto;
}

.hnc-start-learning-btn {
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    border: 1px solid #3b82f6;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18);
}

.hnc-start-learning-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

/* ============= 加载和空状态 ============= */
.hnc-loading {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hnc-no-content {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-content-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.hnc-no-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

/* ============= 分页样式 ============= */
.hnc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.hnc-page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.hnc-page-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.hnc-page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.hnc-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============= 模态框样式 ============= */
.hnc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.hnc-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.hnc-modal-card {
    background: white;
    border-radius: 12px;
    max-height: 90vh;
    width: var(--hnc-modal-width, 90vw);
    max-width: 840px;
    min-width: 320px;
    overflow: auto;
    padding: 24px 26px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hnc-modal-card:focus {
    outline: none;
}

.hnc-modal-width-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #475569;
}

.hnc-modal-width-control input[type="range"] {
    width: 120px;
    accent-color: #667eea;
}

.hnc-modal-width-value {
    min-width: 36px;
    text-align: right;
    color: #1f2937;
    font-weight: 700;
}

.hnc-modal-link-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hnc-modal-link-btn {
    background: #eef2ff;
    border: 1px solid #cdd4ff;
    color: #334155;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.hnc-modal-link-btn:hover,
.hnc-modal-link-btn:focus-visible {
    background: #e0e7ff;
    border-color: #c3d0ff;
    color: #1f2937;
    outline: none;
}

/* ============= 移动端适配 ============= */
@media screen and (max-width: 768px) {

    /* Hide Filter and Pagination on Mobile */
    .hnc-news-filter-section,
    #hnc-news-pagination {
        display: none !important;
    }

    /* 隐藏非关键信息 */
    .hnc-news-level,
    .hnc-news-excerpt,
    .hnc-difficulty-indicator,
    .hnc-news-meta,
    .hnc-news-card-footer {
        display: none !important;
    }

    /* 调整卡片内边距 */
    .hnc-news-card-content {
        padding-bottom: 20px;
    }

    /* 调整标题样式 */
    .hnc-news-title {
        margin-bottom: 0;
        font-size: 1.1rem;
    }

    /* 调整头部对齐 */
    .hnc-news-card-header {
        justify-content: flex-start;
    }

    /* 隐藏非关键弹窗内容 */
    .hnc-modal-meta-info,
    .hnc-study-estimate,
    .hnc-learning-guide {
        display: none !important;
    }

    /* 优化弹窗内边距 */
    .hnc-modal-card {
        padding: 20px !important;
    }

    /* --- Netflix-style Horizontal Scroll --- */
    .hnc-mobile-section-header {
        font-size: 1.2rem;
        font-weight: 700;
        color: #2c3e50;
        margin: 20px 0 10px 0;
        padding-left: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hnc-mobile-scroll-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 15px;
        overflow-x: auto !important;
        padding: 5px 5px 20px 5px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hnc-mobile-scroll-row::-webkit-scrollbar {
        display: none;
    }

    /* Ensure direct children (news cards) are horizontal items */
    .hnc-mobile-scroll-row>.hnc-news-card {
        display: flex !important;
        flex: 0 0 85% !important;
        width: 85% !important;
        max-width: 300px !important;
        scroll-snap-align: start;
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hnc-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hnc-modal-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.hnc-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.hnc-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hnc-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.hnc-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

/* ============= 学习指导 ============= */
.hnc-learning-guide {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #667eea;
}

.guide-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.learning-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* ============= 内容区块 ============= */
.hnc-news-content,
.hnc-vocabulary-section,
.hnc-questions-section,
.hnc-progress-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.content-header,
.section-header,
.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f8f9fa;
}

.content-header h5,
.section-header h5,
.progress-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.content-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #34495e;
}

.content-body p {
    margin-bottom: 18px;
}

/* 生词高亮样式 */
.hnc-vocabulary-highlight {
    background: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid #f9a825;
    transition: all 0.2s ease;
}

.hnc-vocabulary-highlight:hover {
    background: #fdd835;
    border-bottom-color: #f57f17;
    transform: translateY(-1px);
}

/* 参考答案按钮样式 */
.hnc-toggle-answer-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.hnc-toggle-answer-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.hnc-toggle-answer-btn.active {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.hnc-toggle-answer-btn .btn-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.hnc-toggle-answer-btn.active .btn-icon {
    transform: rotate(180deg);
}

/* 参考答案内容样式 */
.reference-answer {
    margin-top: 10px;
    padding: 15px;
    background: #f8fafc;
    border-left: 4px solid #10b981;
    border-radius: 0 6px 6px 0;
    animation: slideDown 0.3s ease;
}

.reference-answer .answer-content {
    color: #374151;
    line-height: 1.6;
    font-style: italic;
}

/* 内联样式答案按钮增强 */
button[style*="background: #10b981"] {
    transition: all 0.2s ease !important;
}

button[style*="background: #10b981"]:hover {
    background: #059669 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
}

/* 答案显示区域动画 */
@keyframes answerSlideIn {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

div[style*="background: #ecfdf5"] {
    animation: answerSlideIn 0.3s ease !important;
    border-left: 4px solid #10b981 !important;
    background: #ecfdf5 !important;
    color: #065f46 !important;
    padding: 12px !important;
    border-radius: 0 6px 6px 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-top: 8px !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* ============= 词汇列表 ============= */
.vocabulary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vocabulary-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vocabulary-item:hover {
    background: #f8f9fa;
    transform: none;
}

.vocabulary-item.completed {
    background: #d5f4e6;
    border-left-color: #27ae60;
}

.vocab-number {
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.vocab-term {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.vocab-definition {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ============= 问题列表 ============= */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.question-item.answered {
    border-color: #27ae60;
    background: #f8fff9;
}

.question-number {
    background: #e74c3c;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.question-content {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.question-answer {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.question-answer:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ============= 进度条 ============= */
.progress-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    max-width: 200px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* ============= 操作按钮 ============= */
.hnc-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.hnc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.hnc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hnc-btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.hnc-btn-secondary {
    background: #95a5a6;
    color: white;
}

.hnc-btn-secondary:hover {
    background: #7f8c8d;
}

.hnc-btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.hnc-btn-outline:hover {
    background: #3498db;
    color: white;
}

/* ============= 通知提示 ============= */
.hnc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    animation: notificationSlideIn 0.3s ease;
}

.notification-content {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    border-left: 4px solid #27ae60;
}

.notification-content.error {
    border-left-color: #e74c3c;
}

.notification-content.warning {
    border-left-color: #f39c12;
}

.notification-icon {
    font-size: 18px;
}

.notification-text {
    color: #2c3e50;
    font-weight: 500;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============= 配额信息 ============= */
.hnc-quota-info {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* ============= 响应式设计 ============= */
@media (max-width: 968px) {
    .hnc-news-grid {
        grid-template-columns: 1fr;
    }

    .hnc-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .hnc-modal-body {
        padding: 20px;
    }

    .learning-tips {
        grid-template-columns: 1fr;
    }

    .hnc-modal-actions {
        flex-direction: column;
    }

    .hnc-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hnc-module-title {
        font-size: 1.5rem;
    }

    .hnc-filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hnc-modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hnc-modal-title {
        font-size: 1.3rem;
    }

    .hnc-modal-card {
        width: var(--hnc-modal-width, 94vw);
        max-width: 95vw;
        min-width: 280px;
        padding: 20px 18px;
    }

    .hnc-modal-width-control {
        width: 100%;
        justify-content: space-between;
    }

    .hnc-modal-width-control input[type="range"] {
        width: 100%;
    }

    .hnc-news-stats {
        flex-direction: column;
        gap: 5px;
    }

    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .progress-bar {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 520px) {
    #hnc-daily-news-section {
        padding: 1.2em 1.1em;
    }

    .hnc-info-box {
        display: flex;
        width: 100%;
        font-size: 13px;
        padding: 10px 12px;
    }

    .hnc-news-card {
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .hnc-news-card-header {
        padding: 12px 14px;
    }

    .hnc-news-date {
        font-size: 0.8rem;
    }

    .hnc-news-level {
        font-size: 0.7rem;
        padding: 3px 7px;
    }

    .hnc-news-card-content {
        padding: 14px;
        gap: 6px;
    }

    .hnc-news-title {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .hnc-news-excerpt {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .hnc-difficulty-indicator {
        padding: 8px 10px;
        gap: 8px;
    }

    .hnc-difficulty-label {
        font-size: 0.85rem;
    }

    .hnc-difficulty-detail {
        font-size: 0.78rem;
    }

    .hnc-news-meta {
        gap: 8px;
    }

    .hnc-news-categories {
        gap: 6px;
    }

    .hnc-category-tag {
        font-size: 0.72rem;
        padding: 3px 7px;
    }

    .hnc-news-stats {
        flex-wrap: wrap;
        gap: 6px 12px;
        font-size: 0.78rem;
    }

    .hnc-news-card-footer {
        padding: 0 14px 14px;
    }

    .hnc-start-learning-btn {
        padding: 11px;
        font-size: 0.95rem;
    }
}

/* 粘性头部样式已移除 - HTML中不再包含这些元素 */

/* ============= 动画效果 ============= */
.hnc-news-card,
.vocabulary-item,
.question-item {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= 音频播放器样式 ============= */
.hnc-audio-paragraph {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 3px solid #667eea;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.hnc-audio-paragraph:hover {
    background: #f1f3f4;
    transform: translateX(2px);
}

.hnc-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.hnc-audio-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hnc-audio-btn:hover {
    background: #5a6fd8;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.hnc-audio-btn:active {
    transform: scale(0.95);
}

.hnc-audio-btn.playing {
    background: #e74c3c;
}

.hnc-audio-info {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #64748b;
    transition: all 0.2s ease;
}

.hnc-audio-info.playing {
    background: #e8f5e8;
    border-color: #27ae60;
    color: #27ae60;
}

.hnc-audio-placeholder {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 音频进度条 */
.hnc-audio-progress {
    flex: 1;
    height: 4px;
    background: #e1e8ed;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 8px;
}

.hnc-audio-progress-bar {
    height: 100%;
    background: #667eea;
    transition: width 0.1s linear;
}

.hnc-paragraph-translation-wrapper {
    margin-top: 12px;
}

.hnc-toggle-translation-btn {
    background: transparent;
    border: 1px dashed #95a5a6;
    color: #637381;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hnc-toggle-translation-btn:hover,
.hnc-toggle-translation-btn:focus-visible {
    border-color: #667eea;
    color: #4c5d70;
    outline: none;
}

.hnc-paragraph-translation {
    margin-top: 8px;
    padding: 12px;
    background: #eef2f3;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.65;
    border: 1px solid #d9e0e4;
}

/* ===== 学习预估 & 步骤 (Daily News modal) ===== */
.hnc-study-estimate {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
}

.hnc-estimate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hnc-estimate-icon {
    font-size: 18px;
}

.hnc-estimate-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hnc-estimate-label {
    font-size: 0.9rem;
    color: #475569;
}

.hnc-estimate-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
}

/* ===== 学习指导 (Elegant Minimalist Design) ===== */
.hnc-learning-guide {
    background: #ffffff !important;
    /* Force white background */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Slightly sharper corners for elegance */
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    /* Ensure no child backgrounds spill out */
}

/* Ensure no pseudo-elements are creating the purple banner */
.hnc-learning-guide::before,
.hnc-learning-guide::after {
    display: none !important;
    content: none !important;
}

.hnc-guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
    justify-content: flex-start !important;
    background: transparent !important;
    /* Kill the purple */
    padding: 0 !important;
    border: none !important;
}

.hnc-guide-icon {
    font-size: 1.2rem;
    color: #6366f1;
    /* Match accent color */
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.hnc-guide-title {
    color: #334155;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
}

.hnc-guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.hnc-step-card {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    background: #f8fafc;
    /* Very light gray to stand out from white container */
    transition: all 0.2s ease;
}

.hnc-step-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.hnc-step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.hnc-step-number {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    /* Rounded square */
    background: #4f46e5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.hnc-step-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.2;
}

.hnc-step-content {
    flex: 1;
}

.hnc-step-desc {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
    padding-left: 2px;
}

/* ===== 重点词汇列表 (Daily News modal) ===== */
.hnc-vocab-section {
    margin-bottom: 28px;
}

.hnc-vocab-section h3 {
    margin-bottom: 14px;
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
}

.hnc-vocab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hnc-vocab-item {
    background: #f9fbff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: none;
}

.hnc-vocab-item-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hnc-vocab-item:hover,
.hnc-vocab-item:focus-within {
    background: #f9fbff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hnc-vocab-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.hnc-vocab-term-btn {
    flex: 0 0 auto;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
    color: #1f2937;
    width: auto;
    max-width: max-content;
}

.hnc-vocab-term-btn:hover {
    color: #1d4ed8;
}

.hnc-vocab-term-btn:focus-visible {
    outline: none;
}

.hnc-vocab-index {
    background: #667eea;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 10px;
    padding: 2px 6px;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.hnc-vocab-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.hnc-vocab-term {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hnc-vocab-phonetic {
    color: #6b7280;
    font-size: 0.95rem;
}

.hnc-vocab-speak-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.hnc-vocab-definition {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
}

.hnc-vocab-definition .cn-line {
    display: block;
    margin-top: 6px;
    color: #334155;
}

.hnc-vocab-example-btn {
    border: 1px solid #dbe4ff;
    background: #eef2ff;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #4c59c8;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.06);
    flex-shrink: 0;
}

.hnc-vocab-example-btn:hover,
.hnc-vocab-example-btn:focus-visible {
    background: #e0e7ff;
    border-color: #c3d0ff;
    outline: none;
}

.hnc-vocab-example-btn.expanded {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #312e81;
}

.hnc-expand-icon {
    font-weight: 700;
}

.hnc-vocab-example {
    margin-top: 10px;
    padding: 14px;
    background: #ffffff;
    border-left: 4px solid #667eea;
    border-radius: 12px;
    color: #1f2937;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hnc-example-text {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.hnc-example-translation {
    margin: 0;
    font-size: 0.98rem;
    color: #334155;
}

.hnc-vocab-speak-btn {
    border: 0;
    background: transparent;
    border-radius: 6px;
    padding: 2px 4px;
    min-width: auto;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-shadow: none;
}

.hnc-vocab-speak-btn:hover,
.hnc-vocab-speak-btn:focus-visible {
    background: rgba(102, 126, 234, 0.18);
    color: #1d4ed8;
    outline: none;
}

.hnc-vocab-speak-btn:active {
    transform: scale(0.96);
}

.hnc-question-hint {
    margin-top: 10px;
    padding: 12px;
    background: #f8fafc;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    display: none;
}

.hnc-hint-content {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.hnc-hint-btn {
    margin-top: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #1f2937;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hnc-hint-btn:hover,
.hnc-hint-btn:focus-visible {
    background: #f1f5f9;
    border-color: #cbd5e1;
    outline: none;
}

.hnc-hint-btn.active {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #312e81;
}

.hnc-question-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hnc-show-answer-btn {
    background: #f4f6ff !important;
    border: 1px solid #dbe4ff !important;
    color: #1f2937 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hnc-show-answer-btn:hover,
.hnc-show-answer-btn:focus-visible {
    background: #e0e7ff !important;
    border-color: #c7d2fe !important;
    outline: none;
}

.hnc-answer-panel {
    display: none;
    margin-top: 8px;
    padding: 12px;
    background: #f1f5f9;
    border-left: 4px solid #94a3b8;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hnc-modal-close-btn {
    background: #1f2937;
    color: #ffffff;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hnc-modal-close-btn:hover,
.hnc-modal-close-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    outline: none;
}

.hnc-sentence-note {
    border-bottom: 1px dotted rgba(102, 126, 234, 0.6);
    cursor: pointer;
    transition: background 0.2s ease;
}

.hnc-sentence-note:hover {
    background: rgba(102, 126, 234, 0.12);
}

.hnc-sentence-note-active {
    background: rgba(102, 126, 234, 0.18);
}


.content-body p {
    margin-bottom: 18px;
    text-align: justify;
    text-justify: inter-ideograph;
    /* Better justification for mixed content */
}

/* ============= 新增句子详解样式 (Sentence Notes) - Redesigned ============= */
/* ===== Audio Player (Restored & Fixed) ===== */
.hnc-audio-player-compact {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f1f5f9 !important;
    border-radius: 99px !important;
    /* Fully rounded capsule */
    padding: 8px 14px !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 400px !important;
    /* Prevent it from getting too wide */
    border: 1px solid #e2e8f0;
}

.hnc-audio-play-btn {
    background: #667eea !important;
    color: white !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s, background 0.2s !important;
    line-height: 1 !important;
}

.hnc-audio-play-btn:hover {
    background: #5a67d8 !important;
    transform: scale(1.05);
}

.hnc-audio-progress-wrapper {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    height: 100%;
}

.hnc-audio-progress {
    width: 100% !important;
    height: 4px !important;
    background: #cbd5e1 !important;
    border-radius: 2px !important;
    outline: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.hnc-audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    background: #667eea !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hnc-audio-time {
    font-size: 11px !important;
    color: #64748b !important;
    font-family: monospace !important;
    min-width: 40px !important;
    text-align: right !important;
    margin-left: 8px !important;
    font-weight: 500;
}

.hnc-audio-speed {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 11px !important;
    color: #475569 !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    margin-left: 8px !important;
    height: 24px;
}

/* ===== Typography & Alignment Fixes ===== */

/* Force Justification on Paragraphs */
.content-body p,
.hnc-news-paragraph-text,
.hnc-news-paragraph-text p {
    text-align: justify !important;
    text-justify: inter-word !important;
    /* Better for English/mixed */
    line-height: 1.8 !important;
    margin-bottom: 1rem !important;
}

/* Ensure Bold Text is Visible (Black Body Text) */
strong,
b,
.hnc-news-vocab-highlight {
    font-weight: 700 !important;
    color: #1f2937 !important;
    /* Dark charcoal, almost black */
}

/* Sentence Analysis Styling (Refined) */
.hnc-sentence-note-box {
    display: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin: 15px 0;
}

.hnc-sentence-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.hnc-sentence-note-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.hnc-sentence-note-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Original Sentence & Translation */
.hnc-sentence-note-original {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 4px;
    display: block;
    text-align: left !important;
    /* Notes shouldn't be justified */
}

.hnc-sentence-note-translation {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left !important;
}

/* Highlights (Blue) */
.hnc-sentence-note-highlight {
    margin-top: 5px;
    padding: 15px;
    background: #f0f7ff;
    border-left: 3px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    color: #1e3a8a;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left !important;
}

.hnc-sentence-note-highlight strong {
    color: #1d4ed8 !important;
    display: block;
    margin-bottom: 4px;
}

/* Template (Pink/Rose) */
.hnc-sentence-note-template {
    margin-top: 5px;
    padding: 15px;
    background: #fff1f2;
    border-left: 3px solid #ec4899;
    border-radius: 0 8px 8px 0;
    color: #881337;
    font-size: 0.95rem;
    text-align: left !important;
}

.hnc-sentence-note-template strong {
    color: #be185d !important;
    display: block;
    margin-bottom: 6px;
}

.hnc-sentence-note-template code {
    background: rgba(255, 255, 255, 0.7);
    padding: 3px 6px;
    border-radius: 4px;
    color: #db2777;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    font-size: 0.9em;
}

/* Examples (Green) */
.hnc-sentence-note-examples {
    margin-top: 5px;
    padding: 15px;
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
    border-radius: 0 8px 8px 0;
    color: #14532d;
    text-align: left !important;
}

.hnc-sentence-note-examples strong {
    color: #15803d !important;
    display: block;
    margin-bottom: 6px;
}

.hnc-sentence-note-examples ul {
    margin: 0;
    padding-left: 18px;
}

.hnc-sentence-note-examples li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.hnc-sentence-note-examples li:last-child {
    margin-bottom: 0;
}

/* ============= Mobile Scrollbar Fix (Keep Horizontal Logic) ============= */
@media screen and (max-width: 768px) {
    /* ... keep existing mobile rules if any ... */
}


