/* ZodiacMatrix.css - 完全参照 TimeMatrix.css 结构 */
.zm-outer-container {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    padding: 20px 20px 20px 18px;
    width: 100%;
}

.zm-main-viewport {
    flex: 1;
    min-width: 0;
    width: auto;
    overflow: visible;
}

.zm-main-viewport::-webkit-scrollbar {
    display: none;
}

.zm-main-viewport {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Loading state */
.zm-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.zm-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: zm-spin 0.8s linear infinite;
}

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

/* 模块标签 */
.zm-module-tag {
    display: inline-block;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #ef4444;
}

/* 3列网格 - v2026.04.23.FINAL_WIDTH */
.zm-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 192px) !important;
    gap: 14px 0px;
    margin-bottom: 32px;
    justify-items: start;
}

/* 星座卡片设计：水平布局，图标在左 - FORCE 172px */
.zm-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 172px !important;
    max-width: 172px !important;
    min-width: 172px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box !important;
}

.zm-card:hover {
    border-color: #ef4444;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.zm-active {
    background-color: #fff1f2;
    border: 1px solid #ef4444 !important;
}

/* 星座符号：24x24 */
.zm-symbol {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
    color: #374151;
    display: inline-block;
    position: relative;
    top: -12px;
}

.zm-symbol svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block;
}

/* 文字内容容器 */
.zm-text-content {
    flex: 1;
    min-width: 0;
    text-align: center;
    transform: translateX(-12px) translateY(-4px);
}

/* 文本排版：水平排列 */
.zm-word {
    font-size: 16px;
    font-weight: normal;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
    position: relative;
    top: -2px;
}

.zm-word ruby {
    ruby-position: over;
}

.zm-word rt {
    font-size: 0.75em;
    color: #64748b;
    font-weight: normal;
    padding-bottom: 2px;
}

.zm-meaning {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-top: 2px;
}

/* 播放图标：参照 tm-icon-play */
.zm-icon-play {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 16px;
    height: 16px;
    color: #cbd5e1;
    transition: color 0.2s;
}

.zm-card:hover .zm-icon-play {
    color: #ef4444;
}

/* 右侧广告位 (150*600)：顶边贴二级导航下分割线、右边贴页面右边缘
   （负 margin 抵消外层容器 padding，尺寸允许与其他模块不一致） */
.zm-ad-sidebar {
    box-sizing: border-box;
    width: 320px;
    padding-left: 20px;
    flex-shrink: 0;
    margin-top: -20px;
    margin-right: -20px;
}

.zm-ad-sticky {
    width: 300px;
    height: 600px;
    position: sticky;
    top: 0; /* 滚动时粘在滚动区顶沿（即分割线位置） */
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder-150 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

/* 横幅广告栏：位于内容底部 */
.zm-bottom-banner-ad {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.zm-bottom-banner-ad .banner-ad-content {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin-left: 0;
    margin-right: 0;
    padding: 0 16px;
    height: 70px;
    gap: 12px;
}
