/* 基础容器 */
.maoyan-hot-widget-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    position: relative;
    min-height: 200px;
}

.maoyan-header-area { margin-right: 70px; }

.maoyan-hot-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
    position: relative;
    min-height: 120px;
}

.maoyan-hot-list { list-style: none; margin: 0; padding: 0; }

.maoyan-loading, .maoyan-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #999;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
}
.maoyan-error { color: #e50914; }

.maoyan-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e50914;
    border-radius: 50%;
    margin-bottom: 10px;
    animation: maoyanSpin 1s linear infinite;
}
@keyframes maoyanSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes maoyanFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* 列表项 */
.maoyan-hot-item {
    display: flex;
    align-items: center;
    padding: 12px; /* 增加一点高度 */
    border-bottom: 1px solid #f5f5f5;
    background-color: #fff;
    height: 80px; /* 固定高度，保证整齐 */
    box-sizing: border-box;
}
.maoyan-hot-item:hover { background-color: #fafafa; }
.maoyan-hot-item:last-child { border-bottom: none; }

.maoyan-rank {
    width: 24px;
    font-weight: 700;
    font-size: 15px;
    color: #ccc;
    margin-right: 10px;
    font-style: italic;
    flex-shrink: 0;
    text-align: center;
}
.maoyan-hot-item.rank-top .maoyan-rank { color: #ff4d4f; font-size: 18px; }
.maoyan-hot-item.rank-high .maoyan-rank { color: #ff7a45; }

.maoyan-link-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    height: 100%;
}

.maoyan-poster {
    width: 44px; /* 竖版海报比例 */
    height: 62px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f0f0f0;
}
.maoyan-poster img { width: 100%; height: 100%; object-fit: cover; }

.maoyan-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上下分布 */
    height: 60px; /* 与海报高度接近 */
}

.maoyan-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    color: #333;
}

/* 新增：主演样式 */
.maoyan-star {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.maoyan-score {
    font-size: 13px;
    color: #ffb400;
    font-weight: 700;
    line-height: 1.2;
}
.maoyan-score .unit { font-weight: 400; color: #999; font-size: 11px; margin-left: 2px; }

/* 翻页按钮 */
.maoyan-pagination-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    z-index: 10;
}
.maoyan-pagination-btn {
    background: #fff;
    border: 1px solid #eee;
    color: #666;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    padding-bottom: 3px;
    line-height: 1;
}
.maoyan-pagination-btn:hover:not(:disabled) { background: #f0f0f0; color: #333; border-color: #ccc; }
.maoyan-pagination-btn:disabled { color: #eee; border-color: #f9f9f9; cursor: not-allowed; }