/* =============================================================================
 * 快速刷词 · 信息流（平板 / 手机优先）
 * ============================================================================= */

html.word-feed-mode,
body.word-feed-mode {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.word-feed-mode {
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* 左侧列表允许纵向拖动滚动 */
body.word-feed-mode .feed-nav,
body.word-feed-mode .feed-nav-list {
    touch-action: pan-y;
}

/* 顶栏在刷词页尽量紧凑，给卡片留高度 */
body.word-feed-mode .top-navbar {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 0;
    z-index: 40;
    overflow: visible;
    border-bottom: 1px solid rgba(199, 125, 255, 0.35);
}

body.word-feed-mode .top-navbar > .navbar-controls {
    padding-top: 6px;
    padding-bottom: 6px;
    row-gap: 6px;
}

/* 默认收起：隐藏 Play / 搜索 / 翻页等整块，只留极薄顶条 + 分隔线上的箭头 */
body.word-feed-mode.feed-top-collapsed .top-navbar {
    min-height: 0;
    padding-bottom: 0;
}

body.word-feed-mode.feed-top-collapsed .top-navbar > .navbar-controls,
body.word-feed-mode.feed-top-collapsed .top-navbar > .navbar-nav {
    display: none !important;
}

body.word-feed-mode.feed-top-collapsed .top-navbar > .menu-toggle {
    position: absolute;
    top: max(6px, env(safe-area-inset-top, 0px));
    right: 10px;
    z-index: 2;
}

body.word-feed-mode.feed-top-collapsed .top-navbar {
    height: calc(28px + env(safe-area-inset-top, 0px));
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

/* 分隔线中央：上下箭头，骑在顶栏下沿，不再用悬浮胶囊 */
.feed-top-rail {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    z-index: 45;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.feed-top-rail-btn {
    width: 32px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #c77dff;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.feed-top-rail-btn i {
    font-size: 0.85rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75));
}

.feed-top-rail-btn:hover,
.feed-top-rail-btn:focus-visible {
    background: rgba(199, 125, 255, 0.18);
    color: #fff;
    outline: none;
}

.feed-top-rail-btn:active {
    opacity: 0.7;
}

body.word-feed-mode.feed-top-collapsed #feed_top_expand_up,
body.word-feed-mode:not(.feed-top-collapsed) #feed_top_expand_down {
    display: none !important;
}

/* 主布局：侧栏固定占位，卡片让渡空间 */
body.word-feed-mode .main-content.feed-main {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 !important;
    display: grid;
    /* 用固定列宽，避免 minmax 动画/切换时反复计算 */
    grid-template-columns: 280px minmax(0, 1fr);
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
    /* 禁止过渡 grid —— 会带动全部单词卡连续重排，卡顿明显 */
}

body.word-feed-mode .main-content.feed-main.nav-collapsed {
    grid-template-columns: 48px minmax(0, 1fr);
}

/* ----- 左侧导航 ----- */
.feed-nav {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* grid 子项必须允许收缩，否则列表被撑满、无法出现独立滚动条 */
    min-height: 0;
    max-height: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(26, 6, 51, 0.92);
    border-right: 1px solid rgba(199, 125, 255, 0.28);
    z-index: 30;
    contain: layout;
}

.feed-nav-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 8px 6px max(16px, env(safe-area-inset-bottom, 0px));
    /* 独立滚动条，方便在长列表中定位 */
    scrollbar-width: thin;
    scrollbar-color: rgba(199, 125, 255, 0.55) rgba(255, 255, 255, 0.06);
}

.feed-nav-list::-webkit-scrollbar {
    width: 8px;
}

.feed-nav-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.feed-nav-list::-webkit-scrollbar-thumb {
    background: rgba(199, 125, 255, 0.45);
    border-radius: 8px;
}

.feed-nav-list::-webkit-scrollbar-thumb:hover {
    background: rgba(199, 125, 255, 0.7);
}

.feed-nav-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 10px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    border-bottom: 1px solid rgba(199, 125, 255, 0.22);
    flex-shrink: 0;
}

.feed-nav-title {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 650;
    color: #e0aaff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-nav-title i {
    margin-right: 6px;
    opacity: 0.85;
}

.feed-nav-count {
    flex-shrink: 0;
    min-width: 1.6em;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f0e6ff;
    background: rgba(199, 125, 255, 0.35);
    text-align: center;
}

.feed-nav-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(199, 125, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #c77dff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.feed-nav-toggle:active {
    background: rgba(199, 125, 255, 0.28);
}

.feed-nav-hide-zh-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(199, 125, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #c77dff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.feed-nav-hide-zh-btn:active,
.feed-nav-hide-zh-btn.active {
    background: rgba(199, 125, 255, 0.35);
    border-color: rgba(199, 125, 255, 0.7);
    color: #f0e6ff;
}

/* 仅隐藏左侧列表中的中文释义 */
#feed_nav.hide-nav-zh .feed-nav-item-zh {
    display: none !important;
}

.feed-main.nav-collapsed .feed-nav-title,
.feed-main.nav-collapsed .feed-nav-count,
.feed-main.nav-collapsed .feed-nav-hide-zh-btn {
    display: none;
}

.feed-nav-load-more {
    flex-shrink: 0;
    padding: 10px 8px 12px;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(208, 179, 255, 0.75);
    border-top: 1px solid rgba(199, 125, 255, 0.2);
    background: rgba(18, 4, 36, 0.55);
}

.feed-nav-load-prev {
    border-top: 0;
    border-bottom: 1px solid rgba(199, 125, 255, 0.2);
}

.feed-nav-load-more[hidden] {
    display: none !important;
}

.feed-nav-load-more.is-end {
    color: rgba(208, 179, 255, 0.45);
}

.feed-main.nav-collapsed .feed-nav-load-more {
    display: none !important;
}

.feed-main.nav-collapsed .feed-nav-toggle i {
    transform: rotate(180deg);
}

.feed-nav-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    text-align: left;
    padding: 11px 10px 11px 4px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #d0b3ff;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
}

.feed-nav-item:active,
.feed-nav-item.active {
    background: rgba(199, 125, 255, 0.22);
    border-color: rgba(199, 125, 255, 0.45);
    color: #f5eaff;
}

.feed-nav-item-index {
    flex-shrink: 0;
    display: block;
    min-width: 1.6em;
    margin-left: 0;
    padding-top: 1px;
    padding-left: 0;
    font-size: 0.78rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    color: rgba(199, 125, 255, 0.85);
    text-align: right;
}

.feed-nav-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-nav-item-eng {
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-nav-item-zh {
    font-size: 0.74rem;
    opacity: 0.72;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-main.nav-collapsed .feed-nav-item {
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    min-height: 40px;
    gap: 0;
}

.feed-main.nav-collapsed .feed-nav-item-text {
    display: none;
}

.feed-main.nav-collapsed .feed-nav-item-index {
    display: block;
    min-width: 0;
    padding-top: 0;
    text-align: center;
    font-size: 0.75rem;
}

/* 抽屉遮罩（已弃用，保留以免残留节点闪现） */
.feed-nav-backdrop {
    display: none !important;
}

/* ----- 信息流面板 ----- */
body.word-feed-mode .feed-panel {
    position: relative;
    height: 100%;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    contain: layout;
}

body.word-feed-mode .feed-panel > .search-filter-bar {
    flex-shrink: 0;
    z-index: 6;
}

/* ----- 今日战绩（右下角小 HUD） ----- */
.feed-arena {
    --feed-hud-ink: #ffe56a;
    --feed-hud-cyan: #5cffd7;
    --feed-hud-pink: #ff6bcb;
    position: absolute;
    z-index: 8;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.feed-arena--corner {
    inset: auto;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(12px, calc(10px + env(safe-area-inset-bottom, 0px)));
    left: auto;
    top: auto;
    position: absolute;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    text-align: inherit;
    font: inherit;
    color: inherit;
    transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.feed-arena--corner:active {
    transform: scale(0.96);
}

.feed-arena--corner .feed-arena-core {
    pointer-events: none;
}

.feed-arena-core {
    position: relative;
    z-index: 1;
    text-align: center;
    min-width: min(228px, calc(100% - 20px));
    padding: 16px 22px 18px;
    border-radius: 18px;
    background: rgba(12, 2, 28, 0.72);
    border: 1px solid rgba(255, 229, 106, 0.28);
    box-shadow:
        0 0 0 1px rgba(92, 255, 215, 0.08),
        0 8px 22px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateZ(0);
}

.feed-arena-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: "Chakra Petch", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--feed-hud-cyan);
    background: rgba(92, 255, 215, 0.1);
    border: 1px solid rgba(92, 255, 215, 0.28);
}

.feed-arena-tag i {
    color: var(--feed-hud-ink);
    font-size: 0.75rem;
    filter: drop-shadow(0 0 4px rgba(255, 229, 106, 0.7));
}

.feed-arena-score {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}

.feed-arena-metric {
    display: flex;
    align-items: baseline;
    gap: 2px;
    min-width: 2.8ch;
    justify-content: center;
}

.feed-arena-num {
    font-family: "Russo One", "Chakra Petch", sans-serif;
    font-size: clamp(1.7rem, 5vw, 2.2rem);
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
    color: #fff8d6;
    text-shadow:
        0 0 8px rgba(255, 229, 106, 0.45),
        0 1px 0 rgba(90, 40, 0, 0.35);
    transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.4, 1), color 0.18s ease;
}

.feed-arena-metric[data-metric="times"] .feed-arena-num {
    color: #e8fff8;
    text-shadow:
        0 0 8px rgba(92, 255, 215, 0.45),
        0 1px 0 rgba(0, 60, 50, 0.35);
}

.feed-arena-unit {
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 248, 214, 0.82);
    padding-bottom: 0.1em;
}

.feed-arena-metric[data-metric="times"] .feed-arena-unit {
    color: rgba(232, 255, 248, 0.82);
}

.feed-arena-slash {
    width: 2px;
    height: 1.55rem;
    margin-bottom: 0.2rem;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--feed-hud-pink), var(--feed-hud-cyan));
    opacity: 0.75;
    transform: skewX(-18deg);
}

.feed-arena-mastered {
    margin-top: 8px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.feed-arena-mastered span {
    color: #ffb4e0;
    font-variant-numeric: tabular-nums;
}

.feed-arena-dictation {
    margin-top: 4px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.feed-arena-dictation span {
    color: #5cffd7;
    font-variant-numeric: tabular-nums;
}

.feed-arena-float {
    position: absolute;
    right: 8px;
    bottom: 100%;
    margin-bottom: 4px;
    font-family: "Russo One", sans-serif;
    font-size: 0.85rem;
    color: var(--feed-hud-ink);
    text-shadow: 0 0 8px rgba(255, 229, 106, 0.8);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.feed-arena.is-punch .feed-arena-core {
    animation: feed-arena-punch 0.4s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.feed-arena.is-new-word .feed-arena-metric[data-metric="words"] .feed-arena-num {
    animation: feed-num-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
    color: #fff;
}

.feed-arena.is-tick .feed-arena-metric[data-metric="times"] .feed-arena-num {
    animation: feed-num-pop 0.38s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.feed-arena.is-float-on .feed-arena-float {
    animation: feed-float-up 0.65s ease-out forwards;
}

@keyframes feed-arena-punch {
    0% { transform: scale(0.94); filter: brightness(1); }
    45% { transform: scale(1.06); filter: brightness(1.25); }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes feed-num-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

@keyframes feed-float-up {
    0% { opacity: 0; transform: translateY(8px) scale(0.8); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-28px) scale(1.05); }
}

/* ----- 卡片中央大战报（进场 / 点击右下角） ----- */
.feed-stat-spotlight {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.feed-stat-spotlight:not([hidden]) {
    pointer-events: auto;
}

.feed-stat-spotlight[hidden] {
    display: none !important;
}

.feed-stat-spotlight-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 48%, rgba(255, 107, 203, 0.22), transparent 62%),
        radial-gradient(ellipse 55% 45% at 50% 52%, rgba(92, 255, 215, 0.14), transparent 58%),
        rgba(10, 2, 24, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.feed-stat-spotlight-panel {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 22px 28px 20px;
    border-radius: 22px;
    background: rgba(12, 2, 28, 0.82);
    border: 1px solid rgba(255, 229, 106, 0.32);
    box-shadow:
        0 0 0 1px rgba(92, 255, 215, 0.1),
        0 18px 56px rgba(0, 0, 0, 0.4);
    animation: feed-spotlight-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
    max-width: min(92vw, 380px);
}

.feed-stat-spotlight-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(78vw, 360px);
    height: min(78vw, 360px);
    margin: calc(min(78vw, 360px) / -2) 0 0 calc(min(78vw, 360px) / -2);
    border-radius: 50%;
    border: 2px dashed rgba(255, 229, 106, 0.28);
    box-shadow: 0 0 0 16px rgba(92, 255, 215, 0.05);
    animation: feed-arena-spin 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.feed-stat-spotlight-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--feed-hud-cyan, #5cffd7);
    background: rgba(92, 255, 215, 0.1);
    border: 1px solid rgba(92, 255, 215, 0.28);
}

.feed-stat-spotlight-tag i { color: #ffe56a; }

.feed-stat-spotlight-score {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.feed-stat-spotlight-score .feed-arena-num {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
}

.feed-stat-spotlight-score .feed-arena-unit {
    font-size: 1rem;
}

.feed-stat-spotlight-score .feed-arena-slash {
    height: 2.2rem;
    width: 3px;
    margin-bottom: 0.4rem;
}

.feed-stat-spotlight-mastered {
    position: relative;
    margin-top: 10px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.feed-stat-spotlight-mastered span {
    color: #ffb4e0;
    font-size: 1.1rem;
}

.feed-stat-spotlight-dictation {
    position: relative;
    margin-top: 4px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.feed-stat-spotlight-dictation span {
    color: #5cffd7;
    font-size: 1.1rem;
}

.feed-stat-spotlight-sub {
    position: relative;
    margin-top: 8px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.4);
}

.feed-stat-chart-btn {
    position: relative;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 229, 106, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 203, 0.28), rgba(92, 255, 215, 0.18));
    color: #fff8d6;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.feed-stat-chart-btn:active {
    transform: scale(0.97);
}

@keyframes feed-spotlight-in {
    0% { opacity: 0; transform: scale(0.86); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes feed-arena-spin {
    to { transform: rotate(360deg); }
}

body.word-feed-mode.feed-stat-spotlight-on .feed-word-list > .word-card {
    background: rgba(28, 6, 48, 0.38) !important;
    transition: background 0.25s ease;
}

/* ----- 30 日曲线弹层 ----- */
.feed-stat-chart-modal {
    position: absolute;
    inset: 0;
    z-index: 14;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.feed-stat-chart-modal[hidden] {
    display: none !important;
}

.feed-stat-chart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 1, 20, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.feed-stat-chart-panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 640px);
    max-height: min(88dvh, 560px);
    overflow: auto;
    padding: 16px 16px 14px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 107, 203, 0.18), transparent 55%),
        rgba(14, 3, 32, 0.94);
    border: 1px solid rgba(255, 229, 106, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: feed-spotlight-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.feed-stat-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.feed-stat-chart-title {
    font-family: "Russo One", "Chakra Petch", sans-serif;
    font-size: 1.15rem;
    color: #fff8d6;
    letter-spacing: 0.04em;
}

.feed-stat-chart-title i {
    color: #ff6bcb;
    margin-right: 6px;
}

.feed-stat-chart-sub {
    margin-top: 4px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
}

.feed-stat-chart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(199, 125, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #e0aaff;
    cursor: pointer;
}

.feed-stat-chart-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.feed-stat-kpi {
    text-align: center;
    padding: 8px 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(199, 125, 255, 0.22);
}

.feed-stat-kpi-val {
    display: block;
    font-family: "Russo One", sans-serif;
    font-size: 1.15rem;
    color: #ffe56a;
    font-variant-numeric: tabular-nums;
}

.feed-stat-kpi:nth-child(2) .feed-stat-kpi-val { color: #5cffd7; }
.feed-stat-kpi:nth-child(3) .feed-stat-kpi-val { color: #ff8ec8; }
.feed-stat-kpi:nth-child(4) .feed-stat-kpi-val { color: #c9b6ff; }

.feed-stat-kpi-lab {
    display: block;
    margin-top: 2px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
}

.feed-stat-chart-canvas-wrap {
    position: relative;
    height: 220px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(199, 125, 255, 0.2);
    overflow: hidden;
}

.feed-stat-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.feed-stat-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Chakra Petch", sans-serif;
    color: rgba(255, 255, 255, 0.5);
}

.feed-stat-chart-empty[hidden] { display: none !important; }

.feed-stat-chart-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.feed-stat-chart-legend i {
    display: inline-block;
    width: 14px;
    height: 3px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: middle;
}

.feed-leg-words { background: #ffe56a; box-shadow: 0 0 8px rgba(255, 229, 106, 0.7); }
.feed-leg-times { background: #5cffd7; box-shadow: 0 0 8px rgba(92, 255, 215, 0.7); }

@media (max-width: 520px) {
    .feed-stat-chart-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.word-feed-mode .word-list.feed-word-list {
    flex: 1;
    min-height: 0;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 0;
    gap: 0;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
    background: transparent;
    contain: layout style;
}

body.word-feed-mode .word-list.feed-word-list::-webkit-scrollbar {
    display: none;
}

/* 单卡：侧栏展开时卡片略收，给列表留位 */
body.word-feed-mode .feed-word-list > .word-card {
    box-sizing: border-box;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(199, 125, 255, 0.18);
    /* 半透明略加强，保证正文可读（战绩已不在背景） */
    background: rgba(36, 8, 58, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 14px 72px 20px 16px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    overflow: hidden;
    position: relative;
    padding-left: 16px !important;
    padding-right: 72px !important;
    padding-bottom: 20px !important;
}

body.word-feed-mode .feed-word-list > .word-card.active {
    background: rgba(48, 10, 72, 0.82);
    box-shadow: inset 0 0 0 1px rgba(199, 125, 255, 0.28);
}

/* 卡片主体 */
.feed-card-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 4px;
    padding-top: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(199, 125, 255, 0.35) transparent;
    container-type: inline-size;
    container-name: feed-card;
}

body.word-feed-mode .feed-card-main .word-header {
    margin-bottom: 0;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    position: relative;
    /* 英语 / 中文整体下移，避开顶区 */
    padding-top: clamp(28px, 6.5vh, 56px);
}

/* 英文 + 音标 + 中文：整体圆角可点，点击重播发音；宽度锁定为卡片 80%，不随词条长短伸缩 */
body.word-feed-mode .feed-lex-play {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 80%;
    width: 80cqi;
    max-width: 80%;
    max-width: 80cqi;
    min-width: 0;
    flex: 0 0 auto;
    align-self: center;
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0 auto 4px;
    padding: 16px 20px 18px;
    border-radius: 22px;
    border: 1px solid rgba(199, 125, 255, 0.32);
    background:
        linear-gradient(180deg, rgba(58, 12, 83, 0.42), rgba(18, 4, 36, 0.55));
    box-shadow:
        0 0 0 1px rgba(92, 255, 215, 0.06),
        0 10px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        transform 0.16s cubic-bezier(0.2, 1.4, 0.4, 1),
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
    outline: none;
}

body.word-feed-mode .feed-lex-play-hint {
    display: none !important;
}

body.word-feed-mode .feed-lex-play:hover,
body.word-feed-mode .feed-lex-play:focus-visible {
    border-color: rgba(92, 255, 215, 0.45);
    box-shadow:
        0 0 0 1px rgba(92, 255, 215, 0.14),
        0 12px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.word-feed-mode .feed-lex-play:active {
    transform: scale(0.985);
}

body.word-feed-mode .feed-lex-play.is-playing {
    border-color: rgba(255, 229, 106, 0.55);
    box-shadow:
        0 0 0 2px rgba(255, 229, 106, 0.22),
        0 12px 34px rgba(0, 0, 0, 0.3),
        0 0 28px rgba(92, 255, 215, 0.18);
    animation: feed-lex-play-pulse 0.65s ease;
}

@keyframes feed-lex-play-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 词条区内的可点单词：交给整体重播，去掉单独搜索样式冲突 */
body.word-feed-mode .feed-lex-play .word-eng-token.clickable {
    cursor: inherit;
    text-decoration: none;
}

body.word-feed-mode .feed-lex-play .word-field-wrap {
    width: 100%;
}

body.word-feed-mode .word-reveal-all-btn {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
    border-radius: 18px;
    margin: 12px auto 8px;
    background: rgba(92, 255, 215, 0.16);
    border: 1px solid rgba(92, 255, 215, 0.38);
    color: #5cffd7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

body.word-feed-mode .word-reveal-all-btn:hover,
body.word-feed-mode .word-reveal-all-btn:focus-visible {
    background: rgba(92, 255, 215, 0.28);
    color: #ffe56a;
    border-color: rgba(255, 229, 106, 0.5);
}

body.word-feed-mode .word-reveal-all-btn:active {
    transform: scale(0.96);
}

body.word-feed-mode .feed-lex-play .word-english {
    margin-bottom: 4px;
}

body.word-feed-mode .feed-lex-play .word-phonetic {
    margin-bottom: 2px;
}

/* 播放 / 录音：在中文等内容之后，贴屏幕（卡片）底部 */
body.word-feed-mode .feed-card-audio-bar {
    flex: 0 0 auto;
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px max(18px, calc(10px + env(safe-area-inset-bottom, 0px)));
    z-index: 3;
    box-sizing: border-box;
}

/* ----- 底部大号「标熟」游戏 CTA（录音条上方） ----- */
.feed-master-cta {
    --feed-master-ink: #ffe56a;
    --feed-master-cyan: #5cffd7;
    --feed-master-pink: #ff6bcb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex: 0 0 auto;
    width: min(100%, 360px);
    min-height: 96px;
    margin: auto auto 6px;
    padding: 20px 24px;
    border: none;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 107, 203, 0.18), rgba(92, 255, 215, 0.1) 48%, rgba(255, 229, 106, 0.16)),
        rgba(18, 4, 36, 0.72);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #fff8d6;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    transition: transform 0.16s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.16s ease, filter 0.16s ease;
    touch-action: manipulation;
    z-index: 3;
}

.feed-master-cta-glow {
    position: absolute;
    inset: -40% -20%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 229, 106, 0.35), transparent 42%),
        radial-gradient(circle at 78% 60%, rgba(92, 255, 215, 0.28), transparent 46%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
    animation: feed-master-glow 3.6s ease-in-out infinite;
}

.feed-master-cta-icon,
.feed-master-cta-copy,
.feed-master-cta-badge {
    position: relative;
    z-index: 1;
}

.feed-master-cta-icon {
    display: none;
}

.feed-master-cta-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.feed-master-cta-title {
    font-family: "Russo One", "Chakra Petch", sans-serif;
    font-size: clamp(1.65rem, 5.5vw, 2.15rem);
    line-height: 1;
    letter-spacing: 0.06em;
    color: #fff8d6;
    text-shadow:
        0 0 10px rgba(255, 229, 106, 0.45),
        0 1px 0 rgba(90, 40, 0, 0.35);
}

.feed-master-cta-sub {
    font-family: "Chakra Petch", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--feed-master-cyan);
    opacity: 0.92;
}

.feed-master-cta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 4px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--feed-master-pink), var(--feed-master-cyan));
    color: #1a0633;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(255, 107, 203, 0.35);
    flex-shrink: 0;
}

.feed-master-cta:hover,
.feed-master-cta:focus-visible {
    filter: brightness(1.08);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    outline: none;
}

.feed-master-cta:active,
.feed-master-cta.is-punching {
    transform: scale(0.96);
}

.feed-master-cta.is-armed {
    filter: brightness(1.12);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    animation: feed-master-arm-pulse 0.45s ease;
}

.feed-master-cta.is-armed .feed-master-cta-sub {
    color: #fff;
}

.feed-master-cta:disabled {
    opacity: 0.72;
    cursor: wait;
}

@keyframes feed-master-glow {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
    50% { transform: translate3d(4%, -3%, 0) scale(1.06); opacity: 1; }
}

@keyframes feed-master-arm-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* ----- 标熟特效：按钮往两侧放烟花 + 飞向右下角；连击倍率在战绩面板 ----- */
.feed-master-fx {
    position: absolute;
    inset: 0;
    z-index: 14;
    pointer-events: none;
    overflow: hidden;
}

.feed-master-burst {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.feed-master-burst.is-on {
    animation: feed-master-burst-life 2.15s ease-out forwards;
}

.feed-master-rail {
    position: absolute;
    top: 6%;
    bottom: 14%;
    width: min(56px, 14vw);
    border-radius: 999px;
    opacity: 0;
    filter: blur(1px);
    pointer-events: none;
}

.feed-master-rail--left {
    left: max(0px, env(safe-area-inset-left, 0px));
    background:
        linear-gradient(180deg, transparent 0%, rgba(255, 229, 106, 0.5) 20%, rgba(92, 255, 215, 0.28) 58%, transparent 100%);
    box-shadow: 0 0 24px rgba(255, 229, 106, 0.28);
}

.feed-master-rail--right {
    right: max(0px, env(safe-area-inset-right, 0px));
    background:
        linear-gradient(180deg, transparent 0%, rgba(255, 107, 203, 0.48) 22%, rgba(92, 255, 215, 0.26) 60%, transparent 100%);
    box-shadow: 0 0 24px rgba(255, 107, 203, 0.26);
}

.feed-master-burst.is-on .feed-master-rail--left {
    animation: feed-master-rail-pulse 1.5s ease-out forwards;
}

.feed-master-burst.is-on .feed-master-rail--right {
    animation: feed-master-rail-pulse 1.5s ease-out forwards;
    animation-delay: 0.06s;
}

.feed-master-burst.is-hot .feed-master-rail {
    width: min(68px, 16vw);
}

.feed-master-burst.is-ultra .feed-master-rail {
    width: min(82px, 20vw);
    filter: blur(0.2px);
}

/* 标熟按钮中心闪光 */
.feed-master-origin {
    position: absolute;
    left: var(--ox);
    top: var(--oy);
    width: 0;
    height: 0;
    z-index: 4;
    pointer-events: none;
}

.feed-master-origin-flash {
    position: absolute;
    left: 0;
    top: 0;
    width: 140px;
    height: 90px;
    margin: -45px 0 0 -70px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(255, 229, 106, 0.45) 28%, transparent 72%);
    opacity: 0;
    animation: feed-master-origin-flash 0.62s ease-out forwards;
}

.feed-master-origin-core {
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    background: #fff8d6;
    box-shadow:
        0 0 16px #ffe56a,
        0 0 36px #ff6bcb;
    animation: feed-master-origin-core 0.55s ease-out forwards;
}

.feed-master-burst.is-ultra .feed-master-origin-flash {
    width: 180px;
    height: 110px;
    margin: -55px 0 0 -90px;
}

/* 从按钮往左右两侧喷出的粒子 */
.feed-master-jet {
    position: absolute;
    left: var(--ox);
    top: var(--oy);
    width: var(--sz, 7px);
    height: var(--sz, 7px);
    margin: calc(var(--sz, 7px) / -2) 0 0 calc(var(--sz, 7px) / -2);
    border-radius: 50%;
    background: var(--c, #ffe56a);
    box-shadow:
        0 0 10px var(--c, #ffe56a),
        0 0 22px var(--c, #ffe56a),
        0 0 34px rgba(255, 255, 255, 0.35);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    animation: feed-master-jet var(--dur, 0.85s) cubic-bezier(0.12, 0.72, 0.22, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.feed-master-jet.is-streak {
    width: calc(var(--sz, 6px) * 0.55);
    height: calc(var(--sz, 6px) * 1.8);
    margin: calc(var(--sz, 6px) * -0.9) 0 0 calc(var(--sz, 6px) * -0.28);
    border-radius: 2px;
}

.feed-master-jet--left {
    box-shadow:
        0 0 8px var(--c, #ffe56a),
        10px 0 16px -2px var(--c, #ffe56a);
}

.feed-master-jet--right {
    box-shadow:
        0 0 8px var(--c, #ff6bcb),
        -10px 0 16px -2px var(--c, #ff6bcb);
}

/* 从按钮射向两侧的火箭，炸开前飞行 */
.feed-master-rocket {
    position: absolute;
    left: var(--ox);
    top: var(--oy);
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 10px var(--c, #ffe56a),
        0 0 20px var(--c, #ffe56a);
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    animation: feed-master-rocket var(--dur, 0.34s) cubic-bezier(0.2, 0.05, 0.25, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.feed-master-rocket--left {
    box-shadow:
        0 0 10px var(--c, #ffe56a),
        14px 0 18px -1px var(--c, #ffe56a);
}

.feed-master-rocket--right {
    box-shadow:
        0 0 10px var(--c, #ff6bcb),
        -14px 0 18px -1px var(--c, #ff6bcb);
}

/* 两侧炸开的烟花（坐标为按钮射出后的落点，单位 px） */
.feed-master-fw {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 0;
    height: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: scale(var(--scale, 1));
    animation: feed-master-fw-life 1.05s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.feed-master-fw-flash {
    position: absolute;
    left: 0;
    top: 0;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, transparent 68%);
    opacity: 0;
    animation: feed-master-fw-flash 0.55s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.feed-master-fw-core {
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: var(--c, #ffe56a);
    box-shadow:
        0 0 14px var(--c, #ffe56a),
        0 0 28px var(--c, #ffe56a);
    animation: feed-master-fw-core 0.7s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.feed-master-fw-spark {
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--c, #ffe56a);
    box-shadow:
        0 0 8px var(--c, #ffe56a),
        0 0 14px var(--c, #ffe56a);
    opacity: 0;
    animation: feed-master-fw-spark 0.8s cubic-bezier(0.15, 0.75, 0.25, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.feed-master-fw-spark:nth-child(3n) {
    width: 3px;
    height: 11px;
    margin: -5.5px 0 0 -1.5px;
    border-radius: 2px;
}

.feed-master-burst.is-ultra .feed-master-fw-core {
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
}

/* 沿屏幕边缘飞速飞向右下角战绩卡的光子 */
.feed-master-photon {
    position: absolute;
    width: var(--sz, 7px);
    height: var(--sz, 7px);
    margin: 0;
    border-radius: 50%;
    background: var(--c, #ffe56a);
    box-shadow:
        0 0 10px var(--c, #ffe56a),
        0 0 18px #fff8c8,
        -12px 0 14px -1px var(--c, #ffe56a);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    will-change: left, top, right, opacity, transform;
}

.feed-master-photon--left {
    left: max(6px, env(safe-area-inset-left, 0px));
    top: var(--sy, 40%);
    animation: feed-master-photon-left var(--dur, 0.7s) cubic-bezier(0.18, 0.05, 0.15, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.feed-master-photon--right {
    right: max(6px, env(safe-area-inset-right, 0px));
    left: auto;
    top: var(--sy, 40%);
    box-shadow:
        0 0 10px var(--c, #ff6bcb),
        0 0 18px #ffd0ef,
        12px 0 14px -1px var(--c, #ff6bcb);
    animation: feed-master-photon-right var(--dur, 0.7s) cubic-bezier(0.18, 0.05, 0.15, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.feed-arena.is-photon-hit .feed-arena-core {
    animation: feed-arena-photon-hit 0.7s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes feed-master-burst-life {
    0% { opacity: 0; }
    8% { opacity: 1; }
    78% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes feed-master-rail-pulse {
    0% { opacity: 0; transform: scaleY(0.55); }
    18% { opacity: 0.9; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1.05); }
}

@keyframes feed-master-origin-flash {
    0% { opacity: 0; transform: scale(0.25); }
    28% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.55); }
}

@keyframes feed-master-origin-core {
    0% { opacity: 0; transform: scale(0.3); }
    30% { opacity: 1; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(0.2); }
}

@keyframes feed-master-jet {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.35);
    }
    10% {
        opacity: 1;
        transform: translate3d(calc(var(--dx) * 0.16), calc(var(--dy) * 0.12), 0) scale(1.2);
    }
    68% {
        opacity: 0.92;
        transform: translate3d(var(--dx), var(--dy), 0) scale(0.72);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--dx), calc(var(--dy) + 22px), 0) scale(0.12);
    }
}

@keyframes feed-master-rocket {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.35);
    }
    12% {
        opacity: 1;
        transform: translate3d(calc(var(--dx) * 0.14), calc(var(--dy) * 0.14), 0) scale(1.2);
    }
    82% {
        opacity: 1;
        transform: translate3d(var(--dx), var(--dy), 0) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--dx), var(--dy), 0) scale(0.15);
    }
}

@keyframes feed-master-fw-life {
    0% { opacity: 0; }
    8% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes feed-master-fw-flash {
    0% { opacity: 0; transform: scale(0.2); }
    30% { opacity: 0.95; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.45); }
}

@keyframes feed-master-fw-core {
    0% { opacity: 0; transform: scale(0.2); }
    25% { opacity: 1; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(0.4); }
}

@keyframes feed-master-fw-spark {
    0% {
        opacity: 0;
        transform: rotate(var(--a, 0deg)) translateY(0) scale(0.4);
    }
    12% {
        opacity: 1;
        transform: rotate(var(--a, 0deg)) translateY(0) scale(1.15);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--a, 0deg)) translateY(calc(var(--d, 40px) * -1)) scale(0.15);
    }
}

@keyframes feed-master-photon-left {
    0% {
        opacity: 0;
        top: var(--sy, 40%);
        left: max(6px, env(safe-area-inset-left, 0px));
        transform: scale(0.4);
    }
    8% {
        opacity: 1;
        transform: scale(1.15);
    }
    42% {
        opacity: 1;
        top: 86%;
        left: max(8px, env(safe-area-inset-left, 0px));
        transform: scale(1);
    }
    100% {
        opacity: 0;
        top: calc(100% - 52px);
        left: calc(100% - 64px);
        transform: scale(0.25);
    }
}

@keyframes feed-master-photon-right {
    0% {
        opacity: 0;
        top: var(--sy, 40%);
        right: max(6px, env(safe-area-inset-right, 0px));
        transform: scale(0.4);
    }
    8% {
        opacity: 1;
        transform: scale(1.15);
    }
    42% {
        opacity: 1;
        top: 86%;
        right: max(8px, env(safe-area-inset-right, 0px));
        transform: scale(1);
    }
    100% {
        opacity: 0;
        top: calc(100% - 52px);
        right: 36px;
        transform: scale(0.25);
    }
}

@keyframes feed-arena-photon-hit {
    0% { transform: scale(1); filter: brightness(1); }
    35% { transform: scale(1.06); filter: brightness(1.25); }
    100% { transform: scale(1); filter: brightness(1); }
}


/* 战绩面板连击倍率 x2 / x3 … */
.feed-arena-combo {
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translate(-50%, -100%);
    z-index: 3;
    padding: 4px 12px 6px;
    border-radius: 999px;
    background: rgba(12, 2, 28, 0.88);
    border: 1px solid rgba(255, 229, 106, 0.55);
    box-shadow:
        0 0 18px rgba(255, 229, 106, 0.35),
        0 8px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.feed-arena-combo[hidden] {
    display: none !important;
}

.feed-arena-combo-num {
    font-family: "Russo One", "Chakra Petch", sans-serif;
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: #ffe56a;
    text-shadow: 0 0 12px rgba(255, 229, 106, 0.75);
}

.feed-arena-combo.is-pop {
    animation: feed-arena-combo-pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.feed-arena-combo.is-hot {
    border-color: rgba(255, 107, 203, 0.6);
}

.feed-arena-combo.is-hot .feed-arena-combo-num {
    color: #ffb4e0;
    text-shadow: 0 0 14px rgba(255, 107, 203, 0.75);
}

.feed-arena-combo.is-ultra {
    border-color: rgba(255, 229, 106, 0.8);
    box-shadow:
        0 0 0 2px rgba(255, 229, 106, 0.2),
        0 0 28px rgba(255, 107, 203, 0.4),
        0 10px 22px rgba(0, 0, 0, 0.4);
}

.feed-arena-combo.is-ultra .feed-arena-combo-num {
    font-size: clamp(1.55rem, 5.5vw, 2.1rem);
    background: linear-gradient(90deg, #ffe56a, #ff6bcb, #5cffd7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 229, 106, 0.55));
}

.feed-arena.is-combo .feed-arena-core {
    box-shadow:
        0 0 0 1px rgba(255, 229, 106, 0.35),
        0 0 22px rgba(255, 229, 106, 0.28),
        0 8px 22px rgba(0, 0, 0, 0.35);
}

.feed-arena.is-combo-hot .feed-arena-core {
    box-shadow:
        0 0 0 1px rgba(255, 107, 203, 0.4),
        0 0 26px rgba(255, 107, 203, 0.3),
        0 8px 22px rgba(0, 0, 0, 0.35);
}

.feed-arena.is-combo-ultra .feed-arena-core {
    box-shadow:
        0 0 0 2px rgba(255, 229, 106, 0.35),
        0 0 32px rgba(92, 255, 215, 0.28),
        0 0 40px rgba(255, 107, 203, 0.25),
        0 8px 22px rgba(0, 0, 0, 0.35);
}

.feed-arena.is-mastered .feed-arena-mastered span {
    color: #ffe56a;
    text-shadow: 0 0 10px rgba(255, 229, 106, 0.8);
    animation: feed-num-pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.feed-arena.is-dictation .feed-arena-dictation span {
    color: #5cffd7;
    text-shadow: 0 0 10px rgba(92, 255, 215, 0.85);
    animation: feed-num-pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes feed-arena-combo-pop {
    0% { transform: translate(-50%, -100%) scale(0.55); opacity: 0.2; }
    55% { transform: translate(-50%, -100%) scale(1.18); opacity: 1; }
    100% { transform: translate(-50%, -100%) scale(1); opacity: 1; }
}

body.word-feed-mode .feed-card-audio-bar .word-side-controls {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    transform: none;
    order: unset;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26, 6, 51, 0.55);
    border: 1px solid rgba(199, 125, 255, 0.28);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

body.word-feed-mode .feed-card-main .word-content {
    text-align: center;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

body.word-feed-mode .feed-card-main .word-field-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.word-feed-mode .feed-card-main .word-score-box {
    position: absolute;
    top: 0;
    right: 0;
}

body.word-feed-mode .feed-card-main .word-english {
    font-size: clamp(2rem, 9vw, 3.4rem);
    font-weight: 750;
    line-height: 1.2;
    margin-bottom: 10px;
    /* 不主动断词；仅当超出固定 80% 词条区时才被迫换行 */
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: none;
    text-align: center;
    letter-spacing: 0.01em;
}

body.word-feed-mode .feed-word-list > .word-card[data-category="2"] .feed-card-main .word-english,
body.word-feed-mode .feed-word-list > .word-card.is-long-text .feed-card-main .word-english {
    font-size: clamp(1.35rem, 4.6vw, 2.1rem);
    line-height: 1.35;
    font-weight: 700;
}

body.word-feed-mode .feed-word-list > .word-card[data-category="3"] .feed-card-main .word-english {
    font-size: clamp(1.05rem, 3.4vw, 1.55rem);
    line-height: 1.45;
    font-weight: 650;
    text-align: left;
}

body.word-feed-mode .feed-card-main .word-phonetic {
    font-size: clamp(1.05rem, 3.2vw, 1.45rem);
    margin-bottom: 8px;
    text-align: center;
    opacity: 0.92;
}

body.word-feed-mode .feed-card-main .word-chinese {
    font-size: clamp(1.05rem, 3.6vw, 1.5rem);
    line-height: 1.45;
    word-break: break-word;
    text-align: center;
    justify-content: center;
    font-weight: 500;
    opacity: 0.95;
}

body.word-feed-mode .feed-card-main .word-detail {
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
    max-width: 36em;
}

body.word-feed-mode .feed-card-main .word-associations {
    text-align: left;
    width: 100%;
    max-width: 36em;
}

body.word-feed-mode .feed-card-main .word-images {
    flex: 0 1 auto;
    min-height: 0;
    margin-top: 4px;
}

body.word-feed-mode .feed-card-main .word-images.show,
body.word-feed-mode .feed-card-main .word-images.word-images-visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

body.word-feed-mode .feed-card-main .word-images-container {
    max-height: min(38vh, 360px);
    width: 100%;
}

/* 覆盖 word.css 小屏 max-height: 60px */
body.word-feed-mode .feed-card-main .word-images-container img,
body.word-feed-mode .feed-card-main .word-images-container .word-image,
body.word-feed-mode .feed-card-main .word-image,
body.word-feed-mode .feed-card-main .word-image-video-el {
    max-height: min(38vh, 360px) !important;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* 刷词模式：禁止点击放大 */
    pointer-events: none;
    cursor: default;
}

body.word-feed-mode .feed-card-main .word-image-video,
body.word-feed-mode .feed-card-main .word-image-video-play {
    pointer-events: auto !important;
    cursor: pointer;
}

body.word-feed-mode .feed-card-audio-bar .word-main-play-btn,
body.word-feed-mode .feed-card-audio-bar .word-record-btn,
body.word-feed-mode .feed-card-audio-bar .word-recording-play-btn,
body.word-feed-mode .feed-card-audio-bar .word-recording-history-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    opacity: 0.95;
}

/* ----- 右侧操作栏（覆盖 word.css ≤768 隐藏逻辑） ----- */
body.word-feed-mode .feed-word-list > .word-card > .word-actions {
    position: absolute !important;
    right: max(8px, env(safe-area-inset-right, 0px));
    top: 12px;
    bottom: auto;
    transform: none;
    margin: 0 !important;
    z-index: 8;
    width: auto;
    max-height: calc(100% - 168px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

body.word-feed-mode .feed-word-list > .word-card > .word-actions .word-actions-content {
    pointer-events: auto;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px 2px 8px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    scrollbar-width: none;
}

body.word-feed-mode .feed-word-list > .word-card > .word-actions .word-actions-content::-webkit-scrollbar {
    display: none;
}

body.word-feed-mode .feed-word-list > .word-card > .word-actions .word-actions-toggle {
    display: none !important;
}

body.word-feed-mode .feed-word-list > .word-card > .word-actions .action-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    opacity: 0.92 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    gap: 0 !important;
    background: rgba(58, 12, 83, 0.88);
    border: 1px solid rgba(199, 125, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    touch-action: manipulation;
    flex-shrink: 0;
}

/* 完成按钮置顶，样式与其他操作按钮一致 */
body.word-feed-mode .feed-word-list > .word-card > .word-actions .complete-btn {
    order: -20;
}

body.word-feed-mode .feed-word-list > .word-card > .word-actions .action-btn:active {
    opacity: 1 !important;
    transform: scale(0.94);
}

body.word-feed-mode .feed-word-list > .word-card > .word-actions .word-numeric-id-wrap {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    order: 40;
}

body.word-feed-mode .feed-word-list > .word-card > .word-actions .dict-text-btn {
    width: auto !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 8px !important;
    border-radius: 22px !important;
    font-size: 0.7rem;
    font-weight: 700;
}

body.word-feed-mode .feed-word-list > .word-card > .word-actions .action-label {
    display: none !important;
}

/* 上滑提示 */
.feed-hint {
    position: absolute;
    left: 50%;
    bottom: max(72px, calc(56px + env(safe-area-inset-bottom, 0px)));
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26, 6, 51, 0.7);
    border: 1px solid rgba(199, 125, 255, 0.3);
    color: rgba(224, 170, 255, 0.9);
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feed-hint.visible {
    opacity: 1;
    animation: feed-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes feed-hint-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* =============================================================================
 * 平板 / 手机：侧栏仍固定占位展开（卡片让渡），可收起到窄条
 * ============================================================================= */
@media (max-width: 900px) {
    body.word-feed-mode .main-content.feed-main {
        grid-template-columns: 240px minmax(0, 1fr);
        position: relative;
    }

    body.word-feed-mode .main-content.feed-main.nav-collapsed {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    /* 不再用遮罩抽屉 */
    .feed-nav-backdrop {
        display: none !important;
    }

    body.word-feed-mode .feed-word-list > .word-card {
        padding: 12px 64px 40px 12px !important;
        padding-top: 14px !important;
    }

    body.word-feed-mode .feed-card-main .word-english {
        font-size: clamp(1.7rem, 7vw, 2.6rem);
    }

    body.word-feed-mode .feed-card-main .word-chinese {
        font-size: clamp(0.98rem, 3.4vw, 1.28rem);
    }

    body.word-feed-mode .feed-card-main .word-images-container,
    body.word-feed-mode .feed-card-main .word-images-container img,
    body.word-feed-mode .feed-card-main .word-images-container .word-image,
    body.word-feed-mode .feed-card-main .word-image,
    body.word-feed-mode .feed-card-main .word-image-video-el {
        max-height: min(28vh, 240px) !important;
    }

    body.word-feed-mode .feed-word-list > .word-card > .word-actions .action-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    body.word-feed-mode .feed-word-list > .word-card > .word-actions .word-actions-content {
        gap: 7px;
        max-height: min(78dvh, 560px);
    }

    .feed-nav-item {
        padding: 9px 8px;
        min-height: 40px;
    }

    .feed-nav-item-eng {
        font-size: 0.82rem;
    }

    .feed-nav-item-zh {
        font-size: 0.68rem;
    }
}

/* =============================================================================
 * 手机竖屏：侧栏更窄，卡片再让一点
 * ============================================================================= */
@media (max-width: 640px) {
    body.word-feed-mode .main-content.feed-main {
        grid-template-columns: minmax(0, 1fr);
    }

    body.word-feed-mode .main-content.feed-main.nav-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 窄屏：侧栏改为浮层，收起时不占列宽 */
    body.word-feed-mode .feed-nav {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(78vw, 260px);
        z-index: 40;
        transform: translateX(0);
        transition: transform 0.22s ease, box-shadow 0.22s ease;
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.45);
    }

    /* 收起：不占列，只留左上角展开按钮 */
    body.word-feed-mode .main-content.feed-main.nav-collapsed .feed-nav {
        width: 0;
        min-width: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        overflow: visible;
        pointer-events: none;
    }

    body.word-feed-mode .main-content.feed-main.nav-collapsed .feed-nav-header {
        position: absolute;
        left: 6px;
        top: 8px;
        z-index: 42;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        pointer-events: auto;
    }

    body.word-feed-mode .main-content.feed-main.nav-collapsed .feed-nav-list,
    body.word-feed-mode .main-content.feed-main.nav-collapsed .feed-nav-title,
    body.word-feed-mode .main-content.feed-main.nav-collapsed .feed-nav-count,
    body.word-feed-mode .main-content.feed-main.nav-collapsed .feed-nav-hide-zh-btn {
        display: none !important;
    }

    body.word-feed-mode .main-content.feed-main.nav-collapsed .feed-nav-toggle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(26, 6, 51, 0.82);
        border: 1px solid rgba(199, 125, 255, 0.45);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }

    body.word-feed-mode .main-content.feed-main.nav-collapsed .feed-word-list > .word-card {
        padding-left: 10px !important;
    }

    /* 窄屏顶栏搜索：只留搜索按钮，展开后再出输入框 */
    body.word-feed-mode .search-container {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
    }

    body.word-feed-mode .search-container .search-input,
    body.word-feed-mode .search-container .search-btn {
        display: none !important;
    }

    body.word-feed-mode .search-container .search-toggle {
        display: inline-flex !important;
    }

    body.word-feed-mode .search-container.expanded {
        flex: 1 1 auto;
        min-width: 0;
        max-width: min(70vw, 220px);
    }

    body.word-feed-mode .search-container.expanded .search-input {
        display: block !important;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    body.word-feed-mode .search-container.expanded .search-btn {
        display: inline-flex !important;
    }

    body.word-feed-mode .search-container.expanded .search-toggle {
        display: none !important;
    }

    body.word-feed-mode .feed-word-list > .word-card {
        padding: 10px 56px 36px 10px !important;
    }



    body.word-feed-mode .feed-card-audio-bar {
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
        gap: 8px;
    }

    body.word-feed-mode .feed-card-audio-bar .word-side-controls {
        transform: none;
        gap: 6px;
        padding: 5px 8px;
    }

    body.word-feed-mode .feed-card-audio-bar .word-main-play-btn,
    body.word-feed-mode .feed-card-audio-bar .word-record-btn,
    body.word-feed-mode .feed-card-audio-bar .word-recording-play-btn,
    body.word-feed-mode .feed-card-audio-bar .word-recording-history-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.85rem;
    }

    /* 手机：右下角战绩卡缩小，隐藏听写数 */
    .feed-arena--corner {
        right: max(6px, env(safe-area-inset-right, 0px));
        bottom: max(8px, calc(6px + env(safe-area-inset-bottom, 0px)));
    }

    .feed-arena--corner .feed-arena-core {
        min-width: 0;
        width: auto;
        padding: 8px 10px 9px;
        border-radius: 12px;
        box-shadow:
            0 0 0 1px rgba(92, 255, 215, 0.06),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .feed-arena--corner .feed-arena-tag {
        margin-bottom: 4px;
        padding: 1px 7px;
        font-size: 0.58rem;
        letter-spacing: 0.08em;
        gap: 4px;
    }

    .feed-arena--corner .feed-arena-tag i {
        font-size: 0.58rem;
    }

    .feed-arena--corner .feed-arena-score {
        gap: 3px;
    }

    .feed-arena--corner .feed-arena-num {
        font-size: 1.15rem;
    }

    .feed-arena--corner .feed-arena-unit {
        font-size: 0.62rem;
    }

    .feed-arena--corner .feed-arena-slash {
        height: 0.95rem;
        width: 1.5px;
        margin-bottom: 0.15rem;
    }

    .feed-arena--corner .feed-arena-mastered {
        margin-top: 4px;
        font-size: 0.62rem;
    }

    .feed-arena--corner .feed-arena-dictation {
        display: none;
    }

    .feed-arena--corner .feed-arena-float {
        font-size: 0.7rem;
        right: 4px;
    }

    .feed-master-cta {
        width: min(100%, 100%);
        min-height: 88px;
        gap: 12px;
        padding: 18px 18px;
        border-radius: 16px;
    }

    .feed-master-cta-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }

    .feed-master-cta-title {
        font-size: clamp(1.45rem, 6.5vw, 1.9rem);
    }

    body.word-feed-mode .feed-card-main .word-english {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
    }

    body.word-feed-mode .feed-card-main .word-phonetic {
        font-size: clamp(0.92rem, 3.2vw, 1.12rem);
    }

    body.word-feed-mode .feed-card-main .word-chinese {
        font-size: clamp(0.92rem, 3.6vw, 1.15rem);
    }

    body.word-feed-mode .feed-card-main .word-images-container,
    body.word-feed-mode .feed-card-main .word-images-container img,
    body.word-feed-mode .feed-card-main .word-images-container .word-image,
    body.word-feed-mode .feed-card-main .word-image,
    body.word-feed-mode .feed-card-main .word-image-video-el {
        max-height: min(24vh, 180px) !important;
    }

    body.word-feed-mode .feed-word-list > .word-card > .word-actions {
        right: max(4px, env(safe-area-inset-right, 0px));
        top: 8px;
    }

    body.word-feed-mode .feed-word-list > .word-card > .word-actions .action-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    body.word-feed-mode .feed-word-list > .word-card > .word-actions .dict-text-btn {
        min-width: 38px !important;
        height: 38px !important;
        font-size: 0.62rem;
        padding: 0 5px !important;
    }

    body.word-feed-mode .feed-word-list > .word-card > .word-actions .word-actions-content {
        gap: 5px;
        max-height: min(72dvh, 480px);
    }

    .feed-hint {
        font-size: 0.68rem;
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }

    body.word-feed-mode .navbar-controls {
        gap: 8px !important;
    }

    .feed-nav-title {
        font-size: 0.75rem;
    }

    .feed-nav-header {
        padding: 8px 6px;
        gap: 4px;
    }
}

/* =============================================================================
 * 矮屏 / 横屏手机：优先保证卡片可用高度
 * ============================================================================= */
@media (max-height: 520px), (orientation: landscape) and (max-height: 500px) {
    body.word-feed-mode .feed-word-list > .word-card {
        padding-top: 10px !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    }

    body.word-feed-mode .feed-card-main .word-english {
        font-size: clamp(1.45rem, 5vw, 2rem);
        margin-bottom: 4px;
    }

    body.word-feed-mode .feed-card-main .word-chinese {
        font-size: clamp(0.95rem, 3vw, 1.15rem);
    }

    body.word-feed-mode .feed-card-main .word-images-container,
    body.word-feed-mode .feed-card-main .word-images-container img,
    body.word-feed-mode .feed-card-main .word-images-container .word-image,
    body.word-feed-mode .feed-card-main .word-image,
    body.word-feed-mode .feed-card-main .word-image-video-el {
        max-height: min(40vh, 160px) !important;
    }

    body.word-feed-mode .feed-word-list > .word-card > .word-actions .action-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    body.word-feed-mode .feed-word-list > .word-card > .word-actions .word-actions-content {
        gap: 4px;
        max-height: 88dvh;
    }

    .feed-hint {
        display: none;
    }

    .feed-master-cta {
        min-height: 72px;
        padding: 14px 16px;
        gap: 10px;
    }

    .feed-master-cta-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .feed-master-cta-title {
        font-size: 1.4rem;
    }

    .feed-master-cta-sub {
        font-size: 0.62rem;
    }

    .feed-master-cta-badge {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* 平板横屏：侧栏略窄，内容区更大 */
@media (min-width: 901px) and (max-width: 1180px) {
    body.word-feed-mode .main-content.feed-main {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    body.word-feed-mode .feed-word-list > .word-card {
        padding: 16px 76px 22px 18px !important;
    }
}

/* ========== 听写拼写组件 ========== */
body.word-feed-mode.feed-dictation-on .word-card:not(.feed-dictation-revealed) .feed-lex-play .word-english {
    filter: blur(7px);
    user-select: none;
    transition: filter 0.25s ease;
}

body.word-feed-mode .feed-dictation {
    margin: 12px 0 4px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(18, 42, 48, 0.72), rgba(12, 28, 36, 0.55));
    border: 1px solid rgba(92, 255, 215, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.word-feed-mode .feed-dictation-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(92, 255, 215, 0.85);
}

body.word-feed-mode .feed-dictation-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.word-feed-mode .feed-dictation-cells {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

body.word-feed-mode .feed-dictation-cell {
    width: 28px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.28);
    font-family: "Chakra Petch", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff8d6;
    line-height: 1;
}

body.word-feed-mode .feed-dictation-cell.is-filled {
    border-color: rgba(92, 255, 215, 0.55);
    background: rgba(92, 255, 215, 0.12);
}

body.word-feed-mode .feed-dictation-cell.is-cursor {
    border-color: #ffe56a;
    box-shadow: 0 0 0 2px rgba(255, 229, 106, 0.25);
}

body.word-feed-mode .feed-dictation-cell.is-ok {
    border-color: rgba(92, 255, 150, 0.85);
    background: rgba(56, 200, 120, 0.28);
    color: #b8ffd0;
}

body.word-feed-mode .feed-dictation-cell.is-bad {
    border-color: rgba(255, 110, 130, 0.9);
    background: rgba(200, 48, 72, 0.32);
    color: #ffc4cc;
}

body.word-feed-mode .feed-dictation-submit {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(92, 255, 215, 0.45);
    background: linear-gradient(135deg, rgba(92, 255, 215, 0.28), rgba(255, 229, 106, 0.18));
    color: #e8fff8;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

body.word-feed-mode .feed-dictation-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

body.word-feed-mode .feed-dictation-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 44px;
    opacity: 0;
    border: 0;
    padding: 0;
    margin: 0;
    caret-color: transparent;
    color: transparent;
    background: transparent;
    z-index: 2;
}

body.word-feed-mode .feed-dictation {
    position: relative;
}

body.word-feed-mode .feed-dictation-result {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 248, 214, 0.9);
}

body.word-feed-mode .feed-dictation-result.is-ok {
    color: #8dffb8;
}

body.word-feed-mode .feed-dictation-result.is-bad {
    color: #ffb0ba;
}

body.word-feed-mode .feed-dictation-result strong {
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    body.word-feed-mode .feed-dictation-cell {
        width: 24px;
        height: 30px;
        font-size: 0.9rem;
        border-radius: 6px;
        gap: 4px;
    }
}

/* 减少动效（系统无障碍偏好） */
@media (prefers-reduced-motion: reduce) {
    .feed-nav,
    .feed-hint,
    .feed-arena.is-punch .feed-arena-core,
    .feed-arena.is-new-word .feed-arena-num,
    .feed-arena.is-tick .feed-arena-num,
    .feed-arena.is-float-on .feed-arena-float,
    .feed-stat-spotlight-panel,
    .feed-stat-spotlight-ring,
    .feed-stat-chart-panel,
    .feed-top-rail-btn,
    .feed-master-cta,
    .feed-master-cta-glow,
    .feed-master-burst,
    .feed-master-rail,
    .feed-master-origin-flash,
    .feed-master-origin-core,
    .feed-master-jet,
    .feed-master-rocket,
    .feed-master-fw,
    .feed-master-fw-flash,
    .feed-master-fw-core,
    .feed-master-fw-spark,
    .feed-master-photon,
    .feed-arena-combo,
    .feed-arena.is-combo .feed-arena-core,
    .feed-arena.is-photon-hit .feed-arena-core,
    .feed-lex-play,
    body.word-feed-mode .word-list.feed-word-list {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ========== 连连看考试 ========== */
.feed-match-bar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    padding: 8px 12px 10px;
    z-index: 5;
    background: linear-gradient(180deg, rgba(28, 6, 48, 0.92), rgba(28, 6, 48, 0.55));
    border-bottom: 1px solid rgba(199, 125, 255, 0.22);
}

.feed-match-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
    justify-self: start;
}

.feed-match-bar-right {
    min-width: 0;
}

.feed-match-mode-btn,
.feed-match-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(199, 125, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #e9d5ff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.feed-match-mode-btn:hover,
.feed-match-tool-btn:hover {
    border-color: rgba(92, 255, 215, 0.5);
    color: #fff;
}

.feed-match-mode-btn[aria-pressed="true"] {
    background: rgba(255, 107, 203, 0.16);
    border-color: rgba(255, 107, 203, 0.55);
    color: #ffb4e0;
}

body.word-feed-mode .icon-btn[aria-pressed="true"] {
    color: #5cffd7;
}

.feed-match-hud,
.feed-match-clock-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    justify-self: center;
    grid-column: 2;
}

body.word-feed-mode.feed-match-mode .feed-match-hud:not([hidden]),
body.word-feed-mode.feed-match-mode .feed-match-clock-wrap:not([hidden]) {
    display: flex;
}

body.word-feed-mode:not(.feed-match-mode) .feed-match-hud,
body.word-feed-mode:not(.feed-match-mode) .feed-match-clock-wrap,
body.word-feed-mode:not(.feed-match-mode) .feed-match-panel,
body.word-feed-mode:not(.feed-match-mode) .feed-match-empty,
body.word-feed-mode:not(.feed-match-mode) .feed-quiz-arena,
body.word-feed-mode:not(.feed-match-mode) .feed-match-next-fab,
body.word-feed-mode:not(.feed-match-mode) #feed_match_hide_eng_btn,
body.word-feed-mode:not(.feed-match-mode) #feed_match_restart,
body.word-feed-mode:not(.feed-match-mode) #feed_match_diff {
    display: none !important;
}

.feed-match-hud[hidden],
.feed-match-clock-wrap[hidden],
.feed-match-panel[hidden],
.feed-match-empty[hidden],
.feed-quiz-arena[hidden],
.feed-match-next-fab[hidden],
.feed-match-diff[hidden] {
    display: none !important;
}

.feed-match-diff {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 2px;
}

.feed-match-diff .feed-match-tool-btn {
    min-width: 36px;
    padding: 6px 10px;
    justify-content: center;
}

.feed-match-diff .feed-match-tool-btn[aria-pressed="true"] {
    background: rgba(255, 229, 106, 0.2);
    border-color: rgba(255, 229, 106, 0.55);
    color: #ffe56a;
}

.feed-match-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Russo One", "Chakra Petch", sans-serif;
    font-size: clamp(40px, 9vw, 72px);
    line-height: 1;
    color: #ffe56a;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 12px rgba(255, 229, 106, 0.65),
        0 0 28px rgba(255, 107, 203, 0.28);
    user-select: none;
}

.feed-match-clock-slot {
    display: inline-block;
    height: 1em;
    width: 0.64em;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
}

.feed-match-clock-reel {
    display: block;
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.22s cubic-bezier(0.12, 1.45, 0.28, 1);
}

.feed-match-clock.is-snap .feed-match-clock-reel {
    transition: none;
}

.feed-match-clock-reel span {
    display: block;
    height: 1em;
    line-height: 1;
    flex-shrink: 0;
}

.feed-match-clock-colon {
    display: inline-block;
    width: 0.34em;
    text-align: center;
    transform: translateY(-0.04em);
    animation: feed-match-colon-blink 1s steps(2, end) infinite;
}

.feed-match-clock.is-low {
    color: #ff6bcb;
    text-shadow:
        0 0 16px rgba(255, 107, 203, 0.8),
        0 0 32px rgba(255, 107, 203, 0.4);
}

.feed-match-clock.is-low .feed-match-clock-reel {
    animation: feed-match-clock-pulse 0.45s ease-in-out infinite;
}

@keyframes feed-match-colon-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.22; }
}

@keyframes feed-match-clock-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.35); }
}

.feed-match-progress {
    font-family: "Chakra Petch", sans-serif;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.feed-match-next-btn {
    background: rgba(255, 229, 106, 0.16);
    border-color: rgba(255, 229, 106, 0.5);
    color: #ffe56a;
}

.feed-match-next-fab {
    position: absolute;
    left: 50%;
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
    z-index: 12;
    min-width: 220px;
    max-width: min(320px, calc(100% - 48px));
    height: 58px;
    padding: 0 36px;
    border: 1px solid rgba(255, 229, 106, 0.7);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 229, 106, 0.34), rgba(255, 107, 203, 0.22));
    color: #ffe56a;
    font-family: "Russo One", "Chakra Petch", sans-serif;
    font-size: clamp(20px, 5vw, 26px);
    letter-spacing: 0.18em;
    cursor: pointer;
    box-shadow:
        0 0 24px rgba(255, 229, 106, 0.32),
        0 10px 28px rgba(0, 0, 0, 0.35);
}

.feed-match-next-fab:not([hidden]) {
    animation: feed-match-fab-in 0.42s cubic-bezier(0.18, 1.45, 0.32, 1) forwards;
}

.feed-match-next-fab:hover {
    filter: brightness(1.08);
}

@keyframes feed-match-fab-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(28px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

body.feed-match-timeout .feed-match-board {
    padding-bottom: 88px;
}

body.feed-match-hide-eng .feed-match-col-eng .feed-match-card:not(.is-matched):not(.is-reveal) .feed-match-card-text {
    filter: blur(9px);
    user-select: none;
}

body.feed-match-listen .feed-match-col-eng .feed-match-card-text {
    white-space: nowrap;
}

body.feed-match-listen .feed-match-col-eng .feed-match-card:not(.is-matched):not(.is-reveal) .feed-match-card-text {
    opacity: 0;
    filter: none;
    user-select: none;
}

.feed-match-listen-ico {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1em;
    color: rgba(102, 224, 255, 0.92);
    pointer-events: none;
    text-shadow: 0 0 12px rgba(102, 224, 255, 0.45);
}

body.feed-match-listen .feed-match-card.is-listen-eng {
    position: relative;
}

body.feed-match-listen .feed-match-card.is-listen-eng:not(.is-matched):not(.is-reveal) .feed-match-listen-ico {
    display: inline-block;
}

body.feed-match-listen .feed-match-card.is-listening {
    border-color: #66e0ff;
    box-shadow: 0 0 0 2px rgba(102, 224, 255, 0.5);
    animation: feed-match-listen-pulse 1.05s ease-in-out infinite;
}

body.feed-match-listen .feed-match-card.is-listening .feed-match-listen-ico {
    color: #fff;
}

@keyframes feed-match-listen-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(102, 224, 255, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(102, 224, 255, 0.12); }
}

.feed-match-tool-btn[aria-pressed="true"] {
    background: rgba(92, 255, 215, 0.16);
    border-color: rgba(92, 255, 215, 0.5);
    color: #5cffd7;
}

body.word-feed-mode.feed-match-mode .word-list.feed-word-list,
body.word-feed-mode.feed-match-mode .feed-hint {
    display: none !important;
}

.feed-match-panel {
    display: none;
    flex: 1;
    min-height: 0;
    position: relative;
    flex-direction: column;
}

body.word-feed-mode.feed-match-mode .feed-match-panel {
    display: flex;
}

.feed-match-board {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 16px;
    overflow: auto;
}

.feed-match-gutter {
    flex: 1 1 48px;
    min-width: 24px;
    max-width: 72px;
    pointer-events: none;
}

.feed-match-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
    align-self: flex-start;
    box-sizing: border-box;
}

.feed-match-col-eng {
    flex: 0 0 auto;
    min-width: 0;
    max-width: calc(58% + 200px);
}

.feed-match-col-zh {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 200px);
}

.feed-match-card-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.feed-match-card {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border: 1px solid rgba(199, 125, 255, 0.28);
    background: rgba(36, 8, 58, 0.82);
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1.4;
    min-height: 52px;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    user-select: none;
    -webkit-user-select: none;
}

.feed-match-col-eng .feed-match-card {
    font-size: 24px;
}

.feed-match-col-zh .feed-match-card {
    white-space: normal;
}

.feed-match-col-zh .feed-match-card-text {
    white-space: normal;
}

.feed-match-card-rest {
    color: rgba(220, 220, 228, 0.62);
    font-weight: 400;
}

.feed-match-col-zh .feed-match-card.has-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    overflow: hidden;
    min-width: 0;
}

.feed-match-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(200px, 100%);
    height: 200px;
    max-width: 200px;
    max-height: 200px;
    overflow: hidden;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    line-height: 0;
}

.feed-match-card-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
    border-radius: 8px;
}

.feed-match-card-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    font-size: 140px;
    line-height: 1;
    pointer-events: none;
}

.feed-match-card.has-img .feed-match-card-caption {
    display: none;
    width: 100%;
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.35;
}

.feed-match-card.has-img.is-matched .feed-match-card-caption,
.feed-match-card.has-img.is-reveal .feed-match-card-caption,
.feed-match-card.has-img.is-caption-on .feed-match-card-caption {
    display: block;
}

.feed-match-col-zh .feed-match-card.has-img.is-matched,
.feed-match-col-zh .feed-match-card.has-img.is-matched:hover,
.feed-match-col-zh .feed-match-card.has-img.is-matched:disabled {
    opacity: 1;
}

.feed-match-col-zh .feed-match-card.has-img.is-matched .feed-match-card-media {
    opacity: 0.62;
}

.feed-match-col-zh .feed-match-card.has-img.is-matched .feed-match-card-caption {
    color: rgba(220, 220, 228, 0.92);
}

.feed-match-card:hover {
    border-color: rgba(92, 255, 215, 0.45);
}

.feed-match-card.is-selected {
    border-color: #5cffd7;
    box-shadow: 0 0 0 1px rgba(92, 255, 215, 0.45);
}

.feed-match-card.is-matched,
.feed-match-card.is-matched:hover,
.feed-match-card.is-matched:disabled {
    border-color: rgba(148, 148, 158, 0.32);
    background: rgba(48, 48, 56, 0.42);
    color: rgba(168, 168, 176, 0.78);
    cursor: default;
    opacity: 0.55;
    box-shadow: none;
    animation: none;
    pointer-events: auto;
}

.feed-match-card.is-wrong {
    border-color: #ff6bcb;
    background: rgba(80, 12, 48, 0.55);
    animation: feed-match-shake 0.28s ease;
}

.feed-match-card.is-reveal {
    border-color: rgba(92, 255, 215, 0.55);
    background: rgba(8, 52, 44, 0.45);
    color: #9cf5e0;
    cursor: default;
    opacity: 0.92;
}

body.feed-match-listen .feed-match-col-eng .feed-match-card.is-replay {
    pointer-events: auto;
    cursor: pointer;
}

body.feed-match-listen .feed-match-col-eng .feed-match-card.is-replay:hover {
    border-color: #66e0ff;
}

body.feed-match-listen.feed-match-listen-done .feed-match-card.is-matched:not(.is-miss):not(.is-reveal):not(.is-pair-on),
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-matched:not(.is-miss):not(.is-reveal):not(.is-pair-on):hover,
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-matched:not(.is-miss):not(.is-reveal):not(.is-pair-on):disabled {
    opacity: 0.55;
    color: rgba(168, 168, 176, 0.78);
    background: rgba(48, 48, 56, 0.42);
    border-color: rgba(148, 148, 158, 0.32);
    box-shadow: none;
}

body.feed-match-listen.feed-match-listen-done .feed-match-col-eng .feed-match-card.is-replay:not(.is-miss):not(.is-reveal):not(.is-pair-on) {
    opacity: 0.55;
    color: rgba(168, 168, 176, 0.78);
}

body.feed-match-listen.feed-match-listen-done .feed-match-card.is-miss:not(.is-pair-on),
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-reveal:not(.is-pair-on),
body.feed-match-review .feed-match-card.is-miss:not(.is-pair-on),
body.feed-match-review .feed-match-card.is-reveal:not(.is-pair-on) {
    opacity: 1;
    color: #ffe9a8;
    background: rgba(72, 28, 8, 0.92);
    border-color: #ffb020;
    box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.45);
}

body.feed-match-listen.feed-match-listen-done .feed-match-col-zh .feed-match-card.has-img.is-matched:not(.is-miss):not(.is-pair-on),
body.feed-match-listen.feed-match-listen-done .feed-match-col-zh .feed-match-card.has-img.is-matched:not(.is-miss):not(.is-pair-on):hover,
body.feed-match-listen.feed-match-listen-done .feed-match-col-zh .feed-match-card.has-img.is-matched:not(.is-miss):not(.is-pair-on):disabled {
    opacity: 0.55;
    background: rgba(48, 48, 56, 0.42);
}

body.feed-match-review .feed-match-card,
body.feed-match-review .feed-match-card.is-matched,
body.feed-match-review .feed-match-card.is-matched:hover,
body.feed-match-review .feed-match-card.is-matched:disabled,
body.feed-match-review .feed-match-card.is-reveal,
body.feed-match-review .feed-match-card.is-miss {
    pointer-events: auto !important;
    cursor: pointer;
}

body.feed-match-review .feed-match-board.is-pair-hover .feed-match-card:not(.is-pair-on) {
    opacity: 0.28;
    filter: saturate(0.45);
}

body.feed-match-review .feed-match-board.is-pair-hover .feed-match-eng-row:not(:has(.is-pair-on)) .feed-match-master-btn,
body.feed-match-review .feed-match-board.is-pair-hover .feed-match-eng-row:not(:has(.is-pair-on)) .feed-match-collect-btn {
    opacity: 0.28;
    filter: saturate(0.45);
}

body.feed-match-review .feed-match-card.is-pair-on,
body.feed-match-review .feed-match-card.is-matched.is-pair-on,
body.feed-match-review .feed-match-card.is-matched.is-pair-on:hover,
body.feed-match-review .feed-match-card.is-matched.is-pair-on:disabled,
body.feed-match-review .feed-match-card.is-reveal.is-pair-on,
body.feed-match-review .feed-match-card.is-miss.is-pair-on,
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-pair-on,
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-matched.is-pair-on,
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-reveal.is-pair-on,
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-miss.is-pair-on,
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-matched.is-pair-on:not(.is-miss):not(.is-reveal),
body.feed-match-listen.feed-match-listen-done .feed-match-card.is-replay.is-pair-on {
    opacity: 1 !important;
    filter: none;
    color: #fff !important;
    background: rgba(42, 18, 8, 0.94) !important;
    border-color: #ffe56a !important;
    box-shadow: 0 0 0 2px rgba(255, 229, 106, 0.55), 0 8px 22px rgba(255, 196, 80, 0.22);
    z-index: 2;
    position: relative;
}

body.feed-match-review .feed-match-eng-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

body.feed-match-review .feed-match-eng-row .feed-match-card {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.feed-match-master-btn,
.feed-match-collect-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(199, 125, 255, 0.3);
    color: #fff;
    cursor: pointer;
    pointer-events: auto !important;
    line-height: 1;
    font-size: 16px;
    user-select: none;
    opacity: 0.45;
    transition: background 0.3s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.feed-match-master-btn i,
.feed-match-collect-btn i {
    font-size: 16px;
    line-height: 1;
}

.feed-match-master-btn:hover,
.feed-match-master-btn:focus-visible,
.feed-match-collect-btn:hover,
.feed-match-collect-btn:focus-visible {
    background: rgba(199, 125, 255, 0.6);
}

.feed-match-master-btn i {
    color: #fff;
}

.feed-match-master-btn.is-done,
.feed-match-master-btn.is-done:hover {
    opacity: 1;
    cursor: default;
    background: rgba(114, 245, 198, 0.28);
    box-shadow: 0 0 0 2px rgba(114, 245, 198, 0.55);
}

.feed-match-master-btn.is-done i {
    color: #72f5c6;
}

.feed-match-collect-btn i {
    color: #c77dff;
}

.feed-match-collect-btn.is-on,
.feed-match-collect-btn.is-on:hover {
    opacity: 1;
    background: rgba(199, 125, 255, 0.3);
}

.feed-match-collect-btn.is-on i {
    color: #ffd700;
}

.feed-match-side-slot {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    pointer-events: none;
    visibility: hidden;
}

.feed-match-float-tip {
    position: fixed;
    z-index: 80;
    pointer-events: none;
    transform: translate(-50%, 0);
    font-family: "Chakra Petch", "Russo One", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #d4ffe8;
    text-shadow: 0 0 10px rgba(114, 245, 198, 0.75), 0 2px 8px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    animation: feed-match-tip-up 1.15s ease-out forwards;
}

@keyframes feed-match-tip-up {
    0% { opacity: 0; transform: translate(-50%, 8px) scale(0.82); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -46px) scale(1.08); }
}

.feed-match-empty {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 24px;
    text-align: center;
    pointer-events: none;
}

body.word-feed-mode.feed-match-mode .feed-match-empty:not([hidden]) {
    display: flex;
}

body.word-feed-mode.feed-match-mode #feed_arena {
    display: none;
}

body.word-feed-mode.feed-match-mode .feed-quiz-arena:not([hidden]) {
    display: flex;
}

.feed-quiz-arena {
    display: none;
}

.feed-quiz-arena .feed-arena-core {
    border-color: rgba(92, 255, 215, 0.32);
}

.feed-quiz-arena.is-punch .feed-arena-core {
    animation: feed-arena-punch 0.4s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.feed-quiz-arena.is-float-on .feed-arena-float {
    opacity: 1;
}

@keyframes feed-match-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes feed-match-ok-pop {
    0% { transform: scale(0.96); }
    55% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@media (max-width: 640px) {
    .feed-match-board {
        padding: 8px 10px 12px;
    }
    .feed-match-gutter {
        min-width: 48px;
        max-width: 72px;
        flex-basis: 52px;
    }
    .feed-match-col-eng {
        max-width: calc(54% + 200px);
    }
    .feed-match-col-zh {
        max-width: calc(100% - 120px);
    }
    .feed-match-card {
        padding: 10px 12px;
        font-size: 17px;
        min-height: 48px;
    }
    .feed-match-col-eng .feed-match-card {
        font-size: 20px;
    }
    .feed-match-bar {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .feed-match-clock-wrap,
    .feed-match-hud {
        grid-column: 1;
        grid-row: 1;
    }
    .feed-match-bar-left {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
    }
    .feed-match-bar-right {
        display: none;
    }
    .feed-match-clock {
        font-size: clamp(36px, 14vw, 56px);
    }
    .feed-match-tool-btn span {
        display: none;
    }
    .feed-match-next-fab {
        height: 54px;
        font-size: 20px;
        letter-spacing: 0.12em;
        bottom: max(78px, calc(env(safe-area-inset-bottom, 0px) + 70px));
    }
}

.feed-match-adv-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.feed-match-adv-modal[hidden] {
    display: none !important;
}

.feed-match-adv-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 1, 20, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.feed-match-adv-panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 560px);
    max-height: min(88dvh, 680px);
    overflow: auto;
    padding: 16px 16px 14px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(199, 125, 255, 0.18), transparent 55%),
        rgba(14, 3, 32, 0.96);
    border: 1px solid rgba(199, 125, 255, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.feed-match-adv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.feed-match-adv-title {
    font-family: "Russo One", "Chakra Petch", sans-serif;
    font-size: 1.12rem;
    color: #f3e8ff;
    letter-spacing: 0.04em;
}

.feed-match-adv-sub {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}

.feed-match-adv-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(199, 125, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #e0aaff;
    cursor: pointer;
}

.feed-match-adv-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.feed-match-adv-kpi {
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 125, 255, 0.2);
    text-align: center;
}

.feed-match-adv-kpi-val {
    display: block;
    font-family: "Chakra Petch", sans-serif;
    font-size: 1.25rem;
    color: #5cffd7;
}

.feed-match-adv-kpi-lab {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(233, 213, 255, 0.7);
}

.feed-match-adv-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.feed-match-adv-params span {
    color: #ffe56a;
}

.feed-match-adv-list-head {
    font-size: 13px;
    color: rgba(233, 213, 255, 0.85);
    margin-bottom: 6px;
}

.feed-match-adv-list {
    max-height: 240px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(199, 125, 255, 0.2);
}

.feed-match-adv-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(199, 125, 255, 0.12);
    font-size: 13px;
}

.feed-match-adv-row:last-child {
    border-bottom: none;
}

.feed-match-adv-eng {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-match-adv-zh {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

.feed-match-adv-meta {
    color: #ffb4e0;
    font-family: "Chakra Petch", sans-serif;
    white-space: nowrap;
}

.feed-match-adv-empty {
    padding: 18px 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

@media (max-width: 640px) {
    .feed-match-adv-kpis,
    .feed-match-adv-params {
        grid-template-columns: 1fr 1fr;
    }
}
